@@ -52,7 +52,7 @@ void COpenWithExLauncher::Log(const wchar_t *szMethodName, const wchar_t *format
5252 fFailedToFind = false ; \
5353 }
5454
55- HRESULT COpenWithExLauncher::QueryInterface (REFIID riid, LPVOID *ppvObj)
55+ STDMETHODIMP COpenWithExLauncher::QueryInterface (REFIID riid, LPVOID *ppvObj)
5656{
5757 DebugSetMethodName (L" COpenWithExLauncher::QueryInterface" );
5858 HRESULT hr = E_NOINTERFACE;
@@ -113,7 +113,7 @@ HRESULT COpenWithExLauncher::QueryInterface(REFIID riid, LPVOID *ppvObj)
113113}
114114
115115
116- ULONG COpenWithExLauncher::AddRef ()
116+ STDMETHODIMP_ ( ULONG) COpenWithExLauncher::AddRef()
117117{
118118 DebugSetMethodName (L" COpenWithExLauncher::AddRef" );
119119
@@ -124,7 +124,7 @@ ULONG COpenWithExLauncher::AddRef()
124124 return rv;
125125}
126126
127- ULONG COpenWithExLauncher::Release ()
127+ STDMETHODIMP_ ( ULONG) COpenWithExLauncher::Release()
128128{
129129 DebugSetMethodName (L" COpenWithExLauncher::Release" );
130130
@@ -146,7 +146,7 @@ ULONG COpenWithExLauncher::Release()
146146#pragma endregion // "IUnknown"
147147
148148#pragma region "IExecuteCommandApplicationHostEnvironment"
149- HRESULT COpenWithExLauncher::GetValue (AHE_TYPE *pahe)
149+ STDMETHODIMP COpenWithExLauncher::GetValue (AHE_TYPE *pahe)
150150{
151151 DebugSetMethodName (L" COpenWithExLauncher::GetValue" );
152152
@@ -170,7 +170,7 @@ HRESULT COpenWithExLauncher::GetValue(AHE_TYPE *pahe)
170170#pragma endregion // "IExecuteCommandApplicationHostEnvironment"
171171
172172#pragma region "IServiceProvider"
173- HRESULT COpenWithExLauncher::QueryService (REFGUID guidService, REFIID riid, void **ppvObject)
173+ STDMETHODIMP COpenWithExLauncher::QueryService (REFGUID guidService, REFIID riid, void **ppvObject)
174174{
175175 DebugSetMethodName (L" COpenWithExLauncher::QueryService" );
176176
@@ -193,7 +193,7 @@ HRESULT COpenWithExLauncher::QueryService(REFGUID guidService, REFIID riid, void
193193#pragma endregion // "IServiceProvider"
194194
195195#pragma region "IObjectWithSite"
196- HRESULT COpenWithExLauncher::GetSite (REFIID riid, void **ppvObject)
196+ STDMETHODIMP COpenWithExLauncher::GetSite (REFIID riid, void **ppvObject)
197197{
198198 DebugSetMethodName (L" COpenWithExLauncher::GetSite" );
199199
@@ -209,7 +209,7 @@ HRESULT COpenWithExLauncher::GetSite(REFIID riid, void **ppvObject)
209209 }
210210}
211211
212- HRESULT COpenWithExLauncher::SetSite (IUnknown *pUnkSite)
212+ STDMETHODIMP COpenWithExLauncher::SetSite (IUnknown *pUnkSite)
213213{
214214 DebugSetMethodName (L" COpenWithExLauncher::SetSite" );
215215
@@ -221,7 +221,7 @@ HRESULT COpenWithExLauncher::SetSite(IUnknown *pUnkSite)
221221#pragma endregion // "IObjectWithSite"
222222
223223#pragma region "IObjectWithAssociationElement"
224- HRESULT COpenWithExLauncher::SetAssocElement (IAssociationElement *pae)
224+ STDMETHODIMP COpenWithExLauncher::SetAssocElement (IAssociationElement *pae)
225225{
226226 DebugSetMethodName (L" COpenWithExLauncher::SetAssocElement" );
227227
@@ -231,7 +231,7 @@ HRESULT COpenWithExLauncher::SetAssocElement(IAssociationElement *pae)
231231 return S_OK;
232232}
233233
234- HRESULT COpenWithExLauncher::GetAssocElement (REFIID riid, void **ppv)
234+ STDMETHODIMP COpenWithExLauncher::GetAssocElement (REFIID riid, void **ppv)
235235{
236236 DebugSetMethodName (L" COpenWithExLauncher::GetAssocElement" );
237237
@@ -248,7 +248,7 @@ HRESULT COpenWithExLauncher::GetAssocElement(REFIID riid, void **ppv)
248248#pragma endregion // "IObjectWithAssociationElement"
249249
250250#pragma region "IObjectWithSelection"
251- HRESULT COpenWithExLauncher::GetSelection (REFIID riid, void **ppv)
251+ STDMETHODIMP COpenWithExLauncher::GetSelection (REFIID riid, void **ppv)
252252{
253253 DebugSetMethodName (L" COpenWithExLauncher::GetSelection" );
254254
@@ -263,7 +263,7 @@ HRESULT COpenWithExLauncher::GetSelection(REFIID riid, void **ppv)
263263 }
264264}
265265
266- HRESULT COpenWithExLauncher::SetSelection (IShellItemArray *psia)
266+ STDMETHODIMP COpenWithExLauncher::SetSelection (IShellItemArray *psia)
267267{
268268 DebugSetMethodName (L" COpenWithExLauncher::SetSelection" );
269269
@@ -275,7 +275,7 @@ HRESULT COpenWithExLauncher::SetSelection(IShellItemArray *psia)
275275#pragma endregion // "IObjectWithSelection"
276276
277277#pragma region "IInitializeCommand"
278- HRESULT COpenWithExLauncher::Initialize (LPCWSTR pszCommandName, IPropertyBag *ppb)
278+ STDMETHODIMP COpenWithExLauncher::Initialize (LPCWSTR pszCommandName, IPropertyBag *ppb)
279279{
280280 DebugSetMethodName (L" COpenWithExLauncher::Initialize" );
281281
@@ -286,7 +286,7 @@ HRESULT COpenWithExLauncher::Initialize(LPCWSTR pszCommandName, IPropertyBag *pp
286286#pragma endregion // "IInitializeCommand"
287287
288288#pragma region "IExecuteCommand"
289- HRESULT COpenWithExLauncher::SetKeyState (DWORD grfKeyState)
289+ STDMETHODIMP COpenWithExLauncher::SetKeyState (DWORD grfKeyState)
290290{
291291 DebugSetMethodName (L" COpenWithExLauncher::SetKeyState" );
292292
@@ -297,7 +297,7 @@ HRESULT COpenWithExLauncher::SetKeyState(DWORD grfKeyState)
297297 return S_OK;
298298}
299299
300- HRESULT COpenWithExLauncher::SetParameters (__RPC__in_string LPCWSTR pszParameters)
300+ STDMETHODIMP COpenWithExLauncher::SetParameters (__RPC__in_string LPCWSTR pszParameters)
301301{
302302 DebugSetMethodName (L" COpenWithExLauncher::SetParameters" );
303303
@@ -308,7 +308,7 @@ HRESULT COpenWithExLauncher::SetParameters(__RPC__in_string LPCWSTR pszParameter
308308 return S_OK;
309309}
310310
311- HRESULT COpenWithExLauncher::SetPosition (POINT pt)
311+ STDMETHODIMP COpenWithExLauncher::SetPosition (POINT pt)
312312{
313313 DebugSetMethodName (L" COpenWithExLauncher::SetPosition" );
314314
@@ -319,7 +319,7 @@ HRESULT COpenWithExLauncher::SetPosition(POINT pt)
319319 return S_OK;
320320}
321321
322- HRESULT COpenWithExLauncher::SetShowWindow (int nShow)
322+ STDMETHODIMP COpenWithExLauncher::SetShowWindow (int nShow)
323323{
324324 DebugSetMethodName (L" COpenWithExLauncher::SetShowWindow" );
325325
@@ -330,7 +330,7 @@ HRESULT COpenWithExLauncher::SetShowWindow(int nShow)
330330 return S_OK;
331331}
332332
333- HRESULT COpenWithExLauncher::SetNoShowUI (BOOL fNoShowUI )
333+ STDMETHODIMP COpenWithExLauncher::SetNoShowUI (BOOL fNoShowUI )
334334{
335335 DebugSetMethodName (L" COpenWithExLauncher::SetNoShowUI" );
336336
@@ -341,7 +341,7 @@ HRESULT COpenWithExLauncher::SetNoShowUI(BOOL fNoShowUI)
341341 return S_OK;
342342}
343343
344- HRESULT COpenWithExLauncher::SetDirectory (__RPC__in_string LPCWSTR pszDirectory)
344+ STDMETHODIMP COpenWithExLauncher::SetDirectory (__RPC__in_string LPCWSTR pszDirectory)
345345{
346346 DebugSetMethodName (L" COpenWithExLauncher::SetDirectory" );
347347
@@ -352,7 +352,7 @@ HRESULT COpenWithExLauncher::SetDirectory(__RPC__in_string LPCWSTR pszDirectory)
352352 return S_OK;
353353}
354354
355- HRESULT COpenWithExLauncher::Execute ()
355+ STDMETHODIMP COpenWithExLauncher::Execute ()
356356{
357357 DebugSetMethodName (L" COpenWithExLauncher::Execute" );
358358
@@ -418,7 +418,7 @@ HRESULT COpenWithExLauncher::Execute()
418418#pragma endregion
419419
420420#pragma region "IOpenWithLauncher"
421- HRESULT COpenWithExLauncher::Launch (HWND hWndParent, LPCWSTR lpszPath, IMMERSIVE_OPENWITH_FLAGS flags)
421+ STDMETHODIMP COpenWithExLauncher::Launch (HWND hWndParent, LPCWSTR lpszPath, IMMERSIVE_OPENWITH_FLAGS flags)
422422{
423423 debuglog (
424424 L" [COpenWithExLauncher] IOpenWithLauncher::Launch info:\n "
@@ -432,7 +432,7 @@ HRESULT COpenWithExLauncher::Launch(HWND hWndParent, LPCWSTR lpszPath, IMMERSIVE
432432#pragma endregion // "IOpenWithLauncher"
433433
434434#pragma region "IClassFactory"
435- HRESULT COpenWithExLauncher::CreateInstance (IUnknown *pUnkOuter, REFIID riid, void **ppvObject)
435+ STDMETHODIMP COpenWithExLauncher::CreateInstance (IUnknown *pUnkOuter, REFIID riid, void **ppvObject)
436436{
437437 DebugSetMethodName (L" COpenWithExLauncher::CreateInstance" );
438438
@@ -458,7 +458,7 @@ HRESULT COpenWithExLauncher::CreateInstance(IUnknown *pUnkOuter, REFIID riid, vo
458458 return S_OK;
459459}
460460
461- HRESULT COpenWithExLauncher::LockServer (BOOL fLock )
461+ STDMETHODIMP COpenWithExLauncher::LockServer (BOOL fLock )
462462{
463463 DebugSetMethodName (L" COpenWithExLauncher::LockServer" );
464464
0 commit comments