33#include "wbemdisp_classes.h"
90 IMoniker_AddRef( iface );
134 TRACE(
"%p, %p, %p, %s, %p\n", iface, pbc, pmkToLeft,
debugstr_guid(riidResult), ppvResult );
135 return IUnknown_QueryInterface(
moniker->
obj, riidResult, ppvResult );
277 TRACE(
"returning iface %p\n", *
obj );
287 TRACE(
"(IID_IParseDisplayName %p)\n",
ppv);
321 if (
hr !=
S_OK)
goto done;
333 if (
hr !=
S_OK)
goto done;
346 if (
hr !=
S_OK)
goto done;
361 IWbemPath_Release(
path );
374 static const WCHAR prefixW[] = {
'w',
'i',
'n',
'm',
'g',
'm',
't',
's',
':',0};
383 TRACE(
"%p, %p, %s, %p, %p\n", iface, pbc,
debugstr_w(pszDisplayName), pchEaten, ppmkOut );
387 p = pszDisplayName + prefix_len;
390 FIXME(
"ignoring security settings\n" );
391 while (*
p && *
p !=
'}')
p++;
399 if (
hr !=
S_OK)
goto done;
402 if (
hr !=
S_OK)
goto done;
408 if (
hr !=
S_OK)
goto done;
413 if (
obj) ISWbemObject_Release(
obj );
453 IClassFactory_AddRef( iface );
487 hr = IUnknown_QueryInterface( unk,
riid,
obj );
488 IUnknown_Release( unk );
515 case DLL_WINE_PREATTACH:
538 return IClassFactory_QueryInterface(
cf, iid,
obj );
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
const GUID IID_IClassFactory
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
HRESULT WINAPI DllRegisterServer(void)
static HINSTANCE instance
HRESULT WINAPI DllUnregisterServer(void)
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
HRESULT WINAPI DllCanUnloadNow(void)
static IClassFactoryImpl * impl_from_IClassFactory(IClassFactory *iface)
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
#define DLL_PROCESS_ATTACH
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
static HRESULT WINAPI moniker_Hash(IMoniker *iface, DWORD *pdwHash)
static HRESULT WINAPI WinMGMTS_QueryInterface(IParseDisplayName *iface, REFIID riid, void **ppv)
static ULONG WINAPI WinMGMTS_Release(IParseDisplayName *iface)
static HRESULT WINAPI moniker_Enum(IMoniker *iface, BOOL fForward, IEnumMoniker **ppenumMoniker)
static struct moniker * impl_from_IMoniker(IMoniker *iface)
static ULONG WINAPI factory_Release(IClassFactory *iface)
static HRESULT WINAPI moniker_IsRunning(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, IMoniker *pmkNewlyRunning)
static HRESULT WINAPI moniker_Load(IMoniker *iface, IStream *pStm)
static HRESULT WINAPI moniker_BindToObject(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, REFIID riidResult, void **ppvResult)
static HRESULT WinMGMTS_create(void **ppv)
static HRESULT parse_path(const WCHAR *str, BSTR *server, BSTR *namespace, BSTR *relative)
static HRESULT WINAPI moniker_ComposeWith(IMoniker *iface, IMoniker *pmkRight, BOOL fOnlyIfNotGeneric, IMoniker **ppmkComposite)
static IParseDisplayName winmgmts
static HRESULT WINAPI moniker_GetTimeOfLastChange(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, FILETIME *pFileTime)
static HRESULT WINAPI moniker_Reduce(IMoniker *iface, IBindCtx *pbc, DWORD dwReduceHowFar, IMoniker **ppmkToLeft, IMoniker **ppmkReduced)
static ULONG WINAPI moniker_Release(IMoniker *iface)
static HRESULT WINAPI moniker_RelativePathTo(IMoniker *iface, IMoniker *pmkOther, IMoniker **ppmkRelPath)
static struct factory winmgmts_cf
static HRESULT WINAPI moniker_ParseDisplayName(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, LPOLESTR pszDisplayName, ULONG *pchEaten, IMoniker **ppmkOut)
static HRESULT WINAPI moniker_CommonPrefixWith(IMoniker *iface, IMoniker *pmkOther, IMoniker **ppmkPrefix)
static ULONG WINAPI factory_AddRef(IClassFactory *iface)
static const struct IClassFactoryVtbl factory_vtbl
static HRESULT WINAPI moniker_GetSizeMax(IMoniker *iface, ULARGE_INTEGER *pcbSize)
static HRESULT WINAPI moniker_BindToStorage(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, REFIID riid, void **ppvObj)
static HRESULT WINAPI moniker_IsEqual(IMoniker *iface, IMoniker *pmkOtherMoniker)
static HRESULT WINAPI moniker_IsSystemMoniker(IMoniker *iface, DWORD *pdwMksys)
static HRESULT WINAPI WinMGMTS_ParseDisplayName(IParseDisplayName *iface, IBindCtx *pbc, LPOLESTR pszDisplayName, ULONG *pchEaten, IMoniker **ppmkOut)
static HRESULT WINAPI moniker_IsDirty(IMoniker *iface)
static const IParseDisplayNameVtbl WinMGMTSVtbl
static ULONG WINAPI moniker_AddRef(IMoniker *iface)
static HRESULT WINAPI moniker_QueryInterface(IMoniker *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI factory_LockServer(IClassFactory *iface, BOOL lock)
static HRESULT WINAPI moniker_GetClassID(IMoniker *iface, CLSID *pClassID)
static HRESULT WINAPI factory_CreateInstance(IClassFactory *iface, LPUNKNOWN outer, REFIID riid, LPVOID *obj)
static HRESULT WINAPI factory_QueryInterface(IClassFactory *iface, REFIID riid, LPVOID *obj)
static HRESULT Moniker_create(IUnknown *unk, IMoniker **obj)
static ULONG WINAPI WinMGMTS_AddRef(IParseDisplayName *iface)
static struct factory swbem_locator_cf
static HRESULT WINAPI moniker_Inverse(IMoniker *iface, IMoniker **ppmk)
static HRESULT WINAPI moniker_GetDisplayName(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, LPOLESTR *ppszDisplayName)
static HRESULT WINAPI moniker_Save(IMoniker *iface, IStream *pStm, BOOL fClearDirty)
static const IMonikerVtbl moniker_vtbl
HRESULT SWbemLocator_create(void **obj)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
const GUID IID_IParseDisplayName
#define IsEqualGUID(rguid1, rguid2)
HRESULT __wine_unregister_resources(HMODULE module) DECLSPEC_HIDDEN
HRESULT __wine_register_resources(HMODULE module) DECLSPEC_HIDDEN
_Check_return_ _CRTIMP int __cdecl _wcsnicmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
IClassFactory IClassFactory_iface
HRESULT(* fnCreateInstance)(LPVOID *)
#define CONTAINING_RECORD(address, type, field)
static rfbScreenInfoPtr server
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
#define CLASS_E_NOAGGREGATION
#define CLASS_E_CLASSNOTAVAILABLE
@ WBEMPATH_GET_RELATIVE_ONLY
@ WBEMPATH_GET_NAMESPACE_ONLY
@ WBEMPATH_CREATE_ACCEPT_ALL