Skip to content

Latest commit

 

History

History
64 lines (49 loc) · 1.4 KB

idebugautoattach-autoattach-method.md

File metadata and controls

64 lines (49 loc) · 1.4 KB
description title ms.date api_name api_location api_type f1_keywords helpviewer_keywords ms.assetid topic_type
Learn more about: IDebugAutoAttach::AutoAttach Method
IDebugAutoAttach::AutoAttach Method
03/30/2017
IDebugAutoAttach.AutoAttach
diasymreader.dll
COM
IDebugAutoAttach::AutoAttach
AutoAttach method [.NET Framework debugging]
IDebugAutoAttach::AutoAttach method [.NET Framework debugging]
3cf3bd9c-7d88-4afa-a476-94cdc7609aa6
apiref

IDebugAutoAttach::AutoAttach Method

Performs server-invoked debugger auto attach.

Syntax

HRESULT AutoAttach  
(  
    [in]  REFGUID   guidPort,  
    [in]  DWORD     dwPid,  
    [in]  AUTOATTACH_PROGRAM_TYPE dwProgramType,  
    [in]  DWORD     dwProgramId,  
    [in]  LPCWSTR   pszSessionId  
);  

Parameters

guidPort
[in] Always set to GUID_NULL.

dwPid
[in] Process ID, normally retrieved with the GetCurrentProcessId function.

dwProgramType
[in] Program type: AUTOATTACH_PROGRAM_WIN32, AUTOATTACH_PROGRAM_COMPLUS, or AUTOATTACH_PROGRAM_UNKNOWN.

dwProgramId
[in] Program ID.

pszSessionId
[in] String passed by the debug verb.

Return Value

S_OK if the method succeeds.

Requirements

Header: DbgAutoAttach.h

See also