uLib  User mode C/C++ extended API library for Win32 programmers.
MemStrm.h
Go to the documentation of this file.
1 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 // Project: uLib - User mode library.
3 // Module: Simplified global memory streams (when you need an IStream)
4 // Author: Copyright (c) Love Nystrom
5 // License: NNOSL (BSD descendant, see NNOSL.txt in the base directory).
6 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 
8 #ifndef __MemStrm_h_incl__
9 #define __MemStrm_h_incl__
10 
11 #include <uLib/Common.h>
12 
13 // OpenMemStream -- Return an IStream in global memory
14 // GetMemStreamHandle -- Return the current memory handle for the MemStream
15 // CloseMemStream -- Close the global memory IStream
16 
17 LPSTREAM OpenMemStream( size_t Size );
18 HGLOBAL GetMemStreamHandle( LPSTREAM pStream );
19 void CloseMemStream( LPSTREAM pStream );
20 
21 #endif //ndef __MemStrm_h_incl__
22 // EOF
LPSTREAM OpenMemStream(size_t Size)
Definition: MemStrm.cpp:14
HGLOBAL GetMemStreamHandle(LPSTREAM pStream)
Definition: MemStrm.cpp:34
Common include; Added types, small "ubiquitous" utilities, et c.
void CloseMemStream(LPSTREAM pStream)
Definition: MemStrm.cpp:43