Convert Win32 error code to string.
Query the text for a Windows error code, as returned by GetLastError, as a D string.
Thrown if errors that set GetLastError occur.
GetLastError's return value.
If !!value is true, value is returned. Otherwise, new WindowsException(GetLastError(), msg) is thrown. WindowsException assumes that the last operation set GetLastError() appropriately.
wenforce(DeleteFileA("junk.tmp"), "DeleteFile failed");
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/std_windows_syserror.html