Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The EngSetLastError function causes GDI to report an error code, which can be retrieved by an application.
Syntax
ENGAPI VOID EngSetLastError(
[in] ULONG unnamedParam1
);
Parameters
[in] unnamedParam1
Specifies the 32-bit error code to set.
Return value
None
Remarks
EngSetLastError sets the last error code for the calling thread. This function allows a driver to communicate error conditions to an application. To facilitate this communication, a driver should use the Win32 application error codes defined in winerror.h.
Only the last error code to be set is retrievable; that is, consecutive calls to EngSetLastError will cause the last-error code field to be overwritten.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Available in Windows 2000 and later versions of the Windows operating systems. |
| Target Platform | Universal |
| Header | winddi.h (include Winddi.h) |
| Library | Win32k.lib |
| DLL | Win32k.sys |