GetCallerProcess

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This function returns a handle to the caller process.

Note

This function is obsolete as of Windows Embedded CE 6.0. Use GetDirectCallerProcessId or GetCallerVMProcessId, instead.

Syntax

HANDLE GetCallerProcess(void);

Parameters

None.

Return Value

A handle to the caller process indicates success.

Remarks

For All Platforms:

This function is only used in the Program Static Library (PSL) context.

In Windows Embedded CE, threads can migrate between processes while making API calls. For example, an application can call ExtEscape to tell the display driver to turn off the backlight, using a platform-specific escape code. The display driver might in turn call DeviceIoControl to turn off the backlight. While the thread is running DeviceIoControl code in the backlight driver, its owner process is the application, its caller process is Gwes.dll, and its current process on Windows Mobile  is Device.exeon Windows Embedded CE  is Device.dll**.

For Windows Embedded CE:

In Windows Embedded CE, Gwes.dll and Device.dll are now libraries.

Requirements

Header pkfuncs.h
Library coredll.lib
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

Kernel Functions
GetDirectCallerProcessId
GetCallerVMProcessId
GetOwnerProcess
MapPtrToProcess

Other Resources

GetCurrentProcessId