IDebugSystemObjects4::GetCurrentProcessHandle method (dbgeng.h)
The GetCurrentProcessHandle method returns the system handle for the current process.
Syntax
HRESULT GetCurrentProcessHandle(
[out] PULONG64 Handle
);
Parameters
[out] Handle
Receives the system handle of the current process.
Return value
This method may also return error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
Remarks
In kernel-mode debugging, the only process in the target is the virtual process created for the kernel. In this case, an artificial handle is created. The artificial handle can only be used with the debugger engine API.
For more information about processes, see Threads and Processes. For details on system handles, see Handles.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for