|
2 | 2 | title: "ATTACH_REASON | Microsoft Docs"
|
3 | 3 | ms.date: "11/04/2016"
|
4 | 4 | ms.topic: "conceptual"
|
5 |
| -f1_keywords: |
| 5 | +f1_keywords: |
6 | 6 | - "ATTACH_REASON"
|
7 |
| -helpviewer_keywords: |
| 7 | +helpviewer_keywords: |
8 | 8 | - "ATTACH_REASON enumeration"
|
9 | 9 | ms.assetid: 159fb70b-a344-4ba6-9115-b7eaa16e228f
|
10 | 10 | author: "gregvanl"
|
11 | 11 | ms.author: "gregvanl"
|
12 | 12 | manager: jillfra
|
13 |
| -ms.workload: |
| 13 | +ms.workload: |
14 | 14 | - "vssdk"
|
15 | 15 | ---
|
16 | 16 | # ATTACH_REASON
|
17 |
| -Specifies the reason for the debug engine (DE) to attach to a program node. |
18 |
| - |
19 |
| -## Syntax |
20 |
| - |
21 |
| -```cpp |
22 |
| -enum enum_ATTACH_REASON { |
23 |
| - ATTACH_REASON_LAUNCH = 0x0001, |
24 |
| - ATTACH_REASON_USER = 0x0002, |
25 |
| - ATTACH_REASON_AUTO = 0x0003 |
26 |
| -}; |
27 |
| -typedef DWORD ATTACH_REASON; |
28 |
| -``` |
29 |
| - |
30 |
| -```csharp |
31 |
| -public enum enum_ATTACH_REASON { |
32 |
| - ATTACH_REASON_LAUNCH = 0x0001, |
33 |
| - ATTACH_REASON_USER = 0x0002, |
34 |
| - ATTACH_REASON_AUTO = 0x0003 |
35 |
| -}; |
36 |
| -``` |
37 |
| - |
38 |
| -## Members |
39 |
| - ATTACH_REASON_AUTO |
40 |
| - Attach because the process is currently in debug mode. |
41 |
| - |
42 |
| - ATTACH_REASON_LAUNCH |
43 |
| - Attach because the process has been launched. |
44 |
| - |
45 |
| - ATTACH_REASON_USER |
46 |
| - Attach because of a user request. |
47 |
| - |
48 |
| -## Remarks |
49 |
| - These values are used as a parameter to the [Attach](../../../extensibility/debugger/reference/idebugengine2-attach.md) and [Attach](../../../extensibility/debugger/reference/idebugprogramex2-attach.md) methods. |
50 |
| - |
51 |
| -## Requirements |
52 |
| - Header: msdbg.h |
53 |
| - |
54 |
| - Namespace: Microsoft.VisualStudio.Debugger.Interop |
55 |
| - |
56 |
| - Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
57 |
| - |
58 |
| -## See Also |
59 |
| - [Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
60 |
| - [Attach](../../../extensibility/debugger/reference/idebugengine2-attach.md) |
61 |
| - [Attach](../../../extensibility/debugger/reference/idebugprogramex2-attach.md) |
| 17 | +Specifies the reason for the debug engine (DE) to attach to a program node. |
| 18 | + |
| 19 | +## Syntax |
| 20 | + |
| 21 | +```cpp |
| 22 | +enum enum_ATTACH_REASON { |
| 23 | + ATTACH_REASON_LAUNCH = 0x0001, |
| 24 | + ATTACH_REASON_USER = 0x0002, |
| 25 | + ATTACH_REASON_AUTO = 0x0003 |
| 26 | +}; |
| 27 | +typedef DWORD ATTACH_REASON; |
| 28 | +``` |
| 29 | + |
| 30 | +```csharp |
| 31 | +public enum enum_ATTACH_REASON { |
| 32 | + ATTACH_REASON_LAUNCH = 0x0001, |
| 33 | + ATTACH_REASON_USER = 0x0002, |
| 34 | + ATTACH_REASON_AUTO = 0x0003 |
| 35 | +}; |
| 36 | +``` |
| 37 | + |
| 38 | +## Members |
| 39 | +ATTACH_REASON_AUTO |
| 40 | +Attach because the process is currently in debug mode. |
| 41 | + |
| 42 | +ATTACH_REASON_LAUNCH |
| 43 | +Attach because the process has been launched. |
| 44 | + |
| 45 | +ATTACH_REASON_USER |
| 46 | +Attach because of a user request. |
| 47 | + |
| 48 | +## Remarks |
| 49 | +These values are used as a parameter to the [Attach](../../../extensibility/debugger/reference/idebugengine2-attach.md) and [Attach](../../../extensibility/debugger/reference/idebugprogramex2-attach.md) methods. |
| 50 | + |
| 51 | +## Requirements |
| 52 | +Header: msdbg.h |
| 53 | + |
| 54 | +Namespace: Microsoft.VisualStudio.Debugger.Interop |
| 55 | + |
| 56 | +Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
| 57 | + |
| 58 | +## See Also |
| 59 | +[Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
| 60 | +[Attach](../../../extensibility/debugger/reference/idebugengine2-attach.md) |
| 61 | +[Attach](../../../extensibility/debugger/reference/idebugprogramex2-attach.md) |
0 commit comments