Export (0) Print
Expand All

SetProcPermissions

Other versions of this page are also available for the following:
Windows Mobile Not SupportedWindows Embedded CE Supported
8/28/2008

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

This function is no longer supported as of CE 6.0.


DWORD SetProcPermissions(
  DWORD newperms
);

newperms

[in] Bit mask specifying the new permissions. Use the value 0xFFFFFFFF to set access rights to the whole system.

The returned DWORD specifies the old permissions.

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.

Headerpkfuncs.h
Librarycoredll.lib
Windows Embedded CEWindows CE 2.10 and later

Community Additions

Show:
© 2015 Microsoft