 |
SetLastError Add comment W32 Constants Translate this page |
 |
 |
Sets the last-error code for the calling thread. This function is intended primarily for dynamic-link libraries (DLL). Calling this function after an error occurs lets the DLL emulate the behavior of the Win32 API.
If you are defining an error code for your application, be sure that your error code does not conflict with any system-defined error codes.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
VOID SetLastError(
DWORD dwErrCode // per-thread error code
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE SetLastError IN kernel32 INTEGER dwErrCode
|
 |
 |
 |
| Parameters: |
 |
dwErrCode
[in] Specifies the last-error code for the thread |
 |
 |
| Return value: |
 |
| This function does not return a value |
 |
 |
| Word Index links for the SetLastError : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-07-21 12:00:00 | | Modified: | 2001-11-26 16:02:37 | Visited in last 7 days: 17 |