@@ -20,22 +20,22 @@ Specifies the structure of the breakpoint resolution location.
20
20
21
21
``` cpp
22
22
struct _BP_RESOLUTION_LOCATION {
23
- BP_TYPE bpType;
24
- union {
25
- BP_RESOLUTION_CODE bpresCode;
26
- BP_RESOLUTION_DATA bpresData;
27
- int unused;
28
- } bpResLocation;
23
+ BP_TYPE bpType;
24
+ union {
25
+ BP_RESOLUTION_CODE bpresCode;
26
+ BP_RESOLUTION_DATA bpresData;
27
+ int unused;
28
+ } bpResLocation;
29
29
} BP_RESOLUTION_LOCATION;
30
30
```
31
31
32
32
```csharp
33
33
public struct BP_RESOLUTION_LOCATION {
34
- public uint bpType;
35
- public IntPtr unionmember1;
36
- public IntPtr unionmember2;
37
- public IntPtr unionmember3;
38
- public uint unionmember4;
34
+ public uint bpType;
35
+ public IntPtr unionmember1;
36
+ public IntPtr unionmember2;
37
+ public IntPtr unionmember3;
38
+ public uint unionmember4;
39
39
};
40
40
```
41
41
@@ -90,14 +90,14 @@ namespace MyPackage
90
90
{
91
91
if (bprl.bpType == (uint)enum_BP_TYPE.BPT_CODE)
92
92
{
93
- IDebugCodeContext2 pContext = (IDebugCodeContext2)Marshal.GetObjectForIUnknown(bp.unionmember1);
93
+ IDebugCodeContext2 pContext = (IDebugCodeContext2)Marshal.GetObjectForIUnknown(bp.unionmember1);
94
94
}
95
95
else if (bprl.bpType == (uint)enum_BP_TYPE.BPT_DATA)
96
96
{
97
- string dataExpression = Marshal.PtrToStringBSTR(bp.unionmember3);
98
- string functionName = Marshal.PtrToStringBSTR(bp.unionmember2);
99
- string imageName = Marshal.PtrToStringBSTR(bp.unionmember3);
100
- enum_BP_RES_DATA_FLAGS numElements = (enum_BP_RES_DATA_FLAGS)bp.unionmember4;
97
+ string dataExpression = Marshal.PtrToStringBSTR(bp.unionmember3);
98
+ string functionName = Marshal.PtrToStringBSTR(bp.unionmember2);
99
+ string imageName = Marshal.PtrToStringBSTR(bp.unionmember3);
100
+ enum_BP_RES_DATA_FLAGS numElements = (enum_BP_RES_DATA_FLAGS)bp.unionmember4;
101
101
}
102
102
}
103
103
}
0 commit comments