Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
3.2 KiB

  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // stmio.h
  4. //
  5. // Property Set Stream I/O and other common Property Set routines.
  6. //
  7. ////////////////////////////////////////////////////////////////////////////////
  8. #ifndef __stmio_h__
  9. #define __stmio_h__
  10. #include "offcapi.h"
  11. #include "proptype.h"
  12. // Write a VT_LPSTR to the stream.
  13. BOOL PASCAL FLpstmWriteVT_LPTSTR (LPSTREAM lpStm,
  14. LPTSTR lpstz,
  15. BOOL fAlign,
  16. DWORD dwType);
  17. // Write a VT_FILETIME to the stream
  18. BOOL PASCAL FLpstmWriteVT_FILETIME (LPSTREAM lpStm, LPFILETIME lpFt);
  19. // Write a VT_I4 to the stream
  20. BOOL PASCAL FLpstmWriteVT_I4 (LPSTREAM lpStm, DWORD dwI4);
  21. // Read a VT_CF from the stream.
  22. BOOL PASCAL FLpstmReadVT_CF (LPSTREAM lpStm, LPSINAIL lpSINail);
  23. // Write a VT_CF from to the stream.
  24. BOOL PASCAL FLpstmWriteVT_CF (LPSTREAM lpStm, LPSINAIL lpSINail);
  25. // Read a VT_I2 from the stream
  26. BOOL PASCAL FLpstmReadVT_I2 (LPSTREAM lpStm, WORD *pw);
  27. // Write a VT_I2 to the stream
  28. BOOL PASCAL FLpstmWriteVT_I2 (LPSTREAM lpStm, WORD w);
  29. // Read a VT_BOOL from the stream
  30. BOOL PASCAL FLpstmReadVT_BOOL (LPSTREAM lpStm, WORD *fBool);
  31. // Write a VT_BOOL to the stream
  32. BOOL PASCAL FLpstmWriteVT_BOOL (LPSTREAM lpStm, WORD fBool);
  33. // Read a VT_R8 or VT_DATE from the stream
  34. BOOL PASCAL FLpstmReadVT_R8_DATE (LPSTREAM lpStm, NUM *dbl);
  35. // Write a VT_R8 or VT_DATE to the stream
  36. BOOL PASCAL FLpstmWriteVT_R8_DATE (LPSTREAM lpStm, NUM *dbl, BOOL fDate);
  37. // Read a VT_BLOB from the stream.
  38. BOOL PASCAL FLpstmReadVT_BLOB (LPSTREAM lpStm,
  39. DWORD *pcb,
  40. BYTE FAR * FAR *ppbData);
  41. // Write a VT_BLOB to the stream
  42. BOOL PASCAL FLpstmWriteVT_BLOB (LPSTREAM lpStm,
  43. DWORD cb,
  44. BYTE *bData);
  45. // Read a VT_CLSID from the stream
  46. BOOL PASCAL FLpstmReadVT_CLSID (LPSTREAM lpStm, CLSID *pClsId);
  47. // Write a VT_CLSID to the stream
  48. BOOL PASCAL FLpstmWriteVT_CLSID (LPSTREAM lpStm, CLSID *pClsId);
  49. // Read in unknown data into the array
  50. BOOL PASCAL FLpstmReadUnknown (LPSTREAM lpStm,
  51. DWORD dwType,
  52. DWORD dwId,
  53. DWORD *pirglpUnk,
  54. LPPROPIDTYPELP rglpUnk);
  55. // Write out the unknown data in the array.
  56. BOOL PASCAL FLpstmWriteUnknowns (LPSTREAM lpStm,
  57. DWORD dwcUnk,
  58. LPPROPIDTYPELP rglpUnk);
  59. // Destroy any unknown data
  60. BOOL PASCAL FDestoryUnknowns (DWORD dwcUnk, LPPROPIDTYPELP rglpUnk);
  61. // Write data to the buffer, flushing as needed
  62. BOOL PASCAL FLpstmWrite (LPSTREAM lpStm,
  63. LPVOID lpv,
  64. DWORD cb);
  65. void VAllocWriteBuf(void);
  66. void VFreeWriteBuf(void);
  67. BOOL FFlushWriteBuf(LPSTREAM lpStm);
  68. void VSetRealStmSize(LPSTREAM lpStm);
  69. #endif // __stmio_h__