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);
 }