Skip to content

Commit 40e0001

Browse files
author
mtx48109
committed
windows formatting review pr12
1 parent 37503f8 commit 40e0001

30 files changed

Lines changed: 519 additions & 537 deletions

docs/windows/invokehelper-invoke-method.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,32 +50,32 @@ STDMETHOD(
5050
)( typename Traits;
5151
```
5252

53-
#### Parameters
54-
`arg1`
53+
### Parameters
54+
*arg1*
5555
Argument 1.
5656

57-
`arg2`
57+
*arg2*
5858
Argument 2.
5959

60-
`arg3`
60+
*arg3*
6161
Argument 3.
6262

63-
`arg4`
63+
*arg4*
6464
Argument 4.
6565

66-
`arg5`
66+
*arg5*
6767
Argument 5.
6868

69-
`arg6`
69+
*arg6*
7070
Argument 6.
7171

72-
`arg7`
72+
*arg7*
7373
Argument 7.
7474

75-
`arg8`
75+
*arg8*
7676
Argument 8.
7777

78-
`arg9`
78+
*arg9*
7979
Argument 9.
8080

8181
## Return Value

docs/windows/invokehelper-invokehelper-constructor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ explicit InvokeHelper(
2323
);
2424
```
2525

26-
#### Parameters
27-
`callback`
26+
### Parameters
27+
*callback*
2828
An event handler.
2929

3030
## Remarks
31-
Initializes a new instance of the InvokeHelper class.
31+
Initializes a new instance of the **InvokeHelper** class.
3232

3333
The `TCallback` template parameter specifies the type of the event handler.
3434

docs/windows/invokehelper-structure.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,16 @@ template<
7676
struct InvokeHelper<TDelegateInterface, TCallback, 9> : Microsoft::WRL::RuntimeClass<RuntimeClassFlags<Delegate>, TDelegateInterface>;
7777
```
7878

79-
#### Parameters
80-
`TDelegateInterface`
81-
`TCallback`
79+
### Parameters
80+
*TDelegateInterface*
81+
*TCallback*
8282
The type of the event handler function.
8383

84-
`argCount`
85-
The number of arguments in an InvokeHelper specialization.
84+
*argCount*
85+
The number of arguments in an **InvokeHelper** specialization.
8686

8787
## Remarks
88-
Provides an implementation of the Invoke() method based on the specified number and type of arguments.
88+
Provides an implementation of the `Invoke()` method based on the specified number and type of arguments.
8989

9090
## Members
9191

@@ -99,7 +99,7 @@ struct InvokeHelper<TDelegateInterface, TCallback, 9> : Microsoft::WRL::RuntimeC
9999

100100
|Name|Description|
101101
|----------|-----------------|
102-
|[InvokeHelper::InvokeHelper Constructor](../windows/invokehelper-invokehelper-constructor.md)|Initializes a new instance of the InvokeHelper class.|
102+
|[InvokeHelper::InvokeHelper Constructor](../windows/invokehelper-invokehelper-constructor.md)|Initializes a new instance of the **InvokeHelper** class.|
103103

104104
### Public Methods
105105

docs/windows/isbaseofstrict-structure.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ template <
3030
struct IsBaseOfStrict<Base, Base>;
3131
```
3232

33-
#### Parameters
34-
`Base`
33+
### Parameters
34+
*Base*
3535
The base type.
3636

37-
`Derived`
37+
*Derived*
3838
The derived type.
3939

4040
## Remarks

docs/windows/isbaseofstrict-value-constant.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static const bool value = __is_base_of(Base, Derived);
2424
## Remarks
2525
Indicates whether one type is the base of another.
2626

27-
`value` is `true` if type `Base` is a base class of the type `Derived`, otherwise it is `false`.
27+
`value` is **true** if type `Base` is a base class of the type `Derived`, otherwise it is **false**.
2828

2929
## Requirements
3030
**Header:** internal.h

docs/windows/issame-structure.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ template <
2929
struct IsSame<T1, T1>;
3030
```
3131

32-
#### Parameters
33-
`T1`
32+
### Parameters
33+
*T1*
3434
A type.
3535

36-
`T2`
36+
*T2*
3737
Another type.
3838

3939
## Remarks

docs/windows/issame-value-constant.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Supports the WRL infrastructure and is not intended to be used directly from you
1818
## Syntax
1919

2020
```
21-
2221
template <typename T1, typename T2>
2322
struct IsSame
2423
{
@@ -30,7 +29,6 @@ struct IsSame<T1, T1>
3029
{
3130
static const bool value = true;
3231
};
33-
3432
```
3533

3634
## Remarks

docs/windows/last-is.md

Lines changed: 56 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,56 @@
1-
---
2-
title: "last_is | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "11/04/2016"
5-
ms.technology: ["cpp-windows"]
6-
ms.topic: "reference"
7-
f1_keywords: ["vc-attr.last_is"]
8-
dev_langs: ["C++"]
9-
helpviewer_keywords: ["last_is attribute"]
10-
ms.assetid: 9e045ac0-fa38-4249-af55-67bde5d0a58c
11-
author: "mikeblome"
12-
ms.author: "mblome"
13-
ms.workload: ["cplusplus", "uwp"]
14-
---
15-
# last_is
16-
Specifies the index of the last array element to be transmitted.
17-
18-
## Syntax
19-
20-
```
21-
22-
[ last_is(
23-
"expression"
24-
) ]
25-
```
26-
27-
#### Parameters
28-
*expression*
29-
One or more C-language expressions. Empty argument slots are allowed.
30-
31-
## Remarks
32-
The **last_is** C++ attribute has the same functionality as the [last_is](http://msdn.microsoft.com/library/windows/desktop/aa367066) MIDL attribute.
33-
34-
## Example
35-
See [first_is](../windows/first-is.md) for an example of how to specify a section of an array.
36-
37-
## Requirements
38-
39-
### Attribute Context
40-
41-
|||
42-
|-|-|
43-
|**Applies to**|Field in `struct` or **union**, interface parameter, interface method|
44-
|**Repeatable**|No|
45-
|**Required attributes**|None|
46-
|**Invalid attributes**|None|
47-
48-
For more information, see [Attribute Contexts](../windows/attribute-contexts.md).
49-
50-
## See Also
51-
[IDL Attributes](../windows/idl-attributes.md)
52-
[Typedef, Enum, Union, and Struct Attributes](../windows/typedef-enum-union-and-struct-attributes.md)
53-
[Parameter Attributes](../windows/parameter-attributes.md)
54-
[first_is](../windows/first-is.md)
55-
[max_is](../windows/max-is.md)
56-
[length_is](../windows/length-is.md)
57-
[size_is](../windows/size-is.md)
1+
---
2+
title: "last_is | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "11/04/2016"
5+
ms.technology: ["cpp-windows"]
6+
ms.topic: "reference"
7+
f1_keywords: ["vc-attr.last_is"]
8+
dev_langs: ["C++"]
9+
helpviewer_keywords: ["last_is attribute"]
10+
ms.assetid: 9e045ac0-fa38-4249-af55-67bde5d0a58c
11+
author: "mikeblome"
12+
ms.author: "mblome"
13+
ms.workload: ["cplusplus", "uwp"]
14+
---
15+
# last_is
16+
Specifies the index of the last array element to be transmitted.
17+
18+
## Syntax
19+
20+
```
21+
[ last_is(
22+
"expression"
23+
) ]
24+
```
25+
26+
### Parameters
27+
*expression*
28+
One or more C-language expressions. Empty argument slots are allowed.
29+
30+
## Remarks
31+
The **last_is** C++ attribute has the same functionality as the [last_is](http://msdn.microsoft.com/library/windows/desktop/aa367066) MIDL attribute.
32+
33+
## Example
34+
See [first_is](../windows/first-is.md) for an example of how to specify a section of an array.
35+
36+
## Requirements
37+
38+
### Attribute Context
39+
40+
|||
41+
|-|-|
42+
|**Applies to**|Field in **struct** or **union**, interface parameter, interface method|
43+
|**Repeatable**|No|
44+
|**Required attributes**|None|
45+
|**Invalid attributes**|None|
46+
47+
For more information, see [Attribute Contexts](../windows/attribute-contexts.md).
48+
49+
## See Also
50+
[IDL Attributes](../windows/idl-attributes.md)
51+
[Typedef, Enum, Union, and Struct Attributes](../windows/typedef-enum-union-and-struct-attributes.md)
52+
[Parameter Attributes](../windows/parameter-attributes.md)
53+
[first_is](../windows/first-is.md)
54+
[max_is](../windows/max-is.md)
55+
[length_is](../windows/length-is.md)
56+
[size_is](../windows/size-is.md)

docs/windows/lcid.md

Lines changed: 57 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,57 @@
1-
---
2-
title: "lcid | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "11/04/2016"
5-
ms.technology: ["cpp-windows"]
6-
ms.topic: "reference"
7-
f1_keywords: ["vc-attr.lcid"]
8-
dev_langs: ["C++"]
9-
helpviewer_keywords: ["LCID attribute"]
10-
ms.assetid: 7f248c69-ee1c-42c3-9411-39cf27c9f43d
11-
author: "mikeblome"
12-
ms.author: "mblome"
13-
ms.workload: ["cplusplus", "uwp"]
14-
---
15-
# lcid
16-
Lets you pass a locale identifier to a function.
17-
18-
## Syntax
19-
20-
```
21-
22-
[lcid]
23-
24-
```
25-
26-
## Remarks
27-
The **lcid** C++ attribute implements the functionality of the [lcid](http://msdn.microsoft.com/library/windows/desktop/aa367067) MIDL attribute. If you want to implement locale for a library block, use the **lcid=**`lcid` parameter to the [module](../windows/module-cpp.md) attribute.
28-
29-
## Example
30-
31-
```
32-
// cpp_attr_ref_lcid.cpp
33-
// compile with: /LD
34-
#include <unknwn.h>
35-
[module(name="MyLibrary")];
36-
typedef long HRESULT;
37-
38-
[dual, uuid("2F5F63F1-16DA-11d2-9E7B-00C04FB926DA")]
39-
__interface IStatic {
40-
HRESULT MyFunc([in, lcid] long LocaleID, [out, retval] BSTR * ReturnVal);
41-
};
42-
```
43-
44-
## Requirements
45-
46-
### Attribute Context
47-
48-
|||
49-
|-|-|
50-
|**Applies to**|Interface parameter|
51-
|**Repeatable**|No|
52-
|**Required attributes**|None|
53-
|**Invalid attributes**|None|
54-
55-
For more information, see [Attribute Contexts](../windows/attribute-contexts.md).
56-
57-
## See Also
58-
[IDL Attributes](../windows/idl-attributes.md)
59-
[Parameter Attributes](../windows/parameter-attributes.md)
1+
---
2+
title: "lcid | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "11/04/2016"
5+
ms.technology: ["cpp-windows"]
6+
ms.topic: "reference"
7+
f1_keywords: ["vc-attr.lcid"]
8+
dev_langs: ["C++"]
9+
helpviewer_keywords: ["LCID attribute"]
10+
ms.assetid: 7f248c69-ee1c-42c3-9411-39cf27c9f43d
11+
author: "mikeblome"
12+
ms.author: "mblome"
13+
ms.workload: ["cplusplus", "uwp"]
14+
---
15+
# lcid
16+
Lets you pass a locale identifier to a function.
17+
18+
## Syntax
19+
20+
```
21+
[lcid]
22+
```
23+
24+
## Remarks
25+
The **lcid** C++ attribute implements the functionality of the [lcid](http://msdn.microsoft.com/library/windows/desktop/aa367067) MIDL attribute. If you want to implement locale for a library block, use the **lcid=**`lcid` parameter to the [module](../windows/module-cpp.md) attribute.
26+
27+
## Example
28+
29+
```cpp
30+
// cpp_attr_ref_lcid.cpp
31+
// compile with: /LD
32+
#include <unknwn.h>
33+
[module(name="MyLibrary")];
34+
typedef long HRESULT;
35+
36+
[dual, uuid("2F5F63F1-16DA-11d2-9E7B-00C04FB926DA")]
37+
__interface IStatic {
38+
HRESULT MyFunc([in, lcid] long LocaleID, [out, retval] BSTR * ReturnVal);
39+
};
40+
```
41+
42+
## Requirements
43+
44+
### Attribute Context
45+
46+
|||
47+
|-|-|
48+
|**Applies to**|Interface parameter|
49+
|**Repeatable**|No|
50+
|**Required attributes**|None|
51+
|**Invalid attributes**|None|
52+
53+
For more information, see [Attribute Contexts](../windows/attribute-contexts.md).
54+
55+
## See Also
56+
[IDL Attributes](../windows/idl-attributes.md)
57+
[Parameter Attributes](../windows/parameter-attributes.md)

0 commit comments

Comments
 (0)