SetProcPermissions (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This function sets the internal permissions bitmask for the current thread, thereby enabling access to the address space of another process.

DWORD SetProcPermissions(
  DWORD newperms 
);

Parameters

newperms
[in] Bitmask specifying the new permissions. Use the value 0xFFFFFFFF to set access rights to the whole system; otherwise, use the values returned by GetCurrentPermissions.

Return Values

The returned DWORD specifies the old permissions.

Remarks

Typically, a driver saves the permissions of a calling process, and then sets the driver's thread permissions to include the calling process when needed. After the work for the calling process is complete, the driver's thread permissions are reset. Setting process permissions to 0xFFFFFFFF should be used sparingly because it enables access to all of the virtual address spaces.

Requirements

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

See Also

GetCurrentPermissions | Trusted APIs


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show: