home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 May
/
VPR9705A.ISO
/
VPR_DATA
/
PROGRAM
/
CBTRIAL
/
SETUP
/
DATA.Z
/
WINNLS32.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-14
|
3KB
|
138 lines
/*++ BUILD Version: 0003 // Increment this if a change has global effects
Copyright (c) 1985-96, Microsoft Corporation
Module Name:
winnls32.h
Abstract:
Procedure declarations, constant definitions and macros for the NLS
component.
--*/
#ifndef _WINNLS32_
#define _WINNLS32_
#pragma option -b
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifdef __BORLANDC__
#pragma option -b.
#include <pshpack8.h>
#pragma option -b
#endif
typedef struct _tagDATETIME {
WORD year;
WORD month;
WORD day;
WORD hour;
WORD min;
WORD sec;
} DATETIME;
typedef struct _tagIMEPROA {
HWND hWnd;
DATETIME InstDate;
UINT wVersion;
BYTE szDescription[50];
BYTE szName[80];
BYTE szOptions[30];
#if defined(TAIWAN)
BYTE szUsrFontName[80];
BOOL fEnable;
#endif
} IMEPROA,*PIMEPROA,NEAR *NPIMEPROA,FAR *LPIMEPROA;
typedef struct _tagIMEPROW {
HWND hWnd;
DATETIME InstDate;
UINT wVersion;
WCHAR szDescription[50];
WCHAR szName[80];
WCHAR szOptions[30];
#if defined(TAIWAN)
WCHAR szUsrFontName[80];
BOOL fEnable;
#endif
} IMEPROW,*PIMEPROW,NEAR *NPIMEPROW,FAR *LPIMEPROW;
#ifdef UNICODE
typedef IMEPROW IMEPRO;
typedef PIMEPROW PIMEPRO;
typedef NPIMEPROW NPIMEPRO;
typedef LPIMEPROW LPIMEPRO;
#else
typedef IMEPROA IMEPRO;
typedef PIMEPROA PIMEPRO;
typedef NPIMEPROA NPIMEPRO;
typedef LPIMEPROA LPIMEPRO;
#endif // UNICODE
BOOL WINAPI IMPGetIMEA(HWND, LPIMEPROA);
BOOL WINAPI IMPGetIMEW(HWND, LPIMEPROW);
#ifdef UNICODE
#define IMPGetIME IMPGetIMEW
#else
#define IMPGetIME IMPGetIMEA
#endif // !UNICODE
BOOL WINAPI IMPQueryIMEA(LPIMEPROA);
BOOL WINAPI IMPQueryIMEW(LPIMEPROW);
#ifdef UNICODE
#define IMPQueryIME IMPQueryIMEW
#else
#define IMPQueryIME IMPQueryIMEA
#endif // !UNICODE
BOOL WINAPI IMPSetIMEA(HWND, LPIMEPROA);
BOOL WINAPI IMPSetIMEW(HWND, LPIMEPROW);
#ifdef UNICODE
#define IMPSetIME IMPSetIMEW
#else
#define IMPSetIME IMPSetIMEA
#endif // !UNICODE
#if defined(TAIWAN) //dchiang 022894 update for $(SDKINC)\winnls32.h
BOOL WINAPI IMPRetrieveIMEA(LPIMEPROA, DWORD);
BOOL WINAPI IMPRetrieveIMEW(LPIMEPROW, DWORD);
#ifdef UNICODE
#define IMPRetrieveIME IMPRetrieveIMEW
#else
#define IMPRetrieveIME IMPRetrieveIMEA
#endif // !UNICODE
BOOL WINAPI WINNLSDefIMEProc(HWND, HDC, DWORD, DWORD, DWORD, DWORD);
BOOL WINAPI ControlIMEMessageA(HWND, LPIMEPROA, DWORD, DWORD, DWORD);
BOOL WINAPI ControlIMEMessageW(HWND, LPIMEPROW, DWORD, DWORD, DWORD);
#ifdef UNICODE
#define ControlIMEMessage ControlIMEMessageW
#else
#define ControlIMEMessage ControlIMEMessageA
#endif // !UNICODE
#endif //dchiang 022894 TAIWAN
UINT WINAPI WINNLSGetIMEHotkey(HWND);
BOOL WINAPI WINNLSEnableIME(HWND, BOOL);
BOOL WINAPI WINNLSGetEnableStatus(HWND);
//
//
#ifdef __BORLANDC__
#pragma option -b.
#include <poppack.h>
#pragma option -b
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#pragma option -b.
#endif // _WINNLS32_