Delen via


GDI Utility Services

The following table lists the miscellaneous GDI utility services. These services include debugging support, getting and setting the last error, several conversion services that convert from one character encoding type to another, a sort routine, and others.

Function Description

EngBugCheckEx

Brings down the system in a controlled manner when the caller discovers an unrecoverable inconsistency.

EngDebugBreak

Causes a breakpoint in the current process to occur.

EngDebugPrint

Prints the specified debug message to the kernel debugger.

EngGetLastError

Returns the last error code logged by GDI for the calling thread.

EngHangNotification

Notifies the system that a specified device is inoperable or unresponsive.

EngLpkInstalled

Determines whether the language pack is installed on the system.

EngMulDiv

Multiplies two 32-bit values and then divides the 64-bit result by a third 32-bit value. The return value is rounded up or down to the nearest integer.

EngMultiByteToUnicodeN

Converts the specified ANSI source string into a Unicode string using the current ANSI code page.

EngMultiByteToWideChar

Converts an ANSI source string into a wide character string using the specified code page.

EngProbeForRead

Probes a structure for read accessibility.

EngProbeForReadAndWrite

Probes a structure for read and write accessibility.

EngSetLastError

Causes GDI to report an error code, which can be retrieved by an application.

EngSort

Performs a quick-sort on the specified list.

EngUnicodeToMultiByteN

Converts the specified Unicode string into an ANSI string using the current ANSI code page.

EngWideCharToMultiByte

Converts a wide character string into an ANSI source string using the specified code page.