GetOwnerProcess (Compact 2013)

3/28/2014

This function returns the process handle of the current thread owner.

Syntax

HANDLE GetOwnerProcess (void);

Parameters

None.

Return Value

Handle to the owner process.

Remarks

This function is typically used by a driver to determine what process owns the thread making the function call.

Because a driver runs in a different process space (device.dll) than a calling process, it is important in certain situations to know what process is making the call to this function.

Requirements

Header

pkfuncs.h

Library

coredll.lib

See Also

Reference

Kernel Functions