OpenProcess

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function returns a handle to an existing process object. When you finish with the handle, close it using the CloseHandle function.


HANDLE OpenProcess(
  DWORD fdwAccess,
  BOOL fInherit,
  DWORD IDProcess
);

fdwAccess

[in] Not supported; set to zero.

fInherit

[in] Not supported; set to FALSE.

IDProcess

[in] Specifies the process identifier of the process to open.

An open handle to the specified process indicates success. NULL indicates failure. To get extended error information, call GetLastError.

The handle returned by the OpenProcess function can be used in any function that requires a handle to a process, such as wait functions, if the appropriate access rights are requested. A normal process cannot get a handle to a privileged process.

Headerwinbase.h
Librarycoredll.lib
Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show: