Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call the GetLastError function. The following table shows the possible values for GetLastError.
Value Description
ERROR_INVALID_ACCESS The access code is invalid.
ERROR_INVALID_FLAGS The flags are invalid.
ERROR_INVALID_PARAMETER The parameter is incorrect.