Partager via


GetCallerProcess (Windows CE 5.0)

Send Feedback

This function returns a handle for the caller process.

HANDLEGetCallerProcess(void);

Parameters

None.

Return Values

A handle to the caller process indicates success.

Remarks

This function is only used in the PSL context.

In Windows CE, threads can migrate between processes while executing 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 cause the backlight to turn off. While the thread is running DeviceIoControl code in the backlight driver, its owner process is the application, its caller process is Gwes.exe, and its current process is Device.exe.

The following illustration shows the interaction between your application, GWES, and the Device Manager.

ms885604.getcallerprocess(en-us,MSDN.10).gif

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Pkfuncs.h.
Link Library: Coredll.lib.

See Also

GetCurrentProcessId | GetOwnerProcess | MapPtrToProcess

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.