Esempio n. 1
0
 public static extern int ReadClassStm(UnsafeNativeMethodsR.IStream pStream, out Guid clsid);
Esempio n. 2
0
 public static extern int RegisterDragDrop(HandleRef hwnd, UnsafeNativeMethodsR.IOleDropTarget target);
Esempio n. 3
0
 public static extern int OleSaveToStream(UnsafeNativeMethodsR.IPersistStream pPersistStream, UnsafeNativeMethodsR.IStream pStream);
Esempio n. 4
0
 public static extern int ReadClassStg(UnsafeNativeMethodsR.IStorage pStorage, out Guid clsid);
Esempio n. 5
0
 public static extern IntPtr ImageList_Read(UnsafeNativeMethodsR.IStream pstm);
Esempio n. 6
0
 public static extern int OleLoadFromStream(UnsafeNativeMethodsR.IStream pStorage, ref Guid iid, out UnsafeNativeMethodsR.IOleObject pObject);
Esempio n. 7
0
 private static extern IntPtr CreateActCtx(ref UnsafeNativeMethodsR.ThemingScope.ACTCTX actctx);
Esempio n. 8
0
 public static extern int WriteClassStm(UnsafeNativeMethodsR.IStream pStream, ref Guid clsid);
Esempio n. 9
0
 private static extern IntPtr _WindowFromPoint(UnsafeNativeMethodsR.POINTSTRUCT pt);
Esempio n. 10
0
 public long CopyTo(UnsafeNativeMethodsR.IStream pstm, long cb, long[] pcbRead)
 {
     int cb1 = 4096;
     IntPtr num1 = Marshal.AllocHGlobal(cb1);
     if (num1 == IntPtr.Zero)
         throw new OutOfMemoryException();
     long num2 = 0L;
     try
     {
         while (num2 < cb)
         {
             int length = cb1;
             if (num2 + (long)length > cb)
                 length = (int)(cb - num2);
             int len = this.Read(num1, length);
             if (len != 0)
             {
                 if (pstm.Write(num1, len) != len)
                     throw UnsafeNativeMethodsR.ComStreamFromDataStream.EFail("Wrote an incorrect number of bytes");
                 num2 += (long)len;
             }
             else
                 break;
         }
     }
     finally
     {
         Marshal.FreeHGlobal(num1);
     }
     if (pcbRead != null && pcbRead.Length > 0)
         pcbRead[0] = num2;
     return num2;
 }
Esempio n. 11
0
 private static extern IntPtr _ChildWindowFromPointEx(HandleRef hwndParent, UnsafeNativeMethodsR.POINTSTRUCT pt, int uFlags);
Esempio n. 12
0
 public static extern int ImageList_WriteEx(HandleRef himl, int dwFlags, UnsafeNativeMethodsR.IStream pstm);
Esempio n. 13
0
 public static extern bool ImageList_Write(HandleRef himl, UnsafeNativeMethodsR.IStream pstm);
Esempio n. 14
0
 public static extern UnsafeNativeMethodsR.IStorage StgCreateDocfileOnILockBytes(UnsafeNativeMethodsR.ILockBytes iLockBytes, int grfMode, int reserved);
Esempio n. 15
0
 public static extern int CoGetMalloc(int dwReserved, out UnsafeNativeMethodsR.IMalloc pMalloc);
Esempio n. 16
0
 public static extern UnsafeNativeMethodsR.IStorage StgOpenStorageOnILockBytes(UnsafeNativeMethodsR.ILockBytes iLockBytes, UnsafeNativeMethodsR.IStorage pStgPriority, int grfMode, int sndExcluded, int reserved);
Esempio n. 17
0
 public static extern IntPtr GetHGlobalFromILockBytes(UnsafeNativeMethodsR.ILockBytes pLkbyt);
Esempio n. 18
0
 internal static extern void CorLaunchApplication(uint hostType, string applicationFullName, int manifestPathsCount, string[] manifestPaths, int activationDataCount, string[] activationData, UnsafeNativeMethodsR.PROCESS_INFORMATION processInformation);
Esempio n. 19
0
 public static extern int DoDragDrop(System.Runtime.InteropServices.ComTypes.IDataObject dataObject, UnsafeNativeMethodsR.IOleDropSource dropSource, int allowedEffects, int[] finalEffect);