Retrieves the most recent error code after a Group 2 call.
Int WINAPI LastErrorCode(void)
For Visual Basic 6 the corresponding declaration is:
Private Declare Function LastErrorCode Lib “dlsbar34” () as Long
More:
SetBitmapScale()