Partager via


GetCallerProcess (Windows Embedded CE 6.0)

1/6/2010

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

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 Embedded CE  is Device.dll**.

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