![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include "HResult.h"
#include "cTimeSys.h"
#include "cNonCopyable.h"
#include "cUnitTestDecl.h"
#include "cDebugAssert.h"
Go to the source code of this file.
Classes | |
class | Gray::cOSHandle |
Namespaces | |
Gray | |
< The main namespace for all Core functions. | |
Macros | |
#define | HANDLE_NULL NULL |
Invalid OS handle for _WIN32. Not invalid OS handle for linux. More... | |
#define | WINHANDLE_NULL NULL |
HWND, HPEN, etc are NOT OS Handles. like HWND_DESKTOP. like HANDLEPTR_NULL. This is a WINAPI void* handle via DECLARE_HANDLE like HWND, HPEN, HINSTANCE, etc. can't call CloseHandle() on it. More... | |
Typedefs | |
typedef LONG_PTR | Gray::STREAM_OFFSET_t |
Might be 64 or 32 bit. TODO SET USE_FILE_POS64. More... | |
typedef LONG_PTR | Gray::STREAM_SEEKRET_t |
return from Seek() More... | |
typedef ULONG_PTR | Gray::STREAM_POS_t |
NOT same as FILE_SIZE_t in 32 bit. Why not ? More... | |
Enumerations | |
enum | Gray::SEEK_ORIGIN_TYPE { Gray::SEEK_Set = 0 , Gray::SEEK_Cur = 1 , Gray::SEEK_End = 2 , Gray::SEEK_MASK = 0x0007 } |
Wrap the OS kernel handle (scoped auto-close). for _WIN32 or linux.
#define HANDLE_NULL NULL |
Invalid OS handle for _WIN32. Not invalid OS handle for linux.
#define WINHANDLE_NULL NULL |
HWND, HPEN, etc are NOT OS Handles. like HWND_DESKTOP. like HANDLEPTR_NULL. This is a WINAPI void* handle via DECLARE_HANDLE like HWND, HPEN, HINSTANCE, etc. can't call CloseHandle() on it.