How to map CredWriteW status code to error code?
On this MSDN page the CredWriteW function is described and there is a section of the errors it can return if it does not complete successfully. However I do not see what number/integer each error code corresponds to. Since if the function returns FALSE
we must use GetLastError
to get the status code, which is a number, then how can I map the status code to one of the error codes shown in the MSDN page?
How to marshall a wstring& into a C# string?
I have a function which signature is: