Partager via


IMachineDebugManagerCookie::AddApplication

Adds an application to the running application list.

Syntax

HRESULT AddApplication(  
   IRemoteDebugApplication*  pda,  
   DWORD                     dwDebugAppCookie,  
   DWORD*                    pdwAppCookie  
);  

Parameters

pda
[in] Application to the running application list.

dwDebugAppCookie
[in] A cookie that identifies the debug application.

pdwAppCookie
[out] A cookie that is used to remove the application from the machine debug manager.

Return Value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Value Description
S_OK The method succeeded.

Remarks

This method is called by the process debug manager whenever IProcessDebugManager::AddApplication is called.

See also

IMachineDebugManagerCookie Interface
IMachineDebugManagerCookie::RemoveApplication
IProcessDebugManager::AddApplication