Skip to content

Commit 9662378

Browse files
author
mtx48109
committed
format atl reference pr4
1 parent 6b77f3d commit 9662378

30 files changed

Lines changed: 372 additions & 372 deletions

docs/atl/reference/ccomsafearraybound-class.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class CComSafeArrayBound : public SAFEARRAYBOUND
4141
|[operator =](#operator_eq)|Sets the `CComSafeArrayBound` to a new value.|
4242

4343
## Remarks
44-
This class is a wrapper for the **SAFEARRAYBOUND** structure used by [CComSafeArray](../../atl/reference/ccomsafearray-class.md). It provides methods for querying and setting the upper and lower bounds of a single dimension of a `CComSafeArray` object and the number of elements it contains. A multidimensional `CComSafeArray` object uses an array of `CComSafeArrayBound` objects, one for each dimension. Therefore, when using methods such as [GetCount](#getcount), be aware that this method will not return the total number of elements in a multidimensional array.
44+
This class is a wrapper for the `SAFEARRAYBOUND` structure used by [CComSafeArray](../../atl/reference/ccomsafearray-class.md). It provides methods for querying and setting the upper and lower bounds of a single dimension of a `CComSafeArray` object and the number of elements it contains. A multidimensional `CComSafeArray` object uses an array of `CComSafeArrayBound` objects, one for each dimension. Therefore, when using methods such as [GetCount](#getcount), be aware that this method will not return the total number of elements in a multidimensional array.
4545

4646
**Header:** atlsafe.h
4747

@@ -56,10 +56,10 @@ CComSafeArrayBound(ULONG ulCount = 0, LONG lLowerBound = 0) throw();
5656
```
5757

5858
### Parameters
59-
`ulCount`
59+
*ulCount*
6060
The number of elements in the array.
6161

62-
`lLowerBound`
62+
*lLowerBound*
6363
The lower bound from which the array is numbered.
6464

6565
### Remarks
@@ -110,10 +110,10 @@ CComSafeArrayBound& operator= (ULONG ulCount) throw();
110110
```
111111

112112
### Parameters
113-
`bound`
113+
*bound*
114114
A `CComSafeArrayBound` object.
115115

116-
`ulCount`
116+
*ulCount*
117117
The number of elements.
118118

119119
### Return Value
@@ -130,7 +130,7 @@ ULONG SetCount(ULONG ulCount) throw();
130130
```
131131

132132
### Parameters
133-
`ulCount`
133+
*ulCount*
134134
The number of elements.
135135

136136
### Return Value
@@ -144,7 +144,7 @@ LONG SetLowerBound(LONG lLowerBound) throw();
144144
```
145145

146146
### Parameters
147-
`lLowerBound`
147+
*lLowerBound*
148148
The lower bound.
149149

150150
### Return Value

docs/atl/reference/ccomsafedeletecriticalsection-class.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CComSafeDeleteCriticalSection : public CComCriticalSection
4242

4343
|||
4444
|-|-|
45-
|[m_bInitialized](#m_binitialized)|Flags whether the internal **CRITICAL_SECTION** object has been initialized.|
45+
|[m_bInitialized](#m_binitialized)|Flags whether the internal `CRITICAL_SECTION` object has been initialized.|
4646

4747
## Remarks
4848
`CComSafeDeleteCriticalSection` derives from the class [CComCriticalSection](../../atl/reference/ccomcriticalsection-class.md). However, `CComSafeDeleteCriticalSection` provides additional safety mechanisms over [CComCriticalSection](../../atl/reference/ccomcriticalsection-class.md).
@@ -67,7 +67,7 @@ CComSafeDeleteCriticalSection();
6767
```
6868

6969
### Remarks
70-
Sets the [m_bInitialized](#m_binitialized) data member to **false**.
70+
Sets the [m_bInitialized](#m_binitialized) data member to FALSE.
7171

7272
## <a name="dtor"></a> CComSafeDeleteCriticalSection::~CComSafeDeleteCriticalSection
7373
The destructor.
@@ -77,10 +77,10 @@ CComSafeDeleteCriticalSection();
7777
```
7878

7979
### Remarks
80-
Releases the internal **CRITICAL_SECTION** object from memory if the [m_bInitialized](#m_binitialized) data member is set to **true**.
80+
Releases the internal `CRITICAL_SECTION` object from memory if the [m_bInitialized](#m_binitialized) data member is set to TRUE.
8181

8282
## <a name="init"></a> CComSafeDeleteCriticalSection::Init
83-
Calls the base class implementation of [Init](/visualstudio/debugger/init) and sets [m_bInitialized](#m_binitialized) to **true** if successful.
83+
Calls the base class implementation of [Init](/visualstudio/debugger/init) and sets [m_bInitialized](#m_binitialized) to TRUE if successful.
8484

8585
```
8686
HRESULT Init() throw();
@@ -101,32 +101,32 @@ HRESULT Lock();
101101
Returns the result of [CComCriticalSection::Lock](../../atl/reference/ccomcriticalsection-class.md#lock).
102102

103103
### Remarks
104-
This method assumes the [m_bInitialized](#m_binitialized) data member is set to **true** upon entry. An assertion is generated in Debug builds if this condidtion is not met.
104+
This method assumes the [m_bInitialized](#m_binitialized) data member is set to TRUE upon entry. An assertion is generated in Debug builds if this condidtion is not met.
105105

106106
For more information on the behavior of the function, refer to [CComCriticalSection::Lock](../../atl/reference/ccomcriticalsection-class.md#lock).
107107

108108
## <a name="m_binitialized"></a> CComSafeDeleteCriticalSection::m_bInitialized
109-
Flags whether the internal **CRITICAL_SECTION** object has been initialized.
109+
Flags whether the internal `CRITICAL_SECTION` object has been initialized.
110110

111111
```
112112
bool m_bInitialized;
113113
```
114114

115115
### Remarks
116-
The **m_bInitialized** data member is used to track validity of the underlying **CRITICAL_SECTION** object associated with the [CComSafeDeleteCriticalSection](../../atl/reference/ccomsafedeletecriticalsection-class.md) class. The underlying **CRITICAL_SECTION** object will not be attempted to be released from memory if this flag is not set to **true**.
116+
The `m_bInitialized` data member is used to track validity of the underlying `CRITICAL_SECTION` object associated with the [CComSafeDeleteCriticalSection](../../atl/reference/ccomsafedeletecriticalsection-class.md) class. The underlying `CRITICAL_SECTION` object will not be attempted to be released from memory if this flag is not set to TRUE.
117117

118118
## <a name="term"></a> CComSafeDeleteCriticalSection::Term
119-
Calls the base class implementation of [CComCriticalSection::Term](../../atl/reference/ccomcriticalsection-class.md#term) if the internal **CRITICAL_SECTION** object is valid.
119+
Calls the base class implementation of [CComCriticalSection::Term](../../atl/reference/ccomcriticalsection-class.md#term) if the internal `CRITICAL_SECTION` object is valid.
120120

121121
```
122122
HRESULT Term() throw();
123123
```
124124

125125
### Return Value
126-
Returns the result of [CComCriticalSection::Term](../../atl/reference/ccomcriticalsection-class.md#term), or **S_OK** if [m_bInitialized](#m_binitialized) was set to **false** upon entry.
126+
Returns the result of [CComCriticalSection::Term](../../atl/reference/ccomcriticalsection-class.md#term), or S_OK if [m_bInitialized](#m_binitialized) was set to FALSE upon entry.
127127

128128
### Remarks
129-
It is safe to call this method even if the internal **CRITICAL_SECTION** object is not valid. The destructor of this class calls this method if the [m_bInitialized](#m_binitialized) data member is set to **true**.
129+
It is safe to call this method even if the internal `CRITICAL_SECTION` object is not valid. The destructor of this class calls this method if the [m_bInitialized](#m_binitialized) data member is set to TRUE.
130130

131131
## See Also
132132
[CComCriticalSection Class](../../atl/reference/ccomcriticalsection-class.md)

docs/atl/reference/ccomsimplethreadallocator-class.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ int GetThread(CComApartment* /* pApt */, int nThreads);
4343
```
4444

4545
### Parameters
46-
`pApt`
46+
*pApt*
4747
Not used in ATL's default implementation.
4848

49-
`nThreads`
49+
*nThreads*
5050
The maximum number of threads in the EXE module.
5151

5252
### Return Value
53-
An integer between zero and ( `nThreads` - 1). Identifies one of the threads in the EXE module.
53+
An integer between zero and (*nThreads* - 1). Identifies one of the threads in the EXE module.
5454

5555
### Remarks
56-
You can override `GetThread` to provide a different method of selection or to make use of the `pApt` parameter.
56+
You can override `GetThread` to provide a different method of selection or to make use of the *pApt* parameter.
5757

5858
`GetThread` is called by [CComAutoThreadModule::CreateInstance](../../atl/reference/ccomautothreadmodule-class.md#createinstance).
5959

docs/atl/reference/ccomsinglethreadmodel-class.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CComSingleThreadModel
4040
## Remarks
4141
`CComSingleThreadModel` provides methods for incrementing and decrementing the value of a variable. Unlike [CComMultiThreadModel](../../atl/reference/ccommultithreadmodel-class.md) and [CComMultiThreadModelNoCS](../../atl/reference/ccommultithreadmodelnocs-class.md), these methods are not thread-safe.
4242

43-
Typically, you use `CComSingleThreadModel` through one of two `typedef` names, either [CComObjectThreadModel](atl-typedefs.md#ccomobjectthreadmodel) or [CComGlobalsThreadModel](atl-typedefs.md#ccomglobalsthreadmodel). The class referenced by each `typedef` depends on the threading model used, as shown in the following table:
43+
Typically, you use `CComSingleThreadModel` through one of two **typedef** names, either [CComObjectThreadModel](atl-typedefs.md#ccomobjectthreadmodel) or [CComGlobalsThreadModel](atl-typedefs.md#ccomglobalsthreadmodel). The class referenced by each **typedef** depends on the threading model used, as shown in the following table:
4444

4545

4646
|typedef|Single threading model|Apartment threading model|Free threading model|
@@ -50,13 +50,13 @@ class CComSingleThreadModel
5050

5151
S= `CComSingleThreadModel`; M= `CComMultiThreadModel`
5252

53-
`CComSingleThreadModel` itself defines three `typedef` names. `ThreadModelNoCS` references `CComSingleThreadModel`. `AutoCriticalSection` and `CriticalSection` reference class [CComFakeCriticalSection](../../atl/reference/ccomfakecriticalsection-class.md), which provides empty methods associated with obtaining and releasing ownership of a critical section.
53+
`CComSingleThreadModel` itself defines three **typedef** names. `ThreadModelNoCS` references `CComSingleThreadModel`. `AutoCriticalSection` and `CriticalSection` reference class [CComFakeCriticalSection](../../atl/reference/ccomfakecriticalsection-class.md), which provides empty methods associated with obtaining and releasing ownership of a critical section.
5454

5555
## Requirements
5656
**Header:** atlbase.h
5757

5858
## <a name="autocriticalsection"></a> CComSingleThreadModel::AutoCriticalSection
59-
When using `CComSingleThreadModel`, the `typedef` name `AutoCriticalSection` references class [CComFakeCriticalSection](../../atl/reference/ccomfakecriticalsection-class.md).
59+
When using `CComSingleThreadModel`, the **typedef** name `AutoCriticalSection` references class [CComFakeCriticalSection](../../atl/reference/ccomfakecriticalsection-class.md).
6060

6161
```
6262
typedef CComFakeCriticalSection AutoCriticalSection;
@@ -73,13 +73,13 @@ typedef CComFakeCriticalSection AutoCriticalSection;
7373
|`CComMultiThreadModel`|`CComAutoCriticalSection`|
7474
|`CComMultiThreadModelNoCS`|`CComFakeCriticalSection`|
7575

76-
In addition to `AutoCriticalSection`, you can use the `typedef` name [CriticalSection](#criticalsection). You should not specify `AutoCriticalSection` in global objects or static class members if you want to eliminate the CRT startup code.
76+
In addition to `AutoCriticalSection`, you can use the **typedef** name [CriticalSection](#criticalsection). You should not specify `AutoCriticalSection` in global objects or static class members if you want to eliminate the CRT startup code.
7777

7878
### Example
7979
See [CComMultiThreadModel::AutoCriticalSection](../../atl/reference/ccommultithreadmodel-class.md#autocriticalsection).
8080

8181
## <a name="criticalsection"></a> CComSingleThreadModel::CriticalSection
82-
When using `CComSingleThreadModel`, the `typedef` name `CriticalSection` references class [CComFakeCriticalSection](../../atl/reference/ccomfakecriticalsection-class.md).
82+
When using `CComSingleThreadModel`, the **typedef** name `CriticalSection` references class [CComFakeCriticalSection](../../atl/reference/ccomfakecriticalsection-class.md).
8383

8484
```
8585
typedef CComFakeCriticalSection CriticalSection;
@@ -96,41 +96,41 @@ typedef CComFakeCriticalSection CriticalSection;
9696
|`CComMultiThreadModel`|`CComCriticalSection`|
9797
|`CComMultiThreadModelNoCS`|`CComFakeCriticalSection`|
9898

99-
In addition to `CriticalSection`, you can use the `typedef` name [AutoCriticalSection](#autocriticalsection). You should not specify `AutoCriticalSection` in global objects or static class members if you want to eliminate the CRT startup code.
99+
In addition to `CriticalSection`, you can use the **typedef** name [AutoCriticalSection](#autocriticalsection). You should not specify `AutoCriticalSection` in global objects or static class members if you want to eliminate the CRT startup code.
100100

101101
### Example
102102
See [CComMultiThreadModel::AutoCriticalSection](../../atl/reference/ccommultithreadmodel-class.md#autocriticalsection).
103103

104104
## <a name="decrement"></a> CComSingleThreadModel::Decrement
105-
This static function decrements the value of the variable pointed to by `p`.
105+
This static function decrements the value of the variable pointed to by *p*.
106106

107107
```
108108
static ULONG WINAPI Decrement(LPLONG p) throw();
109109
```
110110

111111
### Parameters
112-
`p`
112+
*p*
113113
[in] Pointer to the variable to be decremented.
114114

115115
### Return Value
116116
The result of the decrement.
117117

118118
## <a name="increment"></a> CComSingleThreadModel::Increment
119-
This static function decrements the value of the variable pointed to by `p`.
119+
This static function decrements the value of the variable pointed to by *p*.
120120

121121
```
122122
static ULONG WINAPI Increment(LPLONG p) throw();
123123
```
124124

125125
### Parameters
126-
`p`
126+
*p*
127127
[in] Pointer to the variable to be incremented.
128128

129129
### Return Value
130130
The result of the increment.
131131

132132
## <a name="threadmodelnocs"></a> CComSingleThreadModel::ThreadModelNoCS
133-
When using `CComSingleThreadModel`, the `typedef` name `ThreadModelNoCS` simply references `CComSingleThreadModel`.
133+
When using `CComSingleThreadModel`, the **typedef** name `ThreadModelNoCS` simply references `CComSingleThreadModel`.
134134

135135
```
136136
typedef CComSingleThreadModel ThreadModelNoCS;

docs/atl/reference/ccomtearoffobject-class.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CComTearOffObject : public Base
2323
```
2424

2525
#### Parameters
26-
`Base`
26+
*Base*
2727
Your tear-off class, derived from `CComTearOffObjectBase` and the interfaces you want your tear-off object to support.
2828

2929
ATL implements its tear-off interfaces in two phases — the `CComTearOffObjectBase` methods handle the reference count and `QueryInterface`, while `CComTearOffObject` implements [IUnknown](http://msdn.microsoft.com/library/windows/desktop/ms680509).
@@ -62,7 +62,7 @@ class CComTearOffObject : public Base
6262

6363
You should derive the class implementing the tear-off from `CComTearOffObjectBase` and from whichever interfaces you want your tear-off object to support. `CComTearOffObjectBase` is templatized on the owner class and the thread model. The owner class is the class of the object for which a tear-off is being implemented. If you do not specify a thread model, the default thread model is used.
6464

65-
You should create a COM map for your tear-off class. When ATL instantiates the tear-off, it will create **CComTearOffObject\<CYourTearOffClass>** or **CComCachedTearOffObject\<CYourTearOffClass>**.
65+
You should create a COM map for your tear-off class. When ATL instantiates the tear-off, it will create `CComTearOffObject<CYourTearOffClass>` or `CComCachedTearOffObject<CYourTearOffClass>`.
6666

6767
For example, in the BEEPER sample, the `CBeeper2` class is the tear-off class and the `CBeeper` class is the owner class:
6868

@@ -94,8 +94,8 @@ CComTearOffObject(void* pv);
9494
```
9595

9696
### Parameters
97-
`pv`
98-
[in] Pointer that will be converted to a pointer to a **CComObject\<Owner>** object.
97+
*pv*
98+
[in] Pointer that will be converted to a pointer to a `CComObject<Owner>` object.
9999

100100
### Remarks
101101
Increments the owner's reference count by one.
@@ -118,7 +118,7 @@ CComTearOffObjectBase();
118118
```
119119

120120
### Remarks
121-
Initializes the [m_pOwner](#m_powner) member to **NULL**.
121+
Initializes the [m_pOwner](#m_powner) member to NULL.
122122

123123
## <a name="m_powner"></a> CComTearOffObject::m_pOwner
124124
A pointer to a [CComObject](../../atl/reference/ccomobject-class.md) object derived from *Owner*.
@@ -132,7 +132,7 @@ CComObject<Owner>* m_pOwner;
132132
[in] The class for which a tear-off is being implemented.
133133

134134
### Remarks
135-
The pointer is initialized to **NULL** during construction.
135+
The pointer is initialized to NULL during construction.
136136

137137
## <a name="queryinterface"></a> CComTearOffObject::QueryInterface
138138
Retrieves a pointer to the requested interface.
@@ -142,17 +142,17 @@ STDMETHOD(QueryInterface)(REFIID iid, void** ppvObject);
142142
```
143143

144144
### Parameters
145-
`iid`
145+
*iid*
146146
[in] The IID of the interface being requested.
147147

148-
`ppvObject`
149-
[out] A pointer to the interface pointer identified by `iid`, or **NULL** if the interface is not found.
148+
*ppvObject*
149+
[out] A pointer to the interface pointer identified by *iid*, or NULL if the interface is not found.
150150

151151
### Return Value
152-
A standard `HRESULT` value.
152+
A standard HRESULT value.
153153

154154
### Remarks
155-
Queries first for interfaces on your tear-off class. If the interface is not there, queries for the interface on the owner object. If the requested interface is **IUnknown**, returns the **IUnknown** of the owner.
155+
Queries first for interfaces on your tear-off class. If the interface is not there, queries for the interface on the owner object. If the requested interface is `IUnknown`, returns the `IUnknown` of the owner.
156156

157157
## <a name="release"></a> CComTearOffObject::Release
158158
Decrements the reference count by one and, if the reference count is zero, deletes the `CComTearOffObject`.

0 commit comments

Comments
 (0)