本文整理汇总了C#中ILockBytes类的典型用法代码示例。如果您正苦于以下问题:C# ILockBytes类的具体用法?C# ILockBytes怎么用?C# ILockBytes使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ILockBytes类属于命名空间,在下文中一共展示了ILockBytes类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StgOpenStorageOnILockBytes
static extern int StgOpenStorageOnILockBytes(
ILockBytes plkbyt,
IStorage pStgPriority,
STGM grfMode,
IntPtr snbEnclude,
uint reserved,
out IStorage ppstgOpen);
示例2: StgOpenStorageOnILockBytes
internal static extern uint StgOpenStorageOnILockBytes(
ILockBytes lockbytes,
IStorage pstgPriority,
uint grfMode, // access method
IntPtr snbExclude, // must be NULL
int reserved, // reserved
out IStorage storage // returned storage
);
示例3: StgIsStorageILockBytes
public static extern int StgIsStorageILockBytes(ILockBytes plkbyt);
示例4: StgCreateDocfileOnILockBytes
public static extern int StgCreateDocfileOnILockBytes(ILockBytes plkbyt, STGM grfMode, uint reserved, out IStorage ppstgOpen);
示例5: CreateILockBytesOnHGlobal
public static extern int CreateILockBytesOnHGlobal(IntPtr hGlobal, bool fDeleteOnRelease, out ILockBytes ppLkbyt);
示例6: Read
internal void Read(ILockBytes lb)
{
if (StgIsStorageILockBytes(lb) == 0)
{
IStorage storage = null;
if (StgOpenStorageOnILockBytes(
lb,
null,
STGM.DIRECT | STGM.READ | STGM.SHARE_EXCLUSIVE,
IntPtr.Zero,
0,
out storage) == 0)
{
Storage = new StoragePart();
ReadParts(storage, Storage);
Marshal.ReleaseComObject(storage);
}
}
else
{
throw (new InvalidDataException(string.Format("Part is not a compound document")));
}
}
示例7: CompoundDocument
internal CompoundDocument(ILockBytes lb)
{
Read(lb);
}
示例8: IsStorageILockBytes
internal static int IsStorageILockBytes(ILockBytes lb)
{
return StgIsStorageILockBytes(lb);
}
示例9: StgIsStorageILockBytes
private static extern int StgIsStorageILockBytes(
ILockBytes plkbyt);
示例10: StgCreateDocfileOnILockBytes
public static extern IStorage StgCreateDocfileOnILockBytes(ILockBytes plkbyt, uint grfMode, uint reserved);
示例11: GetHGlobalFromILockBytes
public static extern IntPtr GetHGlobalFromILockBytes(ILockBytes pLockBytes);
示例12: StgOpenStorageOnILockBytes
static extern IStorage StgOpenStorageOnILockBytes(ILockBytes iLockBytes, IStorage pStgPriority, int grfMode, int sndExcluded, int reserved);
示例13: GetHGlobalFromILockBytes
public static extern int GetHGlobalFromILockBytes(ILockBytes pLkbyt,
out IntPtr phglobal);
示例14: CreateILockBytesOnHGlobal
public static extern int CreateILockBytesOnHGlobal(IntPtr hGlobal, [MarshalAs(UnmanagedType.Bool)] bool fDeleteOnRelease, out ILockBytes ppLkbyt);
示例15: StgOpenStorageOnILockBytes
internal static extern void StgOpenStorageOnILockBytes(ILockBytes plkbyt, IStorage pstgPriority, Stgm grfMode,
IntPtr snbExclude, uint reserved,
out IStorage ppstgOpen);