当前位置: 首页>>代码示例>>C#>>正文


C# ILockBytes类代码示例

本文整理汇总了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);
开发者ID:jerryshi2007,项目名称:AK47Source,代码行数:7,代码来源:EncryptedPackageHandler.cs

示例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
     );
开发者ID:killbug2004,项目名称:WSProf,代码行数:8,代码来源:StructuredStorageInterface.cs

示例3: StgIsStorageILockBytes

 public static extern int StgIsStorageILockBytes(ILockBytes plkbyt);
开发者ID:Developex,项目名称:Outlook-Sync-Webservice,代码行数:1,代码来源:OutlookStorage.cs

示例4: StgCreateDocfileOnILockBytes

 public static extern int StgCreateDocfileOnILockBytes(ILockBytes plkbyt, STGM grfMode, uint reserved, out IStorage ppstgOpen);
开发者ID:Developex,项目名称:Outlook-Sync-Webservice,代码行数:1,代码来源:OutlookStorage.cs

示例5: CreateILockBytesOnHGlobal

 public static extern int CreateILockBytesOnHGlobal(IntPtr hGlobal, bool fDeleteOnRelease, out ILockBytes ppLkbyt);
开发者ID:Developex,项目名称:Outlook-Sync-Webservice,代码行数:1,代码来源:OutlookStorage.cs

示例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")));
     }
 }
开发者ID:acinep,项目名称:epplus,代码行数:23,代码来源:CompoundDocument.cs

示例7: CompoundDocument

 internal CompoundDocument(ILockBytes lb)
 {
     Read(lb);
 }
开发者ID:acinep,项目名称:epplus,代码行数:4,代码来源:CompoundDocument.cs

示例8: IsStorageILockBytes

 internal static int IsStorageILockBytes(ILockBytes lb)
 {
     return StgIsStorageILockBytes(lb);
 }
开发者ID:acinep,项目名称:epplus,代码行数:4,代码来源:CompoundDocument.cs

示例9: StgIsStorageILockBytes

 private static extern int StgIsStorageILockBytes(
     ILockBytes plkbyt);
开发者ID:acinep,项目名称:epplus,代码行数:2,代码来源:CompoundDocument.cs

示例10: StgCreateDocfileOnILockBytes

 public static extern IStorage StgCreateDocfileOnILockBytes(ILockBytes plkbyt, uint grfMode, uint reserved);
开发者ID:pvginkel,项目名称:SystemEx,代码行数:1,代码来源:NativeMethods.Methods.cs

示例11: GetHGlobalFromILockBytes

 public static extern IntPtr GetHGlobalFromILockBytes(ILockBytes pLockBytes);
开发者ID:pvginkel,项目名称:SystemEx,代码行数:1,代码来源:NativeMethods.Methods.cs

示例12: StgOpenStorageOnILockBytes

 static extern IStorage StgOpenStorageOnILockBytes(ILockBytes iLockBytes, IStorage pStgPriority, int grfMode, int sndExcluded, int reserved);
开发者ID:jhuntsman,项目名称:FlexNet,代码行数:1,代码来源:FilterLoader.cs

示例13: GetHGlobalFromILockBytes

        public static extern int GetHGlobalFromILockBytes(ILockBytes pLkbyt,
			out IntPtr phglobal);
开发者ID:0anion0,项目名称:IBN,代码行数:2,代码来源:MsgHelper.cs

示例14: CreateILockBytesOnHGlobal

 public static extern int CreateILockBytesOnHGlobal(IntPtr hGlobal, [MarshalAs(UnmanagedType.Bool)] bool fDeleteOnRelease, out ILockBytes ppLkbyt);
开发者ID:haiyangIt,项目名称:Haiyang,代码行数:1,代码来源:CompoundFileUtil.cs

示例15: StgOpenStorageOnILockBytes

 internal static extern void StgOpenStorageOnILockBytes(ILockBytes plkbyt, IStorage pstgPriority, Stgm grfMode,
     IntPtr snbExclude, uint reserved,
     out IStorage ppstgOpen);
开发者ID:naingyelin,项目名称:msgreader,代码行数:3,代码来源:Storage.cs


注:本文中的ILockBytes类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。