Ejemplo n.º 1
0
 public static extern int ReadClassStm(UnsafeNativeMethodsR.IStream pStream, out Guid clsid);
Ejemplo n.º 2
0
 public static extern int RegisterDragDrop(HandleRef hwnd, UnsafeNativeMethodsR.IOleDropTarget target);
Ejemplo n.º 3
0
 public static extern int OleSaveToStream(UnsafeNativeMethodsR.IPersistStream pPersistStream, UnsafeNativeMethodsR.IStream pStream);
Ejemplo n.º 4
0
 public static extern int ReadClassStg(UnsafeNativeMethodsR.IStorage pStorage, out Guid clsid);
Ejemplo n.º 5
0
 public static extern IntPtr ImageList_Read(UnsafeNativeMethodsR.IStream pstm);
Ejemplo n.º 6
0
 public static extern int OleLoadFromStream(UnsafeNativeMethodsR.IStream pStorage, ref Guid iid, out UnsafeNativeMethodsR.IOleObject pObject);
Ejemplo n.º 7
0
 private static extern IntPtr CreateActCtx(ref UnsafeNativeMethodsR.ThemingScope.ACTCTX actctx);
Ejemplo n.º 8
0
 public static extern int WriteClassStm(UnsafeNativeMethodsR.IStream pStream, ref Guid clsid);
Ejemplo n.º 9
0
 private static extern IntPtr _WindowFromPoint(UnsafeNativeMethodsR.POINTSTRUCT pt);
Ejemplo 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;
 }
Ejemplo n.º 11
0
 private static extern IntPtr _ChildWindowFromPointEx(HandleRef hwndParent, UnsafeNativeMethodsR.POINTSTRUCT pt, int uFlags);
Ejemplo n.º 12
0
 public static extern int ImageList_WriteEx(HandleRef himl, int dwFlags, UnsafeNativeMethodsR.IStream pstm);
Ejemplo n.º 13
0
 public static extern bool ImageList_Write(HandleRef himl, UnsafeNativeMethodsR.IStream pstm);
Ejemplo n.º 14
0
 public static extern UnsafeNativeMethodsR.IStorage StgCreateDocfileOnILockBytes(UnsafeNativeMethodsR.ILockBytes iLockBytes, int grfMode, int reserved);
Ejemplo n.º 15
0
 public static extern int CoGetMalloc(int dwReserved, out UnsafeNativeMethodsR.IMalloc pMalloc);
Ejemplo n.º 16
0
 public static extern UnsafeNativeMethodsR.IStorage StgOpenStorageOnILockBytes(UnsafeNativeMethodsR.ILockBytes iLockBytes, UnsafeNativeMethodsR.IStorage pStgPriority, int grfMode, int sndExcluded, int reserved);
Ejemplo n.º 17
0
 public static extern IntPtr GetHGlobalFromILockBytes(UnsafeNativeMethodsR.ILockBytes pLkbyt);
Ejemplo n.º 18
0
 internal static extern void CorLaunchApplication(uint hostType, string applicationFullName, int manifestPathsCount, string[] manifestPaths, int activationDataCount, string[] activationData, UnsafeNativeMethodsR.PROCESS_INFORMATION processInformation);
Ejemplo n.º 19
0
 public static extern int DoDragDrop(System.Runtime.InteropServices.ComTypes.IDataObject dataObject, UnsafeNativeMethodsR.IOleDropSource dropSource, int allowedEffects, int[] finalEffect);