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