Share via


IJsDebug::OpenVirtualProcess Method

Factory method used to create a new virtual process object.

Syntax

HRESULT OpenVirtualProcess(  
   DWORD processId,  
   UINT64 runtimeJsBaseAddress,  
   IJsDebugDataTarget *pDataTarget,  
   IJsDebugProcess **ppProcess  
);  

Parameters

processId
[in] Process Id to attach the debugger to.

runtimeJsBaseAddress
[in] The base address at which the JavaScript runtime has loaded into the target process.

pDataTarget
[in] Debugger supplied interface to query for state of the process.

ppProcess
[out] New debug process object

Return Value

Remarks

Returns E_JsDEBUG_MISMATCHED_RUNTIME if Jscript9diag and Jscript9 do not match.

Requirements

Header: jscript9diag.h

See also

IJsDebug Interface