コード例 #1
0
 private static int SetSize(IntPtr thisPtr, ulong libNewSize)
 {
     try
     {
         Interop.Ole32.IStream instance = ComInterfaceDispatch.GetInstance <Interop.Ole32.IStream>((ComInterfaceDispatch *)thisPtr);
         instance.SetSize(libNewSize);
         return(S_OK);
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex);
         return(ex.HResult);
     }
 }
コード例 #2
0
            private static int SetSize(IntPtr thisPtr, ulong libNewSize)
            {
                try
                {
                    Interop.Ole32.IStream inst = ComInterfaceDispatch.GetInstance <Interop.Ole32.IStream>((ComInterfaceDispatch *)thisPtr);
                    inst.SetSize(libNewSize);
                }
                catch (Exception e)
                {
                    return(e.HResult);
                }

                return(S_OK);
            }
コード例 #3
0
 public override void SetLength(long value)
 {
     comStream.SetSize((ulong)value);
 }