TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes | Macros | Typedefs | Enumerations | Functions
niLang Win32

Detailed Description

Classes

class  AutoHandle
 
class  AutoHDC
 
class  AutoGDIObject< T >
 
class  AutoHGlobal< T >
 
class  DC
 Device context (DC) wrapper. More...
 
class  cOSWinFile
 iFileBase implementation wrapping Windows File Handles. More...
 
struct  UTFBuffer< T >
 

Macros

#define FW(x, y)
 
#define niWin32_UTF8ToUTF16(WVAR, VAR)
 
#define niWin32_UTF16ToUTF8(WVAR, VAR)
 

Typedefs

typedef AutoGDIObject< HBITMAP > AutoBitmap
 
typedef AutoGDIObject< HRGN > AutoHRGN
 
typedef AutoGDIObject< HFONT > AutoHFONT
 
typedef tU32 tOSWinFileFlags
 Windows file handle flags type. More...
 
typedef UTFBuffer< CHAR > UTF8Buffer
 
typedef UTFBuffer< WCHAR > UTF16Buffer
 

Enumerations

enum  eOSWinFileFlags {
  eOSWinFileFlags_DontOwnRead,
  eOSWinFileFlags_DontOwnWrite,
  eOSWinFileFlags_DontOwnRW,
  eOSWinFileFlags_NoSeek,
  eOSWinFileFlags_Pipe,
  eOSWinFileFlags_Socket,
  eOSWinFileFlags_ConnectNamedPipe,
  eOSWinFileFlags_ForceDWORD
}
 Windows file handle flags. More...
 

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)
 

Macro Definition Documentation

#define FW (   x,
 
)
#define niWin32_UTF8ToUTF16 (   WVAR,
  VAR 
)
#define niWin32_UTF16ToUTF8 (   WVAR,
  VAR 
)

Typedef Documentation

typedef AutoGDIObject<HBITMAP> AutoBitmap
typedef AutoGDIObject<HRGN> AutoHRGN
typedef AutoGDIObject<HFONT> AutoHFONT
typedef tU32 tOSWinFileFlags

Windows file handle flags type.

See also
ni::eOSWinFileFlags
typedef UTFBuffer<CHAR> UTF8Buffer
typedef UTFBuffer<WCHAR> UTF16Buffer

Enumeration Type Documentation

enum eOSWinFileFlags

Windows file handle flags.

Enumerator
eOSWinFileFlags_DontOwnRead 
eOSWinFileFlags_DontOwnWrite 
eOSWinFileFlags_DontOwnRW 
eOSWinFileFlags_NoSeek 
eOSWinFileFlags_Pipe 
eOSWinFileFlags_Socket 
eOSWinFileFlags_ConnectNamedPipe 

Connect the read/write handle with ConnectNamedPipe on the first read or write.

eOSWinFileFlags_ForceDWORD 

Function Documentation

void ni::Windows::RefreshNotificationArea ( )
HKEY ni::Windows::WinRegGetHKeyClass ( const WCHAR *  aszPath,
WCHAR const **  apRet 
)

Get the HKey of the specified path.

WCHAR* ni::Windows::WinRegPath_Copy ( WCHAR *  aaszOutput,
const WCHAR *  aaszPath 
)

Copy to a registry compatible path.

WCHAR* ni::Windows::WinRegPath_GetKeyPath ( WCHAR *  apOut,
const WCHAR *  wszPath 
)
WCHAR* ni::Windows::WinRegPath_GetValueName ( WCHAR *  apOut,
const WCHAR *  wszPath 
)
DWORD ni::Windows::WinRegGetType ( const WCHAR *  aaszType)

Get the DWORD type.

ni::tBool ni::Windows::WinRegWrite ( const WCHAR *  aaszPath,
const WCHAR *  aaszVal,
const WCHAR *aaszType   niDefaultParamL"REG_SZ" 
)

Write a registry value.

ni::tBool ni::Windows::WinRegWrite ( const ni::cchar aaszPath,
const ni::cchar aaszVal,
const ni::cchar *aaszType   niDefaultParam_A("REG_SZ") 
)
WCHAR* ni::Windows::WinRegRead ( WCHAR *  apOut,
const WCHAR *  aaszPath 
)

Read a registry value.

ni::cchar* ni::Windows::WinRegRead ( ni::cchar apOut,
const ni::cchar aaszPath 
)
BOOL ni::Windows::ConvertUTF8ToUTF16 ( UTF16Buffer &  aOut,
const CHAR *  pszTextUTF8,
size_t  cchUTF8 = 0 
)

Converts Unicode UTF-8 text to Unicode UTF-16 (Windows default).

BOOL ni::Windows::ConvertUTF16ToUTF8 ( UTF8Buffer &  aOut,
const WCHAR *  pszTextUTF16,
size_t  cchUTF16 = 0 
)

Converts Unicode UTF-16 (Windows default) text to Unicode UTF-8.

void ni::Windows::utf8_OutputDebugString ( const char *  aaszMsg)
char* ni::Windows::utf8_GetModuleFileName ( HMODULE  ahDLL,
char *  apOut 
)
HMODULE ni::Windows::utf8_GetModuleHandle ( const char *  aaszPath)
char* ni::Windows::utf8_getcwd ( char *  apOut)