WinUser.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:274k
- #endif /* WINVER >= 0x0400 */
- #define HWND_TOP ((HWND)0)
- #define HWND_BOTTOM ((HWND)1)
- #define HWND_TOPMOST ((HWND)-1)
- #define HWND_NOTOPMOST ((HWND)-2)
- #ifndef NOCTLMGR
- /*
- * WARNING:
- * The following structures must NOT be DWORD padded because they are
- * followed by strings, etc that do not have to be DWORD aligned.
- */
- #include <pshpack2.h>
- /*
- * original NT 32 bit dialog template:
- */
- typedef struct {
- DWORD style;
- DWORD dwExtendedStyle;
- WORD cdit;
- short x;
- short y;
- short cx;
- short cy;
- } DLGTEMPLATE;
- typedef DLGTEMPLATE *LPDLGTEMPLATEA;
- typedef DLGTEMPLATE *LPDLGTEMPLATEW;
- #ifdef UNICODE
- typedef LPDLGTEMPLATEW LPDLGTEMPLATE;
- #else
- typedef LPDLGTEMPLATEA LPDLGTEMPLATE;
- #endif // UNICODE
- typedef CONST DLGTEMPLATE *LPCDLGTEMPLATEA;
- typedef CONST DLGTEMPLATE *LPCDLGTEMPLATEW;
- #ifdef UNICODE
- typedef LPCDLGTEMPLATEW LPCDLGTEMPLATE;
- #else
- typedef LPCDLGTEMPLATEA LPCDLGTEMPLATE;
- #endif // UNICODE
- /*
- * 32 bit Dialog item template.
- */
- typedef struct {
- DWORD style;
- DWORD dwExtendedStyle;
- short x;
- short y;
- short cx;
- short cy;
- WORD id;
- } DLGITEMTEMPLATE;
- typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA;
- typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW;
- #ifdef UNICODE
- typedef PDLGITEMTEMPLATEW PDLGITEMTEMPLATE;
- #else
- typedef PDLGITEMTEMPLATEA PDLGITEMTEMPLATE;
- #endif // UNICODE
- typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA;
- typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW;
- #ifdef UNICODE
- typedef LPDLGITEMTEMPLATEW LPDLGITEMTEMPLATE;
- #else
- typedef LPDLGITEMTEMPLATEA LPDLGITEMTEMPLATE;
- #endif // UNICODE
- #include <poppack.h> /* Resume normal packing */
- WINUSERAPI
- HWND
- WINAPI
- CreateDialogParamA(
- IN HINSTANCE hInstance,
- IN LPCSTR lpTemplateName,
- IN HWND hWndParent,
- IN DLGPROC lpDialogFunc,
- IN LPARAM dwInitParam);
- WINUSERAPI
- HWND
- WINAPI
- CreateDialogParamW(
- IN HINSTANCE hInstance,
- IN LPCWSTR lpTemplateName,
- IN HWND hWndParent,
- IN DLGPROC lpDialogFunc,
- IN LPARAM dwInitParam);
- #ifdef UNICODE
- #define CreateDialogParam CreateDialogParamW
- #else
- #define CreateDialogParam CreateDialogParamA
- #endif // !UNICODE
- WINUSERAPI
- HWND
- WINAPI
- CreateDialogIndirectParamA(
- IN HINSTANCE hInstance,
- IN LPCDLGTEMPLATEA lpTemplate,
- IN HWND hWndParent,
- IN DLGPROC lpDialogFunc,
- IN LPARAM dwInitParam);
- WINUSERAPI
- HWND
- WINAPI
- CreateDialogIndirectParamW(
- IN HINSTANCE hInstance,
- IN LPCDLGTEMPLATEW lpTemplate,
- IN HWND hWndParent,
- IN DLGPROC lpDialogFunc,
- IN LPARAM dwInitParam);
- #ifdef UNICODE
- #define CreateDialogIndirectParam CreateDialogIndirectParamW
- #else
- #define CreateDialogIndirectParam CreateDialogIndirectParamA
- #endif // !UNICODE
- #define CreateDialogA(hInstance, lpName, hWndParent, lpDialogFunc)
- CreateDialogParamA(hInstance, lpName, hWndParent, lpDialogFunc, 0L)
- #define CreateDialogW(hInstance, lpName, hWndParent, lpDialogFunc)
- CreateDialogParamW(hInstance, lpName, hWndParent, lpDialogFunc, 0L)
- #ifdef UNICODE
- #define CreateDialog CreateDialogW
- #else
- #define CreateDialog CreateDialogA
- #endif // !UNICODE
- #define CreateDialogIndirectA(hInstance, lpTemplate, hWndParent, lpDialogFunc)
- CreateDialogIndirectParamA(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L)
- #define CreateDialogIndirectW(hInstance, lpTemplate, hWndParent, lpDialogFunc)
- CreateDialogIndirectParamW(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L)
- #ifdef UNICODE
- #define CreateDialogIndirect CreateDialogIndirectW
- #else
- #define CreateDialogIndirect CreateDialogIndirectA
- #endif // !UNICODE
- WINUSERAPI
- INT_PTR
- WINAPI
- DialogBoxParamA(
- IN HINSTANCE hInstance,
- IN LPCSTR lpTemplateName,
- IN HWND hWndParent,
- IN DLGPROC lpDialogFunc,
- IN LPARAM dwInitParam);
- WINUSERAPI
- INT_PTR
- WINAPI
- DialogBoxParamW(
- IN HINSTANCE hInstance,
- IN LPCWSTR lpTemplateName,
- IN HWND hWndParent,
- IN DLGPROC lpDialogFunc,
- IN LPARAM dwInitParam);
- #ifdef UNICODE
- #define DialogBoxParam DialogBoxParamW
- #else
- #define DialogBoxParam DialogBoxParamA
- #endif // !UNICODE
- WINUSERAPI
- INT_PTR
- WINAPI
- DialogBoxIndirectParamA(
- IN HINSTANCE hInstance,
- IN LPCDLGTEMPLATEA hDialogTemplate,
- IN HWND hWndParent,
- IN DLGPROC lpDialogFunc,
- IN LPARAM dwInitParam);
- WINUSERAPI
- INT_PTR
- WINAPI
- DialogBoxIndirectParamW(
- IN HINSTANCE hInstance,
- IN LPCDLGTEMPLATEW hDialogTemplate,
- IN HWND hWndParent,
- IN DLGPROC lpDialogFunc,
- IN LPARAM dwInitParam);
- #ifdef UNICODE
- #define DialogBoxIndirectParam DialogBoxIndirectParamW
- #else
- #define DialogBoxIndirectParam DialogBoxIndirectParamA
- #endif // !UNICODE
- #define DialogBoxA(hInstance, lpTemplate, hWndParent, lpDialogFunc)
- DialogBoxParamA(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L)
- #define DialogBoxW(hInstance, lpTemplate, hWndParent, lpDialogFunc)
- DialogBoxParamW(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L)
- #ifdef UNICODE
- #define DialogBox DialogBoxW
- #else
- #define DialogBox DialogBoxA
- #endif // !UNICODE
- #define DialogBoxIndirectA(hInstance, lpTemplate, hWndParent, lpDialogFunc)
- DialogBoxIndirectParamA(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L)
- #define DialogBoxIndirectW(hInstance, lpTemplate, hWndParent, lpDialogFunc)
- DialogBoxIndirectParamW(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L)
- #ifdef UNICODE
- #define DialogBoxIndirect DialogBoxIndirectW
- #else
- #define DialogBoxIndirect DialogBoxIndirectA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- EndDialog(
- IN HWND hDlg,
- IN INT_PTR nResult);
- WINUSERAPI
- HWND
- WINAPI
- GetDlgItem(
- IN HWND hDlg,
- IN int nIDDlgItem);
- WINUSERAPI
- BOOL
- WINAPI
- SetDlgItemInt(
- IN HWND hDlg,
- IN int nIDDlgItem,
- IN UINT uValue,
- IN BOOL bSigned);
- WINUSERAPI
- UINT
- WINAPI
- GetDlgItemInt(
- IN HWND hDlg,
- IN int nIDDlgItem,
- OUT BOOL *lpTranslated,
- IN BOOL bSigned);
- WINUSERAPI
- BOOL
- WINAPI
- SetDlgItemTextA(
- IN HWND hDlg,
- IN int nIDDlgItem,
- IN LPCSTR lpString);
- WINUSERAPI
- BOOL
- WINAPI
- SetDlgItemTextW(
- IN HWND hDlg,
- IN int nIDDlgItem,
- IN LPCWSTR lpString);
- #ifdef UNICODE
- #define SetDlgItemText SetDlgItemTextW
- #else
- #define SetDlgItemText SetDlgItemTextA
- #endif // !UNICODE
- WINUSERAPI
- UINT
- WINAPI
- GetDlgItemTextA(
- IN HWND hDlg,
- IN int nIDDlgItem,
- OUT LPSTR lpString,
- IN int nMaxCount);
- WINUSERAPI
- UINT
- WINAPI
- GetDlgItemTextW(
- IN HWND hDlg,
- IN int nIDDlgItem,
- OUT LPWSTR lpString,
- IN int nMaxCount);
- #ifdef UNICODE
- #define GetDlgItemText GetDlgItemTextW
- #else
- #define GetDlgItemText GetDlgItemTextA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- CheckDlgButton(
- IN HWND hDlg,
- IN int nIDButton,
- IN UINT uCheck);
- WINUSERAPI
- BOOL
- WINAPI
- CheckRadioButton(
- IN HWND hDlg,
- IN int nIDFirstButton,
- IN int nIDLastButton,
- IN int nIDCheckButton);
- WINUSERAPI
- UINT
- WINAPI
- IsDlgButtonChecked(
- IN HWND hDlg,
- IN int nIDButton);
- WINUSERAPI
- LRESULT
- WINAPI
- SendDlgItemMessageA(
- IN HWND hDlg,
- IN int nIDDlgItem,
- IN UINT Msg,
- IN WPARAM wParam,
- IN LPARAM lParam);
- WINUSERAPI
- LRESULT
- WINAPI
- SendDlgItemMessageW(
- IN HWND hDlg,
- IN int nIDDlgItem,
- IN UINT Msg,
- IN WPARAM wParam,
- IN LPARAM lParam);
- #ifdef UNICODE
- #define SendDlgItemMessage SendDlgItemMessageW
- #else
- #define SendDlgItemMessage SendDlgItemMessageA
- #endif // !UNICODE
- WINUSERAPI
- HWND
- WINAPI
- GetNextDlgGroupItem(
- IN HWND hDlg,
- IN HWND hCtl,
- IN BOOL bPrevious);
- WINUSERAPI
- HWND
- WINAPI
- GetNextDlgTabItem(
- IN HWND hDlg,
- IN HWND hCtl,
- IN BOOL bPrevious);
- WINUSERAPI
- int
- WINAPI
- GetDlgCtrlID(
- IN HWND hWnd);
- WINUSERAPI
- long
- WINAPI
- GetDialogBaseUnits(VOID);
- WINUSERAPI
- #ifndef _MAC
- LRESULT
- WINAPI
- #else
- LRESULT
- CALLBACK
- #endif
- DefDlgProcA(
- IN HWND hDlg,
- IN UINT Msg,
- IN WPARAM wParam,
- IN LPARAM lParam);
- WINUSERAPI
- #ifndef _MAC
- LRESULT
- WINAPI
- #else
- LRESULT
- CALLBACK
- #endif
- DefDlgProcW(
- IN HWND hDlg,
- IN UINT Msg,
- IN WPARAM wParam,
- IN LPARAM lParam);
- #ifdef UNICODE
- #define DefDlgProc DefDlgProcW
- #else
- #define DefDlgProc DefDlgProcA
- #endif // !UNICODE
- /*
- * Window extra byted needed for private dialog classes.
- */
- #ifndef _MAC
- #define DLGWINDOWEXTRA 30
- #else
- #define DLGWINDOWEXTRA 48
- #endif
- #endif /* !NOCTLMGR */
- #ifndef NOMSG
- WINUSERAPI
- BOOL
- WINAPI
- CallMsgFilterA(
- IN LPMSG lpMsg,
- IN int nCode);
- WINUSERAPI
- BOOL
- WINAPI
- CallMsgFilterW(
- IN LPMSG lpMsg,
- IN int nCode);
- #ifdef UNICODE
- #define CallMsgFilter CallMsgFilterW
- #else
- #define CallMsgFilter CallMsgFilterA
- #endif // !UNICODE
- #endif /* !NOMSG */
- #ifndef NOCLIPBOARD
- /*
- * Clipboard Manager Functions
- */
- WINUSERAPI
- BOOL
- WINAPI
- OpenClipboard(
- IN HWND hWndNewOwner);
- WINUSERAPI
- BOOL
- WINAPI
- CloseClipboard(
- VOID);
- #if(WINVER >= 0x0500)
- WINUSERAPI
- DWORD
- WINAPI
- GetClipboardSequenceNumber(
- VOID);
- #endif /* WINVER >= 0x0500 */
- WINUSERAPI
- HWND
- WINAPI
- GetClipboardOwner(
- VOID);
- WINUSERAPI
- HWND
- WINAPI
- SetClipboardViewer(
- IN HWND hWndNewViewer);
- WINUSERAPI
- HWND
- WINAPI
- GetClipboardViewer(
- VOID);
- WINUSERAPI
- BOOL
- WINAPI
- ChangeClipboardChain(
- IN HWND hWndRemove,
- IN HWND hWndNewNext);
- WINUSERAPI
- HANDLE
- WINAPI
- SetClipboardData(
- IN UINT uFormat,
- IN HANDLE hMem);
- WINUSERAPI
- HANDLE
- WINAPI
- GetClipboardData(
- IN UINT uFormat);
- WINUSERAPI
- UINT
- WINAPI
- RegisterClipboardFormatA(
- IN LPCSTR lpszFormat);
- WINUSERAPI
- UINT
- WINAPI
- RegisterClipboardFormatW(
- IN LPCWSTR lpszFormat);
- #ifdef UNICODE
- #define RegisterClipboardFormat RegisterClipboardFormatW
- #else
- #define RegisterClipboardFormat RegisterClipboardFormatA
- #endif // !UNICODE
- WINUSERAPI
- int
- WINAPI
- CountClipboardFormats(
- VOID);
- WINUSERAPI
- UINT
- WINAPI
- EnumClipboardFormats(
- IN UINT format);
- WINUSERAPI
- int
- WINAPI
- GetClipboardFormatNameA(
- IN UINT format,
- OUT LPSTR lpszFormatName,
- IN int cchMaxCount);
- WINUSERAPI
- int
- WINAPI
- GetClipboardFormatNameW(
- IN UINT format,
- OUT LPWSTR lpszFormatName,
- IN int cchMaxCount);
- #ifdef UNICODE
- #define GetClipboardFormatName GetClipboardFormatNameW
- #else
- #define GetClipboardFormatName GetClipboardFormatNameA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- EmptyClipboard(
- VOID);
- WINUSERAPI
- BOOL
- WINAPI
- IsClipboardFormatAvailable(
- IN UINT format);
- WINUSERAPI
- int
- WINAPI
- GetPriorityClipboardFormat(
- OUT UINT *paFormatPriorityList,
- IN int cFormats);
- WINUSERAPI
- HWND
- WINAPI
- GetOpenClipboardWindow(
- VOID);
- #endif /* !NOCLIPBOARD */
- /*
- * Character Translation Routines
- */
- WINUSERAPI
- BOOL
- WINAPI
- CharToOemA(
- IN LPCSTR lpszSrc,
- OUT LPSTR lpszDst);
- WINUSERAPI
- BOOL
- WINAPI
- CharToOemW(
- IN LPCWSTR lpszSrc,
- OUT LPSTR lpszDst);
- #ifdef UNICODE
- #define CharToOem CharToOemW
- #else
- #define CharToOem CharToOemA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- OemToCharA(
- IN LPCSTR lpszSrc,
- OUT LPSTR lpszDst);
- WINUSERAPI
- BOOL
- WINAPI
- OemToCharW(
- IN LPCSTR lpszSrc,
- OUT LPWSTR lpszDst);
- #ifdef UNICODE
- #define OemToChar OemToCharW
- #else
- #define OemToChar OemToCharA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- CharToOemBuffA(
- IN LPCSTR lpszSrc,
- OUT LPSTR lpszDst,
- IN DWORD cchDstLength);
- WINUSERAPI
- BOOL
- WINAPI
- CharToOemBuffW(
- IN LPCWSTR lpszSrc,
- OUT LPSTR lpszDst,
- IN DWORD cchDstLength);
- #ifdef UNICODE
- #define CharToOemBuff CharToOemBuffW
- #else
- #define CharToOemBuff CharToOemBuffA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- OemToCharBuffA(
- IN LPCSTR lpszSrc,
- OUT LPSTR lpszDst,
- IN DWORD cchDstLength);
- WINUSERAPI
- BOOL
- WINAPI
- OemToCharBuffW(
- IN LPCSTR lpszSrc,
- OUT LPWSTR lpszDst,
- IN DWORD cchDstLength);
- #ifdef UNICODE
- #define OemToCharBuff OemToCharBuffW
- #else
- #define OemToCharBuff OemToCharBuffA
- #endif // !UNICODE
- WINUSERAPI
- LPSTR
- WINAPI
- CharUpperA(
- IN OUT LPSTR lpsz);
- WINUSERAPI
- LPWSTR
- WINAPI
- CharUpperW(
- IN OUT LPWSTR lpsz);
- #ifdef UNICODE
- #define CharUpper CharUpperW
- #else
- #define CharUpper CharUpperA
- #endif // !UNICODE
- WINUSERAPI
- DWORD
- WINAPI
- CharUpperBuffA(
- IN OUT LPSTR lpsz,
- IN DWORD cchLength);
- WINUSERAPI
- DWORD
- WINAPI
- CharUpperBuffW(
- IN OUT LPWSTR lpsz,
- IN DWORD cchLength);
- #ifdef UNICODE
- #define CharUpperBuff CharUpperBuffW
- #else
- #define CharUpperBuff CharUpperBuffA
- #endif // !UNICODE
- WINUSERAPI
- LPSTR
- WINAPI
- CharLowerA(
- IN OUT LPSTR lpsz);
- WINUSERAPI
- LPWSTR
- WINAPI
- CharLowerW(
- IN OUT LPWSTR lpsz);
- #ifdef UNICODE
- #define CharLower CharLowerW
- #else
- #define CharLower CharLowerA
- #endif // !UNICODE
- WINUSERAPI
- DWORD
- WINAPI
- CharLowerBuffA(
- IN OUT LPSTR lpsz,
- IN DWORD cchLength);
- WINUSERAPI
- DWORD
- WINAPI
- CharLowerBuffW(
- IN OUT LPWSTR lpsz,
- IN DWORD cchLength);
- #ifdef UNICODE
- #define CharLowerBuff CharLowerBuffW
- #else
- #define CharLowerBuff CharLowerBuffA
- #endif // !UNICODE
- WINUSERAPI
- LPSTR
- WINAPI
- CharNextA(
- IN LPCSTR lpsz);
- WINUSERAPI
- LPWSTR
- WINAPI
- CharNextW(
- IN LPCWSTR lpsz);
- #ifdef UNICODE
- #define CharNext CharNextW
- #else
- #define CharNext CharNextA
- #endif // !UNICODE
- WINUSERAPI
- LPSTR
- WINAPI
- CharPrevA(
- IN LPCSTR lpszStart,
- IN LPCSTR lpszCurrent);
- WINUSERAPI
- LPWSTR
- WINAPI
- CharPrevW(
- IN LPCWSTR lpszStart,
- IN LPCWSTR lpszCurrent);
- #ifdef UNICODE
- #define CharPrev CharPrevW
- #else
- #define CharPrev CharPrevA
- #endif // !UNICODE
- #if(WINVER >= 0x0400)
- WINUSERAPI
- LPSTR
- WINAPI
- CharNextExA(
- IN WORD CodePage,
- IN LPCSTR lpCurrentChar,
- IN DWORD dwFlags);
- WINUSERAPI
- LPSTR
- WINAPI
- CharPrevExA(
- IN WORD CodePage,
- IN LPCSTR lpStart,
- IN LPCSTR lpCurrentChar,
- IN DWORD dwFlags);
- #endif /* WINVER >= 0x0400 */
- /*
- * Compatibility defines for character translation routines
- */
- #define AnsiToOem CharToOemA
- #define OemToAnsi OemToCharA
- #define AnsiToOemBuff CharToOemBuffA
- #define OemToAnsiBuff OemToCharBuffA
- #define AnsiUpper CharUpperA
- #define AnsiUpperBuff CharUpperBuffA
- #define AnsiLower CharLowerA
- #define AnsiLowerBuff CharLowerBuffA
- #define AnsiNext CharNextA
- #define AnsiPrev CharPrevA
- #ifndef NOLANGUAGE
- /*
- * Language dependent Routines
- */
- WINUSERAPI
- BOOL
- WINAPI
- IsCharAlphaA(
- IN CHAR ch);
- WINUSERAPI
- BOOL
- WINAPI
- IsCharAlphaW(
- IN WCHAR ch);
- #ifdef UNICODE
- #define IsCharAlpha IsCharAlphaW
- #else
- #define IsCharAlpha IsCharAlphaA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- IsCharAlphaNumericA(
- IN CHAR ch);
- WINUSERAPI
- BOOL
- WINAPI
- IsCharAlphaNumericW(
- IN WCHAR ch);
- #ifdef UNICODE
- #define IsCharAlphaNumeric IsCharAlphaNumericW
- #else
- #define IsCharAlphaNumeric IsCharAlphaNumericA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- IsCharUpperA(
- IN CHAR ch);
- WINUSERAPI
- BOOL
- WINAPI
- IsCharUpperW(
- IN WCHAR ch);
- #ifdef UNICODE
- #define IsCharUpper IsCharUpperW
- #else
- #define IsCharUpper IsCharUpperA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- IsCharLowerA(
- IN CHAR ch);
- WINUSERAPI
- BOOL
- WINAPI
- IsCharLowerW(
- IN WCHAR ch);
- #ifdef UNICODE
- #define IsCharLower IsCharLowerW
- #else
- #define IsCharLower IsCharLowerA
- #endif // !UNICODE
- #endif /* !NOLANGUAGE */
- WINUSERAPI
- HWND
- WINAPI
- SetFocus(
- IN HWND hWnd);
- WINUSERAPI
- HWND
- WINAPI
- GetActiveWindow(
- VOID);
- WINUSERAPI
- HWND
- WINAPI
- GetFocus(
- VOID);
- WINUSERAPI
- UINT
- WINAPI
- GetKBCodePage(
- VOID);
- WINUSERAPI
- SHORT
- WINAPI
- GetKeyState(
- IN int nVirtKey);
- WINUSERAPI
- SHORT
- WINAPI
- GetAsyncKeyState(
- IN int vKey);
- WINUSERAPI
- BOOL
- WINAPI
- GetKeyboardState(
- OUT PBYTE lpKeyState);
- WINUSERAPI
- BOOL
- WINAPI
- SetKeyboardState(
- IN LPBYTE lpKeyState);
- WINUSERAPI
- int
- WINAPI
- GetKeyNameTextA(
- IN LONG lParam,
- OUT LPSTR lpString,
- IN int nSize
- );
- WINUSERAPI
- int
- WINAPI
- GetKeyNameTextW(
- IN LONG lParam,
- OUT LPWSTR lpString,
- IN int nSize
- );
- #ifdef UNICODE
- #define GetKeyNameText GetKeyNameTextW
- #else
- #define GetKeyNameText GetKeyNameTextA
- #endif // !UNICODE
- WINUSERAPI
- int
- WINAPI
- GetKeyboardType(
- IN int nTypeFlag);
- WINUSERAPI
- int
- WINAPI
- ToAscii(
- IN UINT uVirtKey,
- IN UINT uScanCode,
- IN CONST BYTE *lpKeyState,
- OUT LPWORD lpChar,
- IN UINT uFlags);
- #if(WINVER >= 0x0400)
- WINUSERAPI
- int
- WINAPI
- ToAsciiEx(
- IN UINT uVirtKey,
- IN UINT uScanCode,
- IN CONST BYTE *lpKeyState,
- OUT LPWORD lpChar,
- IN UINT uFlags,
- IN HKL dwhkl);
- #endif /* WINVER >= 0x0400 */
- WINUSERAPI
- int
- WINAPI
- ToUnicode(
- IN UINT wVirtKey,
- IN UINT wScanCode,
- IN CONST BYTE *lpKeyState,
- OUT LPWSTR pwszBuff,
- IN int cchBuff,
- IN UINT wFlags);
- WINUSERAPI
- DWORD
- WINAPI
- OemKeyScan(
- IN WORD wOemChar);
- WINUSERAPI
- SHORT
- WINAPI
- VkKeyScanA(
- IN CHAR ch);
- WINUSERAPI
- SHORT
- WINAPI
- VkKeyScanW(
- IN WCHAR ch);
- #ifdef UNICODE
- #define VkKeyScan VkKeyScanW
- #else
- #define VkKeyScan VkKeyScanA
- #endif // !UNICODE
- #if(WINVER >= 0x0400)
- WINUSERAPI
- SHORT
- WINAPI
- VkKeyScanExA(
- IN CHAR ch,
- IN HKL dwhkl);
- WINUSERAPI
- SHORT
- WINAPI
- VkKeyScanExW(
- IN WCHAR ch,
- IN HKL dwhkl);
- #ifdef UNICODE
- #define VkKeyScanEx VkKeyScanExW
- #else
- #define VkKeyScanEx VkKeyScanExA
- #endif // !UNICODE
- #endif /* WINVER >= 0x0400 */
- #define KEYEVENTF_EXTENDEDKEY 0x0001
- #define KEYEVENTF_KEYUP 0x0002
- #if(_WIN32_WINNT >= 0x0500)
- #define KEYEVENTF_UNICODE 0x0004
- #define KEYEVENTF_SCANCODE 0x0008
- #endif /* _WIN32_WINNT >= 0x0500 */
- WINUSERAPI
- VOID
- WINAPI
- keybd_event(
- IN BYTE bVk,
- IN BYTE bScan,
- IN DWORD dwFlags,
- IN ULONG_PTR dwExtraInfo);
- #define MOUSEEVENTF_MOVE 0x0001 /* mouse move */
- #define MOUSEEVENTF_LEFTDOWN 0x0002 /* left button down */
- #define MOUSEEVENTF_LEFTUP 0x0004 /* left button up */
- #define MOUSEEVENTF_RIGHTDOWN 0x0008 /* right button down */
- #define MOUSEEVENTF_RIGHTUP 0x0010 /* right button up */
- #define MOUSEEVENTF_MIDDLEDOWN 0x0020 /* middle button down */
- #define MOUSEEVENTF_MIDDLEUP 0x0040 /* middle button up */
- #define MOUSEEVENTF_XDOWN 0x0080 /* x button down */
- #define MOUSEEVENTF_XUP 0x0100 /* x button down */
- #define MOUSEEVENTF_WHEEL 0x0800 /* wheel button rolled */
- #define MOUSEEVENTF_VIRTUALDESK 0x4000 /* map to entire virtual desktop */
- #define MOUSEEVENTF_ABSOLUTE 0x8000 /* absolute move */
- WINUSERAPI
- VOID
- WINAPI
- mouse_event(
- IN DWORD dwFlags,
- IN DWORD dx,
- IN DWORD dy,
- IN DWORD dwData,
- IN ULONG_PTR dwExtraInfo);
- #if (_WIN32_WINNT > 0x0400)
- typedef struct tagMOUSEINPUT {
- LONG dx;
- LONG dy;
- DWORD mouseData;
- DWORD dwFlags;
- DWORD time;
- ULONG_PTR dwExtraInfo;
- } MOUSEINPUT, *PMOUSEINPUT, FAR* LPMOUSEINPUT;
- typedef struct tagKEYBDINPUT {
- WORD wVk;
- WORD wScan;
- DWORD dwFlags;
- DWORD time;
- ULONG_PTR dwExtraInfo;
- } KEYBDINPUT, *PKEYBDINPUT, FAR* LPKEYBDINPUT;
- typedef struct tagHARDWAREINPUT {
- DWORD uMsg;
- WORD wParamL;
- WORD wParamH;
- } HARDWAREINPUT, *PHARDWAREINPUT, FAR* LPHARDWAREINPUT;
- #define INPUT_MOUSE 0
- #define INPUT_KEYBOARD 1
- #define INPUT_HARDWARE 2
- typedef struct tagINPUT {
- DWORD type;
- union
- {
- MOUSEINPUT mi;
- KEYBDINPUT ki;
- HARDWAREINPUT hi;
- };
- } INPUT, *PINPUT, FAR* LPINPUT;
- WINUSERAPI
- UINT
- WINAPI
- SendInput(
- IN UINT cInputs, // number of input in the array
- IN LPINPUT pInputs, // array of inputs
- IN int cbSize); // sizeof(INPUT)
- #endif // (_WIN32_WINNT > 0x0400)
- #if(_WIN32_WINNT >= 0x0500)
- typedef struct tagLASTINPUTINFO {
- UINT cbSize;
- DWORD dwTime;
- } LASTINPUTINFO, * PLASTINPUTINFO;
- WINUSERAPI
- BOOL
- WINAPI
- GetLastInputInfo(
- OUT PLASTINPUTINFO plii);
- #endif /* _WIN32_WINNT >= 0x0500 */
- WINUSERAPI
- UINT
- WINAPI
- MapVirtualKeyA(
- IN UINT uCode,
- IN UINT uMapType);
- WINUSERAPI
- UINT
- WINAPI
- MapVirtualKeyW(
- IN UINT uCode,
- IN UINT uMapType);
- #ifdef UNICODE
- #define MapVirtualKey MapVirtualKeyW
- #else
- #define MapVirtualKey MapVirtualKeyA
- #endif // !UNICODE
- #if(WINVER >= 0x0400)
- WINUSERAPI
- UINT
- WINAPI
- MapVirtualKeyExA(
- IN UINT uCode,
- IN UINT uMapType,
- IN HKL dwhkl);
- WINUSERAPI
- UINT
- WINAPI
- MapVirtualKeyExW(
- IN UINT uCode,
- IN UINT uMapType,
- IN HKL dwhkl);
- #ifdef UNICODE
- #define MapVirtualKeyEx MapVirtualKeyExW
- #else
- #define MapVirtualKeyEx MapVirtualKeyExA
- #endif // !UNICODE
- #endif /* WINVER >= 0x0400 */
- WINUSERAPI
- BOOL
- WINAPI
- GetInputState(
- VOID);
- WINUSERAPI
- DWORD
- WINAPI
- GetQueueStatus(
- IN UINT flags);
- WINUSERAPI
- HWND
- WINAPI
- GetCapture(
- VOID);
- WINUSERAPI
- HWND
- WINAPI
- SetCapture(
- IN HWND hWnd);
- WINUSERAPI
- BOOL
- WINAPI
- ReleaseCapture(
- VOID);
- WINUSERAPI
- DWORD
- WINAPI
- MsgWaitForMultipleObjects(
- IN DWORD nCount,
- IN CONST HANDLE *pHandles,
- IN BOOL fWaitAll,
- IN DWORD dwMilliseconds,
- IN DWORD dwWakeMask);
- WINUSERAPI
- DWORD
- WINAPI
- MsgWaitForMultipleObjectsEx(
- IN DWORD nCount,
- IN CONST HANDLE *pHandles,
- IN DWORD dwMilliseconds,
- IN DWORD dwWakeMask,
- IN DWORD dwFlags);
- #define MWMO_WAITALL 0x0001
- #define MWMO_ALERTABLE 0x0002
- #define MWMO_INPUTAVAILABLE 0x0004
- /*
- * Queue status flags for GetQueueStatus() and MsgWaitForMultipleObjects()
- */
- #define QS_KEY 0x0001
- #define QS_MOUSEMOVE 0x0002
- #define QS_MOUSEBUTTON 0x0004
- #define QS_POSTMESSAGE 0x0008
- #define QS_TIMER 0x0010
- #define QS_PAINT 0x0020
- #define QS_SENDMESSAGE 0x0040
- #define QS_HOTKEY 0x0080
- #define QS_ALLPOSTMESSAGE 0x0100
- #if(_WIN32_WINNT >= 0x0501)
- #define QS_RAWINPUT 0x0400
- #endif /* _WIN32_WINNT >= 0x0501 */
- #define QS_MOUSE (QS_MOUSEMOVE |
- QS_MOUSEBUTTON)
- #if (_WIN32_WINNT >= 0x0501)
- #define QS_INPUT (QS_MOUSE |
- QS_KEY |
- QS_RAWINPUT)
- #else
- #define QS_INPUT (QS_MOUSE |
- QS_KEY)
- #endif // (_WIN32_WINNT >= 0x0501)
- #define QS_ALLEVENTS (QS_INPUT |
- QS_POSTMESSAGE |
- QS_TIMER |
- QS_PAINT |
- QS_HOTKEY)
- #define QS_ALLINPUT (QS_INPUT |
- QS_POSTMESSAGE |
- QS_TIMER |
- QS_PAINT |
- QS_HOTKEY |
- QS_SENDMESSAGE)
- /*
- * Windows Functions
- */
- WINUSERAPI
- UINT_PTR
- WINAPI
- SetTimer(
- IN HWND hWnd,
- IN UINT_PTR nIDEvent,
- IN UINT uElapse,
- IN TIMERPROC lpTimerFunc);
- WINUSERAPI
- BOOL
- WINAPI
- KillTimer(
- IN HWND hWnd,
- IN UINT_PTR uIDEvent);
- WINUSERAPI
- BOOL
- WINAPI
- IsWindowUnicode(
- IN HWND hWnd);
- WINUSERAPI
- BOOL
- WINAPI
- EnableWindow(
- IN HWND hWnd,
- IN BOOL bEnable);
- WINUSERAPI
- BOOL
- WINAPI
- IsWindowEnabled(
- IN HWND hWnd);
- WINUSERAPI
- HACCEL
- WINAPI
- LoadAcceleratorsA(
- IN HINSTANCE hInstance,
- IN LPCSTR lpTableName);
- WINUSERAPI
- HACCEL
- WINAPI
- LoadAcceleratorsW(
- IN HINSTANCE hInstance,
- IN LPCWSTR lpTableName);
- #ifdef UNICODE
- #define LoadAccelerators LoadAcceleratorsW
- #else
- #define LoadAccelerators LoadAcceleratorsA
- #endif // !UNICODE
- WINUSERAPI
- HACCEL
- WINAPI
- CreateAcceleratorTableA(
- IN LPACCEL, IN int);
- WINUSERAPI
- HACCEL
- WINAPI
- CreateAcceleratorTableW(
- IN LPACCEL, IN int);
- #ifdef UNICODE
- #define CreateAcceleratorTable CreateAcceleratorTableW
- #else
- #define CreateAcceleratorTable CreateAcceleratorTableA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- DestroyAcceleratorTable(
- IN HACCEL hAccel);
- WINUSERAPI
- int
- WINAPI
- CopyAcceleratorTableA(
- IN HACCEL hAccelSrc,
- OUT LPACCEL lpAccelDst,
- IN int cAccelEntries);
- WINUSERAPI
- int
- WINAPI
- CopyAcceleratorTableW(
- IN HACCEL hAccelSrc,
- OUT LPACCEL lpAccelDst,
- IN int cAccelEntries);
- #ifdef UNICODE
- #define CopyAcceleratorTable CopyAcceleratorTableW
- #else
- #define CopyAcceleratorTable CopyAcceleratorTableA
- #endif // !UNICODE
- #ifndef NOMSG
- WINUSERAPI
- int
- WINAPI
- TranslateAcceleratorA(
- IN HWND hWnd,
- IN HACCEL hAccTable,
- IN LPMSG lpMsg);
- WINUSERAPI
- int
- WINAPI
- TranslateAcceleratorW(
- IN HWND hWnd,
- IN HACCEL hAccTable,
- IN LPMSG lpMsg);
- #ifdef UNICODE
- #define TranslateAccelerator TranslateAcceleratorW
- #else
- #define TranslateAccelerator TranslateAcceleratorA
- #endif // !UNICODE
- #endif /* !NOMSG */
- #ifndef NOSYSMETRICS
- /*
- * GetSystemMetrics() codes
- */
- #define SM_CXSCREEN 0
- #define SM_CYSCREEN 1
- #define SM_CXVSCROLL 2
- #define SM_CYHSCROLL 3
- #define SM_CYCAPTION 4
- #define SM_CXBORDER 5
- #define SM_CYBORDER 6
- #define SM_CXDLGFRAME 7
- #define SM_CYDLGFRAME 8
- #define SM_CYVTHUMB 9
- #define SM_CXHTHUMB 10
- #define SM_CXICON 11
- #define SM_CYICON 12
- #define SM_CXCURSOR 13
- #define SM_CYCURSOR 14
- #define SM_CYMENU 15
- #define SM_CXFULLSCREEN 16
- #define SM_CYFULLSCREEN 17
- #define SM_CYKANJIWINDOW 18
- #define SM_MOUSEPRESENT 19
- #define SM_CYVSCROLL 20
- #define SM_CXHSCROLL 21
- #define SM_DEBUG 22
- #define SM_SWAPBUTTON 23
- #define SM_RESERVED1 24
- #define SM_RESERVED2 25
- #define SM_RESERVED3 26
- #define SM_RESERVED4 27
- #define SM_CXMIN 28
- #define SM_CYMIN 29
- #define SM_CXSIZE 30
- #define SM_CYSIZE 31
- #define SM_CXFRAME 32
- #define SM_CYFRAME 33
- #define SM_CXMINTRACK 34
- #define SM_CYMINTRACK 35
- #define SM_CXDOUBLECLK 36
- #define SM_CYDOUBLECLK 37
- #define SM_CXICONSPACING 38
- #define SM_CYICONSPACING 39
- #define SM_MENUDROPALIGNMENT 40
- #define SM_PENWINDOWS 41
- #define SM_DBCSENABLED 42
- #define SM_CMOUSEBUTTONS 43
- #if(WINVER >= 0x0400)
- #define SM_CXFIXEDFRAME SM_CXDLGFRAME /* ;win40 name change */
- #define SM_CYFIXEDFRAME SM_CYDLGFRAME /* ;win40 name change */
- #define SM_CXSIZEFRAME SM_CXFRAME /* ;win40 name change */
- #define SM_CYSIZEFRAME SM_CYFRAME /* ;win40 name change */
- #define SM_SECURE 44
- #define SM_CXEDGE 45
- #define SM_CYEDGE 46
- #define SM_CXMINSPACING 47
- #define SM_CYMINSPACING 48
- #define SM_CXSMICON 49
- #define SM_CYSMICON 50
- #define SM_CYSMCAPTION 51
- #define SM_CXSMSIZE 52
- #define SM_CYSMSIZE 53
- #define SM_CXMENUSIZE 54
- #define SM_CYMENUSIZE 55
- #define SM_ARRANGE 56
- #define SM_CXMINIMIZED 57
- #define SM_CYMINIMIZED 58
- #define SM_CXMAXTRACK 59
- #define SM_CYMAXTRACK 60
- #define SM_CXMAXIMIZED 61
- #define SM_CYMAXIMIZED 62
- #define SM_NETWORK 63
- #define SM_CLEANBOOT 67
- #define SM_CXDRAG 68
- #define SM_CYDRAG 69
- #endif /* WINVER >= 0x0400 */
- #define SM_SHOWSOUNDS 70
- #if(WINVER >= 0x0400)
- #define SM_CXMENUCHECK 71 /* Use instead of GetMenuCheckMarkDimensions()! */
- #define SM_CYMENUCHECK 72
- #define SM_SLOWMACHINE 73
- #define SM_MIDEASTENABLED 74
- #endif /* WINVER >= 0x0400 */
- #if (WINVER >= 0x0500) || (_WIN32_WINNT >= 0x0400)
- #define SM_MOUSEWHEELPRESENT 75
- #endif
- #if(WINVER >= 0x0500)
- #define SM_XVIRTUALSCREEN 76
- #define SM_YVIRTUALSCREEN 77
- #define SM_CXVIRTUALSCREEN 78
- #define SM_CYVIRTUALSCREEN 79
- #define SM_CMONITORS 80
- #define SM_SAMEDISPLAYFORMAT 81
- #endif /* WINVER >= 0x0500 */
- #if(_WIN32_WINNT >= 0x0500)
- #define SM_IMMENABLED 82
- #endif /* _WIN32_WINNT >= 0x0500 */
- #if(_WIN32_WINNT >= 0x0501)
- #define SM_CXFOCUSBORDER 83
- #define SM_CYFOCUSBORDER 84
- #endif /* _WIN32_WINNT >= 0x0501 */
- #if (WINVER < 0x0500) && (!defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0400))
- #define SM_CMETRICS 76
- #else
- #define SM_CMETRICS 86
- #endif
- #if(WINVER >= 0x0500)
- #define SM_REMOTESESSION 0x1000
- #if(_WIN32_WINNT >= 0x0501)
- #define SM_SHUTTINGDOWN 0x2000
- #endif /* _WIN32_WINNT >= 0x0501 */
- #endif /* WINVER >= 0x0500 */
- WINUSERAPI
- int
- WINAPI
- GetSystemMetrics(
- IN int nIndex);
- #endif /* !NOSYSMETRICS */
- #ifndef NOMENUS
- WINUSERAPI
- HMENU
- WINAPI
- LoadMenuA(
- IN HINSTANCE hInstance,
- IN LPCSTR lpMenuName);
- WINUSERAPI
- HMENU
- WINAPI
- LoadMenuW(
- IN HINSTANCE hInstance,
- IN LPCWSTR lpMenuName);
- #ifdef UNICODE
- #define LoadMenu LoadMenuW
- #else
- #define LoadMenu LoadMenuA
- #endif // !UNICODE
- WINUSERAPI
- HMENU
- WINAPI
- LoadMenuIndirectA(
- IN CONST MENUTEMPLATEA *lpMenuTemplate);
- WINUSERAPI
- HMENU
- WINAPI
- LoadMenuIndirectW(
- IN CONST MENUTEMPLATEW *lpMenuTemplate);
- #ifdef UNICODE
- #define LoadMenuIndirect LoadMenuIndirectW
- #else
- #define LoadMenuIndirect LoadMenuIndirectA
- #endif // !UNICODE
- WINUSERAPI
- HMENU
- WINAPI
- GetMenu(
- IN HWND hWnd);
- WINUSERAPI
- BOOL
- WINAPI
- SetMenu(
- IN HWND hWnd,
- IN HMENU hMenu);
- WINUSERAPI
- BOOL
- WINAPI
- ChangeMenuA(
- IN HMENU hMenu,
- IN UINT cmd,
- IN LPCSTR lpszNewItem,
- IN UINT cmdInsert,
- IN UINT flags);
- WINUSERAPI
- BOOL
- WINAPI
- ChangeMenuW(
- IN HMENU hMenu,
- IN UINT cmd,
- IN LPCWSTR lpszNewItem,
- IN UINT cmdInsert,
- IN UINT flags);
- #ifdef UNICODE
- #define ChangeMenu ChangeMenuW
- #else
- #define ChangeMenu ChangeMenuA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- HiliteMenuItem(
- IN HWND hWnd,
- IN HMENU hMenu,
- IN UINT uIDHiliteItem,
- IN UINT uHilite);
- WINUSERAPI
- int
- WINAPI
- GetMenuStringA(
- IN HMENU hMenu,
- IN UINT uIDItem,
- OUT LPSTR lpString,
- IN int nMaxCount,
- IN UINT uFlag);
- WINUSERAPI
- int
- WINAPI
- GetMenuStringW(
- IN HMENU hMenu,
- IN UINT uIDItem,
- OUT LPWSTR lpString,
- IN int nMaxCount,
- IN UINT uFlag);
- #ifdef UNICODE
- #define GetMenuString GetMenuStringW
- #else
- #define GetMenuString GetMenuStringA
- #endif // !UNICODE
- WINUSERAPI
- UINT
- WINAPI
- GetMenuState(
- IN HMENU hMenu,
- IN UINT uId,
- IN UINT uFlags);
- WINUSERAPI
- BOOL
- WINAPI
- DrawMenuBar(
- IN HWND hWnd);
- #if(_WIN32_WINNT >= 0x0501)
- #define PMB_ACTIVE 0x00000001
- #endif /* _WIN32_WINNT >= 0x0501 */
- WINUSERAPI
- HMENU
- WINAPI
- GetSystemMenu(
- IN HWND hWnd,
- IN BOOL bRevert);
- WINUSERAPI
- HMENU
- WINAPI
- CreateMenu(
- VOID);
- WINUSERAPI
- HMENU
- WINAPI
- CreatePopupMenu(
- VOID);
- WINUSERAPI
- BOOL
- WINAPI
- DestroyMenu(
- IN HMENU hMenu);
- WINUSERAPI
- DWORD
- WINAPI
- CheckMenuItem(
- IN HMENU hMenu,
- IN UINT uIDCheckItem,
- IN UINT uCheck);
- WINUSERAPI
- BOOL
- WINAPI
- EnableMenuItem(
- IN HMENU hMenu,
- IN UINT uIDEnableItem,
- IN UINT uEnable);
- WINUSERAPI
- HMENU
- WINAPI
- GetSubMenu(
- IN HMENU hMenu,
- IN int nPos);
- WINUSERAPI
- UINT
- WINAPI
- GetMenuItemID(
- IN HMENU hMenu,
- IN int nPos);
- WINUSERAPI
- int
- WINAPI
- GetMenuItemCount(
- IN HMENU hMenu);
- WINUSERAPI
- BOOL
- WINAPI
- InsertMenuA(
- IN HMENU hMenu,
- IN UINT uPosition,
- IN UINT uFlags,
- IN UINT_PTR uIDNewItem,
- IN LPCSTR lpNewItem
- );
- WINUSERAPI
- BOOL
- WINAPI
- InsertMenuW(
- IN HMENU hMenu,
- IN UINT uPosition,
- IN UINT uFlags,
- IN UINT_PTR uIDNewItem,
- IN LPCWSTR lpNewItem
- );
- #ifdef UNICODE
- #define InsertMenu InsertMenuW
- #else
- #define InsertMenu InsertMenuA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- AppendMenuA(
- IN HMENU hMenu,
- IN UINT uFlags,
- IN UINT_PTR uIDNewItem,
- IN LPCSTR lpNewItem
- );
- WINUSERAPI
- BOOL
- WINAPI
- AppendMenuW(
- IN HMENU hMenu,
- IN UINT uFlags,
- IN UINT_PTR uIDNewItem,
- IN LPCWSTR lpNewItem
- );
- #ifdef UNICODE
- #define AppendMenu AppendMenuW
- #else
- #define AppendMenu AppendMenuA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- ModifyMenuA(
- IN HMENU hMnu,
- IN UINT uPosition,
- IN UINT uFlags,
- IN UINT_PTR uIDNewItem,
- IN LPCSTR lpNewItem
- );
- WINUSERAPI
- BOOL
- WINAPI
- ModifyMenuW(
- IN HMENU hMnu,
- IN UINT uPosition,
- IN UINT uFlags,
- IN UINT_PTR uIDNewItem,
- IN LPCWSTR lpNewItem
- );
- #ifdef UNICODE
- #define ModifyMenu ModifyMenuW
- #else
- #define ModifyMenu ModifyMenuA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI RemoveMenu(
- IN HMENU hMenu,
- IN UINT uPosition,
- IN UINT uFlags);
- WINUSERAPI
- BOOL
- WINAPI
- DeleteMenu(
- IN HMENU hMenu,
- IN UINT uPosition,
- IN UINT uFlags);
- WINUSERAPI
- BOOL
- WINAPI
- SetMenuItemBitmaps(
- IN HMENU hMenu,
- IN UINT uPosition,
- IN UINT uFlags,
- IN HBITMAP hBitmapUnchecked,
- IN HBITMAP hBitmapChecked);
- WINUSERAPI
- LONG
- WINAPI
- GetMenuCheckMarkDimensions(
- VOID);
- WINUSERAPI
- BOOL
- WINAPI
- TrackPopupMenu(
- IN HMENU hMenu,
- IN UINT uFlags,
- IN int x,
- IN int y,
- IN int nReserved,
- IN HWND hWnd,
- IN CONST RECT *prcRect);
- #if(WINVER >= 0x0400)
- /* return codes for WM_MENUCHAR */
- #define MNC_IGNORE 0
- #define MNC_CLOSE 1
- #define MNC_EXECUTE 2
- #define MNC_SELECT 3
- typedef struct tagTPMPARAMS
- {
- UINT cbSize; /* Size of structure */
- RECT rcExclude; /* Screen coordinates of rectangle to exclude when positioning */
- } TPMPARAMS;
- typedef TPMPARAMS FAR *LPTPMPARAMS;
- WINUSERAPI
- BOOL
- WINAPI
- TrackPopupMenuEx(
- IN HMENU,
- IN UINT,
- IN int,
- IN int,
- IN HWND,
- IN LPTPMPARAMS);
- #endif /* WINVER >= 0x0400 */
- #if(WINVER >= 0x0500)
- #define MNS_NOCHECK 0x80000000
- #define MNS_MODELESS 0x40000000
- #define MNS_DRAGDROP 0x20000000
- #define MNS_AUTODISMISS 0x10000000
- #define MNS_NOTIFYBYPOS 0x08000000
- #define MNS_CHECKORBMP 0x04000000
- #define MIM_MAXHEIGHT 0x00000001
- #define MIM_BACKGROUND 0x00000002
- #define MIM_HELPID 0x00000004
- #define MIM_MENUDATA 0x00000008
- #define MIM_STYLE 0x00000010
- #define MIM_APPLYTOSUBMENUS 0x80000000
- typedef struct tagMENUINFO
- {
- DWORD cbSize;
- DWORD fMask;
- DWORD dwStyle;
- UINT cyMax;
- HBRUSH hbrBack;
- DWORD dwContextHelpID;
- ULONG_PTR dwMenuData;
- } MENUINFO, FAR *LPMENUINFO;
- typedef MENUINFO CONST FAR *LPCMENUINFO;
- WINUSERAPI
- BOOL
- WINAPI
- GetMenuInfo(
- IN HMENU,
- OUT LPMENUINFO);
- WINUSERAPI
- BOOL
- WINAPI
- SetMenuInfo(
- IN HMENU,
- IN LPCMENUINFO);
- WINUSERAPI
- BOOL
- WINAPI
- EndMenu(
- VOID);
- /*
- * WM_MENUDRAG return values.
- */
- #define MND_CONTINUE 0
- #define MND_ENDMENU 1
- typedef struct tagMENUGETOBJECTINFO
- {
- DWORD dwFlags;
- UINT uPos;
- HMENU hmenu;
- PVOID riid;
- PVOID pvObj;
- } MENUGETOBJECTINFO, * PMENUGETOBJECTINFO;
- /*
- * MENUGETOBJECTINFO dwFlags values
- */
- #define MNGOF_TOPGAP 0x00000001
- #define MNGOF_BOTTOMGAP 0x00000002
- /*
- * WM_MENUGETOBJECT return values
- */
- #define MNGO_NOINTERFACE 0x00000000
- #define MNGO_NOERROR 0x00000001
- #endif /* WINVER >= 0x0500 */
- #if(WINVER >= 0x0400)
- #define MIIM_STATE 0x00000001
- #define MIIM_ID 0x00000002
- #define MIIM_SUBMENU 0x00000004
- #define MIIM_CHECKMARKS 0x00000008
- #define MIIM_TYPE 0x00000010
- #define MIIM_DATA 0x00000020
- #endif /* WINVER >= 0x0400 */
- #if(WINVER >= 0x0500)
- #define MIIM_STRING 0x00000040
- #define MIIM_BITMAP 0x00000080
- #define MIIM_FTYPE 0x00000100
- #define HBMMENU_CALLBACK ((HBITMAP) -1)
- #define HBMMENU_SYSTEM ((HBITMAP) 1)
- #define HBMMENU_MBAR_RESTORE ((HBITMAP) 2)
- #define HBMMENU_MBAR_MINIMIZE ((HBITMAP) 3)
- #define HBMMENU_MBAR_CLOSE ((HBITMAP) 5)
- #define HBMMENU_MBAR_CLOSE_D ((HBITMAP) 6)
- #define HBMMENU_MBAR_MINIMIZE_D ((HBITMAP) 7)
- #define HBMMENU_POPUP_CLOSE ((HBITMAP) 8)
- #define HBMMENU_POPUP_RESTORE ((HBITMAP) 9)
- #define HBMMENU_POPUP_MAXIMIZE ((HBITMAP) 10)
- #define HBMMENU_POPUP_MINIMIZE ((HBITMAP) 11)
- #endif /* WINVER >= 0x0500 */
- #if(WINVER >= 0x0400)
- typedef struct tagMENUITEMINFOA
- {
- UINT cbSize;
- UINT fMask;
- UINT fType; // used if MIIM_TYPE (4.0) or MIIM_FTYPE (>4.0)
- UINT fState; // used if MIIM_STATE
- UINT wID; // used if MIIM_ID
- HMENU hSubMenu; // used if MIIM_SUBMENU
- HBITMAP hbmpChecked; // used if MIIM_CHECKMARKS
- HBITMAP hbmpUnchecked; // used if MIIM_CHECKMARKS
- ULONG_PTR dwItemData; // used if MIIM_DATA
- LPSTR dwTypeData; // used if MIIM_TYPE (4.0) or MIIM_STRING (>4.0)
- UINT cch; // used if MIIM_TYPE (4.0) or MIIM_STRING (>4.0)
- #if(WINVER >= 0x0500)
- HBITMAP hbmpItem; // used if MIIM_BITMAP
- #endif /* WINVER >= 0x0500 */
- } MENUITEMINFOA, FAR *LPMENUITEMINFOA;
- typedef struct tagMENUITEMINFOW
- {
- UINT cbSize;
- UINT fMask;
- UINT fType; // used if MIIM_TYPE (4.0) or MIIM_FTYPE (>4.0)
- UINT fState; // used if MIIM_STATE
- UINT wID; // used if MIIM_ID
- HMENU hSubMenu; // used if MIIM_SUBMENU
- HBITMAP hbmpChecked; // used if MIIM_CHECKMARKS
- HBITMAP hbmpUnchecked; // used if MIIM_CHECKMARKS
- ULONG_PTR dwItemData; // used if MIIM_DATA
- LPWSTR dwTypeData; // used if MIIM_TYPE (4.0) or MIIM_STRING (>4.0)
- UINT cch; // used if MIIM_TYPE (4.0) or MIIM_STRING (>4.0)
- #if(WINVER >= 0x0500)
- HBITMAP hbmpItem; // used if MIIM_BITMAP
- #endif /* WINVER >= 0x0500 */
- } MENUITEMINFOW, FAR *LPMENUITEMINFOW;
- #ifdef UNICODE
- typedef MENUITEMINFOW MENUITEMINFO;
- typedef LPMENUITEMINFOW LPMENUITEMINFO;
- #else
- typedef MENUITEMINFOA MENUITEMINFO;
- typedef LPMENUITEMINFOA LPMENUITEMINFO;
- #endif // UNICODE
- typedef MENUITEMINFOA CONST FAR *LPCMENUITEMINFOA;
- typedef MENUITEMINFOW CONST FAR *LPCMENUITEMINFOW;
- #ifdef UNICODE
- typedef LPCMENUITEMINFOW LPCMENUITEMINFO;
- #else
- typedef LPCMENUITEMINFOA LPCMENUITEMINFO;
- #endif // UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- InsertMenuItemA(
- IN HMENU,
- IN UINT,
- IN BOOL,
- IN LPCMENUITEMINFOA
- );
- WINUSERAPI
- BOOL
- WINAPI
- InsertMenuItemW(
- IN HMENU,
- IN UINT,
- IN BOOL,
- IN LPCMENUITEMINFOW
- );
- #ifdef UNICODE
- #define InsertMenuItem InsertMenuItemW
- #else
- #define InsertMenuItem InsertMenuItemA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- GetMenuItemInfoA(
- IN HMENU,
- IN UINT,
- IN BOOL,
- IN OUT LPMENUITEMINFOA
- );
- WINUSERAPI
- BOOL
- WINAPI
- GetMenuItemInfoW(
- IN HMENU,
- IN UINT,
- IN BOOL,
- IN OUT LPMENUITEMINFOW
- );
- #ifdef UNICODE
- #define GetMenuItemInfo GetMenuItemInfoW
- #else
- #define GetMenuItemInfo GetMenuItemInfoA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- SetMenuItemInfoA(
- IN HMENU,
- IN UINT,
- IN BOOL,
- IN LPCMENUITEMINFOA
- );
- WINUSERAPI
- BOOL
- WINAPI
- SetMenuItemInfoW(
- IN HMENU,
- IN UINT,
- IN BOOL,
- IN LPCMENUITEMINFOW
- );
- #ifdef UNICODE
- #define SetMenuItemInfo SetMenuItemInfoW
- #else
- #define SetMenuItemInfo SetMenuItemInfoA
- #endif // !UNICODE
- #define GMDI_USEDISABLED 0x0001L
- #define GMDI_GOINTOPOPUPS 0x0002L
- WINUSERAPI UINT WINAPI GetMenuDefaultItem( IN HMENU hMenu, IN UINT fByPos, IN UINT gmdiFlags);
- WINUSERAPI BOOL WINAPI SetMenuDefaultItem( IN HMENU hMenu, IN UINT uItem, IN UINT fByPos);
- WINUSERAPI BOOL WINAPI GetMenuItemRect( IN HWND hWnd, IN HMENU hMenu, IN UINT uItem, OUT LPRECT lprcItem);
- WINUSERAPI int WINAPI MenuItemFromPoint( IN HWND hWnd, IN HMENU hMenu, IN POINT ptScreen);
- #endif /* WINVER >= 0x0400 */
- /*
- * Flags for TrackPopupMenu
- */
- #define TPM_LEFTBUTTON 0x0000L
- #define TPM_RIGHTBUTTON 0x0002L
- #define TPM_LEFTALIGN 0x0000L
- #define TPM_CENTERALIGN 0x0004L
- #define TPM_RIGHTALIGN 0x0008L
- #if(WINVER >= 0x0400)
- #define TPM_TOPALIGN 0x0000L
- #define TPM_VCENTERALIGN 0x0010L
- #define TPM_BOTTOMALIGN 0x0020L
- #define TPM_HORIZONTAL 0x0000L /* Horz alignment matters more */
- #define TPM_VERTICAL 0x0040L /* Vert alignment matters more */
- #define TPM_NONOTIFY 0x0080L /* Don't send any notification msgs */
- #define TPM_RETURNCMD 0x0100L
- #endif /* WINVER >= 0x0400 */
- #if(WINVER >= 0x0500)
- #define TPM_RECURSE 0x0001L
- #define TPM_HORPOSANIMATION 0x0400L
- #define TPM_HORNEGANIMATION 0x0800L
- #define TPM_VERPOSANIMATION 0x1000L
- #define TPM_VERNEGANIMATION 0x2000L
- #if(_WIN32_WINNT >= 0x0500)
- #define TPM_NOANIMATION 0x4000L
- #endif /* _WIN32_WINNT >= 0x0500 */
- #if(_WIN32_WINNT >= 0x0501)
- #define TPM_LAYOUTRTL 0x8000L
- #endif /* _WIN32_WINNT >= 0x0501 */
- #endif /* WINVER >= 0x0500 */
- #endif /* !NOMENUS */
- #if(WINVER >= 0x0400)
- //
- // Drag-and-drop support
- // Obsolete - use OLE instead
- //
- typedef struct tagDROPSTRUCT
- {
- HWND hwndSource;
- HWND hwndSink;
- DWORD wFmt;
- ULONG_PTR dwData;
- POINT ptDrop;
- DWORD dwControlData;
- } DROPSTRUCT, *PDROPSTRUCT, *LPDROPSTRUCT;
- #define DOF_EXECUTABLE 0x8001 // wFmt flags
- #define DOF_DOCUMENT 0x8002
- #define DOF_DIRECTORY 0x8003
- #define DOF_MULTIPLE 0x8004
- #define DOF_PROGMAN 0x0001
- #define DOF_SHELLDATA 0x0002
- #define DO_DROPFILE 0x454C4946L
- #define DO_PRINTFILE 0x544E5250L
- WINUSERAPI
- DWORD
- WINAPI
- DragObject(
- IN HWND,
- IN HWND,
- IN UINT,
- IN ULONG_PTR,
- IN HCURSOR);
- WINUSERAPI
- BOOL
- WINAPI
- DragDetect(
- IN HWND,
- IN POINT);
- #endif /* WINVER >= 0x0400 */
- WINUSERAPI
- BOOL
- WINAPI
- DrawIcon(
- IN HDC hDC,
- IN int X,
- IN int Y,
- IN HICON hIcon);
- #ifndef NODRAWTEXT
- /*
- * DrawText() Format Flags
- */
- #define DT_TOP 0x00000000
- #define DT_LEFT 0x00000000
- #define DT_CENTER 0x00000001
- #define DT_RIGHT 0x00000002
- #define DT_VCENTER 0x00000004
- #define DT_BOTTOM 0x00000008
- #define DT_WORDBREAK 0x00000010
- #define DT_SINGLELINE 0x00000020
- #define DT_EXPANDTABS 0x00000040
- #define DT_TABSTOP 0x00000080
- #define DT_NOCLIP 0x00000100
- #define DT_EXTERNALLEADING 0x00000200
- #define DT_CALCRECT 0x00000400
- #define DT_NOPREFIX 0x00000800
- #define DT_INTERNAL 0x00001000
- #if(WINVER >= 0x0400)
- #define DT_EDITCONTROL 0x00002000
- #define DT_PATH_ELLIPSIS 0x00004000
- #define DT_END_ELLIPSIS 0x00008000
- #define DT_MODIFYSTRING 0x00010000
- #define DT_RTLREADING 0x00020000
- #define DT_WORD_ELLIPSIS 0x00040000
- #if(WINVER >= 0x0500)
- #define DT_NOFULLWIDTHCHARBREAK 0x00080000
- #if(_WIN32_WINNT >= 0x0500)
- #define DT_HIDEPREFIX 0x00100000
- #define DT_PREFIXONLY 0x00200000
- #endif /* _WIN32_WINNT >= 0x0500 */
- #endif /* WINVER >= 0x0500 */
- typedef struct tagDRAWTEXTPARAMS
- {
- UINT cbSize;
- int iTabLength;
- int iLeftMargin;
- int iRightMargin;
- UINT uiLengthDrawn;
- } DRAWTEXTPARAMS, FAR *LPDRAWTEXTPARAMS;
- #endif /* WINVER >= 0x0400 */
- WINUSERAPI
- int
- WINAPI
- DrawTextA(
- IN HDC hDC,
- IN LPCSTR lpString,
- IN int nCount,
- IN OUT LPRECT lpRect,
- IN UINT uFormat);
- WINUSERAPI
- int
- WINAPI
- DrawTextW(
- IN HDC hDC,
- IN LPCWSTR lpString,
- IN int nCount,
- IN OUT LPRECT lpRect,
- IN UINT uFormat);
- #ifdef UNICODE
- #define DrawText DrawTextW
- #else
- #define DrawText DrawTextA
- #endif // !UNICODE
- #if(WINVER >= 0x0400)
- WINUSERAPI
- int
- WINAPI
- DrawTextExA(
- IN HDC,
- IN OUT LPSTR,
- IN int,
- IN OUT LPRECT,
- IN UINT,
- IN LPDRAWTEXTPARAMS);
- WINUSERAPI
- int
- WINAPI
- DrawTextExW(
- IN HDC,
- IN OUT LPWSTR,
- IN int,
- IN OUT LPRECT,
- IN UINT,
- IN LPDRAWTEXTPARAMS);
- #ifdef UNICODE
- #define DrawTextEx DrawTextExW
- #else
- #define DrawTextEx DrawTextExA
- #endif // !UNICODE
- #endif /* WINVER >= 0x0400 */
- #endif /* !NODRAWTEXT */
- WINUSERAPI
- BOOL
- WINAPI
- GrayStringA(
- IN HDC hDC,
- IN HBRUSH hBrush,
- IN GRAYSTRINGPROC lpOutputFunc,
- IN LPARAM lpData,
- IN int nCount,
- IN int X,
- IN int Y,
- IN int nWidth,
- IN int nHeight);
- WINUSERAPI
- BOOL
- WINAPI
- GrayStringW(
- IN HDC hDC,
- IN HBRUSH hBrush,
- IN GRAYSTRINGPROC lpOutputFunc,
- IN LPARAM lpData,
- IN int nCount,
- IN int X,
- IN int Y,
- IN int nWidth,
- IN int nHeight);
- #ifdef UNICODE
- #define GrayString GrayStringW
- #else
- #define GrayString GrayStringA
- #endif // !UNICODE
- #if(WINVER >= 0x0400)
- /* Monolithic state-drawing routine */
- /* Image type */
- #define DST_COMPLEX 0x0000
- #define DST_TEXT 0x0001
- #define DST_PREFIXTEXT 0x0002
- #define DST_ICON 0x0003
- #define DST_BITMAP 0x0004
- /* State type */
- #define DSS_NORMAL 0x0000
- #define DSS_UNION 0x0010 /* Gray string appearance */
- #define DSS_DISABLED 0x0020
- #define DSS_MONO 0x0080
- #if(_WIN32_WINNT >= 0x0500)
- #define DSS_HIDEPREFIX 0x0200
- #define DSS_PREFIXONLY 0x0400
- #endif /* _WIN32_WINNT >= 0x0500 */
- #define DSS_RIGHT 0x8000
- WINUSERAPI
- BOOL
- WINAPI
- DrawStateA(
- IN HDC,
- IN HBRUSH,
- IN DRAWSTATEPROC,
- IN LPARAM,
- IN WPARAM,
- IN int,
- IN int,
- IN int,
- IN int,
- IN UINT);
- WINUSERAPI
- BOOL
- WINAPI
- DrawStateW(
- IN HDC,
- IN HBRUSH,
- IN DRAWSTATEPROC,
- IN LPARAM,
- IN WPARAM,
- IN int,
- IN int,
- IN int,
- IN int,
- IN UINT);
- #ifdef UNICODE
- #define DrawState DrawStateW
- #else
- #define DrawState DrawStateA
- #endif // !UNICODE
- #endif /* WINVER >= 0x0400 */
- WINUSERAPI
- LONG
- WINAPI
- TabbedTextOutA(
- IN HDC hDC,
- IN int X,
- IN int Y,
- IN LPCSTR lpString,
- IN int nCount,
- IN int nTabPositions,
- IN CONST INT *lpnTabStopPositions,
- IN int nTabOrigin);
- WINUSERAPI
- LONG
- WINAPI
- TabbedTextOutW(
- IN HDC hDC,
- IN int X,
- IN int Y,
- IN LPCWSTR lpString,
- IN int nCount,
- IN int nTabPositions,
- IN CONST INT *lpnTabStopPositions,
- IN int nTabOrigin);
- #ifdef UNICODE
- #define TabbedTextOut TabbedTextOutW
- #else
- #define TabbedTextOut TabbedTextOutA
- #endif // !UNICODE
- WINUSERAPI
- DWORD
- WINAPI
- GetTabbedTextExtentA(
- IN HDC hDC,
- IN LPCSTR lpString,
- IN int nCount,
- IN int nTabPositions,
- IN CONST INT *lpnTabStopPositions);
- WINUSERAPI
- DWORD
- WINAPI
- GetTabbedTextExtentW(
- IN HDC hDC,
- IN LPCWSTR lpString,
- IN int nCount,
- IN int nTabPositions,
- IN CONST INT *lpnTabStopPositions);
- #ifdef UNICODE
- #define GetTabbedTextExtent GetTabbedTextExtentW
- #else
- #define GetTabbedTextExtent GetTabbedTextExtentA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- UpdateWindow(
- IN HWND hWnd);
- WINUSERAPI
- HWND
- WINAPI
- SetActiveWindow(
- IN HWND hWnd);
- WINUSERAPI
- HWND
- WINAPI
- GetForegroundWindow(
- VOID);
- #if(WINVER >= 0x0400)
- WINUSERAPI
- BOOL
- WINAPI
- PaintDesktop(
- IN HDC hdc);
- #endif /* WINVER >= 0x0400 */
- WINUSERAPI
- BOOL
- WINAPI
- SetForegroundWindow(
- IN HWND hWnd);
- #if(_WIN32_WINNT >= 0x0500)
- WINUSERAPI
- BOOL
- WINAPI
- AllowSetForegroundWindow(
- DWORD dwProcessId);
- #define ASFW_ANY ((DWORD)-1)
- WINUSERAPI
- BOOL
- WINAPI
- LockSetForegroundWindow(
- UINT uLockCode);
- #define LSFW_LOCK 1
- #define LSFW_UNLOCK 2
- #endif /* _WIN32_WINNT >= 0x0500 */
- WINUSERAPI
- HWND
- WINAPI
- WindowFromDC(
- IN HDC hDC);
- WINUSERAPI
- HDC
- WINAPI
- GetDC(
- IN HWND hWnd);
- WINUSERAPI
- HDC
- WINAPI
- GetDCEx(
- IN HWND hWnd,
- IN HRGN hrgnClip,
- IN DWORD flags);
- /*
- * GetDCEx() flags
- */
- #define DCX_WINDOW 0x00000001L
- #define DCX_CACHE 0x00000002L
- #define DCX_NORESETATTRS 0x00000004L
- #define DCX_CLIPCHILDREN 0x00000008L
- #define DCX_CLIPSIBLINGS 0x00000010L
- #define DCX_PARENTCLIP 0x00000020L
- #define DCX_EXCLUDERGN 0x00000040L
- #define DCX_INTERSECTRGN 0x00000080L
- #define DCX_EXCLUDEUPDATE 0x00000100L
- #define DCX_INTERSECTUPDATE 0x00000200L
- #define DCX_LOCKWINDOWUPDATE 0x00000400L
- #define DCX_VALIDATE 0x00200000L
- WINUSERAPI
- HDC
- WINAPI
- GetWindowDC(
- IN HWND hWnd);
- WINUSERAPI
- int
- WINAPI
- ReleaseDC(
- IN HWND hWnd,
- IN HDC hDC);
- WINUSERAPI
- HDC
- WINAPI
- BeginPaint(
- IN HWND hWnd,
- OUT LPPAINTSTRUCT lpPaint);
- WINUSERAPI
- BOOL
- WINAPI
- EndPaint(
- IN HWND hWnd,
- IN CONST PAINTSTRUCT *lpPaint);
- WINUSERAPI
- BOOL
- WINAPI
- GetUpdateRect(
- IN HWND hWnd,
- OUT LPRECT lpRect,
- IN BOOL bErase);
- WINUSERAPI
- int
- WINAPI
- GetUpdateRgn(
- IN HWND hWnd,
- IN HRGN hRgn,
- IN BOOL bErase);
- WINUSERAPI
- int
- WINAPI
- SetWindowRgn(
- IN HWND hWnd,
- IN HRGN hRgn,
- IN BOOL bRedraw);
- WINUSERAPI
- int
- WINAPI
- GetWindowRgn(
- IN HWND hWnd,
- IN HRGN hRgn);
- #if(_WIN32_WINNT >= 0x0501)
- WINUSERAPI
- int
- WINAPI
- GetWindowRgnBox(
- IN HWND hWnd,
- OUT LPRECT lprc);
- #endif /* _WIN32_WINNT >= 0x0501 */
- WINUSERAPI
- int
- WINAPI
- ExcludeUpdateRgn(
- IN HDC hDC,
- IN HWND hWnd);
- WINUSERAPI
- BOOL
- WINAPI
- InvalidateRect(
- IN HWND hWnd,
- IN CONST RECT *lpRect,
- IN BOOL bErase);
- WINUSERAPI
- BOOL
- WINAPI
- ValidateRect(
- IN HWND hWnd,
- IN CONST RECT *lpRect);
- WINUSERAPI
- BOOL
- WINAPI
- InvalidateRgn(
- IN HWND hWnd,
- IN HRGN hRgn,
- IN BOOL bErase);
- WINUSERAPI
- BOOL
- WINAPI
- ValidateRgn(
- IN HWND hWnd,
- IN HRGN hRgn);
- WINUSERAPI
- BOOL
- WINAPI
- RedrawWindow(
- IN HWND hWnd,
- IN CONST RECT *lprcUpdate,
- IN HRGN hrgnUpdate,
- IN UINT flags);
- /*
- * RedrawWindow() flags
- */
- #define RDW_INVALIDATE 0x0001
- #define RDW_INTERNALPAINT 0x0002
- #define RDW_ERASE 0x0004
- #define RDW_VALIDATE 0x0008
- #define RDW_NOINTERNALPAINT 0x0010
- #define RDW_NOERASE 0x0020
- #define RDW_NOCHILDREN 0x0040
- #define RDW_ALLCHILDREN 0x0080
- #define RDW_UPDATENOW 0x0100
- #define RDW_ERASENOW 0x0200
- #define RDW_FRAME 0x0400
- #define RDW_NOFRAME 0x0800
- /*
- * LockWindowUpdate API
- */
- WINUSERAPI
- BOOL
- WINAPI
- LockWindowUpdate(
- IN HWND hWndLock);
- WINUSERAPI
- BOOL
- WINAPI
- ScrollWindow(
- IN HWND hWnd,
- IN int XAmount,
- IN int YAmount,
- IN CONST RECT *lpRect,
- IN CONST RECT *lpClipRect);
- WINUSERAPI
- BOOL
- WINAPI
- ScrollDC(
- IN HDC hDC,
- IN int dx,
- IN int dy,
- IN CONST RECT *lprcScroll,
- IN CONST RECT *lprcClip,
- IN HRGN hrgnUpdate,
- OUT LPRECT lprcUpdate);
- WINUSERAPI
- int
- WINAPI
- ScrollWindowEx(
- IN HWND hWnd,
- IN int dx,
- IN int dy,
- IN CONST RECT *prcScroll,
- IN CONST RECT *prcClip,
- IN HRGN hrgnUpdate,
- OUT LPRECT prcUpdate,
- IN UINT flags);
- #define SW_SCROLLCHILDREN 0x0001 /* Scroll children within *lprcScroll. */
- #define SW_INVALIDATE 0x0002 /* Invalidate after scrolling */
- #define SW_ERASE 0x0004 /* If SW_INVALIDATE, don't send WM_ERASEBACKGROUND */
- #if(WINVER >= 0x0500)
- #define SW_SMOOTHSCROLL 0x0010 /* Use smooth scrolling */
- #endif /* WINVER >= 0x0500 */
- #ifndef NOSCROLL
- WINUSERAPI
- int
- WINAPI
- SetScrollPos(
- IN HWND hWnd,
- IN int nBar,
- IN int nPos,
- IN BOOL bRedraw);
- WINUSERAPI
- int
- WINAPI
- GetScrollPos(
- IN HWND hWnd,
- IN int nBar);
- WINUSERAPI
- BOOL
- WINAPI
- SetScrollRange(
- IN HWND hWnd,
- IN int nBar,
- IN int nMinPos,
- IN int nMaxPos,
- IN BOOL bRedraw);
- WINUSERAPI
- BOOL
- WINAPI
- GetScrollRange(
- IN HWND hWnd,
- IN int nBar,
- OUT LPINT lpMinPos,
- OUT LPINT lpMaxPos);
- WINUSERAPI
- BOOL
- WINAPI
- ShowScrollBar(
- IN HWND hWnd,
- IN int wBar,
- IN BOOL bShow);
- WINUSERAPI
- BOOL
- WINAPI
- EnableScrollBar(
- IN HWND hWnd,
- IN UINT wSBflags,
- IN UINT wArrows);
- /*
- * EnableScrollBar() flags
- */
- #define ESB_ENABLE_BOTH 0x0000
- #define ESB_DISABLE_BOTH 0x0003
- #define ESB_DISABLE_LEFT 0x0001
- #define ESB_DISABLE_RIGHT 0x0002
- #define ESB_DISABLE_UP 0x0001
- #define ESB_DISABLE_DOWN 0x0002
- #define ESB_DISABLE_LTUP ESB_DISABLE_LEFT
- #define ESB_DISABLE_RTDN ESB_DISABLE_RIGHT
- #endif /* !NOSCROLL */
- WINUSERAPI
- BOOL
- WINAPI
- SetPropA(
- IN HWND hWnd,
- IN LPCSTR lpString,
- IN HANDLE hData);
- WINUSERAPI
- BOOL
- WINAPI
- SetPropW(
- IN HWND hWnd,
- IN LPCWSTR lpString,
- IN HANDLE hData);
- #ifdef UNICODE
- #define SetProp SetPropW
- #else
- #define SetProp SetPropA
- #endif // !UNICODE
- WINUSERAPI
- HANDLE
- WINAPI
- GetPropA(
- IN HWND hWnd,
- IN LPCSTR lpString);
- WINUSERAPI
- HANDLE
- WINAPI
- GetPropW(
- IN HWND hWnd,
- IN LPCWSTR lpString);
- #ifdef UNICODE
- #define GetProp GetPropW
- #else
- #define GetProp GetPropA
- #endif // !UNICODE
- WINUSERAPI
- HANDLE
- WINAPI
- RemovePropA(
- IN HWND hWnd,
- IN LPCSTR lpString);
- WINUSERAPI
- HANDLE
- WINAPI
- RemovePropW(
- IN HWND hWnd,
- IN LPCWSTR lpString);
- #ifdef UNICODE
- #define RemoveProp RemovePropW
- #else
- #define RemoveProp RemovePropA
- #endif // !UNICODE
- WINUSERAPI
- int
- WINAPI
- EnumPropsExA(
- IN HWND hWnd,
- IN PROPENUMPROCEXA lpEnumFunc,
- IN LPARAM lParam);
- WINUSERAPI
- int
- WINAPI
- EnumPropsExW(
- IN HWND hWnd,
- IN PROPENUMPROCEXW lpEnumFunc,
- IN LPARAM lParam);
- #ifdef UNICODE
- #define EnumPropsEx EnumPropsExW
- #else
- #define EnumPropsEx EnumPropsExA
- #endif // !UNICODE
- WINUSERAPI
- int
- WINAPI
- EnumPropsA(
- IN HWND hWnd,
- IN PROPENUMPROCA lpEnumFunc);
- WINUSERAPI
- int
- WINAPI
- EnumPropsW(
- IN HWND hWnd,
- IN PROPENUMPROCW lpEnumFunc);
- #ifdef UNICODE
- #define EnumProps EnumPropsW
- #else
- #define EnumProps EnumPropsA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- SetWindowTextA(
- IN HWND hWnd,
- IN LPCSTR lpString);
- WINUSERAPI
- BOOL
- WINAPI
- SetWindowTextW(
- IN HWND hWnd,
- IN LPCWSTR lpString);
- #ifdef UNICODE
- #define SetWindowText SetWindowTextW
- #else
- #define SetWindowText SetWindowTextA
- #endif // !UNICODE
- WINUSERAPI
- int
- WINAPI
- GetWindowTextA(
- IN HWND hWnd,
- OUT LPSTR lpString,
- IN int nMaxCount);
- WINUSERAPI
- int
- WINAPI
- GetWindowTextW(
- IN HWND hWnd,
- OUT LPWSTR lpString,
- IN int nMaxCount);
- #ifdef UNICODE
- #define GetWindowText GetWindowTextW
- #else
- #define GetWindowText GetWindowTextA
- #endif // !UNICODE
- WINUSERAPI
- int
- WINAPI
- GetWindowTextLengthA(
- IN HWND hWnd);
- WINUSERAPI
- int
- WINAPI
- GetWindowTextLengthW(
- IN HWND hWnd);
- #ifdef UNICODE
- #define GetWindowTextLength GetWindowTextLengthW
- #else
- #define GetWindowTextLength GetWindowTextLengthA
- #endif // !UNICODE
- WINUSERAPI
- BOOL
- WINAPI
- GetClientRect(
- IN HWND hWnd,
- OUT LPRECT lpRect);
- WINUSERAPI
- BOOL
- WINAPI
- GetWindowRect(
- IN HWND hWnd,
- OUT LPRECT lpRect);
- WINUSERAPI
- BOOL
- WINAPI
- AdjustWindowRect(
- IN OUT LPRECT lpRect,
- IN DWORD dwStyle,
- IN BOOL bMenu);
- WINUSERAPI
- BOOL
- WINAPI
- AdjustWindowRectEx(
- IN OUT LPRECT lpRect,
- IN DWORD dwStyle,
- IN BOOL bMenu,
- IN DWORD dwExStyle);
- #if(WINVER >= 0x0400)
- #define HELPINFO_WINDOW 0x0001
- #define HELPINFO_MENUITEM 0x0002
- typedef struct tagHELPINFO /* Structure pointed to by lParam of WM_HELP */
- {
- UINT cbSize; /* Size in bytes of this struct */
- int iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
- int iCtrlId; /* Control Id or a Menu item Id. */
- HANDLE hItemHandle; /* hWnd of control or hMenu. */
- DWORD_PTR dwContextId; /* Context Id associated with this item */
- POINT MousePos; /* Mouse Position in screen co-ordinates */
- } HELPINFO, FAR *LPHELPINFO;
- WINUSERAPI
- BOOL
- WINAPI
- SetWindowContextHelpId(
- IN HWND,
- IN DWORD);
- WINUSERAPI
- DWORD
- WINAPI
- GetWindowContextHelpId(
- IN HWND);
- WINUSERAPI
- BOOL
- WINAPI
- SetMenuContextHelpId(
- IN HMENU,
- IN DWORD);
- WINUSERAPI
- DWORD
- WINAPI
- GetMenuContextHelpId(
- IN HMENU);
- #endif /* WINVER >= 0x0400 */
- #ifndef NOMB
- /*
- * MessageBox() Flags
- */
- #define MB_OK 0x00000000L
- #define MB_OKCANCEL 0x00000001L
- #define MB_ABORTRETRYIGNORE 0x00000002L
- #define MB_YESNOCANCEL 0x00000003L
- #define MB_YESNO 0x00000004L
- #define MB_RETRYCANCEL 0x00000005L
- #if(WINVER >= 0x0500)
- #define MB_CANCELTRYCONTINUE 0x00000006L
- #endif /* WINVER >= 0x0500 */
- #define MB_ICONHAND 0x00000010L
- #define MB_ICONQUESTION 0x00000020L
- #define MB_ICONEXCLAMATION 0x00000030L
- #define MB_ICONASTERISK 0x00000040L
- #if(WINVER >= 0x0400)
- #define MB_USERICON 0x00000080L
- #define MB_ICONWARNING MB_ICONEXCLAMATION
- #define MB_ICONERROR MB_ICONHAND
- #endif /* WINVER >= 0x0400 */
- #define MB_ICONINFORMATION MB_ICONASTERISK
- #define MB_ICONSTOP MB_ICONHAND
- #define MB_DEFBUTTON1 0x00000000L
- #define MB_DEFBUTTON2 0x00000100L
- #define MB_DEFBUTTON3 0x00000200L
- #if(WINVER >= 0x0400)
- #define MB_DEFBUTTON4 0x00000300L
- #endif /* WINVER >= 0x0400 */
- #define MB_APPLMODAL 0x00000000L
- #define MB_SYSTEMMODAL 0x00001000L
- #define MB_TASKMODAL 0x00002000L
- #if(WINVER >= 0x0400)
- #define MB_HELP 0x00004000L // Help Button
- #endif /* WINVER >= 0x0400 */
- #define MB_NOFOCUS 0x00008000L
- #define MB_SETFOREGROUND 0x00010000L
- #define MB_DEFAULT_DESKTOP_ONLY 0x00020000L
- #if(WINVER >= 0x0400)
- #define MB_TOPMOST 0x00040000L
- #define MB_RIGHT 0x00080000L
- #define MB_RTLREADING 0x00100000L
- #endif /* WINVER >= 0x0400 */
- #ifdef _WIN32_WINNT
- #if (_WIN32_WINNT >= 0x0400)
- #define MB_SERVICE_NOTIFICATION 0x00200000L
- #else
- #define MB_SERVICE_NOTIFICATION 0x00040000L
- #endif
- #define MB_SERVICE_NOTIFICATION_NT3X 0x00040000L
- #endif
- #define MB_TYPEMASK 0x0000000FL
- #define MB_ICONMASK 0x000000F0L
- #define MB_DEFMASK 0x00000F00L
- #define MB_MODEMASK 0x00003000L
- #define MB_MISCMASK 0x0000C000L
- WINUSERAPI
- int
- WINAPI
- MessageBoxA(
- IN HWND hWnd,
- IN LPCSTR lpText,
- IN LPCSTR lpCaption,
- IN UINT uType);
- WINUSERAPI
- int
- WINAPI
- MessageBoxW(
- IN HWND hWnd,
- IN LPCWSTR lpText,
- IN LPCWSTR lpCaption,
- IN UINT uType);
- #ifdef UNICODE
- #define MessageBox MessageBoxW
- #else
- #define MessageBox MessageBoxA
- #endif // !UNICODE
- WINUSERAPI
- int
- WINAPI
- MessageBoxExA(
- IN HWND hWnd,
- IN LPCSTR lpText,
- IN LPCSTR lpCaption,
- IN UINT uType,
- IN WORD wLanguageId);
- WINUSERAPI
- int
- WINAPI
- MessageBoxExW(
- IN HWND hWnd,
- IN LPCWSTR lpText,
- IN LPCWSTR lpCaption,
- IN UINT uType,
- IN WORD wLanguageId);
- #ifdef UNICODE
- #define MessageBoxEx MessageBoxExW
- #else
- #define MessageBoxEx MessageBoxExA
- #endif // !UNICODE
- #if(WINVER >= 0x0400)
- typedef void (CALLBACK *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo);
- typedef struct tagMSGBOXPARAMSA
- {
- UINT cbSize;
- HWND hwndOwner;
- HINSTANCE hInstance;
- LPCSTR lpszText;
- LPCSTR lpszCaption;
- DWORD dwStyle;
- LPCSTR lpszIcon;
- DWORD_PTR dwContextHelpId;
- MSGBOXCALLBACK lpfnMsgBoxCallback;
- DWORD dwLanguageId;
- } MSGBOXPARAMSA, *PMSGBOXPARAMSA, *LPMSGBOXPARAMSA;
- typedef struct tagMSGBOXPARAMSW
- {
- UINT cbSize;
- HWND hwndOwner;
- HINSTANCE hInstance;
- LPCWSTR lpszText;
- LPCWSTR lpszCaption;
- DWORD dwStyle;
- LPCWSTR lpszIcon;
- DWORD_PTR dwContextHelpId;
- MSGBOXCALLBACK lpfnMsgBoxCallback;
- DWORD dwLanguageId;
- } MSGBOXPARAMSW, *PMSGBOXPARAMSW, *LPMSGBOXPARAMSW;
- #ifdef UNICODE
- typedef MSGBOXPARAMSW MSGBOXPARAMS;
- typedef PMSGBOXPARAMSW PMSGBOXPARAMS;
- typedef LPMSGBOXPARAMSW LPMSGBOXPARAMS;
- #else
- typedef MSGBOXPARAMSA MSGBOXPARAMS;
- typedef PMSGBOXPARAMSA PMSGBOXPARAMS;
- typedef LPMSGBOXPARAMSA LPMSGBOXPARAMS;
- #endif // UNICODE
- WINUSERAPI
- int
- WINAPI
- MessageBoxIndirectA(
- IN CONST MSGBOXPARAMSA *);
- WINUSERAPI
- int
- WINAPI
- MessageBoxIndirectW(
- IN CONST MSGBOXPARAMSW *);
- #ifdef UNICODE
- #define MessageBoxIndirect MessageBoxIndirectW
- #else
- #define MessageBoxIndirect MessageBoxIndirectA
- #endif // !UNICODE
- #endif /* WINVER >= 0x0400 */
- WINUSERAPI
- BOOL
- WINAPI
- MessageBeep(
- IN UINT uType);
- #endif /* !NOMB */
- WINUSERAPI
- int
- WINAPI
- ShowCursor(
- IN BOOL bShow);
- WINUSERAPI
- BOOL
- WINAPI
- SetCursorPos(
- IN int X,
- IN int Y);
- WINUSERAPI
- HCURSOR
- WINAPI
- SetCursor(
- IN HCURSOR hCursor);
- WINUSERAPI
- BOOL
- WINAPI
- GetCursorPos(
- OUT LPPOINT lpPoint);
- WINUSERAPI
- BOOL
- WINAPI
- ClipCursor(
- IN CONST RECT *lpRect);
- WINUSERAPI
- BOOL
- WINAPI
- GetClipCursor(
- OUT LPRECT lpRect);
- WINUSERAPI
- HCURSOR
- WINAPI
- GetCursor(
- VOID);
- WINUSERAPI
- BOOL
- WINAPI
- CreateCaret(
- IN HWND hWnd,
- IN HBITMAP hBitmap,
- IN int nWidth,
- IN int nHeight);
- WINUSERAPI
- UINT
- WINAPI
- GetCaretBlinkTime(
- VOID);
- WINUSERAPI
- BOOL
- WINAPI
- SetCaretBlinkTime(
- IN UINT uMSeconds);
- WINUSERAPI
- BOOL
- WINAPI
- DestroyCaret(
- VOID);
- WINUSERAPI
- BOOL
- WINAPI
- HideCaret(
- IN HWND hWnd);
- WINUSERAPI
- BOOL
- WINAPI
- ShowCaret(
- IN HWND hWnd);
- WINUSERAPI
- BOOL
- WINAPI
- SetCaretPos(
- IN int X,
- IN int Y);
- WINUSERAPI
- BOOL
- WINAPI
- GetCaretPos(
- OUT LPPOINT lpPoint);
- WINUSERAPI
- BOOL
- WINAPI
- ClientToScreen(
- IN HWND hWnd,
- IN OUT LPPOINT lpPoint);
- WINUSERAPI
- BOOL
- WINAPI
- ScreenToClient(
- IN HWND hWnd,
- IN OUT LPPOINT lpPoint);
- WINUSERAPI
- int
- WINAPI
- MapWindowPoints(
- IN HWND hWndFrom,
- IN HWND hWndTo,
- IN OUT LPPOINT lpPoints,
- IN UINT cPoints);
- WINUSERAPI
- HWND
- WINAPI
- WindowFromPoint(
- IN POINT Point);
- WINUSERAPI
- HWND
- WINAPI
- ChildWindowFromPoint(
- IN HWND hWndParent,
- IN POINT Point);
- #if(WINVER >= 0x0400)
- #define CWP_ALL 0x0000
- #define CWP_SKIPINVISIBLE 0x0001
- #define CWP_SKIPDISABLED 0x0002
- #define CWP_SKIPTRANSPARENT 0x0004
- WINUSERAPI HWND WINAPI ChildWindowFromPointEx( IN HWND, IN POINT, IN UINT);
- #endif /* WINVER >= 0x0400 */
- #ifndef NOCOLOR
- /*
- * Color Types
- */
- #define CTLCOLOR_MSGBOX 0
- #define CTLCOLOR_EDIT 1
- #define CTLCOLOR_LISTBOX 2
- #define CTLCOLOR_BTN 3
- #define CTLCOLOR_DLG 4
- #define CTLCOLOR_SCROLLBAR 5
- #define CTLCOLOR_STATIC 6
- #define CTLCOLOR_MAX 7
- #define COLOR_SCROLLBAR 0
- #define COLOR_BACKGROUND 1
- #define COLOR_ACTIVECAPTION 2
- #define COLOR_INACTIVECAPTION 3
- #define COLOR_MENU 4
- #define COLOR_WINDOW 5
- #define COLOR_WINDOWFRAME 6
- #define COLOR_MENUTEXT 7
- #define COLOR_WINDOWTEXT 8
- #define COLOR_CAPTIONTEXT 9
- #define COLOR_ACTIVEBORDER 10
- #define COLOR_INACTIVEBORDER 11
- #define COLOR_APPWORKSPACE 12
- #define COLOR_HIGHLIGHT 13
- #define COLOR_HIGHLIGHTTEXT 14
- #define COLOR_BTNFACE 15
- #define COLOR_BTNSHADOW 16
- #define COLOR_GRAYTEXT 17
- #define COLOR_BTNTEXT 18
- #define COLOR_INACTIVECAPTIONTEXT 19
- #define COLOR_BTNHIGHLIGHT 20
- #if(WINVER >= 0x0400)
- #define COLOR_3DDKSHADOW 21
- #define COLOR_3DLIGHT 22
- #define COLOR_INFOTEXT 23
- #define COLOR_INFOBK 24
- #endif /* WINVER >= 0x0400 */
- #if(WINVER >= 0x0500)
- #define COLOR_HOTLIGHT 26
- #define COLOR_GRADIENTACTIVECAPTION 27
- #define COLOR_GRADIENTINACTIVECAPTION 28
- #if(WINVER >= 0x0501)
- #define COLOR_MENUHILIGHT 29
- #define COLOR_MENUBAR 30
- #endif /* WINVER >= 0x0501 */
- #endif /* WINVER >= 0x0500 */
- #if(WINVER >= 0x0400)
- #define COLOR_DESKTOP COLOR_BACKGROUND
- #define COLOR_3DFACE COLOR_BTNFACE
- #define COLOR_3DSHADOW COLOR_BTNSHADOW
- #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT
- #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT
- #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT
- #endif /* WINVER >= 0x0400 */
- WINUSERAPI
- DWORD
- WINAPI
- GetSysColor(
- IN int nIndex);
- #if(WINVER >= 0x0400)
- WINUSERAPI
- HBRUSH
- WINAPI
- GetSysColorBrush(
- IN int nIndex);
- #endif /* WINVER >= 0x0400 */
- WINUSERAPI
- BOOL
- WINAPI
- SetSysColors(
- IN int cElements,
- IN CONST INT * lpaElements,
- IN CONST COLORREF * lpaRgbValues);
- #endif /* !NOCOLOR */
- WINUSERAPI
- BOOL
- WINAPI
- DrawFocusRect(
- IN HDC hDC,
- IN CONST RECT * lprc);
- WINUSERAPI
- int
- WINAPI
- FillRect(
- IN HDC hDC,
- IN CONST RECT *lprc,
- IN HBRUSH hbr);
- WINUSERAPI
- int
- WINAPI
- FrameRect(
- IN HDC hDC,
- IN CONST RECT *lprc,
- IN HBRUSH hbr);
- WINUSERAPI
- BOOL
- WINAPI
- InvertRect(
- IN HDC hDC,
- IN CONST RECT *lprc);
- WINUSERAPI
- BOOL
- WINAPI
- SetRect(
- OUT LPRECT lprc,
- IN int xLeft,
- IN int yTop,
- IN int xRight,
- IN int yBottom);
- WINUSERAPI
- BOOL
- WINAPI
- SetRectEmpty(
- OUT LPRECT lprc);
- WINUSERAPI
- BOOL
- WINAPI
- CopyRect(
- OUT LPRECT lprcDst,
- IN CONST RECT *lprcSrc);
- WINUSERAPI
- BOOL
- WINAPI
- InflateRect(
- IN OUT LPRECT lprc,
- IN int dx,
- IN int dy);
- WINUSERAPI
- BOOL
- WINAPI
- IntersectRect(
- OUT LPRECT lprcDst,
- IN CONST RECT *lprcSrc1,
- IN CONST RECT *lprcSrc2);
- WINUSERAPI
- BOOL
- WINAPI
- UnionRect(
- OUT LPRECT lprcDst,
- IN CONST RECT *lprcSrc1,
- IN CONST RECT *lprcSrc2);
- WINUSERAPI
- BOOL
- WINAPI
- SubtractRect(
- OUT LPRECT lprcDst,
- IN CONST RECT *lprcSrc1,
- IN CONST RECT *lprcSrc2);
- WINUSERAPI
- BOOL
- WINAPI
- OffsetRect(
- IN OUT LPRECT lprc,
- IN int dx,
- IN int dy);
- WINUSERAPI
- BOOL
- WINAPI
- IsRectEmpty(
- IN CONST RECT *lprc);
- WINUSERAPI
- BOOL
- WINAPI
- EqualRect(
- IN CONST RECT *lprc1,
- IN CONST RECT *lprc2);
- WINUSERAPI
- BOOL
- WINAPI
- PtInRect(
- IN CONST RECT *lprc,
- IN POINT pt);
- #ifndef NOWINOFFSETS
- WINUSERAPI
- WORD
- WINAPI
- GetWindowWord(
- IN HWND hWnd,
- IN int nIndex);
- WINUSERAPI
- WORD
- WINAPI
- SetWindowWord(
- IN HWND hWnd,
- IN int nIndex,
- IN WORD wNewWord);
- WINUSERAPI
- LONG
- WINAPI
- GetWindowLongA(
- IN HWND hWnd,
- IN int nIndex);
- WINUSERAPI
- LONG
- WINAPI
- GetWindowLongW(
- IN HWND hWnd,
- IN int nIndex);
- #ifdef UNICODE
- #define GetWindowLong GetWindowLongW
- #else
- #define GetWindowLong GetWindowLongA
- #endif // !UNICODE
- WINUSERAPI
- LONG
- WINAPI
- SetWindowLongA(
- IN HWND hWnd,
- IN int nIndex,
- IN LONG dwNewLong);
- WINUSERAPI
- LONG
- WINAPI
- SetWindowLongW(
- IN HWND hWnd,
- IN int nIndex,
- IN LONG dwNewLong);
- #ifdef UNICODE
- #define SetWindowLong SetWindowLongW
- #else
- #define SetWindowLong SetWindowLongA
- #endif // !UNICODE
- #ifdef _WIN64
- WINUSERAPI
- LONG_PTR
- WINAPI
- GetWindowLongPtrA(
- HWND hWnd,
- int nIndex);
- WINUSERAPI
- LONG_PTR
- WINAPI
- GetWindowLongPtrW(
- HWND hWnd,
- int nIndex);
- #ifdef UNICODE
- #define GetWindowLongPtr GetWindowLongPtrW
- #else
- #define GetWindowLongPtr GetWindowLongPtrA
- #endif // !UNICODE
- WINUSERAPI
- LONG_PTR
- WINAPI
- SetWindowLongPtrA(
- HWND hWnd,
- int nIndex,
- LONG_PTR dwNewLong);
- WINUSERAPI
- LONG_PTR
- WINAPI
- SetWindowLongPtrW(
- HWND hWnd,
- int nIndex,
- LONG_PTR dwNewLong);
- #ifdef UNICODE
- #define SetWindowLongPtr SetWindowLongPtrW
- #else
- #define SetWindowLongPtr SetWindowLongPtrA
- #endif // !UNICODE
- #else /* _WIN64 */
- #define GetWindowLongPtrA GetWindowLongA
- #define GetWindowLongPtrW GetWindowLongW
- #ifdef UNICODE
- #define GetWindowLongPtr GetWindowLongPtrW
- #else
- #define GetWindowLongPtr GetWindowLongPtrA
- #endif // !UNICODE
- #define SetWindowLongPtrA SetWindowLongA
- #define SetWindowLongPtrW SetWindowLongW
- #ifdef UNICODE
- #define SetWindowLongPtr SetWindowLongPtrW
- #else
- #define SetWindowLongPtr SetWindowLongPtrA
- #endif // !UNICODE
- #endif /* _WIN64 */
- WINUSERAPI
- WORD
- WINAPI
- GetClassWord(
- IN HWND hWnd,
- IN int nIndex);
- WINUSERAPI
- WORD
- WINAPI
- SetClassWord(
- IN HWND hWnd,
- IN int nIndex,
- IN WORD wNewWord);
- WINUSERAPI
- DWORD
- WINAPI
- GetClassLongA(
- IN HWND hWnd,
- IN int nIndex);
- WINUSERAPI
- DWORD
- WINAPI
- GetClassLongW(
- IN HWND hWnd,
- IN int nIndex);
- #ifdef UNICODE
- #define GetClassLong GetClassLongW
- #else
- #define GetClassLong GetClassLongA
- #endif // !UNICODE
- WINUSERAPI
- DWORD
- WINAPI
- SetClassLongA(
- IN HWND hWnd,
- IN int nIndex,
- IN LONG dwNewLong);
- WINUSERAPI
- DWORD
- WINAPI
- SetClassLongW(
- IN HWND hWnd,
- IN int nIndex,
- IN LONG dwNewLong);
- #ifdef UNICODE
- #define SetClassLong SetClassLongW
- #else
- #define SetClassLong SetClassLongA
- #endif // !UNICODE
- #ifdef _WIN64
- WINUSERAPI
- ULONG_PTR
- WINAPI
- GetClassLongPtrA(
- IN HWND hWnd,
- IN int nIndex);
- WINUSERAPI
- ULONG_PTR
- WINAPI
- GetClassLongPtrW(
- IN HWND hWnd,
- IN int nIndex);
- #ifdef UNICODE
- #define GetClassLongPtr GetClassLongPtrW
- #else
- #define GetClassLongPtr GetClassLongPtrA
- #endif // !UNICODE
- WINUSERAPI
- ULONG_PTR
- WINAPI
- SetClassLongPtrA(
- IN HWND hWnd,
- IN int nIndex,
- IN LONG_PTR dwNewLong);
- WINUSERAPI
- ULONG_PTR
- WINAPI
- SetClassLongPtrW(
- IN HWND hWnd,
- IN int nIndex,
- IN LONG_PTR dwNewLong);
- #ifdef UNICODE
- #define SetClassLongPtr SetClassLongPtrW
- #else
- #define SetClassLongPtr SetClassLongPtrA
- #endif // !UNICODE
- #else /* _WIN64 */
- #define GetClassLongPtrA GetClassLongA
- #define GetClassLongPtrW GetClassLongW
- #ifdef UNICODE
- #define GetClassLongPtr GetClassLongPtrW
- #else
- #define GetClassLongPtr GetClassLongPtrA
- #endif // !UNICODE
- #define SetClassLongPtrA SetClassLongA
- #define SetClassLongPtrW SetClassLongW
- #ifdef UNICODE
- #define SetClassLongPtr SetClassLongPtrW
- #else
- #define SetClassLongPtr SetClassLongPtrA
- #endif // !UNICODE
- #endif /* _WIN64 */
- #endif /* !NOWINOFFSETS */
- #if(WINVER >= 0x0500)
- WINUSERAPI
- BOOL
- WINAPI
- GetProcessDefaultLayout(
- OUT DWORD *pdwDefaultLayout);
- WINUSERAPI
- BOOL
- WINAPI
- SetProcessDefaultLayout(
- IN DWORD dwDefaultLayout);
- #endif /* WINVER >= 0x0500 */
- WINUSERAPI
- HWND
- WINAPI
- GetDesktopWindow(
- VOID);
- WINUSERAPI
- HWND
- WINAPI
- GetParent(
- IN HWND hWnd);
- WINUSERAPI
- HWND
- WINAPI
- SetParent(
- IN HWND hWndChild,
- IN HWND hWndNewParent);
- WINUSERAPI
- BOOL
- WINAPI
- EnumChildWindows(
- IN HWND hWndParent,
- IN WNDENUMPROC lpEnumFunc,
- IN LPARAM lParam);
- WINUSERAPI
- HWND
- WINAPI
- FindWindowA(
- IN LPCSTR lpClassName,
- IN LPCSTR lpWindowName);
- WINUSERAPI
- HWND
- WINAPI
- FindWindowW(
- IN LPCWSTR lpClassName,
- IN LPCWSTR lpWindowName);
- #ifdef UNICODE
- #define FindWindow FindWindowW
- #else
- #define FindWindow FindWindowA
- #endif // !UNICODE
- #if(WINVER >= 0x0400)
- WINUSERAPI HWND WINAPI FindWindowExA( IN HWND, IN HWND, IN LPCSTR, IN LPCSTR);
- WINUSERAPI HWND WINAPI FindWindowExW( IN HWND, IN HWND, IN LPCWSTR, IN LPCWSTR);
- #ifdef UNICODE
- #define FindWindowEx FindWindowExW
- #else
- #define FindWindowEx FindWindowExA
- #endif // !UNICODE
- #endif /* WINVER >= 0x0400 */
- WINUSERAPI
- BOOL
- WINAPI
- EnumWindows(
- IN WNDENUMPROC lpEnumFunc,
- IN LPARAM lParam);
- WINUSERAPI
- BOOL
- WINAPI
- EnumThreadWindows(
- IN DWORD dwThreadId,
- IN WNDENUMPROC lpfn,
- IN LPARAM lParam);
- #define EnumTaskWindows(hTask, lpfn, lParam) EnumThreadWindows(HandleToUlong(hTask), lpfn, lParam)
- WINUSERAPI
- int
- WINAPI
- GetClassNameA(
- IN HWND hWnd,
- OUT LPSTR lpClassName,
- IN int nMaxCount);
- WINUSERAPI
- int
- WINAPI
- GetClassNameW(
- IN HWND hWnd,
- OUT LPWSTR lpClassName,
- IN int nMaxCount);
- #ifdef UNICODE
- #define GetClassName GetClassNameW
- #else
- #define GetClassName GetClassNameA
- #endif // !UNICODE
- WINUSERAPI
- HWND
- WINAPI
- GetTopWindow(
- IN HWND hWnd);
- #define GetNextWindow(hWnd, wCmd) GetWindow(hWnd, wCmd)
- #define GetSysModalWindow() (NULL)
- #define SetSysModalWindow(hWnd) (NULL)
- WINUSERAPI
- DWORD
- WINAPI
- GetWindowThreadProcessId(
- IN HWND hWnd,
- OUT LPDWORD lpdwProcessId);
- #if(_WIN32_WINNT >= 0x0501)
- WINUSERAPI
- BOOL
- WINAPI
- IsGUIThread(
- BOOL bConvert);
- #endif /* _WIN32_WINNT >= 0x0501 */
- #define GetWindowTask(hWnd)
- ((HANDLE)(DWORD_PTR)GetWindowThreadProcessId(hWnd, NULL))
- WINUSERAPI
- HWND
- WINAPI
- GetLastActivePopup(
- IN HWND hWnd);
- /*
- * GetWindow() Constants
- */
- #define GW_HWNDFIRST 0
- #define GW_HWNDLAST 1
- #define GW_HWNDNEXT 2
- #define GW_HWNDPREV 3
- #define GW_OWNER 4
- #define GW_CHILD 5
- #if(WINVER <= 0x0400)
- #define GW_MAX 5
- #else
- #define GW_ENABLEDPOPUP 6
- #define GW_MAX 6
- #endif
- WINUSERAPI
- HWND
- WINAPI
- GetWindow(
- IN HWND hWnd,
- IN UINT uCmd);
- #ifndef NOWH
- #ifdef STRICT
- WINUSERAPI
- HHOOK