1*c2c66affSColin Finck #ifndef _WINNLS32_ 2*c2c66affSColin Finck #define _WINNLS32_ 3*c2c66affSColin Finck 4*c2c66affSColin Finck #ifdef __cplusplus 5*c2c66affSColin Finck extern "C" { 6*c2c66affSColin Finck #endif 7*c2c66affSColin Finck 8*c2c66affSColin Finck typedef struct _tagDATETIME 9*c2c66affSColin Finck { 10*c2c66affSColin Finck WORD year; 11*c2c66affSColin Finck WORD month; 12*c2c66affSColin Finck WORD day; 13*c2c66affSColin Finck WORD hour; 14*c2c66affSColin Finck WORD min; 15*c2c66affSColin Finck WORD sec; 16*c2c66affSColin Finck } DATETIME; 17*c2c66affSColin Finck 18*c2c66affSColin Finck typedef struct _tagIMEPROA 19*c2c66affSColin Finck { 20*c2c66affSColin Finck HWND hWnd; 21*c2c66affSColin Finck DATETIME InstDate; 22*c2c66affSColin Finck UINT wVersion; 23*c2c66affSColin Finck BYTE szDescription[50]; 24*c2c66affSColin Finck BYTE szName[80]; 25*c2c66affSColin Finck BYTE szOptions[30]; 26*c2c66affSColin Finck } IMEPROA,*PIMEPROA,NEAR *NPIMEPROA,FAR *LPIMEPROA; 27*c2c66affSColin Finck 28*c2c66affSColin Finck typedef struct _tagIMEPROW 29*c2c66affSColin Finck { 30*c2c66affSColin Finck HWND hWnd; 31*c2c66affSColin Finck DATETIME InstDate; 32*c2c66affSColin Finck UINT wVersion; 33*c2c66affSColin Finck WCHAR szDescription[50]; 34*c2c66affSColin Finck WCHAR szName[80]; 35*c2c66affSColin Finck WCHAR szOptions[30]; 36*c2c66affSColin Finck } IMEPROW,*PIMEPROW,NEAR *NPIMEPROW,FAR *LPIMEPROW; 37*c2c66affSColin Finck 38*c2c66affSColin Finck #ifdef UNICODE 39*c2c66affSColin Finck typedef IMEPROW IMEPRO; 40*c2c66affSColin Finck typedef PIMEPROW PIMEPRO; 41*c2c66affSColin Finck typedef NPIMEPROW NPIMEPRO; 42*c2c66affSColin Finck typedef LPIMEPROW LPIMEPRO; 43*c2c66affSColin Finck #define IMPGetIME IMPGetIMEW 44*c2c66affSColin Finck #define IMPQueryIME IMPQueryIMEW 45*c2c66affSColin Finck #define IMPSetIME IMPSetIMEW 46*c2c66affSColin Finck #else 47*c2c66affSColin Finck typedef IMEPROA IMEPRO; 48*c2c66affSColin Finck typedef PIMEPROA PIMEPRO; 49*c2c66affSColin Finck typedef NPIMEPROA NPIMEPRO; 50*c2c66affSColin Finck typedef LPIMEPROA LPIMEPRO; 51*c2c66affSColin Finck #define IMPGetIME IMPGetIMEA 52*c2c66affSColin Finck #define IMPQueryIME IMPQueryIMEA 53*c2c66affSColin Finck #define IMPSetIME IMPSetIMEA 54*c2c66affSColin Finck #endif 55*c2c66affSColin Finck 56*c2c66affSColin Finck BOOL WINAPI IMPGetIMEA(HWND, LPIMEPROA); 57*c2c66affSColin Finck BOOL WINAPI IMPGetIMEW(HWND, LPIMEPROW); 58*c2c66affSColin Finck BOOL WINAPI IMPQueryIMEA(LPIMEPROA); 59*c2c66affSColin Finck BOOL WINAPI IMPQueryIMEW(LPIMEPROW); 60*c2c66affSColin Finck BOOL WINAPI IMPSetIMEA(HWND, LPIMEPROA); 61*c2c66affSColin Finck BOOL WINAPI IMPSetIMEW(HWND, LPIMEPROW); 62*c2c66affSColin Finck UINT WINAPI WINNLSGetIMEHotkey(HWND); 63*c2c66affSColin Finck BOOL WINAPI WINNLSEnableIME(HWND, BOOL); 64*c2c66affSColin Finck BOOL WINAPI WINNLSGetEnableStatus(HWND); 65*c2c66affSColin Finck 66*c2c66affSColin Finck #ifdef __cplusplus 67*c2c66affSColin Finck } 68*c2c66affSColin Finck #endif 69*c2c66affSColin Finck 70*c2c66affSColin Finck #endif /* _USERENV_H */ 71