Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

MIDL excerpt containing IStream

By: Aschratt on Nov 7th, 2013  |  syntax: IDL  |  size: 0.90 KB  |  views: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // http://stackoverflow.com/questions/19820999/what-are-the-remoteread-and-remotewrite-members-of-isequentialstream
  2.  
  3. import "objidl.idl";
  4.  
  5. [
  6.         object,
  7.         uuid(A54CF022-8EDA-4167-9B5D-589776BB159D),
  8.         pointer_default(unique)
  9. ]
  10. interface IParsable : IUnknown
  11. {
  12.         typedef LPPARSABLE IParsable*;
  13.  
  14.         [propget, id(1)] HRESULT IsModified([out, retval] VARIANT_BOOL* pVal);
  15.         [id(100)] HRESULT GetMaxSize([out, retval] ULARGE_INTEGER* pVal);
  16. };
  17.  
  18. [
  19.         object,
  20.         uuid(095D0A95-E908-4fb4-A6FB-C9BC4C9F1E41),
  21.         pointer_default(unique)
  22. ]
  23. interface IParser : IUnknown
  24. {
  25.         [id(100)] HRESULT Load([in] LPSTREAM stream, [out, retval] LPPARSABLE* pVal);
  26.         [id(101))] HRESULT Save([in] LPSTREAM stream, [in] LPPARSABLE parsable);
  27. };
  28.  
  29. [
  30.         uuid(C97BBE8D-4A7C-424a-8224-9201D0C70F87),
  31.         version(1.0),
  32.         helpstring("Lib.Common")
  33. ]
  34. library LibCommon
  35. {
  36.         importlib("stdole2.tlb");
  37.  
  38.         interface IParsable;
  39.         interface IParser;
  40. };
clone this paste RAW Paste Data