2 * Copyright (C) 2023 Mohamad Al-Jaf
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 WINE_DEFAULT_DEBUG_CHANNEL(twinapi
);
24 /***********************************************************************
25 * RegisterAppConstrainedChangeNotification (twinapi.appcore.@)
27 ULONG WINAPI
RegisterAppConstrainedChangeNotification( PAPPCONSTRAIN_CHANGE_ROUTINE routine
, void *context
, PAPPCONSTRAIN_REGISTRATION
*reg
)
29 FIXME( "routine %p, context %p, reg %p - stub.\n", routine
, context
, reg
);
30 return ERROR_CALL_NOT_IMPLEMENTED
;
33 /***********************************************************************
34 * RegisterAppStateChangeNotification (twinapi.appcore.@)
36 ULONG WINAPI
RegisterAppStateChangeNotification( PAPPSTATE_CHANGE_ROUTINE routine
, void *context
, PAPPSTATE_REGISTRATION
*reg
)
38 FIXME( "routine %p, context %p, reg %p - stub.\n", routine
, context
, reg
);
39 return ERROR_CALL_NOT_IMPLEMENTED
;
42 /***********************************************************************
43 * UnregisterAppConstrainedChangeNotification (twinapi.appcore.@)
45 void WINAPI
UnregisterAppConstrainedChangeNotification( PAPPCONSTRAIN_REGISTRATION reg
)
47 FIXME( "reg %p - stub.\n", reg
);
50 /***********************************************************************
51 * UnregisterAppStateChangeNotification (twinapi.appcore.@)
53 void WINAPI
UnregisterAppStateChangeNotification( PAPPSTATE_REGISTRATION reg
)
55 FIXME( "reg %p - stub.\n", reg
);
58 HRESULT WINAPI
DllGetClassObject( REFCLSID clsid
, REFIID riid
, void **out
)
60 FIXME( "clsid %s, riid %s, out %p stub!\n", debugstr_guid(clsid
), debugstr_guid(riid
), out
);
61 return CLASS_E_CLASSNOTAVAILABLE
;
64 HRESULT WINAPI
DllGetActivationFactory( HSTRING classid
, IActivationFactory
**factory
)
66 const WCHAR
*buffer
= WindowsGetStringRawBuffer( classid
, NULL
);
68 TRACE( "class %s, factory %p.\n", debugstr_hstring(classid
), factory
);
72 if (!wcscmp( buffer
, RuntimeClass_Windows_Security_ExchangeActiveSyncProvisioning_EasClientDeviceInformation
))
73 IActivationFactory_QueryInterface( client_device_information_factory
, &IID_IActivationFactory
, (void **)factory
);
74 else if (!wcscmp( buffer
, RuntimeClass_Windows_System_Profile_AnalyticsInfo
))
75 IActivationFactory_QueryInterface( analytics_info_factory
, &IID_IActivationFactory
, (void **)factory
);
77 if (*factory
) return S_OK
;
78 return CLASS_E_CLASSNOTAVAILABLE
;