Skip to content

Commit b8e6086

Browse files
authored
Merge pull request #2533 from changeworld/patch-49
Delete unnecessary spaces
2 parents da5b7c5 + 43f10bf commit b8e6086

File tree

1 file changed

+50
-50
lines changed

1 file changed

+50
-50
lines changed

docs/extensibility/debugger/reference/idebugbeforesymbolsearchevent2-getmodulename.md

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,62 +2,62 @@
22
title: "IDebugBeforeSymbolSearchEvent2::GetModuleName | Microsoft Docs"
33
ms.date: "11/04/2016"
44
ms.topic: "conceptual"
5-
helpviewer_keywords:
5+
helpviewer_keywords:
66
- "GetModuleName"
77
- "IDebugBeforeSymbolSearchEvent2::GetModuleName"
88
ms.assetid: 0b4abeac-2eaf-4b2e-a2d5-c9ec303bc869
99
author: "gregvanl"
1010
ms.author: "gregvanl"
1111
manager: jillfra
12-
ms.workload:
12+
ms.workload:
1313
- "vssdk"
1414
---
1515
# IDebugBeforeSymbolSearchEvent2::GetModuleName
16-
Retrieves the name of the module currently being debugged.
17-
18-
## Syntax
19-
20-
```cpp
21-
HRESULT GetModuleName(
22-
BSTR *pbstrModuleName
23-
);
24-
```
25-
26-
```csharp
27-
public int GetModuleName (
28-
string pbstrModuleName
29-
);
30-
```
31-
32-
#### Parameters
33-
`pbstrModuleName`
34-
[out] Name of the module.
35-
36-
## Return Value
37-
If successful, returns `S_OK`; otherwise, returns an error code.
38-
39-
## Example
40-
The following example shows how to implement this method for a **CDebugBeforeSymbolSearchEventBase** object that exposes the [IDebugBeforeSymbolSearchEvent2](../../../extensibility/debugger/reference/idebugbeforesymbolsearchevent2.md) interface.
41-
42-
```cpp
43-
STDMETHODIMP CDebugBeforeSymbolSearchEventBase::GetModuleName(BSTR *pbstrModuleName)
44-
{
45-
HRESULT hRes = E_FAIL;
46-
47-
if (m_bstrModuleName)
48-
{
49-
50-
*pbstrModuleName = SysAllocString( m_bstrModuleName);
51-
52-
if (*pbstrModuleName)
53-
{
54-
hRes = S_OK;
55-
}
56-
}
57-
58-
return ( hRes );
59-
}
60-
```
61-
62-
## See Also
63-
[IDebugBeforeSymbolSearchEvent2](../../../extensibility/debugger/reference/idebugbeforesymbolsearchevent2.md)
16+
Retrieves the name of the module currently being debugged.
17+
18+
## Syntax
19+
20+
```cpp
21+
HRESULT GetModuleName(
22+
BSTR *pbstrModuleName
23+
);
24+
```
25+
26+
```csharp
27+
public int GetModuleName (
28+
string pbstrModuleName
29+
);
30+
```
31+
32+
#### Parameters
33+
`pbstrModuleName`
34+
[out] Name of the module.
35+
36+
## Return Value
37+
If successful, returns `S_OK`; otherwise, returns an error code.
38+
39+
## Example
40+
The following example shows how to implement this method for a **CDebugBeforeSymbolSearchEventBase** object that exposes the [IDebugBeforeSymbolSearchEvent2](../../../extensibility/debugger/reference/idebugbeforesymbolsearchevent2.md) interface.
41+
42+
```cpp
43+
STDMETHODIMP CDebugBeforeSymbolSearchEventBase::GetModuleName(BSTR *pbstrModuleName)
44+
{
45+
HRESULT hRes = E_FAIL;
46+
47+
if (m_bstrModuleName)
48+
{
49+
50+
*pbstrModuleName = SysAllocString( m_bstrModuleName);
51+
52+
if (*pbstrModuleName)
53+
{
54+
hRes = S_OK;
55+
}
56+
}
57+
58+
return ( hRes );
59+
}
60+
```
61+
62+
## See Also
63+
[IDebugBeforeSymbolSearchEvent2](../../../extensibility/debugger/reference/idebugbeforesymbolsearchevent2.md)

0 commit comments

Comments
 (0)