WinStd
Additional templates and function helpers for Microsoft Windows using Standard C++ classes
Classes | Macros | Typedefs
Windows API

Integrates WinStd classes with Microsoft Windows API. More...

Classes

class  winstd::win_handle< INVALID >
 Windows HANDLE wrapper class. More...
 
class  winstd::library
 Module handle wrapper. More...
 
struct  winstd::UnmapViewOfFile_delete< _Ty >
 Deleter for unique_ptr using UnmapViewOfFile. More...
 
struct  winstd::UnmapViewOfFile_delete< _Ty[]>
 Deleter for unique_ptr to array of unknown size using UnmapViewOfFile. More...
 
class  winstd::critical_section
 Critical section wrapper. More...
 
class  winstd::find_file
 Find-file handle wrapper. More...
 
class  winstd::heap
 Heap handle wrapper. More...
 
class  winstd::heap_allocator< _Ty >
 HeapAlloc allocator. More...
 
class  winstd::actctx_activator
 Activates given activation context in constructor and deactivates it in destructor. More...
 
class  winstd::user_impersonator
 Lets the calling thread impersonate the security context of a logged-on user. More...
 
class  winstd::console_ctrl_handler
 Console control handler stack management. More...
 
class  winstd::vmemory
 Memory in virtual address space of a process handle wrapper. More...
 
class  winstd::reg_key
 Registry key wrapper class. More...
 
class  winstd::security_id
 SID wrapper class. More...
 
class  winstd::process_information
 PROCESS_INFORMATION struct wrapper. More...
 
class  winstd::event_log
 Event log handle wrapper. More...
 

Macros

#define GuidToString   GuidToStringA
 Formats GUID and stores it in a std::wstring string. More...
 
#define StringToGuid   StringToGuidA
 Parses string with GUID and stores it to GUID. More...
 

Typedefs

typedef win_handle< NULL > winstd::process
 Process handle wrapper. More...
 
typedef win_handle< NULL > winstd::thread
 Thread handle wrapper. More...
 
typedef win_handle< INVALID_HANDLE_VALUE > winstd::process_snapshot
 Process snapshot handle wrapper. More...
 
typedef win_handle< INVALID_HANDLE_VALUE > winstd::file
 File handle wrapper. More...
 
typedef win_handle< NULL > winstd::file_mapping
 File mapping. More...
 
typedef win_handle< NULL > winstd::event
 Event handle wrapper. More...
 

Detailed Description

Integrates WinStd classes with Microsoft Windows API.

Macro Definition Documentation

◆ GuidToString

#define GuidToString   GuidToStringA

Formats GUID and stores it in a std::wstring string.

Parameters
[in]lpGuidPointer to GUID
[out]strString to store the result to

◆ StringToGuid

#define StringToGuid   StringToGuidA

Parses string with GUID and stores it to GUID.

Parameters
[in]lpszGuidString with GUID
[out]lpGuidGUID to store the result to
[out]lpszGuidEndIf non-NULL the pointer to the end of parsed GUID within lpszGuid is returned
Returns
  • TRUE if GUID successfuly parsed;
  • FALSE otherwise.

Typedef Documentation

◆ event

typedef win_handle<NULL> winstd::event

Event handle wrapper.

See also
CreateEventW function
OpenEventW function

◆ file

typedef win_handle<INVALID_HANDLE_VALUE> winstd::file

File handle wrapper.

See also
CreateFile function

◆ file_mapping

File mapping.

See also
CreateFileMapping function

◆ process

typedef win_handle<NULL> winstd::process

Process handle wrapper.

See also
OpenProcess function

◆ process_snapshot

typedef win_handle<INVALID_HANDLE_VALUE> winstd::process_snapshot

Process snapshot handle wrapper.

See also
CreateToolhelp32Snapshot function

◆ thread

typedef win_handle<NULL> winstd::thread

Thread handle wrapper.

See also
CreateThread function