ReactOS 0.4.16-dev-2332-g4cba65d
pointermoniker.c File Reference
#include <stdarg.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "winuser.h"
#include "objbase.h"
#include "oleidl.h"
#include "wine/debug.h"
#include "moniker.h"
Include dependency graph for pointermoniker.c:

Go to the source code of this file.

Classes

struct  PointerMonikerImpl
 
struct  ObjrefMonikerImpl
 

Macros

#define COBJMACROS
 

Typedefs

typedef struct PointerMonikerImpl PointerMonikerImpl
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (ole)
 
static PointerMonikerImplimpl_from_IMoniker (IMoniker *iface)
 
static PointerMonikerImplimpl_from_IMarshal (IMarshal *iface)
 
static PointerMonikerImplunsafe_impl_from_IMoniker (IMoniker *iface)
 
static HRESULT WINAPI PointerMonikerImpl_QueryInterface (IMoniker *iface, REFIID riid, void **ppvObject)
 
static ULONG WINAPI PointerMonikerImpl_AddRef (IMoniker *iface)
 
static ULONG WINAPI PointerMonikerImpl_Release (IMoniker *iface)
 
static HRESULT WINAPI PointerMonikerImpl_GetClassID (IMoniker *iface, CLSID *pClassID)
 
static HRESULT WINAPI PointerMonikerImpl_IsDirty (IMoniker *iface)
 
static HRESULT WINAPI PointerMonikerImpl_Load (IMoniker *iface, IStream *pStm)
 
static HRESULT WINAPI PointerMonikerImpl_Save (IMoniker *iface, IStream *pStm, BOOL fClearDirty)
 
static HRESULT WINAPI PointerMonikerImpl_GetSizeMax (IMoniker *iface, ULARGE_INTEGER *pcbSize)
 
static HRESULT WINAPI PointerMonikerImpl_BindToObject (IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, REFIID riid, VOID **ppvResult)
 
static HRESULT WINAPI PointerMonikerImpl_BindToStorage (IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, REFIID riid, VOID **ppvResult)
 
static HRESULT WINAPI PointerMonikerImpl_Reduce (IMoniker *iface, IBindCtx *pbc, DWORD dwReduceHowFar, IMoniker **ppmkToLeft, IMoniker **ppmkReduced)
 
static HRESULT WINAPI PointerMonikerImpl_ComposeWith (IMoniker *iface, IMoniker *right, BOOL only_if_not_generic, IMoniker **result)
 
static HRESULT WINAPI PointerMonikerImpl_Enum (IMoniker *iface, BOOL fForward, IEnumMoniker **ppenumMoniker)
 
static HRESULT WINAPI PointerMonikerImpl_IsEqual (IMoniker *iface, IMoniker *other)
 
static HRESULT WINAPI PointerMonikerImpl_Hash (IMoniker *iface, DWORD *pdwHash)
 
static HRESULT WINAPI PointerMonikerImpl_IsRunning (IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, IMoniker *pmkNewlyRunning)
 
static HRESULT WINAPI PointerMonikerImpl_GetTimeOfLastChange (IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, FILETIME *pAntiTime)
 
static HRESULT WINAPI PointerMonikerImpl_Inverse (IMoniker *iface, IMoniker **ppmk)
 
static HRESULT WINAPI PointerMonikerImpl_CommonPrefixWith (IMoniker *iface, IMoniker *other, IMoniker **prefix)
 
static HRESULT WINAPI PointerMonikerImpl_RelativePathTo (IMoniker *iface, IMoniker *other, IMoniker **result)
 
static HRESULT WINAPI PointerMonikerImpl_GetDisplayName (IMoniker *iface, IBindCtx *pbc, IMoniker *toleft, LPOLESTR *name)
 
static HRESULT WINAPI PointerMonikerImpl_ParseDisplayName (IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, LPOLESTR pszDisplayName, ULONG *pchEaten, IMoniker **ppmkOut)
 
static HRESULT WINAPI PointerMonikerImpl_IsSystemMoniker (IMoniker *iface, DWORD *pwdMksys)
 
static HRESULT WINAPI pointer_moniker_marshal_QueryInterface (IMarshal *iface, REFIID riid, LPVOID *ppv)
 
static ULONG WINAPI pointer_moniker_marshal_AddRef (IMarshal *iface)
 
static ULONG WINAPI pointer_moniker_marshal_Release (IMarshal *iface)
 
static HRESULT WINAPI pointer_moniker_marshal_GetUnmarshalClass (IMarshal *iface, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags, CLSID *clsid)
 
static HRESULT WINAPI pointer_moniker_marshal_GetMarshalSizeMax (IMarshal *iface, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags, DWORD *size)
 
static HRESULT WINAPI pointer_moniker_marshal_MarshalInterface (IMarshal *iface, IStream *stream, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags)
 
static HRESULT WINAPI pointer_moniker_marshal_UnmarshalInterface (IMarshal *iface, IStream *stream, REFIID riid, void **ppv)
 
static HRESULT WINAPI pointer_moniker_marshal_ReleaseMarshalData (IMarshal *iface, IStream *stream)
 
static HRESULT WINAPI pointer_moniker_marshal_DisconnectObject (IMarshal *iface, DWORD reserved)
 
HRESULT WINAPI CreatePointerMoniker (IUnknown *object, IMoniker **ret)
 
HRESULT WINAPI PointerMoniker_CreateInstance (IClassFactory *iface, IUnknown *pUnk, REFIID riid, void **ppv)
 
static ObjrefMonikerImplobjref_impl_from_IMoniker (IMoniker *iface)
 
static ObjrefMonikerImplobjref_impl_from_IMarshal (IMarshal *iface)
 
static HRESULT WINAPI ObjrefMonikerImpl_QueryInterface (IMoniker *iface, REFIID iid, void **obj)
 
static ULONG WINAPI ObjrefMonikerImpl_AddRef (IMoniker *iface)
 
static ULONG WINAPI ObjrefMonikerImpl_Release (IMoniker *iface)
 
static HRESULT WINAPI ObjrefMonikerImpl_GetClassID (IMoniker *iface, CLSID *clsid)
 
static HRESULT WINAPI ObjrefMonikerImpl_IsDirty (IMoniker *iface)
 
static HRESULT WINAPI ObjrefMonikerImpl_Load (IMoniker *iface, IStream *stream)
 
static HRESULT WINAPI ObjrefMonikerImpl_Save (IMoniker *iface, IStream *stream, BOOL dirty)
 
static HRESULT WINAPI ObjrefMonikerImpl_GetSizeMax (IMoniker *iface, ULARGE_INTEGER *size)
 
static HRESULT WINAPI ObjrefMonikerImpl_BindToObject (IMoniker *iface, IBindCtx *pbc, IMoniker *left, REFIID riid, void **result)
 
static HRESULT WINAPI ObjrefMonikerImpl_BindToStorage (IMoniker *iface, IBindCtx *pbc, IMoniker *left, REFIID riid, void **result)
 
static HRESULT WINAPI ObjrefMonikerImpl_Reduce (IMoniker *iface, IBindCtx *pbc, DWORD howfar, IMoniker **left, IMoniker **reduced)
 
static HRESULT WINAPI ObjrefMonikerImpl_ComposeWith (IMoniker *iface, IMoniker *right, BOOL only_if_not_generic, IMoniker **result)
 
static HRESULT WINAPI ObjrefMonikerImpl_Enum (IMoniker *iface, BOOL forward, IEnumMoniker **enummoniker)
 
static HRESULT WINAPI ObjrefMonikerImpl_IsEqual (IMoniker *iface, IMoniker *other)
 
static HRESULT WINAPI ObjrefMonikerImpl_Hash (IMoniker *iface, DWORD *hash)
 
static HRESULT WINAPI ObjrefMonikerImpl_IsRunning (IMoniker *iface, IBindCtx *pbc, IMoniker *left, IMoniker *running)
 
static HRESULT WINAPI ObjrefMonikerImpl_GetTimeOfLastChange (IMoniker *iface, IBindCtx *pbc, IMoniker *left, FILETIME *time)
 
static HRESULT WINAPI ObjrefMonikerImpl_Inverse (IMoniker *iface, IMoniker **moniker)
 
static HRESULT WINAPI ObjrefMonikerImpl_CommonPrefixWith (IMoniker *iface, IMoniker *other, IMoniker **prefix)
 
static HRESULT WINAPI ObjrefMonikerImpl_RelativePathTo (IMoniker *iface, IMoniker *other, IMoniker **result)
 
static HRESULT WINAPI ObjrefMonikerImpl_GetDisplayName (IMoniker *iface, IBindCtx *pbc, IMoniker *left, LPOLESTR *name)
 
static HRESULT WINAPI ObjrefMonikerImpl_ParseDisplayName (IMoniker *iface, IBindCtx *pbc, IMoniker *left, LPOLESTR name, ULONG *eaten, IMoniker **out)
 
static HRESULT WINAPI ObjrefMonikerImpl_IsSystemMoniker (IMoniker *iface, DWORD *mksys)
 
static HRESULT WINAPI objref_moniker_marshal_QueryInterface (IMarshal *iface, REFIID riid, LPVOID *ppv)
 
static ULONG WINAPI objref_moniker_marshal_AddRef (IMarshal *iface)
 
static ULONG WINAPI objref_moniker_marshal_Release (IMarshal *iface)
 
static HRESULT WINAPI objref_moniker_marshal_GetUnmarshalClass (IMarshal *iface, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags, CLSID *clsid)
 
static HRESULT WINAPI objref_moniker_marshal_GetMarshalSizeMax (IMarshal *iface, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags, DWORD *size)
 
static HRESULT WINAPI objref_moniker_marshal_MarshalInterface (IMarshal *iface, IStream *stream, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags)
 
static HRESULT WINAPI objref_moniker_marshal_UnmarshalInterface (IMarshal *iface, IStream *stream, REFIID riid, void **ppv)
 
static HRESULT WINAPI objref_moniker_marshal_ReleaseMarshalData (IMarshal *iface, IStream *stream)
 
static HRESULT WINAPI objref_moniker_marshal_DisconnectObject (IMarshal *iface, DWORD reserved)
 
HRESULT WINAPI CreateObjrefMoniker (IUnknown *obj, IMoniker **ret)
 
HRESULT WINAPI ObjrefMoniker_CreateInstance (IClassFactory *iface, IUnknown *unk, REFIID iid, void **obj)
 

Variables

static const IMonikerVtbl VT_PointerMonikerImpl
 
static const IMarshalVtbl pointer_moniker_marshal_vtbl
 
static const IMonikerVtbl VT_ObjrefMonikerImpl
 
static const IMarshalVtbl objref_moniker_marshal_vtbl
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 25 of file pointermoniker.c.

Typedef Documentation

◆ PointerMonikerImpl

Function Documentation

◆ CreateObjrefMoniker()

HRESULT WINAPI CreateObjrefMoniker ( IUnknown obj,
IMoniker **  ret 
)

Definition at line 1007 of file pointermoniker.c.

1008{
1010
1011 TRACE("(%p,%p)\n", obj, ret);
1012
1013 if (!ret)
1014 return E_INVALIDARG;
1015
1016 if (!(moniker = calloc(1, sizeof(*moniker))))
1017 {
1018 *ret = NULL;
1019 return E_OUTOFMEMORY;
1020 }
1021
1023 moniker->IMarshal_iface.lpVtbl = &objref_moniker_marshal_vtbl;
1024 moniker->refcount = 1;
1025 moniker->pObject = obj;
1026 if (moniker->pObject)
1027 IUnknown_AddRef(moniker->pObject);
1028
1030
1031 return S_OK;
1032}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
return ret
Definition: mutex.c:146
#define S_OK
Definition: intsafe.h:52
static const IMarshalVtbl objref_moniker_marshal_vtbl
static const IMonikerVtbl VT_ObjrefMonikerImpl
#define calloc
Definition: rosglue.h:14
#define TRACE(s)
Definition: solgame.cpp:4
Definition: main.c:40
IMoniker IMoniker_iface
Definition: main.c:41

Referenced by ObjrefMoniker_CreateInstance(), and test_objref_moniker().

◆ CreatePointerMoniker()

HRESULT WINAPI CreatePointerMoniker ( IUnknown object,
IMoniker **  ret 
)

Definition at line 591 of file pointermoniker.c.

592{
594
595 TRACE("(%p, %p)\n", object, ret);
596
597 if (!ret)
598 return E_INVALIDARG;
599
600 if (!(moniker = calloc(1, sizeof(*moniker))))
601 {
602 *ret = NULL;
603 return E_OUTOFMEMORY;
604 }
605
607 moniker->IMarshal_iface.lpVtbl = &pointer_moniker_marshal_vtbl;
608 moniker->refcount = 1;
609 moniker->pObject = object;
610 if (moniker->pObject)
611 IUnknown_AddRef(moniker->pObject);
612
614
615 return S_OK;
616}
static const IMarshalVtbl pointer_moniker_marshal_vtbl
static const IMonikerVtbl VT_PointerMonikerImpl

Referenced by create_moniker_parse_desc(), PointerMoniker_CreateInstance(), test_generic_composite_moniker(), test_pointer_moniker(), and test_ROT().

◆ impl_from_IMarshal()

◆ impl_from_IMoniker()

◆ objref_impl_from_IMarshal()

◆ objref_impl_from_IMoniker()

static ObjrefMonikerImpl * objref_impl_from_IMoniker ( IMoniker iface)
inlinestatic

◆ objref_moniker_marshal_AddRef()

static ULONG WINAPI objref_moniker_marshal_AddRef ( IMarshal iface)
static

Definition at line 906 of file pointermoniker.c.

907{
909
910 TRACE("(%p)\n", iface);
911
912 return IMoniker_AddRef(&moniker->IMoniker_iface);
913}
static ObjrefMonikerImpl * objref_impl_from_IMarshal(IMarshal *iface)

◆ objref_moniker_marshal_DisconnectObject()

static HRESULT WINAPI objref_moniker_marshal_DisconnectObject ( IMarshal iface,
DWORD  reserved 
)
static

Definition at line 985 of file pointermoniker.c.

986{
987 TRACE("%p, %#lx.\n", iface, reserved);
988 return S_OK;
989}
r reserved
Definition: btrfs.c:3006

◆ objref_moniker_marshal_GetMarshalSizeMax()

static HRESULT WINAPI objref_moniker_marshal_GetMarshalSizeMax ( IMarshal iface,
REFIID  riid,
void pv,
DWORD  dwDestContext,
void pvDestContext,
DWORD  mshlflags,
DWORD size 
)
static

Definition at line 935 of file pointermoniker.c.

937{
939
940 TRACE("%p, %s, %p, %#lx, %p, %#lx, %p.\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext,
941 mshlflags, size);
942
943 return CoGetMarshalSizeMax(size, &IID_IUnknown, moniker->pObject, dwDestContext, pvDestContext, mshlflags);
944}
const GUID IID_IUnknown
HRESULT WINAPI CoGetMarshalSizeMax(ULONG *size, REFIID riid, IUnknown *unk, DWORD dest_context, void *pvDestContext, DWORD mshlFlags)
Definition: marshal.c:440
GLsizeiptr size
Definition: glext.h:5919
REFIID riid
Definition: atlbase.h:39
#define debugstr_guid
Definition: kernel32.h:35

◆ objref_moniker_marshal_GetUnmarshalClass()

static HRESULT WINAPI objref_moniker_marshal_GetUnmarshalClass ( IMarshal iface,
REFIID  riid,
void pv,
DWORD  dwDestContext,
void pvDestContext,
DWORD  mshlflags,
CLSID clsid 
)
static

Definition at line 924 of file pointermoniker.c.

926{
928
929 TRACE("%p, %s, %p, %#lx, %p, %#lx, %p.\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext,
930 mshlflags, clsid);
931
932 return IMoniker_GetClassID(&moniker->IMoniker_iface, clsid);
933}
const CLSID * clsid
Definition: msctf.cpp:50

◆ objref_moniker_marshal_MarshalInterface()

static HRESULT WINAPI objref_moniker_marshal_MarshalInterface ( IMarshal iface,
IStream stream,
REFIID  riid,
void pv,
DWORD  dwDestContext,
void pvDestContext,
DWORD  mshlflags 
)
static

Definition at line 946 of file pointermoniker.c.

948{
950
951 TRACE("%p, %s, %p, %#lx, %p, %#lx\n", stream, debugstr_guid(riid), pv, dwDestContext, pvDestContext, mshlflags);
952
953 return CoMarshalInterface(stream, &IID_IUnknown, moniker->pObject, dwDestContext, pvDestContext, mshlflags);
954}
HRESULT WINAPI CoMarshalInterface(IStream *stream, REFIID riid, IUnknown *unk, DWORD dest_context, void *pvDestContext, DWORD mshlFlags)
Definition: marshal.c:483
Definition: parse.h:23

◆ objref_moniker_marshal_QueryInterface()

static HRESULT WINAPI objref_moniker_marshal_QueryInterface ( IMarshal iface,
REFIID  riid,
LPVOID ppv 
)
static

Definition at line 897 of file pointermoniker.c.

898{
900
901 TRACE("(%p,%s,%p)\n", iface, debugstr_guid(riid), ppv);
902
903 return IMoniker_QueryInterface(&moniker->IMoniker_iface, riid, ppv);
904}
REFIID LPVOID * ppv
Definition: atlbase.h:39

◆ objref_moniker_marshal_Release()

static ULONG WINAPI objref_moniker_marshal_Release ( IMarshal iface)
static

Definition at line 915 of file pointermoniker.c.

916{
918
919 TRACE("(%p)\n", iface);
920
921 return IMoniker_Release(&moniker->IMoniker_iface);
922}

◆ objref_moniker_marshal_ReleaseMarshalData()

static HRESULT WINAPI objref_moniker_marshal_ReleaseMarshalData ( IMarshal iface,
IStream stream 
)
static

Definition at line 979 of file pointermoniker.c.

980{
981 TRACE("(%p,%p)\n", iface, stream);
982 return S_OK;
983}

◆ objref_moniker_marshal_UnmarshalInterface()

static HRESULT WINAPI objref_moniker_marshal_UnmarshalInterface ( IMarshal iface,
IStream stream,
REFIID  riid,
void **  ppv 
)
static

Definition at line 956 of file pointermoniker.c.

958{
961 HRESULT hr;
962
963 TRACE("(%p,%p,%s,%p)\n", iface, stream, debugstr_guid(riid), ppv);
964
965 hr = CoUnmarshalInterface(stream, &IID_IUnknown, (void **)&object);
966 if (FAILED(hr))
967 {
968 ERR("Couldn't unmarshal moniker, hr = %#lx.\n", hr);
969 return hr;
970 }
971
972 if (moniker->pObject)
973 IUnknown_Release(moniker->pObject);
974 moniker->pObject = object;
975
976 return IMoniker_QueryInterface(&moniker->IMoniker_iface, riid, ppv);
977}
#define ERR(fmt,...)
Definition: precomp.h:57
HRESULT WINAPI CoUnmarshalInterface(IStream *stream, REFIID riid, void **ppv)
Definition: marshal.c:793
#define FAILED(hr)
Definition: intsafe.h:51
HRESULT hr
Definition: shlfolder.c:183

◆ ObjrefMoniker_CreateInstance()

HRESULT WINAPI ObjrefMoniker_CreateInstance ( IClassFactory iface,
IUnknown unk,
REFIID  iid,
void **  obj 
)

Definition at line 1034 of file pointermoniker.c.

1035{
1037 HRESULT hr;
1038
1039 TRACE("(%p,%s,%p)\n", unk, debugstr_guid(iid), obj);
1040
1041 *obj = NULL;
1042
1043 if (unk)
1044 return CLASS_E_NOAGGREGATION;
1045
1047 if (FAILED(hr))
1048 return hr;
1049
1050 hr = IMoniker_QueryInterface(moniker, iid, obj);
1051 IMoniker_Release(moniker);
1052
1053 return hr;
1054}
HRESULT WINAPI CreateObjrefMoniker(IUnknown *obj, IMoniker **ret)
#define CLASS_E_NOAGGREGATION
Definition: winerror.h:3771

◆ ObjrefMonikerImpl_AddRef()

static ULONG WINAPI ObjrefMonikerImpl_AddRef ( IMoniker iface)
static

Definition at line 693 of file pointermoniker.c.

694{
696 ULONG refcount = InterlockedIncrement(&moniker->refcount);
697
698 TRACE("%p, refcount %lu\n", iface, refcount);
699
700 return refcount;
701}
#define InterlockedIncrement
Definition: armddk.h:53
static ObjrefMonikerImpl * objref_impl_from_IMoniker(IMoniker *iface)
uint32_t ULONG
Definition: typedefs.h:59

◆ ObjrefMonikerImpl_BindToObject()

static HRESULT WINAPI ObjrefMonikerImpl_BindToObject ( IMoniker iface,
IBindCtx pbc,
IMoniker left,
REFIID  riid,
void **  result 
)
static

Definition at line 754 of file pointermoniker.c.

756{
757 FIXME("(%p,%p,%p,%s,%p): stub\n", iface, pbc, left, debugstr_guid(riid), result);
758 return E_NOTIMPL;
759}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99
GLint left
Definition: glext.h:7726
GLuint64EXT * result
Definition: glext.h:11304

◆ ObjrefMonikerImpl_BindToStorage()

static HRESULT WINAPI ObjrefMonikerImpl_BindToStorage ( IMoniker iface,
IBindCtx pbc,
IMoniker left,
REFIID  riid,
void **  result 
)
static

Definition at line 761 of file pointermoniker.c.

763{
764 FIXME("(%p,%p,%p,%s,%p): stub\n", iface, pbc, left, debugstr_guid(riid), result);
765 return E_NOTIMPL;
766}

◆ ObjrefMonikerImpl_CommonPrefixWith()

static HRESULT WINAPI ObjrefMonikerImpl_CommonPrefixWith ( IMoniker iface,
IMoniker other,
IMoniker **  prefix 
)
static

Definition at line 833 of file pointermoniker.c.

834{
835 FIXME("(%p,%p,%p): stub\n", iface, other, prefix);
836 return E_NOTIMPL;
837}
int other
Definition: msacm.c:1376
Character const *const prefix
Definition: tempnam.cpp:195

◆ ObjrefMonikerImpl_ComposeWith()

static HRESULT WINAPI ObjrefMonikerImpl_ComposeWith ( IMoniker iface,
IMoniker right,
BOOL  only_if_not_generic,
IMoniker **  result 
)
static

Definition at line 775 of file pointermoniker.c.

777{
778 FIXME("(%p,%p,%d,%p): stub\n", iface, right, only_if_not_generic, result);
779 return E_NOTIMPL;
780}
GLdouble GLdouble right
Definition: glext.h:10859

◆ ObjrefMonikerImpl_Enum()

static HRESULT WINAPI ObjrefMonikerImpl_Enum ( IMoniker iface,
BOOL  forward,
IEnumMoniker **  enummoniker 
)
static

Definition at line 782 of file pointermoniker.c.

783{
784 TRACE("(%p,%d,%p)\n", iface, forward, enummoniker);
785
786 if (!enummoniker)
787 return E_POINTER;
788
789 *enummoniker = NULL;
790 return S_OK;
791}
#define E_POINTER
Definition: winerror.h:3480

◆ ObjrefMonikerImpl_GetClassID()

static HRESULT WINAPI ObjrefMonikerImpl_GetClassID ( IMoniker iface,
CLSID clsid 
)
static

Definition at line 719 of file pointermoniker.c.

720{
721 TRACE("(%p,%p)\n", iface, clsid);
722
723 if (!clsid)
724 return E_POINTER;
725
726 *clsid = CLSID_ObjrefMoniker;
727 return S_OK;
728}

◆ ObjrefMonikerImpl_GetDisplayName()

static HRESULT WINAPI ObjrefMonikerImpl_GetDisplayName ( IMoniker iface,
IBindCtx pbc,
IMoniker left,
LPOLESTR name 
)
static

Definition at line 845 of file pointermoniker.c.

847{
848 FIXME("(%p,%p,%p,%p): stub\n", iface, pbc, left, name);
849 return E_NOTIMPL;
850}
Definition: name.c:39

◆ ObjrefMonikerImpl_GetSizeMax()

static HRESULT WINAPI ObjrefMonikerImpl_GetSizeMax ( IMoniker iface,
ULARGE_INTEGER size 
)
static

Definition at line 748 of file pointermoniker.c.

749{
750 FIXME("(%p,%p): stub\n", iface, size);
751 return E_NOTIMPL;
752}

◆ ObjrefMonikerImpl_GetTimeOfLastChange()

static HRESULT WINAPI ObjrefMonikerImpl_GetTimeOfLastChange ( IMoniker iface,
IBindCtx pbc,
IMoniker left,
FILETIME time 
)
static

Definition at line 820 of file pointermoniker.c.

822{
823 FIXME("(%p,%p,%p,%p): stub\n", iface, pbc, left, time);
824 return MK_E_UNAVAILABLE;
825}
__u16 time
Definition: mkdosfs.c:8
#define MK_E_UNAVAILABLE
Definition: winerror.h:3894

◆ ObjrefMonikerImpl_Hash()

static HRESULT WINAPI ObjrefMonikerImpl_Hash ( IMoniker iface,
DWORD hash 
)
static

Definition at line 799 of file pointermoniker.c.

800{
802
803 TRACE("(%p,%p)\n", iface, hash);
804
805 if (!hash)
806 return E_POINTER;
807
808 *hash = PtrToUlong(moniker->pObject);
809
810 return S_OK;
811}
#define PtrToUlong(u)
Definition: config.h:107
Definition: _hash_fun.h:40

◆ ObjrefMonikerImpl_Inverse()

static HRESULT WINAPI ObjrefMonikerImpl_Inverse ( IMoniker iface,
IMoniker **  moniker 
)
static

Definition at line 827 of file pointermoniker.c.

828{
829 FIXME("(%p,%p): stub\n", iface, moniker);
830 return E_NOTIMPL;
831}

◆ ObjrefMonikerImpl_IsDirty()

static HRESULT WINAPI ObjrefMonikerImpl_IsDirty ( IMoniker iface)
static

Definition at line 730 of file pointermoniker.c.

731{
732 FIXME("(%p): stub\n", iface);
733 return S_FALSE;
734}
#define S_FALSE
Definition: winerror.h:3451

◆ ObjrefMonikerImpl_IsEqual()

static HRESULT WINAPI ObjrefMonikerImpl_IsEqual ( IMoniker iface,
IMoniker other 
)
static

Definition at line 793 of file pointermoniker.c.

794{
795 FIXME("(%p,%p): stub\n", iface, other);
796 return E_NOTIMPL;
797}

◆ ObjrefMonikerImpl_IsRunning()

static HRESULT WINAPI ObjrefMonikerImpl_IsRunning ( IMoniker iface,
IBindCtx pbc,
IMoniker left,
IMoniker running 
)
static

Definition at line 813 of file pointermoniker.c.

815{
816 FIXME("(%p,%p,%p,%p): stub\n", iface, pbc, left, running);
817 return E_NOTIMPL;
818}

◆ ObjrefMonikerImpl_IsSystemMoniker()

static HRESULT WINAPI ObjrefMonikerImpl_IsSystemMoniker ( IMoniker iface,
DWORD mksys 
)
static

Definition at line 859 of file pointermoniker.c.

860{
861 TRACE("(%p,%p)\n", iface, mksys);
862
863 if (!mksys)
864 return E_POINTER;
865
866 *mksys = MKSYS_OBJREFMONIKER;
867 return S_OK;
868}

◆ ObjrefMonikerImpl_Load()

static HRESULT WINAPI ObjrefMonikerImpl_Load ( IMoniker iface,
IStream stream 
)
static

Definition at line 736 of file pointermoniker.c.

737{
738 FIXME("(%p,%p): stub\n", iface, stream);
739 return E_NOTIMPL;
740}

◆ ObjrefMonikerImpl_ParseDisplayName()

static HRESULT WINAPI ObjrefMonikerImpl_ParseDisplayName ( IMoniker iface,
IBindCtx pbc,
IMoniker left,
LPOLESTR  name,
ULONG eaten,
IMoniker **  out 
)
static

Definition at line 852 of file pointermoniker.c.

854{
855 FIXME("(%p,%p,%p,%p,%p,%p): stub\n", iface, pbc, left, name, eaten, out);
856 return E_NOTIMPL;
857}
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383

◆ ObjrefMonikerImpl_QueryInterface()

static HRESULT WINAPI ObjrefMonikerImpl_QueryInterface ( IMoniker iface,
REFIID  iid,
void **  obj 
)
static

Definition at line 663 of file pointermoniker.c.

664{
666
667 TRACE("(%p,%s,%p)\n", iface, debugstr_guid(iid), obj);
668
669 if (!obj)
670 return E_INVALIDARG;
671
672 *obj = 0;
673
674 if (IsEqualIID(iid, &IID_IUnknown) ||
675 IsEqualIID(iid, &IID_IPersist) ||
677 IsEqualIID(iid, &IID_IMoniker) ||
678 IsEqualGUID(iid, &CLSID_ObjrefMoniker) ||
679 IsEqualGUID(iid, &CLSID_PointerMoniker))
680 {
681 *obj = iface;
682 }
683 else if (IsEqualIID(iid, &IID_IMarshal))
684 *obj = &moniker->IMarshal_iface;
685 else
686 return E_NOINTERFACE;
687
688 IMoniker_AddRef(iface);
689
690 return S_OK;
691}
const GUID IID_IPersist
Definition: proxy.cpp:14
const GUID IID_IPersistStream
Definition: proxy.cpp:13
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95
#define E_NOINTERFACE
Definition: winerror.h:3479

◆ ObjrefMonikerImpl_Reduce()

static HRESULT WINAPI ObjrefMonikerImpl_Reduce ( IMoniker iface,
IBindCtx pbc,
DWORD  howfar,
IMoniker **  left,
IMoniker **  reduced 
)
static

Definition at line 768 of file pointermoniker.c.

770{
771 FIXME("%p, %p, %ld, %p, %p: stub\n", iface, pbc, howfar, left, reduced);
772 return E_NOTIMPL;
773}

◆ ObjrefMonikerImpl_RelativePathTo()

static HRESULT WINAPI ObjrefMonikerImpl_RelativePathTo ( IMoniker iface,
IMoniker other,
IMoniker **  result 
)
static

Definition at line 839 of file pointermoniker.c.

840{
841 FIXME("(%p,%p,%p): stub\n", iface, other, result);
842 return E_NOTIMPL;
843}

◆ ObjrefMonikerImpl_Release()

static ULONG WINAPI ObjrefMonikerImpl_Release ( IMoniker iface)
static

Definition at line 703 of file pointermoniker.c.

704{
706 ULONG refcount = InterlockedDecrement(&moniker->refcount);
707
708 TRACE("%p, refcount %lu\n", iface, refcount);
709
710 if (!refcount)
711 {
712 if (moniker->pObject) IUnknown_Release(moniker->pObject);
713 free(moniker);
714 }
715
716 return refcount;
717}
#define InterlockedDecrement
Definition: armddk.h:52
#define free
Definition: debug_ros.c:5

◆ ObjrefMonikerImpl_Save()

static HRESULT WINAPI ObjrefMonikerImpl_Save ( IMoniker iface,
IStream stream,
BOOL  dirty 
)
static

Definition at line 742 of file pointermoniker.c.

743{
744 FIXME("(%p,%p,%d): stub\n", iface, stream, dirty);
745 return E_NOTIMPL;
746}
r dirty
Definition: btrfs.c:3004

◆ pointer_moniker_marshal_AddRef()

static ULONG WINAPI pointer_moniker_marshal_AddRef ( IMarshal iface)
static

Definition at line 486 of file pointermoniker.c.

487{
489
490 TRACE("%p.\n",iface);
491
492 return IMoniker_AddRef(&moniker->IMoniker_iface);
493}
static PointerMonikerImpl * impl_from_IMarshal(IMarshal *iface)

◆ pointer_moniker_marshal_DisconnectObject()

static HRESULT WINAPI pointer_moniker_marshal_DisconnectObject ( IMarshal iface,
DWORD  reserved 
)
static

Definition at line 568 of file pointermoniker.c.

569{
570 TRACE("%p, %#lx.\n", iface, reserved);
571
572 return S_OK;
573}

◆ pointer_moniker_marshal_GetMarshalSizeMax()

static HRESULT WINAPI pointer_moniker_marshal_GetMarshalSizeMax ( IMarshal iface,
REFIID  riid,
void pv,
DWORD  dwDestContext,
void pvDestContext,
DWORD  mshlflags,
DWORD size 
)
static

Definition at line 515 of file pointermoniker.c.

517{
519
520 TRACE("%p, %s, %p, %ld, %p, %#lx, %p.\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext,
521 mshlflags, size);
522
523 return CoGetMarshalSizeMax(size, &IID_IUnknown, moniker->pObject, dwDestContext, pvDestContext, mshlflags);
524}

◆ pointer_moniker_marshal_GetUnmarshalClass()

static HRESULT WINAPI pointer_moniker_marshal_GetUnmarshalClass ( IMarshal iface,
REFIID  riid,
void pv,
DWORD  dwDestContext,
void pvDestContext,
DWORD  mshlflags,
CLSID clsid 
)
static

Definition at line 504 of file pointermoniker.c.

506{
508
509 TRACE("%p, %s, %p, %lx, %p, %lx, %p.\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext,
510 mshlflags, clsid);
511
512 return IMoniker_GetClassID(&moniker->IMoniker_iface, clsid);
513}

◆ pointer_moniker_marshal_MarshalInterface()

static HRESULT WINAPI pointer_moniker_marshal_MarshalInterface ( IMarshal iface,
IStream stream,
REFIID  riid,
void pv,
DWORD  dwDestContext,
void pvDestContext,
DWORD  mshlflags 
)
static

Definition at line 526 of file pointermoniker.c.

528{
530
531 TRACE("%p, %s, %p, %lx, %p, %lx.\n", stream, debugstr_guid(riid), pv,
532 dwDestContext, pvDestContext, mshlflags);
533
534 return CoMarshalInterface(stream, &IID_IUnknown, moniker->pObject, dwDestContext,
535 pvDestContext, mshlflags);
536}

◆ pointer_moniker_marshal_QueryInterface()

static HRESULT WINAPI pointer_moniker_marshal_QueryInterface ( IMarshal iface,
REFIID  riid,
LPVOID ppv 
)
static

Definition at line 477 of file pointermoniker.c.

478{
480
481 TRACE("%p, %s, %p.\n", iface, debugstr_guid(riid), ppv);
482
483 return IMoniker_QueryInterface(&moniker->IMoniker_iface, riid, ppv);
484}

◆ pointer_moniker_marshal_Release()

static ULONG WINAPI pointer_moniker_marshal_Release ( IMarshal iface)
static

Definition at line 495 of file pointermoniker.c.

496{
498
499 TRACE("%p.\n",iface);
500
501 return IMoniker_Release(&moniker->IMoniker_iface);
502}

◆ pointer_moniker_marshal_ReleaseMarshalData()

static HRESULT WINAPI pointer_moniker_marshal_ReleaseMarshalData ( IMarshal iface,
IStream stream 
)
static

Definition at line 561 of file pointermoniker.c.

562{
563 TRACE("%p, %p.\n", iface, stream);
564
565 return S_OK;
566}

◆ pointer_moniker_marshal_UnmarshalInterface()

static HRESULT WINAPI pointer_moniker_marshal_UnmarshalInterface ( IMarshal iface,
IStream stream,
REFIID  riid,
void **  ppv 
)
static

Definition at line 538 of file pointermoniker.c.

540{
543 HRESULT hr;
544
545 TRACE("%p, %p, %s, %p.\n", iface, stream, debugstr_guid(riid), ppv);
546
547 hr = CoUnmarshalInterface(stream, &IID_IUnknown, (void **)&object);
548 if (FAILED(hr))
549 {
550 ERR("Couldn't unmarshal moniker, hr = %#lx.\n", hr);
551 return hr;
552 }
553
554 if (moniker->pObject)
555 IUnknown_Release(moniker->pObject);
556 moniker->pObject = object;
557
558 return IMoniker_QueryInterface(&moniker->IMoniker_iface, riid, ppv);
559}

◆ PointerMoniker_CreateInstance()

HRESULT WINAPI PointerMoniker_CreateInstance ( IClassFactory iface,
IUnknown pUnk,
REFIID  riid,
void **  ppv 
)

Definition at line 618 of file pointermoniker.c.

620{
621 IMoniker *pMoniker;
622 HRESULT hr;
623
624 TRACE("(%p, %s, %p)\n", pUnk, debugstr_guid(riid), ppv);
625
626 *ppv = NULL;
627
628 if (pUnk)
630
631 hr = CreatePointerMoniker(NULL, &pMoniker);
632 if (FAILED(hr))
633 return hr;
634
635 hr = IMoniker_QueryInterface(pMoniker, riid, ppv);
636 IMoniker_Release(pMoniker);
637
638 return hr;
639}
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
Definition: dplayx.c:30
HRESULT WINAPI CreatePointerMoniker(IUnknown *object, IMoniker **ret)

◆ PointerMonikerImpl_AddRef()

static ULONG WINAPI PointerMonikerImpl_AddRef ( IMoniker iface)
static

Definition at line 90 of file pointermoniker.c.

91{
93 ULONG refcount = InterlockedIncrement(&moniker->refcount);
94
95 TRACE("%p, refcount %lu.\n", iface, refcount);
96
97 return refcount;
98}
static PointerMonikerImpl * impl_from_IMoniker(IMoniker *iface)

Referenced by PointerMonikerImpl_Reduce().

◆ PointerMonikerImpl_BindToObject()

static HRESULT WINAPI PointerMonikerImpl_BindToObject ( IMoniker iface,
IBindCtx pbc,
IMoniker pmkToLeft,
REFIID  riid,
VOID **  ppvResult 
)
static

Definition at line 193 of file pointermoniker.c.

195{
197
198 TRACE("(%p,%p,%p,%s,%p)\n",iface,pbc,pmkToLeft,debugstr_guid(riid),ppvResult);
199
200 if (!This->pObject)
201 return E_UNEXPECTED;
202
203 return IUnknown_QueryInterface(This->pObject, riid, ppvResult);
204}
#define E_UNEXPECTED
Definition: winerror.h:3528

◆ PointerMonikerImpl_BindToStorage()

static HRESULT WINAPI PointerMonikerImpl_BindToStorage ( IMoniker iface,
IBindCtx pbc,
IMoniker pmkToLeft,
REFIID  riid,
VOID **  ppvResult 
)
static

Definition at line 210 of file pointermoniker.c.

212{
214
215 TRACE("(%p,%p,%p,%s,%p)\n",iface,pbc,pmkToLeft,debugstr_guid(riid),ppvResult);
216
217 if (!This->pObject)
218 return E_UNEXPECTED;
219
220 return IUnknown_QueryInterface(This->pObject, riid, ppvResult);
221}

◆ PointerMonikerImpl_CommonPrefixWith()

static HRESULT WINAPI PointerMonikerImpl_CommonPrefixWith ( IMoniker iface,
IMoniker other,
IMoniker **  prefix 
)
static

Definition at line 347 of file pointermoniker.c.

348{
349 TRACE("%p, %p, %p.\n", iface, other, prefix);
350
351 if (!prefix || !other)
352 return E_INVALIDARG;
353
354 *prefix = NULL;
355
357 {
358 IMoniker_AddRef(iface);
359
360 *prefix = iface;
361
362 return MK_S_US;
363 }
364 else
365 return MK_E_NOPREFIX;
366}
static HRESULT WINAPI PointerMonikerImpl_IsEqual(IMoniker *iface, IMoniker *other)
#define MK_E_NOPREFIX
Definition: winerror.h:3909
#define MK_S_US
Definition: winerror.h:3899

◆ PointerMonikerImpl_ComposeWith()

static HRESULT WINAPI PointerMonikerImpl_ComposeWith ( IMoniker iface,
IMoniker right,
BOOL  only_if_not_generic,
IMoniker **  result 
)
static

Definition at line 242 of file pointermoniker.c.

244{
245 DWORD order;
246
247 TRACE("%p, %p, %d, %p.\n", iface, right, only_if_not_generic, result);
248
249 if (!result || !right)
250 return E_POINTER;
251
252 *result = NULL;
253
255 return order > 1 ? create_anti_moniker(order - 1, result) : S_OK;
256
257 return only_if_not_generic ? MK_E_NEEDGENERIC : CreateGenericComposite(iface, right, result);
258}
HRESULT create_anti_moniker(DWORD order, IMoniker **ret)
Definition: antimoniker.c:606
BOOL is_anti_moniker(IMoniker *iface, DWORD *order)
Definition: antimoniker.c:54
HRESULT WINAPI CreateGenericComposite(IMoniker *left, IMoniker *right, IMoniker **composite)
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
#define MK_E_NEEDGENERIC
Definition: winerror.h:3893

◆ PointerMonikerImpl_Enum()

static HRESULT WINAPI PointerMonikerImpl_Enum ( IMoniker iface,
BOOL  fForward,
IEnumMoniker **  ppenumMoniker 
)
static

Definition at line 263 of file pointermoniker.c.

264{
265 TRACE("%p, %d, %p.\n", iface, fForward, ppenumMoniker);
266
267 if (!ppenumMoniker)
268 return E_POINTER;
269
270 *ppenumMoniker = NULL;
271
272 return E_NOTIMPL;
273}

◆ PointerMonikerImpl_GetClassID()

static HRESULT WINAPI PointerMonikerImpl_GetClassID ( IMoniker iface,
CLSID pClassID 
)
static

Definition at line 120 of file pointermoniker.c.

121{
122 TRACE("(%p,%p)\n",iface,pClassID);
123
124 if (pClassID==NULL)
125 return E_POINTER;
126
127 *pClassID = CLSID_PointerMoniker;
128
129 return S_OK;
130}

◆ PointerMonikerImpl_GetDisplayName()

static HRESULT WINAPI PointerMonikerImpl_GetDisplayName ( IMoniker iface,
IBindCtx pbc,
IMoniker toleft,
LPOLESTR name 
)
static

Definition at line 380 of file pointermoniker.c.

382{
383 TRACE("%p, %p, %p, %p.\n", iface, pbc, toleft, name);
384
385 if (!name || !pbc)
386 {
387 if (name) *name = NULL;
388 return E_INVALIDARG;
389 }
390
391 return E_NOTIMPL;
392}

◆ PointerMonikerImpl_GetSizeMax()

static HRESULT WINAPI PointerMonikerImpl_GetSizeMax ( IMoniker iface,
ULARGE_INTEGER pcbSize 
)
static

Definition at line 176 of file pointermoniker.c.

177{
178 TRACE("(%p,%p)\n",iface,pcbSize);
179
180 if (!pcbSize)
181 return E_POINTER;
182
183 pcbSize->u.LowPart = 0;
184 pcbSize->u.HighPart = 0;
185
186 return E_NOTIMPL;
187}
struct _ULARGE_INTEGER::@4426 u

◆ PointerMonikerImpl_GetTimeOfLastChange()

static HRESULT WINAPI PointerMonikerImpl_GetTimeOfLastChange ( IMoniker iface,
IBindCtx pbc,
IMoniker pmkToLeft,
FILETIME pAntiTime 
)
static

Definition at line 324 of file pointermoniker.c.

328{
329 TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pAntiTime);
330 return E_NOTIMPL;
331}

◆ PointerMonikerImpl_Hash()

static HRESULT WINAPI PointerMonikerImpl_Hash ( IMoniker iface,
DWORD pdwHash 
)
static

Definition at line 297 of file pointermoniker.c.

298{
300
301 if (pdwHash==NULL)
302 return E_POINTER;
303
304 *pdwHash = PtrToUlong(This->pObject);
305
306 return S_OK;
307}

◆ PointerMonikerImpl_Inverse()

static HRESULT WINAPI PointerMonikerImpl_Inverse ( IMoniker iface,
IMoniker **  ppmk 
)
static

Definition at line 337 of file pointermoniker.c.

338{
339 TRACE("(%p,%p)\n",iface,ppmk);
340
341 return CreateAntiMoniker(ppmk);
342}
HRESULT WINAPI CreateAntiMoniker(IMoniker **moniker)
Definition: antimoniker.c:626

◆ PointerMonikerImpl_IsDirty()

static HRESULT WINAPI PointerMonikerImpl_IsDirty ( IMoniker iface)
static

Definition at line 136 of file pointermoniker.c.

137{
138 /* Note that the OLE-provided implementations of the IPersistStream::IsDirty
139 method in the OLE-provided moniker interfaces always return S_FALSE because
140 their internal state never changes. */
141
142 TRACE("(%p)\n",iface);
143
144 return S_FALSE;
145}

◆ PointerMonikerImpl_IsEqual()

static HRESULT WINAPI PointerMonikerImpl_IsEqual ( IMoniker iface,
IMoniker other 
)
static

Definition at line 278 of file pointermoniker.c.

279{
280 PointerMonikerImpl *moniker = impl_from_IMoniker(iface), *other_moniker;
281
282 TRACE("%p, %p.\n", iface, other);
283
284 if (!other)
285 return E_INVALIDARG;
286
287 other_moniker = unsafe_impl_from_IMoniker(other);
288 if (!other_moniker)
289 return S_FALSE;
290
291 return moniker->pObject == other_moniker->pObject ? S_OK : S_FALSE;
292}
static PointerMonikerImpl * unsafe_impl_from_IMoniker(IMoniker *iface)

Referenced by PointerMonikerImpl_CommonPrefixWith().

◆ PointerMonikerImpl_IsRunning()

static HRESULT WINAPI PointerMonikerImpl_IsRunning ( IMoniker iface,
IBindCtx pbc,
IMoniker pmkToLeft,
IMoniker pmkNewlyRunning 
)
static

Definition at line 313 of file pointermoniker.c.

315{
316 TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pmkNewlyRunning);
317
318 return S_OK;
319}

◆ PointerMonikerImpl_IsSystemMoniker()

static HRESULT WINAPI PointerMonikerImpl_IsSystemMoniker ( IMoniker iface,
DWORD pwdMksys 
)
static

Definition at line 428 of file pointermoniker.c.

429{
430 TRACE("(%p,%p)\n",iface,pwdMksys);
431
432 if (!pwdMksys)
433 return E_POINTER;
434
435 *pwdMksys = MKSYS_POINTERMONIKER;
436
437 return S_OK;
438}

◆ PointerMonikerImpl_Load()

static HRESULT WINAPI PointerMonikerImpl_Load ( IMoniker iface,
IStream pStm 
)
static

Definition at line 151 of file pointermoniker.c.

152{
153 TRACE("(%p)\n", pStm);
154
155 return E_NOTIMPL;
156}

◆ PointerMonikerImpl_ParseDisplayName()

static HRESULT WINAPI PointerMonikerImpl_ParseDisplayName ( IMoniker iface,
IBindCtx pbc,
IMoniker pmkToLeft,
LPOLESTR  pszDisplayName,
ULONG pchEaten,
IMoniker **  ppmkOut 
)
static

Definition at line 398 of file pointermoniker.c.

401{
403 HRESULT hr;
404 IParseDisplayName *pPDN;
405
406 TRACE("(%p,%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pszDisplayName,pchEaten,ppmkOut);
407
408 if (pmkToLeft)
409 return MK_E_SYNTAX;
410
411 if (!This->pObject)
412 return E_UNEXPECTED;
413
414 hr = IUnknown_QueryInterface(This->pObject, &IID_IParseDisplayName, (void **)&pPDN);
415 if (FAILED(hr))
416 return hr;
417
418 hr = IParseDisplayName_ParseDisplayName(pPDN, pbc, pszDisplayName, pchEaten, ppmkOut);
419 IParseDisplayName_Release(pPDN);
420
421 return hr;
422}
const GUID IID_IParseDisplayName
#define MK_E_SYNTAX
Definition: winerror.h:3896

◆ PointerMonikerImpl_QueryInterface()

static HRESULT WINAPI PointerMonikerImpl_QueryInterface ( IMoniker iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 60 of file pointermoniker.c.

61{
63
64 TRACE("%p, %s, %p.\n", iface, debugstr_guid(riid), ppvObject);
65
66 if (!ppvObject)
67 return E_INVALIDARG;
68
69 *ppvObject = 0;
70
74 IsEqualIID(&IID_IMoniker, riid) ||
75 IsEqualGUID(&CLSID_PointerMoniker, riid))
76 {
77 *ppvObject = iface;
78 }
79 else if (IsEqualIID(&IID_IMarshal, riid))
80 *ppvObject = &moniker->IMarshal_iface;
81
82 if (!*ppvObject)
83 return E_NOINTERFACE;
84
85 IMoniker_AddRef(iface);
86
87 return S_OK;
88}

◆ PointerMonikerImpl_Reduce()

static HRESULT WINAPI PointerMonikerImpl_Reduce ( IMoniker iface,
IBindCtx pbc,
DWORD  dwReduceHowFar,
IMoniker **  ppmkToLeft,
IMoniker **  ppmkReduced 
)
static

Definition at line 227 of file pointermoniker.c.

229{
230 TRACE("%p, %p, %ld, %p, %p.\n", iface, pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced);
231
232 if (ppmkReduced==NULL)
233 return E_POINTER;
234
236
237 *ppmkReduced=iface;
238
240}
static ULONG WINAPI PointerMonikerImpl_AddRef(IMoniker *iface)
#define MK_S_REDUCED_TO_SELF
Definition: winerror.h:3892

◆ PointerMonikerImpl_RelativePathTo()

static HRESULT WINAPI PointerMonikerImpl_RelativePathTo ( IMoniker iface,
IMoniker other,
IMoniker **  result 
)
static

Definition at line 368 of file pointermoniker.c.

369{
370 TRACE("%p, %p, %p.\n", iface, other, result);
371
372 if (!result)
373 return E_INVALIDARG;
374
375 *result = NULL;
376
377 return other ? E_NOTIMPL : E_INVALIDARG;
378}

◆ PointerMonikerImpl_Release()

static ULONG WINAPI PointerMonikerImpl_Release ( IMoniker iface)
static

Definition at line 100 of file pointermoniker.c.

101{
103 ULONG refcount = InterlockedDecrement(&moniker->refcount);
104
105 TRACE("%p, refcount %lu.\n", iface, refcount);
106
107 if (!refcount)
108 {
109 if (moniker->pObject) IUnknown_Release(moniker->pObject);
110 free(moniker);
111 }
112
113 return refcount;
114}

◆ PointerMonikerImpl_Save()

static HRESULT WINAPI PointerMonikerImpl_Save ( IMoniker iface,
IStream pStm,
BOOL  fClearDirty 
)
static

Definition at line 162 of file pointermoniker.c.

163{
164 TRACE("(%p, %d)\n", pStm, fClearDirty);
165
166 return E_NOTIMPL;
167}

◆ unsafe_impl_from_IMoniker()

static PointerMonikerImpl * unsafe_impl_from_IMoniker ( IMoniker iface)
static

Definition at line 470 of file pointermoniker.c.

471{
472 if (iface->lpVtbl != &VT_PointerMonikerImpl)
473 return NULL;
474 return CONTAINING_RECORD(iface, PointerMonikerImpl, IMoniker_iface);
475}

Referenced by PointerMonikerImpl_IsEqual().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( ole  )

Variable Documentation

◆ objref_moniker_marshal_vtbl

const IMarshalVtbl objref_moniker_marshal_vtbl
static
Initial value:
=
{
}
static HRESULT WINAPI objref_moniker_marshal_QueryInterface(IMarshal *iface, REFIID riid, LPVOID *ppv)
static HRESULT WINAPI objref_moniker_marshal_ReleaseMarshalData(IMarshal *iface, IStream *stream)
static HRESULT WINAPI objref_moniker_marshal_UnmarshalInterface(IMarshal *iface, IStream *stream, REFIID riid, void **ppv)
static ULONG WINAPI objref_moniker_marshal_AddRef(IMarshal *iface)
static HRESULT WINAPI objref_moniker_marshal_GetUnmarshalClass(IMarshal *iface, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags, CLSID *clsid)
static ULONG WINAPI objref_moniker_marshal_Release(IMarshal *iface)
static HRESULT WINAPI objref_moniker_marshal_MarshalInterface(IMarshal *iface, IStream *stream, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags)
static HRESULT WINAPI objref_moniker_marshal_GetMarshalSizeMax(IMarshal *iface, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags, DWORD *size)
static HRESULT WINAPI objref_moniker_marshal_DisconnectObject(IMarshal *iface, DWORD reserved)

Definition at line 991 of file pointermoniker.c.

Referenced by CreateObjrefMoniker().

◆ pointer_moniker_marshal_vtbl

const IMarshalVtbl pointer_moniker_marshal_vtbl
static
Initial value:
=
{
}
static HRESULT WINAPI pointer_moniker_marshal_MarshalInterface(IMarshal *iface, IStream *stream, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags)
static HRESULT WINAPI pointer_moniker_marshal_GetUnmarshalClass(IMarshal *iface, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags, CLSID *clsid)
static ULONG WINAPI pointer_moniker_marshal_AddRef(IMarshal *iface)
static HRESULT WINAPI pointer_moniker_marshal_QueryInterface(IMarshal *iface, REFIID riid, LPVOID *ppv)
static HRESULT WINAPI pointer_moniker_marshal_DisconnectObject(IMarshal *iface, DWORD reserved)
static ULONG WINAPI pointer_moniker_marshal_Release(IMarshal *iface)
static HRESULT WINAPI pointer_moniker_marshal_GetMarshalSizeMax(IMarshal *iface, REFIID riid, void *pv, DWORD dwDestContext, void *pvDestContext, DWORD mshlflags, DWORD *size)
static HRESULT WINAPI pointer_moniker_marshal_UnmarshalInterface(IMarshal *iface, IStream *stream, REFIID riid, void **ppv)
static HRESULT WINAPI pointer_moniker_marshal_ReleaseMarshalData(IMarshal *iface, IStream *stream)

Definition at line 575 of file pointermoniker.c.

Referenced by CreatePointerMoniker().

◆ VT_ObjrefMonikerImpl

const IMonikerVtbl VT_ObjrefMonikerImpl
static
Initial value:
=
{
}
static HRESULT WINAPI ObjrefMonikerImpl_IsEqual(IMoniker *iface, IMoniker *other)
static HRESULT WINAPI ObjrefMonikerImpl_GetDisplayName(IMoniker *iface, IBindCtx *pbc, IMoniker *left, LPOLESTR *name)
static HRESULT WINAPI ObjrefMonikerImpl_GetTimeOfLastChange(IMoniker *iface, IBindCtx *pbc, IMoniker *left, FILETIME *time)
static HRESULT WINAPI ObjrefMonikerImpl_GetSizeMax(IMoniker *iface, ULARGE_INTEGER *size)
static HRESULT WINAPI ObjrefMonikerImpl_IsRunning(IMoniker *iface, IBindCtx *pbc, IMoniker *left, IMoniker *running)
static HRESULT WINAPI ObjrefMonikerImpl_ComposeWith(IMoniker *iface, IMoniker *right, BOOL only_if_not_generic, IMoniker **result)
static HRESULT WINAPI ObjrefMonikerImpl_Hash(IMoniker *iface, DWORD *hash)
static HRESULT WINAPI ObjrefMonikerImpl_IsSystemMoniker(IMoniker *iface, DWORD *mksys)
static HRESULT WINAPI ObjrefMonikerImpl_CommonPrefixWith(IMoniker *iface, IMoniker *other, IMoniker **prefix)
static HRESULT WINAPI ObjrefMonikerImpl_Inverse(IMoniker *iface, IMoniker **moniker)
static HRESULT WINAPI ObjrefMonikerImpl_ParseDisplayName(IMoniker *iface, IBindCtx *pbc, IMoniker *left, LPOLESTR name, ULONG *eaten, IMoniker **out)
static ULONG WINAPI ObjrefMonikerImpl_AddRef(IMoniker *iface)
static HRESULT WINAPI ObjrefMonikerImpl_RelativePathTo(IMoniker *iface, IMoniker *other, IMoniker **result)
static HRESULT WINAPI ObjrefMonikerImpl_BindToObject(IMoniker *iface, IBindCtx *pbc, IMoniker *left, REFIID riid, void **result)
static HRESULT WINAPI ObjrefMonikerImpl_QueryInterface(IMoniker *iface, REFIID iid, void **obj)
static HRESULT WINAPI ObjrefMonikerImpl_Load(IMoniker *iface, IStream *stream)
static HRESULT WINAPI ObjrefMonikerImpl_IsDirty(IMoniker *iface)
static HRESULT WINAPI ObjrefMonikerImpl_GetClassID(IMoniker *iface, CLSID *clsid)
static HRESULT WINAPI ObjrefMonikerImpl_Save(IMoniker *iface, IStream *stream, BOOL dirty)
static HRESULT WINAPI ObjrefMonikerImpl_Enum(IMoniker *iface, BOOL forward, IEnumMoniker **enummoniker)
static HRESULT WINAPI ObjrefMonikerImpl_BindToStorage(IMoniker *iface, IBindCtx *pbc, IMoniker *left, REFIID riid, void **result)
static HRESULT WINAPI ObjrefMonikerImpl_Reduce(IMoniker *iface, IBindCtx *pbc, DWORD howfar, IMoniker **left, IMoniker **reduced)
static ULONG WINAPI ObjrefMonikerImpl_Release(IMoniker *iface)

Definition at line 870 of file pointermoniker.c.

Referenced by CreateObjrefMoniker().

◆ VT_PointerMonikerImpl

const IMonikerVtbl VT_PointerMonikerImpl
static
Initial value:
=
{
}
static HRESULT WINAPI PointerMonikerImpl_IsRunning(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, IMoniker *pmkNewlyRunning)
static HRESULT WINAPI PointerMonikerImpl_Inverse(IMoniker *iface, IMoniker **ppmk)
static HRESULT WINAPI PointerMonikerImpl_ParseDisplayName(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, LPOLESTR pszDisplayName, ULONG *pchEaten, IMoniker **ppmkOut)
static HRESULT WINAPI PointerMonikerImpl_GetTimeOfLastChange(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, FILETIME *pAntiTime)
static HRESULT WINAPI PointerMonikerImpl_BindToObject(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, REFIID riid, VOID **ppvResult)
static HRESULT WINAPI PointerMonikerImpl_ComposeWith(IMoniker *iface, IMoniker *right, BOOL only_if_not_generic, IMoniker **result)
static HRESULT WINAPI PointerMonikerImpl_GetClassID(IMoniker *iface, CLSID *pClassID)
static HRESULT WINAPI PointerMonikerImpl_IsSystemMoniker(IMoniker *iface, DWORD *pwdMksys)
static HRESULT WINAPI PointerMonikerImpl_GetDisplayName(IMoniker *iface, IBindCtx *pbc, IMoniker *toleft, LPOLESTR *name)
static HRESULT WINAPI PointerMonikerImpl_RelativePathTo(IMoniker *iface, IMoniker *other, IMoniker **result)
static HRESULT WINAPI PointerMonikerImpl_IsDirty(IMoniker *iface)
static HRESULT WINAPI PointerMonikerImpl_GetSizeMax(IMoniker *iface, ULARGE_INTEGER *pcbSize)
static HRESULT WINAPI PointerMonikerImpl_CommonPrefixWith(IMoniker *iface, IMoniker *other, IMoniker **prefix)
static HRESULT WINAPI PointerMonikerImpl_Hash(IMoniker *iface, DWORD *pdwHash)
static HRESULT WINAPI PointerMonikerImpl_BindToStorage(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft, REFIID riid, VOID **ppvResult)
static HRESULT WINAPI PointerMonikerImpl_Save(IMoniker *iface, IStream *pStm, BOOL fClearDirty)
static HRESULT WINAPI PointerMonikerImpl_Reduce(IMoniker *iface, IBindCtx *pbc, DWORD dwReduceHowFar, IMoniker **ppmkToLeft, IMoniker **ppmkReduced)
static HRESULT WINAPI PointerMonikerImpl_Load(IMoniker *iface, IStream *pStm)
static HRESULT WINAPI PointerMonikerImpl_Enum(IMoniker *iface, BOOL fForward, IEnumMoniker **ppenumMoniker)
static HRESULT WINAPI PointerMonikerImpl_QueryInterface(IMoniker *iface, REFIID riid, void **ppvObject)
static ULONG WINAPI PointerMonikerImpl_Release(IMoniker *iface)

Definition at line 443 of file pointermoniker.c.

Referenced by CreatePointerMoniker(), and unsafe_impl_from_IMoniker().