EngGetLastError function (winddi.h)

The EngGetLastError function returns the last error code logged by GDI for the calling thread.

Syntax

ENGAPI ULONG EngGetLastError();

Return value

The return value is the last error code set by EngSetLastError.

Remarks

EngGetLastError facilitates communication of GDI and/or driver error conditions to an application.

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

See also

EngSetLastError