stream.c
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  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. }