TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes | Typedefs | Functions
ni::Windows Namespace Reference

Classes

class  AutoGDIObject
 
class  AutoHandle
 
class  AutoHDC
 
class  AutoHGlobal
 
class  DC
 Device context (DC) wrapper. More...
 
struct  UTFBuffer
 

Typedefs

typedef AutoGDIObject< HBITMAP > AutoBitmap
 
typedef AutoGDIObject< HRGN > AutoHRGN
 
typedef AutoGDIObject< HFONT > AutoHFONT
 
typedef UTFBuffer< CHAR > UTF8Buffer
 
typedef UTFBuffer< WCHAR > UTF16Buffer
 

Functions

void RefreshNotificationArea ()
 
HKEY WinRegGetHKeyClass (const WCHAR *aszPath, WCHAR const **apRet)
 Get the HKey of the specified path. More...
 
WCHAR * WinRegPath_Copy (WCHAR *aaszOutput, const WCHAR *aaszPath)
 Copy to a registry compatible path. More...
 
WCHAR * WinRegPath_GetKeyPath (WCHAR *apOut, const WCHAR *wszPath)
 
WCHAR * WinRegPath_GetValueName (WCHAR *apOut, const WCHAR *wszPath)
 
DWORD WinRegGetType (const WCHAR *aaszType)
 Get the DWORD type. More...
 
ni::tBool WinRegWrite (const WCHAR *aaszPath, const WCHAR *aaszVal, const WCHAR *aaszType niDefaultParam(L"REG_SZ"))
 Write a registry value. More...
 
ni::tBool WinRegWrite (const ni::cchar *aaszPath, const ni::cchar *aaszVal, const ni::cchar *aaszType niDefaultParam(_A("REG_SZ")))
 
WCHAR * WinRegRead (WCHAR *apOut, const WCHAR *aaszPath)
 Read a registry value. More...
 
ni::ccharWinRegRead (ni::cchar *apOut, const ni::cchar *aaszPath)
 
BOOL ConvertUTF8ToUTF16 (UTF16Buffer &aOut, const CHAR *pszTextUTF8, size_t cchUTF8=0)
 Converts Unicode UTF-8 text to Unicode UTF-16 (Windows default). More...
 
BOOL ConvertUTF16ToUTF8 (UTF8Buffer &aOut, const WCHAR *pszTextUTF16, size_t cchUTF16=0)
 Converts Unicode UTF-16 (Windows default) text to Unicode UTF-8. More...
 
void utf8_OutputDebugString (const char *aaszMsg)
 
char * utf8_GetModuleFileName (HMODULE ahDLL, char *apOut)
 
HMODULE utf8_GetModuleHandle (const char *aaszPath)
 
char * utf8_getcwd (char *apOut)