| winuser.h (6.0.6002.18005-Windows 6.0) | | winuser.h (6.1.7601.19061-Windows 7.0) |
| | |
| skipping to change at line 1169 | | skipping to change at line 1169 |
| | |
| #ifdef _WINGDI_ | | #ifdef _WINGDI_ |
| #ifndef NOGDI | | #ifndef NOGDI |
| | |
| WINUSERAPI | | WINUSERAPI |
| HDESK | | HDESK |
| WINAPI | | WINAPI |
| CreateDesktopA( | | CreateDesktopA( |
| __in LPCSTR lpszDesktop, | | __in LPCSTR lpszDesktop, |
| __reserved LPCSTR lpszDevice, | | __reserved LPCSTR lpszDevice, |
|
| __reserved LPDEVMODEA pDevmode, | | __reserved DEVMODEA* pDevmode, |
| __in DWORD dwFlags, | | __in DWORD dwFlags, |
| __in ACCESS_MASK dwDesiredAccess, | | __in ACCESS_MASK dwDesiredAccess, |
| __in_opt LPSECURITY_ATTRIBUTES lpsa); | | __in_opt LPSECURITY_ATTRIBUTES lpsa); |
| WINUSERAPI | | WINUSERAPI |
| HDESK | | HDESK |
| WINAPI | | WINAPI |
| CreateDesktopW( | | CreateDesktopW( |
| __in LPCWSTR lpszDesktop, | | __in LPCWSTR lpszDesktop, |
| __reserved LPCWSTR lpszDevice, | | __reserved LPCWSTR lpszDevice, |
|
| __reserved LPDEVMODEW pDevmode, | | __reserved DEVMODEW* pDevmode, |
| __in DWORD dwFlags, | | __in DWORD dwFlags, |
| __in ACCESS_MASK dwDesiredAccess, | | __in ACCESS_MASK dwDesiredAccess, |
| __in_opt LPSECURITY_ATTRIBUTES lpsa); | | __in_opt LPSECURITY_ATTRIBUTES lpsa); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define CreateDesktop CreateDesktopW | | #define CreateDesktop CreateDesktopW |
| #else | | #else |
| #define CreateDesktop CreateDesktopA | | #define CreateDesktop CreateDesktopA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| WINUSERAPI | | WINUSERAPI |
| HDESK | | HDESK |
| WINAPI | | WINAPI |
| CreateDesktopExA( | | CreateDesktopExA( |
| __in LPCSTR lpszDesktop, | | __in LPCSTR lpszDesktop, |
| __reserved LPCSTR lpszDevice, | | __reserved LPCSTR lpszDevice, |
|
| __reserved LPDEVMODEA pDevmode, | | __reserved DEVMODEA* pDevmode, |
| __in DWORD dwFlags, | | __in DWORD dwFlags, |
| __in ACCESS_MASK dwDesiredAccess, | | __in ACCESS_MASK dwDesiredAccess, |
| __in_opt LPSECURITY_ATTRIBUTES lpsa, | | __in_opt LPSECURITY_ATTRIBUTES lpsa, |
| __in ULONG ulHeapSize, | | __in ULONG ulHeapSize, |
| __reserved PVOID pvoid); | | __reserved PVOID pvoid); |
| WINUSERAPI | | WINUSERAPI |
| HDESK | | HDESK |
| WINAPI | | WINAPI |
| CreateDesktopExW( | | CreateDesktopExW( |
| __in LPCWSTR lpszDesktop, | | __in LPCWSTR lpszDesktop, |
| __reserved LPCWSTR lpszDevice, | | __reserved LPCWSTR lpszDevice, |
|
| __reserved LPDEVMODEW pDevmode, | | __reserved DEVMODEW* pDevmode, |
| __in DWORD dwFlags, | | __in DWORD dwFlags, |
| __in ACCESS_MASK dwDesiredAccess, | | __in ACCESS_MASK dwDesiredAccess, |
| __in_opt LPSECURITY_ATTRIBUTES lpsa, | | __in_opt LPSECURITY_ATTRIBUTES lpsa, |
| __in ULONG ulHeapSize, | | __in ULONG ulHeapSize, |
| __reserved PVOID pvoid); | | __reserved PVOID pvoid); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define CreateDesktopEx CreateDesktopExW | | #define CreateDesktopEx CreateDesktopExW |
| #else | | #else |
| #define CreateDesktopEx CreateDesktopExA | | #define CreateDesktopEx CreateDesktopExA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| skipping to change at line 1898 | | skipping to change at line 1898 |
| #endif /* WINVER >= 0x0400 */ | | #endif /* WINVER >= 0x0400 */ |
| | |
| #define WM_INITDIALOG 0x0110 | | #define WM_INITDIALOG 0x0110 |
| #define WM_COMMAND 0x0111 | | #define WM_COMMAND 0x0111 |
| #define WM_SYSCOMMAND 0x0112 | | #define WM_SYSCOMMAND 0x0112 |
| #define WM_TIMER 0x0113 | | #define WM_TIMER 0x0113 |
| #define WM_HSCROLL 0x0114 | | #define WM_HSCROLL 0x0114 |
| #define WM_VSCROLL 0x0115 | | #define WM_VSCROLL 0x0115 |
| #define WM_INITMENU 0x0116 | | #define WM_INITMENU 0x0116 |
| #define WM_INITMENUPOPUP 0x0117 | | #define WM_INITMENUPOPUP 0x0117 |
|
| | #if(WINVER >= 0x0601) |
| | #define WM_GESTURE 0x0119 |
| | #define WM_GESTURENOTIFY 0x011A |
| | #endif /* WINVER >= 0x0601 */ |
| #define WM_MENUSELECT 0x011F | | #define WM_MENUSELECT 0x011F |
| #define WM_MENUCHAR 0x0120 | | #define WM_MENUCHAR 0x0120 |
| #define WM_ENTERIDLE 0x0121 | | #define WM_ENTERIDLE 0x0121 |
| #if(WINVER >= 0x0500) | | #if(WINVER >= 0x0500) |
| #ifndef _WIN32_WCE | | #ifndef _WIN32_WCE |
| #define WM_MENURBUTTONUP 0x0122 | | #define WM_MENURBUTTONUP 0x0122 |
| #define WM_MENUDRAG 0x0123 | | #define WM_MENUDRAG 0x0123 |
| #define WM_MENUGETOBJECT 0x0124 | | #define WM_MENUGETOBJECT 0x0124 |
| #define WM_UNINITMENUPOPUP 0x0125 | | #define WM_UNINITMENUPOPUP 0x0125 |
| #define WM_MENUCOMMAND 0x0126 | | #define WM_MENUCOMMAND 0x0126 |
| | |
| skipping to change at line 2072 | | skipping to change at line 2076 |
| #define WM_MDICASCADE 0x0227 | | #define WM_MDICASCADE 0x0227 |
| #define WM_MDIICONARRANGE 0x0228 | | #define WM_MDIICONARRANGE 0x0228 |
| #define WM_MDIGETACTIVE 0x0229 | | #define WM_MDIGETACTIVE 0x0229 |
| | |
| #define WM_MDISETMENU 0x0230 | | #define WM_MDISETMENU 0x0230 |
| #define WM_ENTERSIZEMOVE 0x0231 | | #define WM_ENTERSIZEMOVE 0x0231 |
| #define WM_EXITSIZEMOVE 0x0232 | | #define WM_EXITSIZEMOVE 0x0232 |
| #define WM_DROPFILES 0x0233 | | #define WM_DROPFILES 0x0233 |
| #define WM_MDIREFRESHMENU 0x0234 | | #define WM_MDIREFRESHMENU 0x0234 |
| | |
|
| | #if(WINVER >= 0x0601) |
| | #define WM_TOUCH 0x0240 |
| | #endif /* WINVER >= 0x0601 */ |
| | |
| #if(WINVER >= 0x0400) | | #if(WINVER >= 0x0400) |
| #define WM_IME_SETCONTEXT 0x0281 | | #define WM_IME_SETCONTEXT 0x0281 |
| #define WM_IME_NOTIFY 0x0282 | | #define WM_IME_NOTIFY 0x0282 |
| #define WM_IME_CONTROL 0x0283 | | #define WM_IME_CONTROL 0x0283 |
| #define WM_IME_COMPOSITIONFULL 0x0284 | | #define WM_IME_COMPOSITIONFULL 0x0284 |
| #define WM_IME_SELECT 0x0285 | | #define WM_IME_SELECT 0x0285 |
| #define WM_IME_CHAR 0x0286 | | #define WM_IME_CHAR 0x0286 |
| #endif /* WINVER >= 0x0400 */ | | #endif /* WINVER >= 0x0400 */ |
| #if(WINVER >= 0x0500) | | #if(WINVER >= 0x0500) |
| #define WM_IME_REQUEST 0x0288 | | #define WM_IME_REQUEST 0x0288 |
| | |
| skipping to change at line 2148 | | skipping to change at line 2156 |
| #define WM_CLIPBOARDUPDATE 0x031D | | #define WM_CLIPBOARDUPDATE 0x031D |
| #endif /* _WIN32_WINNT >= 0x0501 */ | | #endif /* _WIN32_WINNT >= 0x0501 */ |
| | |
| #if(_WIN32_WINNT >= 0x0600) | | #if(_WIN32_WINNT >= 0x0600) |
| #define WM_DWMCOMPOSITIONCHANGED 0x031E | | #define WM_DWMCOMPOSITIONCHANGED 0x031E |
| #define WM_DWMNCRENDERINGCHANGED 0x031F | | #define WM_DWMNCRENDERINGCHANGED 0x031F |
| #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320 | | #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320 |
| #define WM_DWMWINDOWMAXIMIZEDCHANGE 0x0321 | | #define WM_DWMWINDOWMAXIMIZEDCHANGE 0x0321 |
| #endif /* _WIN32_WINNT >= 0x0600 */ | | #endif /* _WIN32_WINNT >= 0x0600 */ |
| | |
|
| | #if(_WIN32_WINNT >= 0x0601) |
| | #define WM_DWMSENDICONICTHUMBNAIL 0x0323 |
| | #define WM_DWMSENDICONICLIVEPREVIEWBITMAP 0x0326 |
| | #endif /* _WIN32_WINNT >= 0x0601 */ |
| | |
| #if(WINVER >= 0x0600) | | #if(WINVER >= 0x0600) |
| #define WM_GETTITLEBARINFOEX 0x033F | | #define WM_GETTITLEBARINFOEX 0x033F |
| #endif /* WINVER >= 0x0600 */ | | #endif /* WINVER >= 0x0600 */ |
| | |
| #if(WINVER >= 0x0400) | | #if(WINVER >= 0x0400) |
| | |
| #define WM_HANDHELDFIRST 0x0358 | | #define WM_HANDHELDFIRST 0x0358 |
| #define WM_HANDHELDLAST 0x035F | | #define WM_HANDHELDLAST 0x035F |
| | |
| #define WM_AFXFIRST 0x0360 | | #define WM_AFXFIRST 0x0360 |
| | |
| skipping to change at line 3056 | | skipping to change at line 3069 |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| UnregisterHotKey( | | UnregisterHotKey( |
| __in_opt HWND hWnd, | | __in_opt HWND hWnd, |
| __in int id); | | __in int id); |
| | |
| #define MOD_ALT 0x0001 | | #define MOD_ALT 0x0001 |
| #define MOD_CONTROL 0x0002 | | #define MOD_CONTROL 0x0002 |
| #define MOD_SHIFT 0x0004 | | #define MOD_SHIFT 0x0004 |
| #define MOD_WIN 0x0008 | | #define MOD_WIN 0x0008 |
|
| | #if(WINVER >= 0x0601) |
| | #define MOD_NOREPEAT 0x4000 |
| | #endif /* WINVER >= 0x0601 */ |
| | |
| #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */ | | #define IDHOT_SNAPWINDOW (-1) /* SHIFT-PRINTSCRN */ |
| #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */ | | #define IDHOT_SNAPDESKTOP (-2) /* PRINTSCRN */ |
| | |
| #ifdef WIN_INTERNAL | | #ifdef WIN_INTERNAL |
| #ifndef LSTRING | | #ifndef LSTRING |
| #define NOLSTRING | | #define NOLSTRING |
| #endif /* LSTRING */ | | #endif /* LSTRING */ |
| #ifndef LFILEIO | | #ifndef LFILEIO |
| #define NOLFILEIO | | #define NOLFILEIO |
| | |
| skipping to change at line 3093 | | skipping to change at line 3109 |
| #if(_WIN32_WINNT >= 0x0500) | | #if(_WIN32_WINNT >= 0x0500) |
| #define EWX_FORCEIFHUNG 0x00000010 | | #define EWX_FORCEIFHUNG 0x00000010 |
| #endif /* _WIN32_WINNT >= 0x0500 */ | | #endif /* _WIN32_WINNT >= 0x0500 */ |
| #define EWX_QUICKRESOLVE 0x00000020 | | #define EWX_QUICKRESOLVE 0x00000020 |
| #if(_WIN32_WINNT >= 0x0600) | | #if(_WIN32_WINNT >= 0x0600) |
| #define EWX_RESTARTAPPS 0x00000040 | | #define EWX_RESTARTAPPS 0x00000040 |
| #endif /* _WIN32_WINNT >= 0x0600 */ | | #endif /* _WIN32_WINNT >= 0x0600 */ |
| | |
| #define ExitWindows(dwReserved, Code) ExitWindowsEx(EWX_LOGOFF, 0xFFFFFFFF) | | #define ExitWindows(dwReserved, Code) ExitWindowsEx(EWX_LOGOFF, 0xFFFFFFFF) |
| | |
|
| | __drv_when((uFlags&(EWX_POWEROFF|EWX_SHUTDOWN|EWX_FORCE))!=0, |
| | __drv_preferredFunction("InitiateSystemShutdownEx", |
| | "Legacy API. Rearchitect to avoid Reboot")) |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| ExitWindowsEx( | | ExitWindowsEx( |
| __in UINT uFlags, | | __in UINT uFlags, |
| __in DWORD dwReason); | | __in DWORD dwReason); |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| | |
| skipping to change at line 3405 | | skipping to change at line 3424 |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| UnregisterDeviceNotification( | | UnregisterDeviceNotification( |
| __in HDEVNOTIFY Handle | | __in HDEVNOTIFY Handle |
| ); | | ); |
| | |
| #if (_WIN32_WINNT >= 0x0502) | | #if (_WIN32_WINNT >= 0x0502) |
|
| | |
| | #if !defined(_HPOWERNOTIFY_DEF_) |
| | |
| | #define _HPOWERNOTIFY_DEF_ |
| | |
| typedef PVOID HPOWERNOTIFY; | | typedef PVOID HPOWERNOTIFY; |
| typedef HPOWERNOTIFY *PHPOWERNOTIFY; | | typedef HPOWERNOTIFY *PHPOWERNOTIFY; |
| | |
|
| | #endif |
| | |
| WINUSERAPI | | WINUSERAPI |
| HPOWERNOTIFY | | HPOWERNOTIFY |
| WINAPI | | WINAPI |
| RegisterPowerSettingNotification( | | RegisterPowerSettingNotification( |
| IN HANDLE hRecipient, | | IN HANDLE hRecipient, |
| IN LPCGUID PowerSettingGuid, | | IN LPCGUID PowerSettingGuid, |
| IN DWORD Flags | | IN DWORD Flags |
| ); | | ); |
| | |
| WINUSERAPI | | WINUSERAPI |
| | |
| skipping to change at line 3664 | | skipping to change at line 3690 |
| #define RegisterClass RegisterClassW | | #define RegisterClass RegisterClassW |
| #else | | #else |
| #define RegisterClass RegisterClassA | | #define RegisterClass RegisterClassA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| UnregisterClassA( | | UnregisterClassA( |
| __in LPCSTR lpClassName, | | __in LPCSTR lpClassName, |
|
| __in HINSTANCE hInstance); | | __in_opt HINSTANCE hInstance); |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| UnregisterClassW( | | UnregisterClassW( |
| __in LPCWSTR lpClassName, | | __in LPCWSTR lpClassName, |
|
| __in HINSTANCE hInstance); | | __in_opt HINSTANCE hInstance); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define UnregisterClass UnregisterClassW | | #define UnregisterClass UnregisterClassW |
| #else | | #else |
| #define UnregisterClass UnregisterClassA | | #define UnregisterClass UnregisterClassA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| GetClassInfoA( | | GetClassInfoA( |
| | |
| skipping to change at line 3850 | | skipping to change at line 3876 |
| | |
| #if(_WIN32_WINNT >= 0x0500) | | #if(_WIN32_WINNT >= 0x0500) |
| #if defined(_WINGDI_) && !defined(NOGDI) | | #if defined(_WINGDI_) && !defined(NOGDI) |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| UpdateLayeredWindow( | | UpdateLayeredWindow( |
| __in HWND hWnd, | | __in HWND hWnd, |
| __in_opt HDC hdcDst, | | __in_opt HDC hdcDst, |
|
| __in_opt POINT *pptDst, | | __in_opt POINT* pptDst, |
| __in_opt SIZE *psize, | | __in_opt SIZE* psize, |
| __in_opt HDC hdcSrc, | | __in_opt HDC hdcSrc, |
|
| __in_opt POINT *pptSrc, | | __in_opt POINT* pptSrc, |
| __in COLORREF crKey, | | __in COLORREF crKey, |
|
| __in_opt BLENDFUNCTION *pblend, | | __in_opt BLENDFUNCTION* pblend, |
| __in DWORD dwFlags); | | __in DWORD dwFlags); |
| | |
| /* | | /* |
| * Layered Window Update information | | * Layered Window Update information |
| */ | | */ |
| typedef struct tagUPDATELAYEREDWINDOWINFO | | typedef struct tagUPDATELAYEREDWINDOWINFO |
| { | | { |
|
| __in DWORD cbSize; | | __in DWORD cbSize; |
| __in_opt HDC hdcDst; | | __in_opt HDC hdcDst; |
| __in_ecount_opt(1) POINT CONST *pptDst; | | __in_opt const POINT* pptDst; |
| __in_ecount_opt(1) SIZE CONST *psize; | | __in_opt const SIZE* psize; |
| __in_opt HDC hdcSrc; | | __in_opt HDC hdcSrc; |
| __in_ecount_opt(1) POINT CONST *pptSrc; | | __in_opt const POINT* pptSrc; |
| __in_opt COLORREF crKey; | | __in_opt COLORREF crKey; |
| __in_ecount_opt(1) BLENDFUNCTION CONST *pblend; | | __in_opt const BLENDFUNCTION* pblend; |
| __in DWORD dwFlags; | | __in DWORD dwFlags; |
| __in_ecount_opt(1) RECT CONST *prcDirty; | | __in_opt const RECT* prcDirty; |
| } UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO; | | } UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO; |
| | |
| #if (_WIN32_WINNT < 0x0502) | | #if (_WIN32_WINNT < 0x0502) |
| typedef | | typedef |
| #endif /* _WIN32_WINNT < 0x0502 */ | | #endif /* _WIN32_WINNT < 0x0502 */ |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| UpdateLayeredWindowIndirect( | | UpdateLayeredWindowIndirect( |
| __in HWND hWnd, | | __in HWND hWnd, |
|
| __in_ecount(1) UPDATELAYEREDWINDOWINFO CONST *pULWInfo); | | __in const UPDATELAYEREDWINDOWINFO* pULWInfo); |
| | |
| #endif | | #endif |
| | |
| #if(_WIN32_WINNT >= 0x0501) | | #if(_WIN32_WINNT >= 0x0501) |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| GetLayeredWindowAttributes( | | GetLayeredWindowAttributes( |
| __in HWND hwnd, | | __in HWND hwnd, |
|
| __out_opt COLORREF *pcrKey, | | __out_opt COLORREF* pcrKey, |
| __out_opt BYTE *pbAlpha, | | __out_opt BYTE* pbAlpha, |
| __out_opt DWORD *pdwFlags); | | __out_opt DWORD* pdwFlags); |
| | |
| #define PW_CLIENTONLY 0x00000001 | | #define PW_CLIENTONLY 0x00000001 |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| PrintWindow( | | PrintWindow( |
|
| __in HWND hwnd, | | __in HWND hwnd, |
| __in HDC hdcBlt, | | __in HDC hdcBlt, |
| __in UINT nFlags); | | __in UINT nFlags); |
| | |
| #endif /* _WIN32_WINNT >= 0x0501 */ | | #endif /* _WIN32_WINNT >= 0x0501 */ |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| SetLayeredWindowAttributes( | | SetLayeredWindowAttributes( |
| __in HWND hwnd, | | __in HWND hwnd, |
| __in COLORREF crKey, | | __in COLORREF crKey, |
| __in BYTE bAlpha, | | __in BYTE bAlpha, |
| | |
| skipping to change at line 4025 | | skipping to change at line 4051 |
| __in HWND hWnd, | | __in HWND hWnd, |
| __inout WINDOWPLACEMENT *lpwndpl); | | __inout WINDOWPLACEMENT *lpwndpl); |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| SetWindowPlacement( | | SetWindowPlacement( |
| __in HWND hWnd, | | __in HWND hWnd, |
| __in CONST WINDOWPLACEMENT *lpwndpl); | | __in CONST WINDOWPLACEMENT *lpwndpl); |
| | |
|
| | #if(_WIN32_WINNT >= 0x0601) |
| | #define WDA_NONE 0x00000000 |
| | #define WDA_MONITOR 0x00000001 |
| | |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | GetWindowDisplayAffinity( |
| | __in HWND hWnd, |
| | __out DWORD* pdwAffinity); |
| | |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | SetWindowDisplayAffinity( |
| | __in HWND hWnd, |
| | __in DWORD dwAffinity); |
| | |
| | #endif /* _WIN32_WINNT >= 0x0601 */ |
| | |
| #ifndef NODEFERWINDOWPOS | | #ifndef NODEFERWINDOWPOS |
| | |
| WINUSERAPI | | WINUSERAPI |
| HDWP | | HDWP |
| WINAPI | | WINAPI |
| BeginDeferWindowPos( | | BeginDeferWindowPos( |
| __in int nNumWindows); | | __in int nNumWindows); |
| | |
| WINUSERAPI | | WINUSERAPI |
| HDWP | | HDWP |
| | |
| skipping to change at line 4711 | | skipping to change at line 4757 |
| WINAPI | | WINAPI |
| CharToOemW( | | CharToOemW( |
| __in_xcount(strlen(pSrc) + 1) LPCWSTR pSrc, | | __in_xcount(strlen(pSrc) + 1) LPCWSTR pSrc, |
| __out_xcount(strlen(pSrc) + 1) LPSTR pDst); | | __out_xcount(strlen(pSrc) + 1) LPSTR pDst); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define CharToOem CharToOemW | | #define CharToOem CharToOemW |
| #else | | #else |
| #define CharToOem CharToOemA | | #define CharToOem CharToOemA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
|
| | __drv_preferredFunction("OemToCharBuff","Does not validate buffer size") |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| OemToCharA( | | OemToCharA( |
| __in_xcount(strlen(pSrc) + 1) LPCSTR pSrc, | | __in_xcount(strlen(pSrc) + 1) LPCSTR pSrc, |
| __out_xcount(strlen(pSrc) + 1) LPSTR pDst); | | __out_xcount(strlen(pSrc) + 1) LPSTR pDst); |
|
| | __drv_preferredFunction("OemToCharBuff","Does not validate buffer size") |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| OemToCharW( | | OemToCharW( |
| __in_xcount(strlen(pSrc) + 1) LPCSTR pSrc, | | __in_xcount(strlen(pSrc) + 1) LPCSTR pSrc, |
| __out_xcount(strlen(pSrc) + 1) LPWSTR pDst); | | __out_xcount(strlen(pSrc) + 1) LPWSTR pDst); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define OemToChar OemToCharW | | #define OemToChar OemToCharW |
| #else | | #else |
| #define OemToChar OemToCharA | | #define OemToChar OemToCharA |
| | |
| skipping to change at line 5219 | | skipping to change at line 5267 |
| WINUSERAPI | | WINUSERAPI |
| UINT | | UINT |
| WINAPI | | WINAPI |
| SendInput( | | SendInput( |
| __in UINT cInputs, // number of input in the array | | __in UINT cInputs, // number of input in the array |
| __in_ecount(cInputs) LPINPUT pInputs, // array of inputs | | __in_ecount(cInputs) LPINPUT pInputs, // array of inputs |
| __in int cbSize); // sizeof(INPUT) | | __in int cbSize); // sizeof(INPUT) |
| | |
| #endif // (_WIN32_WINNT > 0x0400) | | #endif // (_WIN32_WINNT > 0x0400) |
| | |
|
| | #if(WINVER >= 0x0601) |
| | |
| | /* |
| | * Touch Input defines and functions |
| | */ |
| | |
| | /* |
| | * Touch input handle |
| | */ |
| | DECLARE_HANDLE(HTOUCHINPUT); |
| | |
| | typedef struct tagTOUCHINPUT { |
| | LONG x; |
| | LONG y; |
| | HANDLE hSource; |
| | DWORD dwID; |
| | DWORD dwFlags; |
| | DWORD dwMask; |
| | DWORD dwTime; |
| | ULONG_PTR dwExtraInfo; |
| | DWORD cxContact; |
| | DWORD cyContact; |
| | } TOUCHINPUT, *PTOUCHINPUT; |
| | typedef TOUCHINPUT const * PCTOUCHINPUT; |
| | |
| | /* |
| | * Conversion of touch input coordinates to pixels |
| | */ |
| | #define TOUCH_COORD_TO_PIXEL(l) ((l) / 100) |
| | |
| | /* |
| | * Touch input flag values (TOUCHINPUT.dwFlags) |
| | */ |
| | #define TOUCHEVENTF_MOVE 0x0001 |
| | #define TOUCHEVENTF_DOWN 0x0002 |
| | #define TOUCHEVENTF_UP 0x0004 |
| | #define TOUCHEVENTF_INRANGE 0x0008 |
| | #define TOUCHEVENTF_PRIMARY 0x0010 |
| | #define TOUCHEVENTF_NOCOALESCE 0x0020 |
| | #define TOUCHEVENTF_PEN 0x0040 |
| | #define TOUCHEVENTF_PALM 0x0080 |
| | |
| | /* |
| | * Touch input mask values (TOUCHINPUT.dwMask) |
| | */ |
| | #define TOUCHINPUTMASKF_TIMEFROMSYSTEM 0x0001 // the dwTime field contains a s |
| | ystem generated value |
| | #define TOUCHINPUTMASKF_EXTRAINFO 0x0002 // the dwExtraInfo field is vali |
| | d |
| | #define TOUCHINPUTMASKF_CONTACTAREA 0x0004 // the cxContact and cyContact f |
| | ields are valid |
| | |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | GetTouchInputInfo( |
| | __in HTOUCHINPUT hTouchInput, // input event handle; from touc |
| | h message lParam |
| | __in UINT cInputs, // number of elements in the arr |
| | ay |
| | __out_ecount(cInputs) PTOUCHINPUT pInputs, // array of touch inputs |
| | __in int cbSize); // sizeof(TOUCHINPUT) |
| | |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | CloseTouchInputHandle( |
| | __in HTOUCHINPUT hTouchInput); // input event handle; from |
| | touch message lParam |
| | |
| | /* |
| | * RegisterTouchWindow flag values |
| | */ |
| | #define TWF_FINETOUCH (0x00000001) |
| | #define TWF_WANTPALM (0x00000002) |
| | |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | RegisterTouchWindow( |
| | __in HWND hwnd, |
| | __in ULONG ulFlags); |
| | |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | UnregisterTouchWindow( |
| | __in HWND hwnd); |
| | |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | IsTouchWindow( |
| | __in HWND hwnd, |
| | __out_opt PULONG pulFlags); |
| | |
| | #endif /* WINVER >= 0x0601 */ |
| | |
| #if(_WIN32_WINNT >= 0x0500) | | #if(_WIN32_WINNT >= 0x0500) |
| typedef struct tagLASTINPUTINFO { | | typedef struct tagLASTINPUTINFO { |
| UINT cbSize; | | UINT cbSize; |
| DWORD dwTime; | | DWORD dwTime; |
| } LASTINPUTINFO, * PLASTINPUTINFO; | | } LASTINPUTINFO, * PLASTINPUTINFO; |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| GetLastInputInfo( | | GetLastInputInfo( |
| | |
| skipping to change at line 5623 | | skipping to change at line 5763 |
| #define SM_MEDIACENTER 87 | | #define SM_MEDIACENTER 87 |
| #define SM_STARTER 88 | | #define SM_STARTER 88 |
| #define SM_SERVERR2 89 | | #define SM_SERVERR2 89 |
| #endif /* _WIN32_WINNT >= 0x0501 */ | | #endif /* _WIN32_WINNT >= 0x0501 */ |
| | |
| #if(_WIN32_WINNT >= 0x0600) | | #if(_WIN32_WINNT >= 0x0600) |
| #define SM_MOUSEHORIZONTALWHEELPRESENT 91 | | #define SM_MOUSEHORIZONTALWHEELPRESENT 91 |
| #define SM_CXPADDEDBORDER 92 | | #define SM_CXPADDEDBORDER 92 |
| #endif /* _WIN32_WINNT >= 0x0600 */ | | #endif /* _WIN32_WINNT >= 0x0600 */ |
| | |
|
| | #if(WINVER >= 0x0601) |
| | |
| | #define SM_DIGITIZER 94 |
| | #define SM_MAXIMUMTOUCHES 95 |
| | #endif /* WINVER >= 0x0601 */ |
| | |
| #if (WINVER < 0x0500) && (!defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0400)) | | #if (WINVER < 0x0500) && (!defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0400)) |
| #define SM_CMETRICS 76 | | #define SM_CMETRICS 76 |
| #elif WINVER == 0x500 | | #elif WINVER == 0x500 |
| #define SM_CMETRICS 83 | | #define SM_CMETRICS 83 |
| #elif WINVER == 0x501 | | #elif WINVER == 0x501 |
|
| #define SM_CMETRICS 90 | | #define SM_CMETRICS 91 |
| #else | | #elif WINVER == 0x600 |
| #define SM_CMETRICS 93 | | #define SM_CMETRICS 93 |
|
| | #else |
| | #define SM_CMETRICS 97 |
| #endif | | #endif |
| | |
| #if(WINVER >= 0x0500) | | #if(WINVER >= 0x0500) |
| #define SM_REMOTESESSION 0x1000 | | #define SM_REMOTESESSION 0x1000 |
| | |
| #if(_WIN32_WINNT >= 0x0501) | | #if(_WIN32_WINNT >= 0x0501) |
| #define SM_SHUTTINGDOWN 0x2000 | | #define SM_SHUTTINGDOWN 0x2000 |
| #endif /* _WIN32_WINNT >= 0x0501 */ | | #endif /* _WIN32_WINNT >= 0x0501 */ |
| | |
| #if(WINVER >= 0x0501) | | #if(WINVER >= 0x0501) |
| | |
| skipping to change at line 5983 | | skipping to change at line 6131 |
| WINAPI | | WINAPI |
| TrackPopupMenuEx( | | TrackPopupMenuEx( |
| __in HMENU, | | __in HMENU, |
| __in UINT, | | __in UINT, |
| __in int, | | __in int, |
| __in int, | | __in int, |
| __in HWND, | | __in HWND, |
| __in_opt LPTPMPARAMS); | | __in_opt LPTPMPARAMS); |
| #endif /* WINVER >= 0x0400 */ | | #endif /* WINVER >= 0x0400 */ |
| | |
|
| | #if(_WIN32_WINNT >= 0x0601) |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | CalculatePopupWindowPosition( |
| | __in const POINT *anchorPoint, |
| | __in const SIZE *windowSize, |
| | __in UINT /* TPM_XXX values */ flags, |
| | __in_opt RECT *excludeRect, |
| | __out RECT *popupWindowPosition); |
| | |
| | #endif /* _WIN32_WINNT >= 0x0601 */ |
| | |
| #if(WINVER >= 0x0500) | | #if(WINVER >= 0x0500) |
| | |
| #define MNS_NOCHECK 0x80000000 | | #define MNS_NOCHECK 0x80000000 |
| #define MNS_MODELESS 0x40000000 | | #define MNS_MODELESS 0x40000000 |
| #define MNS_DRAGDROP 0x20000000 | | #define MNS_DRAGDROP 0x20000000 |
| #define MNS_AUTODISMISS 0x10000000 | | #define MNS_AUTODISMISS 0x10000000 |
| #define MNS_NOTIFYBYPOS 0x08000000 | | #define MNS_NOTIFYBYPOS 0x08000000 |
| #define MNS_CHECKORBMP 0x04000000 | | #define MNS_CHECKORBMP 0x04000000 |
| | |
| #define MIM_MAXHEIGHT 0x00000001 | | #define MIM_MAXHEIGHT 0x00000001 |
| | |
| skipping to change at line 6270 | | skipping to change at line 6431 |
| #define TPM_HORNEGANIMATION 0x0800L | | #define TPM_HORNEGANIMATION 0x0800L |
| #define TPM_VERPOSANIMATION 0x1000L | | #define TPM_VERPOSANIMATION 0x1000L |
| #define TPM_VERNEGANIMATION 0x2000L | | #define TPM_VERNEGANIMATION 0x2000L |
| #if(_WIN32_WINNT >= 0x0500) | | #if(_WIN32_WINNT >= 0x0500) |
| #define TPM_NOANIMATION 0x4000L | | #define TPM_NOANIMATION 0x4000L |
| #endif /* _WIN32_WINNT >= 0x0500 */ | | #endif /* _WIN32_WINNT >= 0x0500 */ |
| #if(_WIN32_WINNT >= 0x0501) | | #if(_WIN32_WINNT >= 0x0501) |
| #define TPM_LAYOUTRTL 0x8000L | | #define TPM_LAYOUTRTL 0x8000L |
| #endif /* _WIN32_WINNT >= 0x0501 */ | | #endif /* _WIN32_WINNT >= 0x0501 */ |
| #endif /* WINVER >= 0x0500 */ | | #endif /* WINVER >= 0x0500 */ |
|
| | #if(_WIN32_WINNT >= 0x0601) |
| | #define TPM_WORKAREA 0x10000L |
| | #endif /* _WIN32_WINNT >= 0x0601 */ |
| | |
| #endif /* !NOMENUS */ | | #endif /* !NOMENUS */ |
| | |
| #if(WINVER >= 0x0400) | | #if(WINVER >= 0x0400) |
| // | | // |
| // Drag-and-drop support | | // Drag-and-drop support |
| // Obsolete - use OLE instead | | // Obsolete - use OLE instead |
| // | | // |
| typedef struct tagDROPSTRUCT | | typedef struct tagDROPSTRUCT |
| { | | { |
| | |
| skipping to change at line 6688 | | skipping to change at line 6852 |
| #define DCX_CLIPSIBLINGS 0x00000010L | | #define DCX_CLIPSIBLINGS 0x00000010L |
| #define DCX_PARENTCLIP 0x00000020L | | #define DCX_PARENTCLIP 0x00000020L |
| #define DCX_EXCLUDERGN 0x00000040L | | #define DCX_EXCLUDERGN 0x00000040L |
| #define DCX_INTERSECTRGN 0x00000080L | | #define DCX_INTERSECTRGN 0x00000080L |
| #define DCX_EXCLUDEUPDATE 0x00000100L | | #define DCX_EXCLUDEUPDATE 0x00000100L |
| #define DCX_INTERSECTUPDATE 0x00000200L | | #define DCX_INTERSECTUPDATE 0x00000200L |
| #define DCX_LOCKWINDOWUPDATE 0x00000400L | | #define DCX_LOCKWINDOWUPDATE 0x00000400L |
| | |
| #define DCX_VALIDATE 0x00200000L | | #define DCX_VALIDATE 0x00200000L |
| | |
|
| #if(WINVER >= 0x0600) | | |
| #define MONITORS_MAX 10 | | |
| #endif /* WINVER >= 0x0600 */ | | |
| | | |
| WINUSERAPI | | WINUSERAPI |
| HDC | | HDC |
| WINAPI | | WINAPI |
| GetWindowDC( | | GetWindowDC( |
| __in_opt HWND hWnd); | | __in_opt HWND hWnd); |
| | |
| WINUSERAPI | | WINUSERAPI |
| int | | int |
| WINAPI | | WINAPI |
| ReleaseDC( | | ReleaseDC( |
| | |
| skipping to change at line 7386 | | skipping to change at line 7546 |
| ShowCursor( | | ShowCursor( |
| __in BOOL bShow); | | __in BOOL bShow); |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| SetCursorPos( | | SetCursorPos( |
| __in int X, | | __in int X, |
| __in int Y); | | __in int Y); |
| | |
|
| | #if(WINVER >= 0x0600) |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| SetPhysicalCursorPos( | | SetPhysicalCursorPos( |
| __in int X, | | __in int X, |
| __in int Y); | | __in int Y); |
|
| | #endif /* WINVER >= 0x0600 */ |
| | |
| WINUSERAPI | | WINUSERAPI |
| HCURSOR | | HCURSOR |
| WINAPI | | WINAPI |
| SetCursor( | | SetCursor( |
| __in_opt HCURSOR hCursor); | | __in_opt HCURSOR hCursor); |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| GetCursorPos( | | GetCursorPos( |
| __out LPPOINT lpPoint); | | __out LPPOINT lpPoint); |
| | |
|
| | #if(WINVER >= 0x0600) |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| GetPhysicalCursorPos( | | GetPhysicalCursorPos( |
| __out LPPOINT lpPoint); | | __out LPPOINT lpPoint); |
|
| | #endif /* WINVER >= 0x0600 */ |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| ClipCursor( | | ClipCursor( |
| __in_opt CONST RECT *lpRect); | | __in_opt CONST RECT *lpRect); |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| | |
| skipping to change at line 8442 | | skipping to change at line 8606 |
| #define SC_DEFAULT 0xF160 | | #define SC_DEFAULT 0xF160 |
| #define SC_MONITORPOWER 0xF170 | | #define SC_MONITORPOWER 0xF170 |
| #define SC_CONTEXTHELP 0xF180 | | #define SC_CONTEXTHELP 0xF180 |
| #define SC_SEPARATOR 0xF00F | | #define SC_SEPARATOR 0xF00F |
| #endif /* WINVER >= 0x0400 */ | | #endif /* WINVER >= 0x0400 */ |
| | |
| #if(WINVER >= 0x0600) | | #if(WINVER >= 0x0600) |
| #define SCF_ISSECURE 0x00000001 | | #define SCF_ISSECURE 0x00000001 |
| #endif /* WINVER >= 0x0600 */ | | #endif /* WINVER >= 0x0600 */ |
| | |
|
| | #define GET_SC_WPARAM(wParam) ((int)wParam & 0xFFF0) |
| | |
| /* | | /* |
| * Obsolete names | | * Obsolete names |
| */ | | */ |
| #define SC_ICON SC_MINIMIZE | | #define SC_ICON SC_MINIMIZE |
| #define SC_ZOOM SC_MAXIMIZE | | #define SC_ZOOM SC_MAXIMIZE |
| | |
| #endif /* !NOSYSCOMMANDS */ | | #endif /* !NOSYSCOMMANDS */ |
| | |
| /* | | /* |
| * Resource Loading Routines | | * Resource Loading Routines |
| | |
| skipping to change at line 10103 | | skipping to change at line 10269 |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define WinHelp WinHelpW | | #define WinHelp WinHelpW |
| #else | | #else |
| #define WinHelp WinHelpA | | #define WinHelp WinHelpA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| #endif /* !NOHELP */ | | #endif /* !NOHELP */ |
| | |
| #if(WINVER >= 0x0500) | | #if(WINVER >= 0x0500) |
| | |
|
| #define GR_GDIOBJECTS 0 /* Count of GDI objects */ | | #define GR_GDIOBJECTS 0 /* Count of GDI objects */ |
| #define GR_USEROBJECTS 1 /* Count of USER objects */ | | #define GR_USEROBJECTS 1 /* Count of USER objects */ |
| | #endif /* WINVER >= 0x0500 */ |
| | #if(WINVER >= 0x0601) |
| | #define GR_GDIOBJECTS_PEAK 2 /* Peak count of GDI objects */ |
| | #define GR_USEROBJECTS_PEAK 4 /* Peak count of USER objects */ |
| | #endif /* WINVER >= 0x0601 */ |
| | |
| | #if(WINVER >= 0x0601) |
| | #define GR_GLOBAL ((HANDLE)-2) |
| | #endif /* WINVER >= 0x0601 */ |
| | |
|
| | #if(WINVER >= 0x0500) |
| WINUSERAPI | | WINUSERAPI |
| DWORD | | DWORD |
| WINAPI | | WINAPI |
| GetGuiResources( | | GetGuiResources( |
| __in HANDLE hProcess, | | __in HANDLE hProcess, |
| __in DWORD uiFlags); | | __in DWORD uiFlags); |
| #endif /* WINVER >= 0x0500 */ | | #endif /* WINVER >= 0x0500 */ |
| | |
| #ifndef NOSYSPARAMSINFO | | #ifndef NOSYSPARAMSINFO |
| | |
| /* | | /* |
|
| * Parameter for SystemParametersInfo() | | * Parameter for SystemParametersInfo. |
| */ | | */ |
| | |
| #define SPI_GETBEEP 0x0001 | | #define SPI_GETBEEP 0x0001 |
| #define SPI_SETBEEP 0x0002 | | #define SPI_SETBEEP 0x0002 |
| #define SPI_GETMOUSE 0x0003 | | #define SPI_GETMOUSE 0x0003 |
| #define SPI_SETMOUSE 0x0004 | | #define SPI_SETMOUSE 0x0004 |
| #define SPI_GETBORDER 0x0005 | | #define SPI_GETBORDER 0x0005 |
| #define SPI_SETBORDER 0x0006 | | #define SPI_SETBORDER 0x0006 |
| #define SPI_GETKEYBOARDSPEED 0x000A | | #define SPI_GETKEYBOARDSPEED 0x000A |
| #define SPI_SETKEYBOARDSPEED 0x000B | | #define SPI_SETKEYBOARDSPEED 0x000B |
| | |
| skipping to change at line 10256 | | skipping to change at line 10432 |
| #endif /* WINVER >= 0x0500 */ | | #endif /* WINVER >= 0x0500 */ |
| | |
| #if(WINVER >= 0x0600) | | #if(WINVER >= 0x0600) |
| #define SPI_GETAUDIODESCRIPTION 0x0074 | | #define SPI_GETAUDIODESCRIPTION 0x0074 |
| #define SPI_SETAUDIODESCRIPTION 0x0075 | | #define SPI_SETAUDIODESCRIPTION 0x0075 |
| | |
| #define SPI_GETSCREENSAVESECURE 0x0076 | | #define SPI_GETSCREENSAVESECURE 0x0076 |
| #define SPI_SETSCREENSAVESECURE 0x0077 | | #define SPI_SETSCREENSAVESECURE 0x0077 |
| #endif /* WINVER >= 0x0600 */ | | #endif /* WINVER >= 0x0600 */ |
| | |
|
| | #if(_WIN32_WINNT >= 0x0601) |
| | #define SPI_GETHUNGAPPTIMEOUT 0x0078 |
| | #define SPI_SETHUNGAPPTIMEOUT 0x0079 |
| | #define SPI_GETWAITTOKILLTIMEOUT 0x007A |
| | #define SPI_SETWAITTOKILLTIMEOUT 0x007B |
| | #define SPI_GETWAITTOKILLSERVICETIMEOUT 0x007C |
| | #define SPI_SETWAITTOKILLSERVICETIMEOUT 0x007D |
| | #define SPI_GETMOUSEDOCKTHRESHOLD 0x007E |
| | #define SPI_SETMOUSEDOCKTHRESHOLD 0x007F |
| | #define SPI_GETPENDOCKTHRESHOLD 0x0080 |
| | #define SPI_SETPENDOCKTHRESHOLD 0x0081 |
| | #define SPI_GETWINARRANGING 0x0082 |
| | #define SPI_SETWINARRANGING 0x0083 |
| | #define SPI_GETMOUSEDRAGOUTTHRESHOLD 0x0084 |
| | #define SPI_SETMOUSEDRAGOUTTHRESHOLD 0x0085 |
| | #define SPI_GETPENDRAGOUTTHRESHOLD 0x0086 |
| | #define SPI_SETPENDRAGOUTTHRESHOLD 0x0087 |
| | #define SPI_GETMOUSESIDEMOVETHRESHOLD 0x0088 |
| | #define SPI_SETMOUSESIDEMOVETHRESHOLD 0x0089 |
| | #define SPI_GETPENSIDEMOVETHRESHOLD 0x008A |
| | #define SPI_SETPENSIDEMOVETHRESHOLD 0x008B |
| | #define SPI_GETDRAGFROMMAXIMIZE 0x008C |
| | #define SPI_SETDRAGFROMMAXIMIZE 0x008D |
| | #define SPI_GETSNAPSIZING 0x008E |
| | #define SPI_SETSNAPSIZING 0x008F |
| | #define SPI_GETDOCKMOVING 0x0090 |
| | #define SPI_SETDOCKMOVING 0x0091 |
| | #endif /* _WIN32_WINNT >= 0x0601 */ |
| | |
| #if(WINVER >= 0x0500) | | #if(WINVER >= 0x0500) |
| #define SPI_GETACTIVEWINDOWTRACKING 0x1000 | | #define SPI_GETACTIVEWINDOWTRACKING 0x1000 |
| #define SPI_SETACTIVEWINDOWTRACKING 0x1001 | | #define SPI_SETACTIVEWINDOWTRACKING 0x1001 |
| #define SPI_GETMENUANIMATION 0x1002 | | #define SPI_GETMENUANIMATION 0x1002 |
| #define SPI_SETMENUANIMATION 0x1003 | | #define SPI_SETMENUANIMATION 0x1003 |
| #define SPI_GETCOMBOBOXANIMATION 0x1004 | | #define SPI_GETCOMBOBOXANIMATION 0x1004 |
| #define SPI_SETCOMBOBOXANIMATION 0x1005 | | #define SPI_SETCOMBOBOXANIMATION 0x1005 |
| #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006 | | #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006 |
| #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007 | | #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007 |
| #define SPI_GETGRADIENTCAPTIONS 0x1008 | | #define SPI_GETGRADIENTCAPTIONS 0x1008 |
| | |
| skipping to change at line 10332 | | skipping to change at line 10537 |
| | |
| #if(_WIN32_WINNT >= 0x0501) | | #if(_WIN32_WINNT >= 0x0501) |
| #define SPI_GETMOUSECLICKLOCKTIME 0x2008 | | #define SPI_GETMOUSECLICKLOCKTIME 0x2008 |
| #define SPI_SETMOUSECLICKLOCKTIME 0x2009 | | #define SPI_SETMOUSECLICKLOCKTIME 0x2009 |
| #define SPI_GETFONTSMOOTHINGTYPE 0x200A | | #define SPI_GETFONTSMOOTHINGTYPE 0x200A |
| #define SPI_SETFONTSMOOTHINGTYPE 0x200B | | #define SPI_SETFONTSMOOTHINGTYPE 0x200B |
| | |
| /* constants for SPI_GETFONTSMOOTHINGTYPE and SPI_SETFONTSMOOTHINGTYPE: */ | | /* constants for SPI_GETFONTSMOOTHINGTYPE and SPI_SETFONTSMOOTHINGTYPE: */ |
| #define FE_FONTSMOOTHINGSTANDARD 0x0001 | | #define FE_FONTSMOOTHINGSTANDARD 0x0001 |
| #define FE_FONTSMOOTHINGCLEARTYPE 0x0002 | | #define FE_FONTSMOOTHINGCLEARTYPE 0x0002 |
|
| #define FE_FONTSMOOTHINGDOCKING 0x8000 | | |
| | |
| #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C | | #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C |
| #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D | | #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D |
| | |
| #define SPI_GETFOCUSBORDERWIDTH 0x200E | | #define SPI_GETFOCUSBORDERWIDTH 0x200E |
| #define SPI_SETFOCUSBORDERWIDTH 0x200F | | #define SPI_SETFOCUSBORDERWIDTH 0x200F |
| #define SPI_GETFOCUSBORDERHEIGHT 0x2010 | | #define SPI_GETFOCUSBORDERHEIGHT 0x2010 |
| #define SPI_SETFOCUSBORDERHEIGHT 0x2011 | | #define SPI_SETFOCUSBORDERHEIGHT 0x2011 |
| | |
| #define SPI_GETFONTSMOOTHINGORIENTATION 0x2012 | | #define SPI_GETFONTSMOOTHINGORIENTATION 0x2012 |
| | |
| skipping to change at line 10558 | | skipping to change at line 10762 |
| #define CDS_TEST 0x00000002 | | #define CDS_TEST 0x00000002 |
| #define CDS_FULLSCREEN 0x00000004 | | #define CDS_FULLSCREEN 0x00000004 |
| #define CDS_GLOBAL 0x00000008 | | #define CDS_GLOBAL 0x00000008 |
| #define CDS_SET_PRIMARY 0x00000010 | | #define CDS_SET_PRIMARY 0x00000010 |
| #define CDS_VIDEOPARAMETERS 0x00000020 | | #define CDS_VIDEOPARAMETERS 0x00000020 |
| #if(WINVER >= 0x0600) | | #if(WINVER >= 0x0600) |
| #define CDS_ENABLE_UNSAFE_MODES 0x00000100 | | #define CDS_ENABLE_UNSAFE_MODES 0x00000100 |
| #define CDS_DISABLE_UNSAFE_MODES 0x00000200 | | #define CDS_DISABLE_UNSAFE_MODES 0x00000200 |
| #endif /* WINVER >= 0x0600 */ | | #endif /* WINVER >= 0x0600 */ |
| #define CDS_RESET 0x40000000 | | #define CDS_RESET 0x40000000 |
|
| | #define CDS_RESET_EX 0x20000000 |
| #define CDS_NORESET 0x10000000 | | #define CDS_NORESET 0x10000000 |
| | |
| #include <tvout.h> | | #include <tvout.h> |
| | |
| /* Return values for ChangeDisplaySettings */ | | /* Return values for ChangeDisplaySettings */ |
| #define DISP_CHANGE_SUCCESSFUL 0 | | #define DISP_CHANGE_SUCCESSFUL 0 |
| #define DISP_CHANGE_RESTART 1 | | #define DISP_CHANGE_RESTART 1 |
| #define DISP_CHANGE_FAILED -1 | | #define DISP_CHANGE_FAILED -1 |
| #define DISP_CHANGE_BADMODE -2 | | #define DISP_CHANGE_BADMODE -2 |
| #define DISP_CHANGE_NOTUPDATED -3 | | #define DISP_CHANGE_NOTUPDATED -3 |
| | |
| skipping to change at line 10581 | | skipping to change at line 10786 |
| #define DISP_CHANGE_BADDUALVIEW -6 | | #define DISP_CHANGE_BADDUALVIEW -6 |
| #endif /* _WIN32_WINNT >= 0x0501 */ | | #endif /* _WIN32_WINNT >= 0x0501 */ |
| | |
| #ifdef _WINGDI_ | | #ifdef _WINGDI_ |
| #ifndef NOGDI | | #ifndef NOGDI |
| | |
| WINUSERAPI | | WINUSERAPI |
| LONG | | LONG |
| WINAPI | | WINAPI |
| ChangeDisplaySettingsA( | | ChangeDisplaySettingsA( |
|
| __in_opt LPDEVMODEA lpDevMode, | | __in_opt DEVMODEA* lpDevMode, |
| __in DWORD dwFlags); | | __in DWORD dwFlags); |
| WINUSERAPI | | WINUSERAPI |
| LONG | | LONG |
| WINAPI | | WINAPI |
| ChangeDisplaySettingsW( | | ChangeDisplaySettingsW( |
|
| __in_opt LPDEVMODEW lpDevMode, | | __in_opt DEVMODEW* lpDevMode, |
| __in DWORD dwFlags); | | __in DWORD dwFlags); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define ChangeDisplaySettings ChangeDisplaySettingsW | | #define ChangeDisplaySettings ChangeDisplaySettingsW |
| #else | | #else |
| #define ChangeDisplaySettings ChangeDisplaySettingsA | | #define ChangeDisplaySettings ChangeDisplaySettingsA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| WINUSERAPI | | WINUSERAPI |
| LONG | | LONG |
| WINAPI | | WINAPI |
| ChangeDisplaySettingsExA( | | ChangeDisplaySettingsExA( |
| __in_opt LPCSTR lpszDeviceName, | | __in_opt LPCSTR lpszDeviceName, |
|
| __in_opt LPDEVMODEA lpDevMode, | | __in_opt DEVMODEA* lpDevMode, |
| __reserved HWND hwnd, | | __reserved HWND hwnd, |
| __in DWORD dwflags, | | __in DWORD dwflags, |
| __in_opt LPVOID lParam); | | __in_opt LPVOID lParam); |
| WINUSERAPI | | WINUSERAPI |
| LONG | | LONG |
| WINAPI | | WINAPI |
| ChangeDisplaySettingsExW( | | ChangeDisplaySettingsExW( |
| __in_opt LPCWSTR lpszDeviceName, | | __in_opt LPCWSTR lpszDeviceName, |
|
| __in_opt LPDEVMODEW lpDevMode, | | __in_opt DEVMODEW* lpDevMode, |
| __reserved HWND hwnd, | | __reserved HWND hwnd, |
| __in DWORD dwflags, | | __in DWORD dwflags, |
| __in_opt LPVOID lParam); | | __in_opt LPVOID lParam); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define ChangeDisplaySettingsEx ChangeDisplaySettingsExW | | #define ChangeDisplaySettingsEx ChangeDisplaySettingsExW |
| #else | | #else |
| #define ChangeDisplaySettingsEx ChangeDisplaySettingsExA | | #define ChangeDisplaySettingsEx ChangeDisplaySettingsExA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| #define ENUM_CURRENT_SETTINGS ((DWORD)-1) | | #define ENUM_CURRENT_SETTINGS ((DWORD)-1) |
| #define ENUM_REGISTRY_SETTINGS ((DWORD)-2) | | #define ENUM_REGISTRY_SETTINGS ((DWORD)-2) |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| EnumDisplaySettingsA( | | EnumDisplaySettingsA( |
| __in_opt LPCSTR lpszDeviceName, | | __in_opt LPCSTR lpszDeviceName, |
| __in DWORD iModeNum, | | __in DWORD iModeNum, |
|
| __inout LPDEVMODEA lpDevMode); | | __inout DEVMODEA* lpDevMode); |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| EnumDisplaySettingsW( | | EnumDisplaySettingsW( |
| __in_opt LPCWSTR lpszDeviceName, | | __in_opt LPCWSTR lpszDeviceName, |
| __in DWORD iModeNum, | | __in DWORD iModeNum, |
|
| __inout LPDEVMODEW lpDevMode); | | __inout DEVMODEW* lpDevMode); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define EnumDisplaySettings EnumDisplaySettingsW | | #define EnumDisplaySettings EnumDisplaySettingsW |
| #else | | #else |
| #define EnumDisplaySettings EnumDisplaySettingsA | | #define EnumDisplaySettings EnumDisplaySettingsA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| #if(WINVER >= 0x0500) | | #if(WINVER >= 0x0500) |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| EnumDisplaySettingsExA( | | EnumDisplaySettingsExA( |
| __in_opt LPCSTR lpszDeviceName, | | __in_opt LPCSTR lpszDeviceName, |
| __in DWORD iModeNum, | | __in DWORD iModeNum, |
|
| __inout LPDEVMODEA lpDevMode, | | __inout DEVMODEA* lpDevMode, |
| __in DWORD dwFlags); | | __in DWORD dwFlags); |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| EnumDisplaySettingsExW( | | EnumDisplaySettingsExW( |
| __in_opt LPCWSTR lpszDeviceName, | | __in_opt LPCWSTR lpszDeviceName, |
| __in DWORD iModeNum, | | __in DWORD iModeNum, |
|
| __inout LPDEVMODEW lpDevMode, | | __inout DEVMODEW* lpDevMode, |
| __in DWORD dwFlags); | | __in DWORD dwFlags); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define EnumDisplaySettingsEx EnumDisplaySettingsExW | | #define EnumDisplaySettingsEx EnumDisplaySettingsExW |
| #else | | #else |
| #define EnumDisplaySettingsEx EnumDisplaySettingsExA | | #define EnumDisplaySettingsEx EnumDisplaySettingsExA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| /* Flags for EnumDisplaySettingsEx */ | | /* Flags for EnumDisplaySettingsEx */ |
| #define EDS_RAWMODE 0x00000002 | | #define EDS_RAWMODE 0x00000002 |
| #define EDS_ROTATEDMODE 0x00000004 | | #define EDS_ROTATEDMODE 0x00000004 |
| | |
| skipping to change at line 10694 | | skipping to change at line 10899 |
| __inout PDISPLAY_DEVICEW lpDisplayDevice, | | __inout PDISPLAY_DEVICEW lpDisplayDevice, |
| __in DWORD dwFlags); | | __in DWORD dwFlags); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define EnumDisplayDevices EnumDisplayDevicesW | | #define EnumDisplayDevices EnumDisplayDevicesW |
| #else | | #else |
| #define EnumDisplayDevices EnumDisplayDevicesA | | #define EnumDisplayDevices EnumDisplayDevicesA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| /* Flags for EnumDisplayDevices */ | | /* Flags for EnumDisplayDevices */ |
| #define EDD_GET_DEVICE_INTERFACE_NAME 0x00000001 | | #define EDD_GET_DEVICE_INTERFACE_NAME 0x00000001 |
|
| | |
| #endif /* WINVER >= 0x0500 */ | | #endif /* WINVER >= 0x0500 */ |
| | |
|
| | #if(WINVER >= 0x0601) |
| | |
| | WINUSERAPI |
| | LONG |
| | WINAPI |
| | GetDisplayConfigBufferSizes( |
| | __in UINT32 flags, |
| | __out UINT32* numPathArrayElements, |
| | __out UINT32* numModeInfoArrayElements); |
| | |
| | WINUSERAPI |
| | LONG |
| | WINAPI |
| | SetDisplayConfig( |
| | __in UINT32 numPathArrayElements, |
| | __in_ecount_opt(numPathArrayElements) DISPLAYCONFIG_PATH_INFO* pathArray, |
| | __in UINT32 numModeInfoArrayElements, |
| | __in_ecount_opt(numModeInfoArrayElements) DISPLAYCONFIG_MODE_INFO* modeInfoA |
| | rray, |
| | __in UINT32 flags); |
| | |
| | WINUSERAPI |
| | LONG |
| | WINAPI |
| | QueryDisplayConfig( |
| | __in UINT32 flags, |
| | __inout UINT32* numPathArrayElements, |
| | __out_ecount_part(*numPathArrayElements, *numPathArrayElements) DISPLAYCONFI |
| | G_PATH_INFO* pathArray, |
| | __inout UINT32* numModeInfoArrayElements, |
| | __out_ecount_part(*numModeInfoArrayElements, *numModeInfoArrayElements) DISP |
| | LAYCONFIG_MODE_INFO* modeInfoArray, |
| | __out DISPLAYCONFIG_TOPOLOGY_ID* currentTopologyId); |
| | |
| | WINUSERAPI |
| | LONG |
| | WINAPI |
| | DisplayConfigGetDeviceInfo( |
| | __inout DISPLAYCONFIG_DEVICE_INFO_HEADER* requestPacket); |
| | |
| | WINUSERAPI |
| | LONG |
| | WINAPI |
| | DisplayConfigSetDeviceInfo( |
| | __in DISPLAYCONFIG_DEVICE_INFO_HEADER* setPacket); |
| | |
| | #endif /* WINVER >= 0x0601 */ |
| | |
| #endif /* NOGDI */ | | #endif /* NOGDI */ |
| #endif /* _WINGDI_ */ | | #endif /* _WINGDI_ */ |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| SystemParametersInfoA( | | SystemParametersInfoA( |
| __in UINT uiAction, | | __in UINT uiAction, |
| __in UINT uiParam, | | __in UINT uiParam, |
| __inout_opt PVOID pvParam, | | __inout_opt PVOID pvParam, |
| | |
| skipping to change at line 11342 | | skipping to change at line 11593 |
| * EVENT_SYSTEM_MINIMIZEEND | | * EVENT_SYSTEM_MINIMIZEEND |
| * Sent when a window minimizes and just before it restores. | | * Sent when a window minimizes and just before it restores. |
| */ | | */ |
| #define EVENT_SYSTEM_MINIMIZESTART 0x0016 | | #define EVENT_SYSTEM_MINIMIZESTART 0x0016 |
| #define EVENT_SYSTEM_MINIMIZEEND 0x0017 | | #define EVENT_SYSTEM_MINIMIZEEND 0x0017 |
| | |
| #if(_WIN32_WINNT >= 0x0600) | | #if(_WIN32_WINNT >= 0x0600) |
| #define EVENT_SYSTEM_DESKTOPSWITCH 0x0020 | | #define EVENT_SYSTEM_DESKTOPSWITCH 0x0020 |
| #endif /* _WIN32_WINNT >= 0x0600 */ | | #endif /* _WIN32_WINNT >= 0x0600 */ |
| | |
|
| | #if(_WIN32_WINNT >= 0x0601) |
| | #define EVENT_SYSTEM_END 0x00FF |
| | |
| | #define EVENT_OEM_DEFINED_START 0x0101 |
| | #define EVENT_OEM_DEFINED_END 0x01FF |
| | |
| | #define EVENT_UIA_EVENTID_START 0x4E00 |
| | #define EVENT_UIA_EVENTID_END 0x4EFF |
| | |
| | #define EVENT_UIA_PROPID_START 0x7500 |
| | #define EVENT_UIA_PROPID_END 0x75FF |
| | #endif /* _WIN32_WINNT >= 0x0601 */ |
| | |
| #if(_WIN32_WINNT >= 0x0501) | | #if(_WIN32_WINNT >= 0x0501) |
| #define EVENT_CONSOLE_CARET 0x4001 | | #define EVENT_CONSOLE_CARET 0x4001 |
| #define EVENT_CONSOLE_UPDATE_REGION 0x4002 | | #define EVENT_CONSOLE_UPDATE_REGION 0x4002 |
| #define EVENT_CONSOLE_UPDATE_SIMPLE 0x4003 | | #define EVENT_CONSOLE_UPDATE_SIMPLE 0x4003 |
| #define EVENT_CONSOLE_UPDATE_SCROLL 0x4004 | | #define EVENT_CONSOLE_UPDATE_SCROLL 0x4004 |
| #define EVENT_CONSOLE_LAYOUT 0x4005 | | #define EVENT_CONSOLE_LAYOUT 0x4005 |
| #define EVENT_CONSOLE_START_APPLICATION 0x4006 | | #define EVENT_CONSOLE_START_APPLICATION 0x4006 |
| #define EVENT_CONSOLE_END_APPLICATION 0x4007 | | #define EVENT_CONSOLE_END_APPLICATION 0x4007 |
| | |
| /* | | /* |
| | |
| skipping to change at line 11367 | | skipping to change at line 11631 |
| #define CONSOLE_APPLICATION_16BIT 0x0001 | | #define CONSOLE_APPLICATION_16BIT 0x0001 |
| #endif | | #endif |
| | |
| /* | | /* |
| * Flags for EVENT_CONSOLE_CARET | | * Flags for EVENT_CONSOLE_CARET |
| */ | | */ |
| #define CONSOLE_CARET_SELECTION 0x0001 | | #define CONSOLE_CARET_SELECTION 0x0001 |
| #define CONSOLE_CARET_VISIBLE 0x0002 | | #define CONSOLE_CARET_VISIBLE 0x0002 |
| #endif /* _WIN32_WINNT >= 0x0501 */ | | #endif /* _WIN32_WINNT >= 0x0501 */ |
| | |
|
| | #if(_WIN32_WINNT >= 0x0601) |
| | #define EVENT_CONSOLE_END 0x40FF |
| | #endif /* _WIN32_WINNT >= 0x0601 */ |
| | |
| /* | | /* |
| * Object events | | * Object events |
| * | | * |
| * The system AND apps generate these. The system generates these for | | * The system AND apps generate these. The system generates these for |
| * real windows. Apps generate these for objects within their window which | | * real windows. Apps generate these for objects within their window which |
| * act like a separate control, e.g. an item in a list view. | | * act like a separate control, e.g. an item in a list view. |
| * | | * |
| * When the system generate them, dwParam2 is always WMOBJID_SELF. When | | * When the system generate them, dwParam2 is always WMOBJID_SELF. When |
| * apps generate them, apps put the has-meaning-to-the-app-only ID value | | * apps generate them, apps put the has-meaning-to-the-app-only ID value |
| * in dwParam2. | | * in dwParam2. |
| | |
| skipping to change at line 11565 | | skipping to change at line 11833 |
| * when it is scrolled by scroll bars, mouse wheel, or keyboard navigations. | | * when it is scrolled by scroll bars, mouse wheel, or keyboard navigations. |
| * | | * |
| * example: | | * example: |
| * hwnd == window that is scrolling | | * hwnd == window that is scrolling |
| * idObject == OBJID_CLIENT | | * idObject == OBJID_CLIENT |
| * idChild == CHILDID_SELF | | * idChild == CHILDID_SELF |
| */ | | */ |
| #define EVENT_OBJECT_CONTENTSCROLLED 0x8015 | | #define EVENT_OBJECT_CONTENTSCROLLED 0x8015 |
| #endif /* _WIN32_WINNT >= 0x0600 */ | | #endif /* _WIN32_WINNT >= 0x0600 */ |
| | |
|
| | #if(_WIN32_WINNT >= 0x0601) |
| | #define EVENT_SYSTEM_ARRANGMENTPREVIEW 0x8016 |
| | #endif /* _WIN32_WINNT >= 0x0601 */ |
| | |
| | #if(_WIN32_WINNT >= 0x0601) |
| | #define EVENT_OBJECT_END 0x80FF |
| | |
| | #define EVENT_AIA_START 0xA000 |
| | #define EVENT_AIA_END 0xAFFF |
| | #endif /* _WIN32_WINNT >= 0x0601 */ |
| | |
| /* | | /* |
| * Child IDs | | * Child IDs |
| */ | | */ |
| | |
| /* | | /* |
| * System Sounds (idChild of system SOUND notification) | | * System Sounds (idChild of system SOUND notification) |
| */ | | */ |
| #define SOUND_SYSTEM_STARTUP 1 | | #define SOUND_SYSTEM_STARTUP 1 |
| #define SOUND_SYSTEM_SHUTDOWN 2 | | #define SOUND_SYSTEM_SHUTDOWN 2 |
| #define SOUND_SYSTEM_BEEP 3 | | #define SOUND_SYSTEM_BEEP 3 |
| | |
| skipping to change at line 11774 | | skipping to change at line 12053 |
| DWORD cbSize; | | DWORD cbSize; |
| RECT rcTitleBar; | | RECT rcTitleBar; |
| DWORD rgstate[CCHILDREN_TITLEBAR + 1]; | | DWORD rgstate[CCHILDREN_TITLEBAR + 1]; |
| } TITLEBARINFO, *PTITLEBARINFO, *LPTITLEBARINFO; | | } TITLEBARINFO, *PTITLEBARINFO, *LPTITLEBARINFO; |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| GetTitleBarInfo( | | GetTitleBarInfo( |
| __in HWND hwnd, | | __in HWND hwnd, |
|
| __deref_out PTITLEBARINFO pti); | | __inout PTITLEBARINFO pti); |
| | |
| #if(WINVER >= 0x0600) | | #if(WINVER >= 0x0600) |
| typedef struct tagTITLEBARINFOEX | | typedef struct tagTITLEBARINFOEX |
| { | | { |
| DWORD cbSize; | | DWORD cbSize; |
| RECT rcTitleBar; | | RECT rcTitleBar; |
| DWORD rgstate[CCHILDREN_TITLEBAR + 1]; | | DWORD rgstate[CCHILDREN_TITLEBAR + 1]; |
| RECT rgrect[CCHILDREN_TITLEBAR + 1]; | | RECT rgrect[CCHILDREN_TITLEBAR + 1]; |
| } TITLEBARINFOEX, *PTITLEBARINFOEX, *LPTITLEBARINFOEX; | | } TITLEBARINFOEX, *PTITLEBARINFOEX, *LPTITLEBARINFOEX; |
| #endif /* WINVER >= 0x0600 */ | | #endif /* WINVER >= 0x0600 */ |
| | |
| skipping to change at line 12251 | | skipping to change at line 12530 |
| RID_DEVICE_INFO_HID hid; | | RID_DEVICE_INFO_HID hid; |
| }; | | }; |
| } RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO; | | } RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO; |
| | |
| WINUSERAPI | | WINUSERAPI |
| UINT | | UINT |
| WINAPI | | WINAPI |
| GetRawInputDeviceInfoA( | | GetRawInputDeviceInfoA( |
| __in_opt HANDLE hDevice, | | __in_opt HANDLE hDevice, |
| __in UINT uiCommand, | | __in UINT uiCommand, |
|
| __inout_bcount_part_opt(*pcbSize, return) LPVOID pData, | | __inout_bcount_part_opt(*pcbSize, *pcbSize) LPVOID pData, |
| __inout PUINT pcbSize); | | __inout PUINT pcbSize); |
| WINUSERAPI | | WINUSERAPI |
| UINT | | UINT |
| WINAPI | | WINAPI |
| GetRawInputDeviceInfoW( | | GetRawInputDeviceInfoW( |
| __in_opt HANDLE hDevice, | | __in_opt HANDLE hDevice, |
| __in UINT uiCommand, | | __in UINT uiCommand, |
|
| __inout_bcount_part_opt(*pcbSize, return) LPVOID pData, | | __inout_bcount_part_opt(*pcbSize, *pcbSize) LPVOID pData, |
| __inout PUINT pcbSize); | | __inout PUINT pcbSize); |
| #ifdef UNICODE | | #ifdef UNICODE |
| #define GetRawInputDeviceInfo GetRawInputDeviceInfoW | | #define GetRawInputDeviceInfo GetRawInputDeviceInfoW |
| #else | | #else |
| #define GetRawInputDeviceInfo GetRawInputDeviceInfoA | | #define GetRawInputDeviceInfo GetRawInputDeviceInfoA |
| #endif // !UNICODE | | #endif // !UNICODE |
| | |
| /* | | /* |
| * Raw Input Bulk Read: GetRawInputBuffer | | * Raw Input Bulk Read: GetRawInputBuffer |
| */ | | */ |
| | |
| skipping to change at line 12312 | | skipping to change at line 12591 |
| #define RIDEV_EXMODEMASK 0x000000F0 | | #define RIDEV_EXMODEMASK 0x000000F0 |
| | |
| #define RIDEV_EXMODE(mode) ((mode) & RIDEV_EXMODEMASK) | | #define RIDEV_EXMODE(mode) ((mode) & RIDEV_EXMODEMASK) |
| | |
| #if(_WIN32_WINNT >= 0x0501) | | #if(_WIN32_WINNT >= 0x0501) |
| /* | | /* |
| * Flags for the WM_INPUT_DEVICE_CHANGE message. | | * Flags for the WM_INPUT_DEVICE_CHANGE message. |
| */ | | */ |
| #define GIDC_ARRIVAL 1 | | #define GIDC_ARRIVAL 1 |
| #define GIDC_REMOVAL 2 | | #define GIDC_REMOVAL 2 |
|
| #define GET_DEVICE_CHANGE_LPARAM(lParam) (LOWORD(lParam)) | | |
| #endif /* _WIN32_WINNT >= 0x0501 */ | | #endif /* _WIN32_WINNT >= 0x0501 */ |
| | |
|
| | #if (_WIN32_WINNT >= 0x0601) |
| | #define GET_DEVICE_CHANGE_WPARAM(wParam) (LOWORD(wParam)) |
| | #elif (_WIN32_WINNT >= 0x0501) |
| | #define GET_DEVICE_CHANGE_LPARAM(lParam) (LOWORD(lParam)) |
| | #endif /* (_WIN32_WINNT >= 0x0601) */ |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| RegisterRawInputDevices( | | RegisterRawInputDevices( |
| __in_ecount(uiNumDevices) PCRAWINPUTDEVICE pRawInputDevices, | | __in_ecount(uiNumDevices) PCRAWINPUTDEVICE pRawInputDevices, |
| __in UINT uiNumDevices, | | __in UINT uiNumDevices, |
| __in UINT cbSize); | | __in UINT cbSize); |
| | |
| WINUSERAPI | | WINUSERAPI |
| UINT | | UINT |
| | |
| skipping to change at line 12355 | | skipping to change at line 12639 |
| LRESULT | | LRESULT |
| WINAPI | | WINAPI |
| DefRawInputProc( | | DefRawInputProc( |
| __in_ecount(nInput) PRAWINPUT* paRawInput, | | __in_ecount(nInput) PRAWINPUT* paRawInput, |
| __in INT nInput, | | __in INT nInput, |
| __in UINT cbSizeHeader); | | __in UINT cbSizeHeader); |
| | |
| #endif /* _WIN32_WINNT >= 0x0501 */ | | #endif /* _WIN32_WINNT >= 0x0501 */ |
| | |
| #if(WINVER >= 0x0600) | | #if(WINVER >= 0x0600) |
|
| | |
| | /* |
| | * Message Filter |
| | */ |
| | |
| #define MSGFLT_ADD 1 | | #define MSGFLT_ADD 1 |
| #define MSGFLT_REMOVE 2 | | #define MSGFLT_REMOVE 2 |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| ChangeWindowMessageFilter( | | ChangeWindowMessageFilter( |
| __in UINT message, | | __in UINT message, |
| __in DWORD dwFlag); | | __in DWORD dwFlag); |
|
| | |
| #endif /* WINVER >= 0x0600 */ | | #endif /* WINVER >= 0x0600 */ |
| | |
|
| | #if(WINVER >= 0x0601) |
| | |
| | /* |
| | * Message filter info values (CHANGEFILTERSTRUCT.ExtStatus) |
| | */ |
| | #define MSGFLTINFO_NONE (0) |
| | #define MSGFLTINFO_ALREADYALLOWED_FORWND (1) |
| | #define MSGFLTINFO_ALREADYDISALLOWED_FORWND (2) |
| | #define MSGFLTINFO_ALLOWED_HIGHER (3) |
| | |
| | typedef struct tagCHANGEFILTERSTRUCT { |
| | DWORD cbSize; |
| | DWORD ExtStatus; |
| | } CHANGEFILTERSTRUCT, *PCHANGEFILTERSTRUCT; |
| | |
| | /* |
| | * Message filter action values (action parameter to ChangeWindowMessageFilterEx |
| | ) |
| | */ |
| | #define MSGFLT_RESET (0) |
| | #define MSGFLT_ALLOW (1) |
| | #define MSGFLT_DISALLOW (2) |
| | |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | ChangeWindowMessageFilterEx( |
| | __in HWND hwnd, // Window |
| | __in UINT message, // WM_ message |
| | __in DWORD action, // Message filter ac |
| | tion value |
| | __inout_opt PCHANGEFILTERSTRUCT pChangeFilterStruct); // Optional |
| | |
| | #endif /* WINVER >= 0x0601 */ |
| | |
| | #if(WINVER >= 0x0601) |
| | |
| | /* |
| | * Gesture defines and functions |
| | */ |
| | |
| | /* |
| | * Gesture information handle |
| | */ |
| | DECLARE_HANDLE(HGESTUREINFO); |
| | |
| | /* |
| | * Gesture flags - GESTUREINFO.dwFlags |
| | */ |
| | #define GF_BEGIN 0x00000001 |
| | #define GF_INERTIA 0x00000002 |
| | #define GF_END 0x00000004 |
| | |
| | /* |
| | * Gesture IDs |
| | */ |
| | #define GID_BEGIN 1 |
| | #define GID_END 2 |
| | #define GID_ZOOM 3 |
| | #define GID_PAN 4 |
| | #define GID_ROTATE 5 |
| | #define GID_TWOFINGERTAP 6 |
| | #define GID_PRESSANDTAP 7 |
| | #define GID_ROLLOVER GID_PRESSANDTAP |
| | |
| | /* |
| | * Gesture information structure |
| | * - Pass the HGESTUREINFO received in the WM_GESTURE message lParam into the |
| | * GetGestureInfo function to retrieve this information. |
| | * - If cbExtraArgs is non-zero, pass the HGESTUREINFO received in the WM_GEST |
| | URE |
| | * message lParam into the GetGestureExtraArgs function to retrieve extended |
| | * argument information. |
| | */ |
| | typedef struct tagGESTUREINFO { |
| | UINT cbSize; // size, in bytes, of this structure (includ |
| | ing variable length Args field) |
| | DWORD dwFlags; // see GF_* flags |
| | DWORD dwID; // gesture ID, see GID_* defines |
| | HWND hwndTarget; // handle to window targeted by this gesture |
| | POINTS ptsLocation; // current location of this gesture |
| | DWORD dwInstanceID; // internally used |
| | DWORD dwSequenceID; // internally used |
| | ULONGLONG ullArguments; // arguments for gestures whose arguments fi |
| | t in 8 BYTES |
| | UINT cbExtraArgs; // size, in bytes, of extra arguments, if an |
| | y, that accompany this gesture |
| | } GESTUREINFO, *PGESTUREINFO; |
| | typedef GESTUREINFO const * PCGESTUREINFO; |
| | |
| | /* |
| | * Gesture notification structure |
| | * - The WM_GESTURENOTIFY message lParam contains a pointer to this structure. |
| | * - The WM_GESTURENOTIFY message notifies a window that gesture recognition i |
| | s |
| | * in progress and a gesture will be generated if one is recognized under th |
| | e |
| | * current gesture settings. |
| | */ |
| | typedef struct tagGESTURENOTIFYSTRUCT { |
| | UINT cbSize; // size, in bytes, of this structure |
| | DWORD dwFlags; // unused |
| | HWND hwndTarget; // handle to window targeted by the gesture |
| | POINTS ptsLocation; // starting location |
| | DWORD dwInstanceID; // internally used |
| | } GESTURENOTIFYSTRUCT, *PGESTURENOTIFYSTRUCT; |
| | |
| | /* |
| | * Gesture argument helpers |
| | * - Angle should be a double in the range of -2pi to +2pi |
| | * - Argument should be an unsigned 16-bit value |
| | */ |
| | #define GID_ROTATE_ANGLE_TO_ARGUMENT(_arg_) ((USHORT)((((_arg_) + 2.0 * 3.14 |
| | 159265) / (4.0 * 3.14159265)) * 65535.0)) |
| | #define GID_ROTATE_ANGLE_FROM_ARGUMENT(_arg_) ((((double)(_arg_) / 65535.0) * |
| | 4.0 * 3.14159265) - 2.0 * 3.14159265) |
| | |
| | /* |
| | * Gesture information retrieval |
| | * - HGESTUREINFO is received by a window in the lParam of a WM_GESTURE messag |
| | e. |
| | */ |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | GetGestureInfo( |
| | __in HGESTUREINFO hGestureInfo, |
| | __out PGESTUREINFO pGestureInfo); |
| | |
| | /* |
| | * Gesture extra arguments retrieval |
| | * - HGESTUREINFO is received by a window in the lParam of a WM_GESTURE messag |
| | e. |
| | * - Size, in bytes, of the extra argument data is available in the cbExtraArg |
| | s |
| | * field of the GESTUREINFO structure retrieved using the GetGestureInfo fun |
| | ction. |
| | */ |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | GetGestureExtraArgs( |
| | __in HGESTUREINFO hGestureInfo, |
| | __in UINT cbExtraArgs, |
| | __out_bcount(cbExtraArgs) PBYTE pExtraArgs); |
| | |
| | /* |
| | * Gesture information handle management |
| | * - If an application processes the WM_GESTURE message, then once it is done |
| | * with the associated HGESTUREINFO, the application is responsible for |
| | * closing the handle using this function. Failure to do so may result in |
| | * process memory leaks. |
| | * - If the message is instead passed to DefWindowProc, or is forwarded using |
| | * one of the PostMessage or SendMessage class of API functions, the handle |
| | * is transfered with the message and need not be closed by the application. |
| | */ |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | CloseGestureInfoHandle( |
| | __in HGESTUREINFO hGestureInfo); |
| | |
| | /* |
| | * Gesture configuration structure |
| | * - Used in SetGestureConfig and GetGestureConfig |
| | * - Note that any setting not included in either GESTURECONFIG.dwWant or |
| | * GESTURECONFIG.dwBlock will use the parent window's preferences or |
| | * system defaults. |
| | */ |
| | typedef struct tagGESTURECONFIG { |
| | DWORD dwID; // gesture ID |
| | DWORD dwWant; // settings related to gesture ID that are t |
| | o be turned on |
| | DWORD dwBlock; // settings related to gesture ID that are t |
| | o be turned off |
| | } GESTURECONFIG, *PGESTURECONFIG; |
| | |
| | /* |
| | * Gesture configuration flags - GESTURECONFIG.dwWant or GESTURECONFIG.dwBlock |
| | */ |
| | |
| | /* |
| | * Common gesture configuration flags - set GESTURECONFIG.dwID to zero |
| | */ |
| | #define GC_ALLGESTURES 0x00000001 |
| | |
| | /* |
| | * Zoom gesture configuration flags - set GESTURECONFIG.dwID to GID_ZOOM |
| | */ |
| | #define GC_ZOOM 0x00000001 |
| | |
| | /* |
| | * Pan gesture configuration flags - set GESTURECONFIG.dwID to GID_PAN |
| | */ |
| | #define GC_PAN 0x00000001 |
| | #define GC_PAN_WITH_SINGLE_FINGER_VERTICALLY 0x00000002 |
| | #define GC_PAN_WITH_SINGLE_FINGER_HORIZONTALLY 0x00000004 |
| | #define GC_PAN_WITH_GUTTER 0x00000008 |
| | #define GC_PAN_WITH_INERTIA 0x00000010 |
| | |
| | /* |
| | * Rotate gesture configuration flags - set GESTURECONFIG.dwID to GID_ROTATE |
| | */ |
| | #define GC_ROTATE 0x00000001 |
| | |
| | /* |
| | * Two finger tap gesture configuration flags - set GESTURECONFIG.dwID to GID_TW |
| | OFINGERTAP |
| | */ |
| | #define GC_TWOFINGERTAP 0x00000001 |
| | |
| | /* |
| | * PressAndTap gesture configuration flags - set GESTURECONFIG.dwID to GID_PRESS |
| | ANDTAP |
| | */ |
| | #define GC_PRESSANDTAP 0x00000001 |
| | #define GC_ROLLOVER GC_PRESSANDTAP |
| | |
| | #define GESTURECONFIGMAXCOUNT 256 // Maximum number of ges |
| | tures that can be included |
| | // in a single call to S |
| | etGestureConfig / GetGestureConfig |
| | |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | SetGestureConfig( |
| | __in HWND hwnd, // window for which conf |
| | iguration is specified |
| | __in DWORD dwReserved, // reserved, must be 0 |
| | __in UINT cIDs, // count of GESTURECONFI |
| | G structures |
| | __in_ecount(cIDs) PGESTURECONFIG pGestureConfig, // array of GESTURECONFI |
| | G structures, dwIDs will be processed in the |
| | // order specified and r |
| | epeated occurances will overwrite previous ones |
| | __in UINT cbSize); // sizeof(GESTURECONFIG) |
| | |
| | #define GCF_INCLUDE_ANCESTORS 0x00000001 // If specified, GetGest |
| | ureConfig returns consolidated configuration |
| | // for the specified win |
| | dow and it's parent window chain |
| | |
| | WINUSERAPI |
| | BOOL |
| | WINAPI |
| | GetGestureConfig( |
| | __in HWND hwnd, // window for which conf |
| | iguration is required |
| | __in DWORD dwReserved, // reserved, must be 0 |
| | __in DWORD dwFlags, // see GCF_* flags |
| | __in PUINT pcIDs, // *pcIDs contains the s |
| | ize, in number of GESTURECONFIG structures, |
| | // of the buffer pointed |
| | to by pGestureConfig |
| | __inout_ecount(*pcIDs) PGESTURECONFIG pGestureConfig, |
| | // pointer to buffer to |
| | receive the returned array of GESTURECONFIG structures |
| | __in UINT cbSize); // sizeof(GESTURECONFIG) |
| | |
| | #endif /* WINVER >= 0x0601 */ |
| | |
| | #if(WINVER >= 0x0601) |
| | |
| | /* |
| | * GetSystemMetrics(SM_DIGITIZER) flag values |
| | */ |
| | #define NID_INTEGRATED_TOUCH 0x00000001 |
| | #define NID_EXTERNAL_TOUCH 0x00000002 |
| | #define NID_INTEGRATED_PEN 0x00000004 |
| | #define NID_EXTERNAL_PEN 0x00000008 |
| | #define NID_MULTI_INPUT 0x00000040 |
| | #define NID_READY 0x00000080 |
| | |
| | #endif /* WINVER >= 0x0601 */ |
| | |
| #define MAX_STR_BLOCKREASON 256 | | #define MAX_STR_BLOCKREASON 256 |
| | |
| WINUSERAPI | | WINUSERAPI |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| ShutdownBlockReasonCreate( | | ShutdownBlockReasonCreate( |
| __in HWND hWnd, | | __in HWND hWnd, |
| __in LPCWSTR pwszReason); | | __in LPCWSTR pwszReason); |
| | |
| WINUSERAPI | | WINUSERAPI |
| | |
| End of changes. 62 change blocks. |
| 49 lines changed or deleted | | 624 lines changed or added |
|