T
2020-01-06 04:59:26 UTC
Hi All,
https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-
ERROR_FILE_NOT_FOUND
2 (0x2)
The system cannot find the file specified.
When I already have the error number (2), what is the
proper function to use to get the error string ("The
system cannot find the file specified")?
Is it this one?
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-formatmessagew
The "va_list" seems to be a stopper. I just want back the string.
Many thanks,
-T
https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-
ERROR_FILE_NOT_FOUND
2 (0x2)
The system cannot find the file specified.
When I already have the error number (2), what is the
proper function to use to get the error string ("The
system cannot find the file specified")?
Is it this one?
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-formatmessagew
The "va_list" seems to be a stopper. I just want back the string.
Many thanks,
-T