fix Issue 13450 - Add WindowsException and wenforce to std.exception

https://issues.dlang.org/show_bug.cgi?id=13450
Should probably assert that this function returns 0, as it can error, in which case the below lines are in undefined behaviour territory.