Source code of Windows XP (NT5)
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.

37 lines
858 B

  1. //---------------------------------------------------------------------------
  2. //
  3. // Copyright (c) Microsoft Corporation 1991-1993
  4. //
  5. // File: stream.c
  6. //
  7. // This file contains some of the stream support code that is used by
  8. // the shell. It also contains the shells implementation of a memory
  9. // stream that is used by the cabinet to allow views to be serialized.
  10. //
  11. // History:
  12. // 08-20-93 KurtE Added header block and memory stream.
  13. //
  14. //---------------------------------------------------------------------------
  15. #include "shellprv.h"
  16. STDAPI_(IStream *)
  17. OpenRegStream(
  18. HKEY hkey,
  19. LPCTSTR pszSubkey,
  20. LPCTSTR pszValue,
  21. DWORD grfMode)
  22. {
  23. return SHOpenRegStream(hkey, pszSubkey, pszValue, grfMode);
  24. }
  25. STDAPI_(IStream *)
  26. CreateMemStream(
  27. LPBYTE pInit,
  28. UINT cbInit)
  29. {
  30. return SHCreateMemStream(pInit, cbInit);
  31. }