ULONG EngGetLastError(VOID)
EngGetLastError returns the last error code logged by GDI for the calling thread.
The return value is the last error code set by EngSetLastError.
EngGetLastError facilitates communication of GDI and/or driver error conditions to an application.