I need to use a few WIN API functions and get Return values as Long and
Integers from those.. how do I convert these to the error codes so I get to
know what error I really got?
Example from MSDN site:
http://msdn.microsoft.com/library/de...ternetdial.asp
Return Values
Returns ERROR_SUCCESS if successful, or an error value otherwise. The error
code can be one of the following values.
ERROR_INVALID_PARAMETER, One or more of the parameters are incorrect.
ERROR_NO_CONNECTION, There is a problem with the dial-up connection.
ERROR_USER_DISCONNECTION, The user clicked either the Work Offline or
Cancel button on the Internet connection dialog box.
I get numbers as 797, 631 and 0 from this api. I have understood , from
trial and error, that 0 is success.. but how to I translate the other ones
to the real message?
best regards
/Lars Nezel