Compartilhar via


OpenProcess (Windows CE 5.0)

Send Feedback

This function returns a handle to an existing process object.

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

Parameters

  • 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.

Return Values

An open handle to the specified process indicates success.

NULL indicates failure.

To get extended error information, call GetLastError.

Remarks

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.

When you finish with the handle, close it using the CloseHandle function.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

CloseHandle | CreateProcess | GetCurrentProcessId

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.