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); } }
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); }
public override void SetLength(long value) { comStream.SetSize((ulong)value); }