You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/atl/reference/composite-control-macros.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ These macros define event sink maps and entries.
15
15
|[BEGIN_SINK_MAP](#begin_sink_map)|Marks the beginning of the event sink map for the composite control.|
16
16
|[END_SINK_MAP](#end_sink_map)|Marks the end of the event sink map for the composite control.|
17
17
|[SINK_ENTRY](#sink_entry)|Entry to the event sink map.|
18
-
|[SINK_ENTRY_EX](#sink_entry_ex)|Entry to the event sink map with an additional parameter.|
18
+
|[SINK_ENTRY_EX](#sink_entry_ex)|Entry to the event sink map with an extra parameter.|
19
19
|[SINK_ENTRY_EX_P](#sink_entry_ex)| (Visual Studio 2017) Similar to SINK_ENTRY_EX except that it takes a pointer to iid.|
20
20
|[SINK_ENTRY_INFO](#sink_entry_info)|Entry to the event sink map with manually supplied type information for use with [IDispEventSimpleImpl](../../atl/reference/idispeventsimpleimpl-class.md).|
21
21
|[SINK_ENTRY_INFO_P](#sink_entry_info)| (Visual Studio 2017) Similar to SINK_ENTRY_INFO except that it takes a pointer to iid.|
@@ -43,7 +43,7 @@ BEGIN_SINK_MAP(_class)
43
43
44
44
### Remarks
45
45
46
-
CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods; any other return value is unsupported and its behavior is undefined.
46
+
CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods. Any other return value is unsupported and its behavior is undefined.
47
47
48
48
## <aname="end_sink_map"></a> END_SINK_MAP
49
49
@@ -59,7 +59,7 @@ END_SINK_MAP()
59
59
60
60
### Remarks
61
61
62
-
CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods; any other return value is unsupported and its behavior is undefined.
62
+
CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods. Any other return value is unsupported and its behavior is undefined.
63
63
64
64
## <aname="sink_entry"></a> SINK_ENTRY
65
65
@@ -86,7 +86,7 @@ SINK_ENTRY( id, dispid, fn )
86
86
87
87
### Remarks
88
88
89
-
CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods; any other return value is unsupported and its behavior is undefined.
89
+
CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods. Any other return value is unsupported and its behavior is undefined.
90
90
91
91
## <aname="sink_entry_ex"></a> SINK_ENTRY_EX and SINK_ENTRY_EX_P
CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods; any other return value is unsupported and its behavior is undefined.
123
+
CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods. Any other return value is unsupported and its behavior is undefined.
124
124
125
125
## <aname="sink_entry_info"></a> SINK_ENTRY_INFO and SINK_ENTRY_INFO_P
126
126
@@ -153,7 +153,7 @@ SINK_ENTRY_INFO_P( id, piid, dispid, fn, info ) // (Visual Studio 2017)
153
153
154
154
### Remarks
155
155
156
-
The first four macro parameters are the same as those for the [SINK_ENTRY_EX](#sink_entry_ex) macro. The final parameter provides type information for the event. CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods; any other return value is unsupported and its behavior is undefined.
156
+
The first four macro parameters are the same as the ones for the [SINK_ENTRY_EX](#sink_entry_ex) macro. The final parameter provides type information for the event. CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods. Any other return value is unsupported and its behavior is undefined.
Copy file name to clipboardExpand all lines: docs/atl/reference/service-map-macros.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,31 +115,31 @@ STDMETHOD(QueryService)(
115
115
116
116
### Return Value
117
117
118
-
The returned HRESULT value is one of the following:
118
+
The returned HRESULT is one of the following values:
119
119
120
120
|Return value|Meaning|
121
121
|------------------|-------------|
122
122
|S_OK|The service was successfully created or retrieved.|
123
123
|E_INVALIDARG|One or more of the arguments is invalid.|
124
124
|E_OUTOFMEMORY|Memory is insufficient to create the service.|
125
125
|E_UNEXPECTED|An unknown error occurred.|
126
-
|E_NOINTERFACE|The requested interface is not part of this service, or the service is unknown.|
126
+
|E_NOINTERFACE|The requested interface isn't part of this service, or the service is unknown.|
127
127
128
128
### Remarks
129
129
130
-
`QueryService` returns an indirect pointer to the requested interface in the specified service. The caller is responsible for releasing this pointer when it is no longer required.
130
+
`QueryService` returns an indirect pointer to the requested interface in the specified service. The caller is responsible for releasing this pointer when it's no longer required.
131
131
132
132
When you call `QueryService`, you pass both a service identifier (*guidService*) and an interface identifier (*riid*). The *guidService* specifies the service to which you want access, and the *riid* identifies an interface that is part of the service. In return, you receive an indirect pointer to the interface.
133
133
134
-
The object that implements the interface might also implement interfaces that are part of other services. Consider the following:
134
+
The object that implements the interface might also implement interfaces that are part of other services. Consider the following possibilities:
135
135
136
136
- Some of these interfaces might be optional. Not all interfaces defined in the service description are necessarily present on every implementation of the service or on every returned object.
137
137
138
-
- Unlike calls to `QueryInterface`, passing a different service identifier does not necessarily mean that a different Component Object Model (COM) object is returned.
138
+
- Unlike calls to `QueryInterface`, passing a different service identifier doesn't necessarily mean that a different Component Object Model (COM) object is returned.
139
139
140
-
- The returned object might have additional interfaces that are not part of the definition of the service.
140
+
- The returned object might have other interfaces that aren't part of the definition of the service.
141
141
142
-
Two different services, such as SID_SMyService and SID_SYourService, can both specify the use of the same interface, even though the implementation of the interface might have nothing in common between the two services. This works, because a call to `QueryService` (SID_SMyService, IID_IDispatch) can return a different object than `QueryService` (SID_SYourService, IID_IDispatch). Object identity is not assumed when you specify a different service identifier.
142
+
Two different services, such as SID_SMyService and SID_SYourService, can both specify the use of the same interface, even though the implementation of the interface might have nothing in common between the two services. This approach works, because a call to `QueryService` (SID_SMyService, IID_IDispatch) can return a different object than `QueryService` (SID_SYourService, IID_IDispatch). Object identity isn't assumed when you specify a different service identifier.
0 commit comments