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