Esempio n. 1
0
 public int PutProperty(MONIKERPROPERTY mkp, [MarshalAs(UnmanagedType.LPWStr)] string val)
 {
     if (m_PutPropertyFunc == null)
     {
         var fp = GetFunctionPointer(3);
         m_PutPropertyFunc = (PutPropertyFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(PutPropertyFunc));
     }
     return(m_PutPropertyFunc(m_ptr, mkp, val));
 }
Esempio n. 2
0
 public HRESULT PutProperty(MONIKERPROPERTY mkp, [NativeTypeName("LPCWSTR")] ushort *val)
 {
     return(((delegate * unmanaged <IMonikerProp *, MONIKERPROPERTY, ushort *, int>)(lpVtbl[3]))((IMonikerProp *)Unsafe.AsPointer(ref this), mkp, val));
 }