1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831
// Copyright © 2015, Peter Atashian // Licensed under the MIT License <LICENSE.md> //! FFI bindings to user32. #![cfg(windows)] extern crate winapi; use winapi::*; extern "system" { pub fn ActivateKeyboardLayout(hkl: HKL, flags: UINT) -> HKL; pub fn AddClipboardFormatListener(hWnd: HWND) -> BOOL; pub fn AdjustWindowRect(lpRect: LPRECT, dwStyle: DWORD, bMenu: BOOL) -> BOOL; pub fn AdjustWindowRectEx( lpRect: LPRECT, dwStyle: DWORD, bMenu: BOOL, dwExStyle: DWORD, ) -> BOOL; pub fn AllowSetForegroundWindow(dwProcessId: DWORD) -> BOOL; pub fn AnimateWindow(hWnd: HWND, dwTime: DWORD, dwFlags: DWORD) -> BOOL; pub fn AnyPopup() -> BOOL; // pub fn AppendMenuA(); // pub fn AppendMenuW(); pub fn ArrangeIconicWindows(hWnd: HWND) -> UINT; pub fn AttachThreadInput(idAttach: DWORD, idAttachTo: DWORD, fAttach: BOOL) -> BOOL; // pub fn BeginDeferWindowPos(); pub fn BeginPaint(hwnd: HWND, lpPaint: LPPAINTSTRUCT) -> HDC; pub fn BlockInput(fBlockIt: BOOL) -> BOOL; pub fn BringWindowToTop(hWnd: HWND) -> BOOL; // pub fn BroadcastSystemMessage(); // pub fn BroadcastSystemMessageA(); // pub fn BroadcastSystemMessageExA(); // pub fn BroadcastSystemMessageExW(); // pub fn BroadcastSystemMessageW(); pub fn CalculatePopupWindowPosition( anchorPoint: *const POINT, windowSize: *const SIZE, flags: UINT, excludeRect: *mut RECT, popupWindowPosition: *mut RECT, ) -> BOOL; // pub fn CallMsgFilter(); // pub fn CallMsgFilterA(); // pub fn CallMsgFilterW(); // pub fn CallNextHookEx(); // pub fn CallWindowProcA(); // pub fn CallWindowProcW(); // pub fn CancelShutdown(); // pub fn CascadeChildWindows(); pub fn CascadeWindows( hwndParent: HWND, wHow: UINT, lpRect: *const RECT, cKids: UINT, lpKids: *const HWND, ) -> WORD; pub fn ChangeClipboardChain(hwndRemove: HWND, hwndNewNext: HWND) -> BOOL; // pub fn ChangeDisplaySettingsA(); // pub fn ChangeDisplaySettingsExA(); pub fn ChangeDisplaySettingsExW( lpszDeviceName: LPCWSTR, lpDevMode: *mut DEVMODEW, hwnd: HWND, dwFlags: DWORD, lParam: LPVOID, ) -> LONG; pub fn ChangeDisplaySettingsW(lpDevMode: *mut DEVMODEW, dwFlags: DWORD) -> LONG; // pub fn ChangeMenuA(); // pub fn ChangeMenuW(); // pub fn ChangeWindowMessageFilter(); // pub fn ChangeWindowMessageFilterEx(); // pub fn CharLowerA(); // pub fn CharLowerBuffA(); // pub fn CharLowerBuffW(); // pub fn CharLowerW(); // pub fn CharNextA(); // pub fn CharNextExA(); // pub fn CharNextW(); // pub fn CharPrevA(); // pub fn CharPrevExA(); // pub fn CharPrevW(); // pub fn CharToOemA(); // pub fn CharToOemBuffA(); // pub fn CharToOemBuffW(); // pub fn CharToOemW(); // pub fn CharUpperA(); // pub fn CharUpperBuffA(); // pub fn CharUpperBuffW(); // pub fn CharUpperW(); // pub fn CheckDlgButton(); // pub fn CheckMenuItem(); // pub fn CheckMenuRadioItem(); // pub fn CheckRadioButton(); pub fn ChildWindowFromPoint(hWndParent: HWND, point: POINT) -> HWND; pub fn ChildWindowFromPointEx(hwnd: HWND, pt: POINT, flags: UINT) -> HWND; // pub fn ClientToScreen(); pub fn ClipCursor(lpRect: *const RECT) -> BOOL; pub fn CloseClipboard() -> BOOL; pub fn CloseDesktop(hDesktop: HDESK) -> BOOL; // pub fn CloseGestureInfoHandle(); // pub fn CloseTouchInputHandle(); pub fn CloseWindow(hWnd: HWND) -> BOOL; pub fn CloseWindowStation(hWinSta: HWINSTA) -> BOOL; // pub fn CopyAcceleratorTableA(); // pub fn CopyAcceleratorTableW(); // pub fn CopyIcon(); // pub fn CopyImage(); // pub fn CopyRect(); pub fn CountClipboardFormats() -> c_int; // pub fn CreateAcceleratorTableA(); // pub fn CreateAcceleratorTableW(); pub fn CreateCaret(hWnd: HWND, hBitmap: HBITMAP, nWidth: c_int, nHeight: c_int) -> BOOL; pub fn CreateCursor( hInst: HINSTANCE, xHotSpot: c_int, yHotSpot: c_int, nWidth: c_int, nHeight: c_int, pvAndPlane: *const VOID, pvXORPlane: *const VOID, ) -> HCURSOR; // pub fn CreateDesktopA(); // pub fn CreateDesktopExA(); // pub fn CreateDesktopExW(); // pub fn CreateDesktopW(); // pub fn CreateDialogIndirectParamA(); // pub fn CreateDialogIndirectParamW(); // pub fn CreateDialogParamA(); // pub fn CreateDialogParamW(); // pub fn CreateIcon(); // pub fn CreateIconFromResource(); // pub fn CreateIconFromResourceEx(); // pub fn CreateIconIndirect(); // pub fn CreateMDIWindowA(); // pub fn CreateMDIWindowW(); // pub fn CreateMenu(); // pub fn CreatePopupMenu(); // pub fn CreateWindowExA(); pub fn CreateWindowExW( dwExStyle: DWORD, lpClassName: LPCWSTR, lpWindowName: LPCWSTR, dwStyle: DWORD, x: c_int, y: c_int, nWidth: c_int, nHeight: c_int, hWndParent: HWND, hMenu: HMENU, hInstance: HINSTANCE, lpParam: LPVOID, ) -> HWND; // pub fn CreateWindowStationA(); // pub fn CreateWindowStationW(); // pub fn DdeAbandonTransaction(); // pub fn DdeAccessData(); // pub fn DdeAddData(); // pub fn DdeClientTransaction(); // pub fn DdeCmpStringHandles(); // pub fn DdeConnect(); // pub fn DdeConnectList(); // pub fn DdeCreateDataHandle(); // pub fn DdeCreateStringHandleA(); // pub fn DdeCreateStringHandleW(); // pub fn DdeDisconnect(); // pub fn DdeDisconnectList(); // pub fn DdeEnableCallback(); // pub fn DdeFreeDataHandle(); // pub fn DdeFreeStringHandle(); // pub fn DdeGetData(); // pub fn DdeGetLastError(); // pub fn DdeImpersonateClient(); // pub fn DdeInitializeA(); // pub fn DdeInitializeW(); // pub fn DdeKeepStringHandle(); // pub fn DdeNameService(); // pub fn DdePostAdvise(); // pub fn DdeQueryConvInfo(); // pub fn DdeQueryNextServer(); // pub fn DdeQueryStringA(); // pub fn DdeQueryStringW(); // pub fn DdeReconnect(); // pub fn DdeSetQualityOfService(); // pub fn DdeSetUserHandle(); // pub fn DdeUnaccessData(); // pub fn DdeUninitialize(); // pub fn DefDlgProcA(); // pub fn DefDlgProcW(); // pub fn DefFrameProcA(); // pub fn DefFrameProcW(); // pub fn DefMDIChildProcA(); // pub fn DefMDIChildProcW(); // pub fn DefRawInputProc(); // pub fn DefWindowProcA(); pub fn DefWindowProcW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; pub fn DeferWindowPos( hWinPosInfo: HDWP, hWnd: HWND, hWndInserAfter: HWND, x: c_int, y: c_int, cx: c_int, cy: c_int, uFlags: UINT, ) -> HDWP; pub fn DeleteMenu(hMenu: HMENU, uPosition: UINT, uFlags: UINT) -> BOOL; pub fn DeregisterShellHookWindow(hwnd: HWND) -> BOOL; pub fn DestroyAcceleratorTable(hAccel: HACCEL) -> BOOL; pub fn DestroyCaret() -> BOOL; pub fn DestroyCursor(hCursor: HCURSOR) -> BOOL; pub fn DestroyIcon(hIcon: HICON) -> BOOL; pub fn DestroyMenu(hMenu: HMENU) -> HMENU; pub fn DestroyWindow(hWnd: HWND) -> BOOL; // pub fn DialogBoxIndirectParamA(); // pub fn DialogBoxIndirectParamW(); // pub fn DialogBoxParamA(); // pub fn DialogBoxParamW(); // pub fn DisableProcessWindowsGhosting(); // pub fn DispatchMessageA(); pub fn DispatchMessageW(lpmsg: *const MSG) -> LRESULT; // pub fn DisplayConfigGetDeviceInfo(); // pub fn DisplayConfigSetDeviceInfo(); // pub fn DlgDirListA(); // pub fn DlgDirListComboBoxA(); // pub fn DlgDirListComboBoxW(); // pub fn DlgDirListW(); // pub fn DlgDirSelectComboBoxExA(); // pub fn DlgDirSelectComboBoxExW(); // pub fn DlgDirSelectExA(); // pub fn DlgDirSelectExW(); // pub fn DragDetect(); // pub fn DragObject(); // pub fn DrawAnimatedRects(); // pub fn DrawCaption(); // pub fn DrawEdge(); // pub fn DrawFocusRect(); // pub fn DrawFrame(); // pub fn DrawFrameControl(); // pub fn DrawIcon(); // pub fn DrawIconEx(); // pub fn DrawMenuBar(); // pub fn DrawStateA(); // pub fn DrawStateW(); // pub fn DrawTextA(); // pub fn DrawTextExA(); // pub fn DrawTextExW(); // pub fn DrawTextW(); // pub fn EditWndProc(); pub fn EmptyClipboard() -> BOOL; // pub fn EnableMenuItem(); // pub fn EnableMouseInPointer(); pub fn EnableScrollBar(hWnd: HWND, wSBflags: UINT, wArrows: UINT) -> BOOL; // pub fn EnableSessionForMMCSS(); pub fn EnableWindow(hWnd: HWND, bEnable: BOOL) -> BOOL; // pub fn EndDeferWindowPos(); // pub fn EndDialog(); // pub fn EndMenu(); pub fn EndPaint(hWnd: HWND, lpPaint: *const PAINTSTRUCT) -> BOOL; pub fn EndTask(hWnd: HWND, fShutDown: BOOL, fForce: BOOL) -> BOOL; // pub fn EnumChildWindows(); pub fn EnumClipboardFormats(format: UINT) -> UINT; // pub fn EnumDesktopWindows(); // pub fn EnumDesktopsA(); // pub fn EnumDesktopsW(); // pub fn EnumDisplayDevicesA(); pub fn EnumDisplayDevicesW( lpDevice: LPCWSTR, iDevNum: DWORD, lpDisplayDevice: PDISPLAY_DEVICEW, dwFlags: DWORD, ) -> BOOL; // pub fn EnumDisplayMonitors(); // pub fn EnumDisplaySettingsA(); // pub fn EnumDisplaySettingsExA(); pub fn EnumDisplaySettingsExW( lpszDeviceName: LPCWSTR, iModeNum: DWORD, lpDevMode: *mut DEVMODEW, dwFlags: DWORD, ) -> BOOL; // pub fn EnumDisplaySettingsW(); // pub fn EnumPropsA(); // pub fn EnumPropsExA(); // pub fn EnumPropsExW(); // pub fn EnumPropsW(); pub fn EnumThreadWindows(dwThreadId: DWORD, lpfn: WNDENUMPROC, lParam: LPARAM) -> BOOL; // pub fn EnumWindowStationsA(); // pub fn EnumWindowStationsW(); pub fn EnumWindows(lpEnumFunc: WNDENUMPROC, lParam: LPARAM) -> BOOL; // pub fn EqualRect(); // pub fn EvaluateProximityToPolygon(); // pub fn EvaluateProximityToRect(); // pub fn ExcludeUpdateRgn(); // pub fn ExitWindowsEx(); pub fn FillRect(hDC: HDC, lprc: *const RECT, hbr: HBRUSH) -> c_int; pub fn FindWindowA (lpClassName: LPCSTR, lpWindowName: LPCSTR) -> HWND; pub fn FindWindowExA( hWndParent: HWND, hWndChildAfter: HWND, lpszClass: LPCSTR, lpszWindow: LPCSTR, ) -> HWND; pub fn FindWindowExW( hWndParent: HWND, hWndChildAfter: HWND, lpszClass: LPCWSTR, lpszWindow: LPCWSTR, ) -> HWND; pub fn FindWindowW(lpClassName: LPCWSTR, lpWindowName: LPCWSTR) -> HWND; // pub fn FlashWindow(); // pub fn FlashWindowEx(); // pub fn FrameRect(); // pub fn FreeDDElParam(); pub fn GetActiveWindow() -> HWND; // pub fn GetAltTabInfo(); // pub fn GetAltTabInfoA(); // pub fn GetAltTabInfoW(); pub fn GetAncestor(hWnd: HWND, gaFlags: UINT) -> HWND; pub fn GetAsyncKeyState(vKey: c_int) -> SHORT; // pub fn GetAutoRotationState(); // pub fn GetCIMSSM(); // pub fn GetCapture(); pub fn GetCaretBlinkTime() -> UINT; pub fn GetCaretPos(lpPoint: LPPOINT) -> BOOL; // pub fn GetClassInfoA(); // pub fn GetClassInfoExA(); pub fn GetClassInfoExW( hinst: HINSTANCE, lpszClass: LPCWSTR, lpwcx: LPWNDCLASSEXW, ) -> BOOL; pub fn GetClassInfoW( hInstance: HINSTANCE, lpClassName: LPCWSTR, lpWndClass: LPWNDCLASSW, ) -> BOOL; pub fn GetClassLongA(hWnd: HWND, nIndex: c_int) -> DWORD; #[cfg(target_arch = "x86_64")] pub fn GetClassLongPtrA(hWnd: HWND, nIndex: c_int) -> ULONG_PTR; #[cfg(target_arch = "x86_64")] pub fn GetClassLongPtrW(hWnd: HWND, nIndex: c_int) -> ULONG_PTR; pub fn GetClassLongW(hWnd: HWND, nIndex: c_int) -> DWORD; // pub fn GetClassNameA(); // pub fn GetClassNameW(); pub fn GetClassWord(hWnd: HWND, nIndex: c_int) -> WORD; pub fn GetClientRect(hWnd: HWND, lpRect: LPRECT) -> BOOL; pub fn GetClipCursor(lpRect: LPRECT) -> BOOL; pub fn GetClipboardData(uFormat: UINT) -> HANDLE; pub fn GetClipboardFormatNameA( format: UINT, lpszFormatName: LPSTR, cchMaxCount: c_int, ) -> c_int; pub fn GetClipboardFormatNameW( format: UINT, lpszFormatName: LPWSTR, cchMaxCount: c_int, ) -> c_int; pub fn GetClipboardOwner() -> HWND; pub fn GetClipboardSequenceNumber() -> DWORD; pub fn GetClipboardViewer() -> HWND; // pub fn GetComboBoxInfo(); // pub fn GetCurrentInputMessageSource(); pub fn GetCursor() -> HCURSOR; // pub fn GetCursorInfo(); pub fn GetCursorPos(lpPoint: LPPOINT) -> BOOL; pub fn GetDC(hWnd: HWND) -> HDC; // pub fn GetDCEx(); pub fn GetDesktopWindow() -> HWND; // pub fn GetDialogBaseUnits(); // pub fn GetDisplayAutoRotationPreferences(); // pub fn GetDisplayConfigBufferSizes(); // pub fn GetDlgCtrlID(); // pub fn GetDlgItem(); // pub fn GetDlgItemInt(); // pub fn GetDlgItemTextA(); // pub fn GetDlgItemTextW(); // pub fn GetDoubleClickTime(); pub fn GetFocus() -> HWND; pub fn GetForegroundWindow() -> HWND; // pub fn GetGUIThreadInfo(); // pub fn GetGestureConfig(); // pub fn GetGestureExtraArgs(); // pub fn GetGestureInfo(); // pub fn GetGuiResources(); // pub fn GetIconInfo(); // pub fn GetIconInfoExA(); // pub fn GetIconInfoExW(); // pub fn GetInputDesktop(); // pub fn GetInputLocaleInfo(); // pub fn GetInputState(); pub fn GetKBCodePage() -> UINT; pub fn GetKeyNameTextA(lparam: LONG, lpString: LPSTR, cchSize: c_int) -> c_int; pub fn GetKeyNameTextW(lParam: LONG, lpString: LPWSTR, cchSize: c_int) -> c_int; pub fn GetKeyState(nVirtKey: c_int) -> SHORT; pub fn GetKeyboardLayout(idThread: DWORD) -> HKL; pub fn GetKeyboardLayoutList(nBuff: c_int, lpList: *mut HKL) -> c_int; pub fn GetKeyboardLayoutNameA(pwszKLID: LPSTR) -> BOOL; pub fn GetKeyboardLayoutNameW(pwszKLID: LPWSTR) -> BOOL; pub fn GetKeyboardState(lpKeyState: PBYTE) -> BOOL; pub fn GetKeyboardType(nTypeFlag: c_int) -> c_int; // pub fn GetLastActivePopup(); // pub fn GetLastInputInfo(); // pub fn GetLayeredWindowAttributes(); // pub fn GetListBoxInfo(); // pub fn GetMenu(); // pub fn GetMenuBarInfo(); // pub fn GetMenuCheckMarkDimensions(); // pub fn GetMenuContextHelpId(); // pub fn GetMenuDefaultItem(); // pub fn GetMenuInfo(); // pub fn GetMenuItemCount(); // pub fn GetMenuItemID(); // pub fn GetMenuItemInfoA(); // pub fn GetMenuItemInfoW(); // pub fn GetMenuItemRect(); // pub fn GetMenuState(); // pub fn GetMenuStringA(); // pub fn GetMenuStringW(); // pub fn GetMessageA(); // pub fn GetMessageExtraInfo(); // pub fn GetMessagePos(); // pub fn GetMessageTime(); pub fn GetMessageW(lpMsg: LPMSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT) -> BOOL; // pub fn GetMonitorInfoA(); // pub fn GetMonitorInfoW(); // pub fn GetMouseMovePointsEx(); // pub fn GetNextDlgGroupItem(); // pub fn GetNextDlgTabItem(); pub fn GetOpenClipboardWindow() -> HWND; pub fn GetParent(hWnd: HWND) -> HWND; pub fn GetPhysicalCursorPos(lpPoint: LPPOINT) -> BOOL; // pub fn GetPointerCursorId(); // pub fn GetPointerDevice(); // pub fn GetPointerDeviceCursors(); // pub fn GetPointerDeviceProperties(); // pub fn GetPointerDeviceRects(); // pub fn GetPointerDevices(); // pub fn GetPointerFrameInfo(); // pub fn GetPointerFrameInfoHistory(); // pub fn GetPointerFramePenInfo(); // pub fn GetPointerFramePenInfoHistory(); // pub fn GetPointerFrameTouchInfo(); // pub fn GetPointerFrameTouchInfoHistory(); // pub fn GetPointerInfo(); // pub fn GetPointerInfoHistory(); // pub fn GetPointerInputTransform(); // pub fn GetPointerPenInfo(); // pub fn GetPointerPenInfoHistory(); // pub fn GetPointerTouchInfo(); // pub fn GetPointerTouchInfoHistory(); // pub fn GetPointerType(); // pub fn GetPriorityClipboardFormat(); // pub fn GetProcessDefaultLayout(); // pub fn GetProcessWindowStation(); // pub fn GetPropA(); // pub fn GetPropW(); // pub fn GetQueueStatus(); // pub fn GetRawInputBuffer(); // pub fn GetRawInputData(); // pub fn GetRawInputDeviceInfoA(); // pub fn GetRawInputDeviceInfoW(); // pub fn GetRawInputDeviceList(); // pub fn GetRawPointerDeviceData(); // pub fn GetRegisteredRawInputDevices(); // pub fn GetScrollBarInfo(); // pub fn GetScrollInfo(); pub fn GetScrollPos(hWnd: HWND, nBar: c_int) -> c_int; pub fn GetScrollRange(hWnd: HWND, nBar: c_int, lpMinPos: LPINT, lpMaxPos: LPINT) -> BOOL; pub fn GetShellWindow() -> HWND; // pub fn GetSubMenu(); pub fn GetSysColor(nIndex: c_int) -> DWORD; // pub fn GetSysColorBrush(); // pub fn GetSystemMenu(); pub fn GetSystemMetrics(nIndex: c_int) -> c_int; // pub fn GetTabbedTextExtentA(); // pub fn GetTabbedTextExtentW(); pub fn GetThreadDesktop(dwThreadId: DWORD) -> HDESK; // pub fn GetTitleBarInfo(); // pub fn GetTopWindow(); // pub fn GetTouchInputInfo(); // pub fn GetUnpredictedMessagePos(); // pub fn GetUpdateRect(); // pub fn GetUpdateRgn(); pub fn GetUpdatedClipboardFormats( lpuiFormats: PUINT, cFormats: UINT, pcFormatsOUT: PUINT, ) -> BOOL; // pub fn GetUserObjectInformationA(); // pub fn GetUserObjectInformationW(); // pub fn GetUserObjectSecurity(); pub fn GetWindow(hWnd: HWND, uCmd: UINT) -> HWND; // pub fn GetWindowContextHelpId(); // pub fn GetWindowDC(); // pub fn GetWindowDisplayAffinity(); // pub fn GetWindowFeedbackSetting(); // pub fn GetWindowInfo(); pub fn GetWindowLongA(hWnd: HWND, nIndex: c_int) -> LONG; #[cfg(target_arch = "x86_64")] pub fn GetWindowLongPtrA(hWnd: HWND, nIndex: c_int) -> LONG_PTR; #[cfg(target_arch = "x86_64")] pub fn GetWindowLongPtrW(hWnd: HWND, nIndex: c_int) -> LONG_PTR; pub fn GetWindowLongW(hWnd: HWND, nIndex: c_int) -> LONG; // pub fn GetWindowModuleFileName(); // pub fn GetWindowModuleFileNameA(); // pub fn GetWindowModuleFileNameW(); pub fn GetWindowPlacement(hWnd: HWND, lpwndpl: *mut WINDOWPLACEMENT) -> BOOL; pub fn GetWindowRect(hWnd: HWND, lpRect: LPRECT) -> BOOL; // pub fn GetWindowRgn(); // pub fn GetWindowRgnBox(); pub fn GetWindowTextA(hWnd: HWND, lpString: LPSTR, nMaxCount: c_int) -> c_int; pub fn GetWindowTextLengthA(hWnd: HWND) -> c_int; pub fn GetWindowTextLengthW(hWnd: HWND) -> c_int; pub fn GetWindowTextW(hWnd: HWND, lpString: LPWSTR, nMaxCount: c_int) -> c_int; // pub fn GetWindowThreadProcessId(); // pub fn GetWindowWord(); // pub fn GrayStringA(); // pub fn GrayStringW(); pub fn HideCaret(hWnd: HWND) -> BOOL; // pub fn HiliteMenuItem(); // pub fn IMPGetIMEA(); // pub fn IMPGetIMEW(); // pub fn IMPQueryIMEA(); // pub fn IMPQueryIMEW(); // pub fn IMPSetIMEA(); // pub fn IMPSetIMEW(); // pub fn ImpersonateDdeClientWindow(); // pub fn InSendMessage(); // pub fn InSendMessageEx(); // pub fn InflateRect(); // pub fn InitializeTouchInjection(); // pub fn InjectTouchInput(); // pub fn InsertMenuA(); // pub fn InsertMenuItemA(); // pub fn InsertMenuItemW(); // pub fn InsertMenuW(); // pub fn InternalGetWindowText(); // pub fn IntersectRect(); pub fn InvalidateRect(hWnd: HWND, lpRect: *const RECT, bErase: BOOL) -> BOOL; // pub fn InvalidateRgn(); // pub fn InvertRect(); // pub fn IsCharAlphaA(); // pub fn IsCharAlphaNumericA(); // pub fn IsCharAlphaNumericW(); // pub fn IsCharAlphaW(); // pub fn IsCharLowerA(); // pub fn IsCharLowerW(); // pub fn IsCharUpperA(); // pub fn IsCharUpperW(); // pub fn IsChild(); pub fn IsClipboardFormatAvailable(format: UINT) -> BOOL; // pub fn IsDialogMessage(); // pub fn IsDialogMessageA(); // pub fn IsDialogMessageW(); // pub fn IsDlgButtonChecked(); // pub fn IsGUIThread(); // pub fn IsHungAppWindow(); pub fn IsIconic(hWnd: HWND) -> BOOL; // pub fn IsImmersiveProcess(); // pub fn IsInDesktopWindowBand(); // pub fn IsMenu(); // pub fn IsMouseInPointerEnabled(); // pub fn IsProcessDPIAware(); // pub fn IsRectEmpty(); // pub fn IsTouchWindow(); // pub fn IsWinEventHookInstalled(); pub fn IsWindow(hWnd: HWND) -> BOOL; pub fn IsWindowEnabled(hWnd: HWND) -> BOOL; // pub fn IsWindowUnicode(); pub fn IsWindowVisible(hWnd: HWND) -> BOOL; // pub fn IsWow64Message(); // pub fn IsZoomed(); // pub fn KillTimer(); // pub fn LoadAcceleratorsA(); // pub fn LoadAcceleratorsW(); // pub fn LoadBitmapA(); // pub fn LoadBitmapW(); // pub fn LoadCursorA(); // pub fn LoadCursorFromFileA(); pub fn LoadCursorFromFileW(lpFileName: LPCWSTR) -> HCURSOR; pub fn LoadCursorW(hInstance: HINSTANCE, lpCursorName: LPCWSTR) -> HCURSOR; // pub fn LoadIconA(); // pub fn LoadIconW(); pub fn LoadImageA( hInst: HINSTANCE, name: LPCSTR, type_: UINT, cx: c_int, cy: c_int, fuLoad: UINT, ) -> HANDLE; pub fn LoadImageW( hInst: HINSTANCE, name: LPCWSTR, type_: UINT, cx: c_int, cy: c_int, fuLoad: UINT, ) -> HANDLE; // pub fn LoadKeyboardLayoutA(); // pub fn LoadKeyboardLayoutW(); // pub fn LoadMenuA(); // pub fn LoadMenuIndirectA(); // pub fn LoadMenuIndirectW(); // pub fn LoadMenuW(); // pub fn LoadStringA(); // pub fn LoadStringW(); // pub fn LockSetForegroundWindow(); // pub fn LockWindowUpdate(); // pub fn LockWorkStation(); // pub fn LogicalToPhysicalPoint(); // pub fn LogicalToPhysicalPointForPerMonitorDPI(); // pub fn LookupIconIdFromDirectory(); // pub fn LookupIconIdFromDirectoryEx(); // pub fn MapDialogRect(); // pub fn MapVirtualKeyA(); // pub fn MapVirtualKeyExA(); // pub fn MapVirtualKeyExW(); // pub fn MapVirtualKeyW(); // pub fn MapWindowPoints(); // pub fn MenuItemFromPoint(); // pub fn MessageBeep(); pub fn MessageBoxA(hWnd: HWND, lpText: LPCSTR, lpCaption: LPCSTR, uType: UINT) -> c_int; pub fn MessageBoxExA( hWnd: HWND, lpText: LPCSTR, lpCaption: LPCSTR, uType: UINT, wLanguageId: WORD, ) -> c_int; pub fn MessageBoxExW( hWnd: HWND, lpText: LPCWSTR, lpCaption: LPCWSTR, uType: UINT, wLanguageId: WORD, ) -> c_int; // pub fn MessageBoxIndirectA(); // pub fn MessageBoxIndirectW(); // pub fn MessageBoxTimeoutA(); // pub fn MessageBoxTimeoutW(); pub fn MessageBoxW(hWnd: HWND, lpText: LPCWSTR, lpCaption: LPCWSTR, uType: UINT) -> c_int; // pub fn ModifyMenuA(); // pub fn ModifyMenuW(); // pub fn MonitorFromPoint(); // pub fn MonitorFromRect(); // pub fn MonitorFromWindow(); // pub fn MoveWindow(); // pub fn MsgWaitForMultipleObjects(); // pub fn MsgWaitForMultipleObjectsEx(); // pub fn NotifyWinEvent(); // pub fn OemKeyScan(); // pub fn OemToCharA(); // pub fn OemToCharBuffA(); // pub fn OemToCharBuffW(); // pub fn OemToCharW(); // pub fn OffsetRect(); pub fn OpenClipboard(hWnd: HWND) -> BOOL; // pub fn OpenDesktopA(); // pub fn OpenDesktopW(); // pub fn OpenIcon(); // pub fn OpenInputDesktop(); // pub fn OpenWindowStationA(); // pub fn OpenWindowStationW(); // pub fn PackDDElParam(); // pub fn PackTouchHitTestingProximityEvaluation(); // pub fn PaintDesktop(); // pub fn PeekMessageA(); pub fn PeekMessageW( lpMsg: LPMSG, hWnd: HWND, wMsgFilterMin: UINT, wMsgFilterMax: UINT, wRemoveMsg: UINT, ) -> BOOL; // pub fn PhysicalToLogicalPoint(); // pub fn PhysicalToLogicalPointForPerMonitorDPI(); // pub fn PostMessageA(); pub fn PostMessageW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; pub fn PostQuitMessage(nExitCode: c_int); // pub fn PostThreadMessageA(); // pub fn PostThreadMessageW(); // pub fn PrintWindow(); // pub fn PrivateExtractIconsA(); // pub fn PrivateExtractIconsW(); // pub fn PtInRect(); // pub fn QueryDisplayConfig(); // pub fn RealChildWindowFromPoint(); // pub fn RealGetWindowClass(); // pub fn RealGetWindowClassA(); // pub fn RealGetWindowClassW(); // pub fn RedrawWindow(); // pub fn RegisterClassA(); // pub fn RegisterClassExA(); pub fn RegisterClassExW(lpWndClass: *const WNDCLASSEXW) -> ATOM; // pub fn RegisterClassW(); pub fn RegisterClipboardFormatA(lpszFormat: LPCSTR) -> UINT; pub fn RegisterClipboardFormatW(lpszFormat: LPCWSTR) -> UINT; // pub fn RegisterDeviceNotificationA(); // pub fn RegisterDeviceNotificationW(); // pub fn RegisterHotKey(); // pub fn RegisterPointerDeviceNotifications(); // pub fn RegisterPointerInputTarget(); // pub fn RegisterPowerSettingNotification(); // pub fn RegisterRawInputDevices(); // pub fn RegisterShellHookWindow(); // pub fn RegisterSuspendResumeNotification(); // pub fn RegisterTouchHitTestingWindow(); // pub fn RegisterTouchWindow(); // pub fn RegisterWindowMessageA(); // pub fn RegisterWindowMessageW(); // pub fn ReleaseCapture(); pub fn ReleaseDC(hWnd: HWND, hDC: HDC) -> c_int; // pub fn RemoveClipboardFormatListener(); // pub fn RemoveMenu(); // pub fn RemovePropA(); // pub fn RemovePropW(); // pub fn ReplyMessage(); // pub fn ReuseDDElParam(); // pub fn ScreenToClient(); pub fn ScrollDC( hDC: HDC, dx: c_int, dy: c_int, lprcScroll: *const RECT, lprcClip: *const RECT, hrgnUpdate: HRGN, lprcUpdate: LPRECT, ) -> BOOL; pub fn ScrollWindow( hWnd: HWND, xAmount: c_int, yAmount: c_int, lpRect: *const RECT, lpClipRect: *const RECT, ) -> BOOL; pub fn ScrollWindowEx( hWnd: HWND, dx: c_int, dy: c_int, prcScroll: *const RECT, prcClip: *const RECT, hrgnUpdate: HRGN, prcUpdate: LPRECT, flags: UINT, ) -> c_int; // pub fn SendDlgItemMessageA(); // pub fn SendDlgItemMessageW(); // pub fn SendIMEMessageExA(); // pub fn SendIMEMessageExW(); pub fn SendInput(cInputs: UINT, pInputs: LPINPUT, cbSize: c_int) -> UINT; pub fn SendMessageA(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; // pub fn SendMessageCallbackA(); // pub fn SendMessageCallbackW(); pub fn SendMessageTimeoutA( hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM, fuFlags: UINT, uTimeout: UINT, lpdwResult: PDWORD_PTR, ) -> LRESULT; pub fn SendMessageTimeoutW( hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM, fuFlags: UINT, uTimeout: UINT, lpdwResult: PDWORD_PTR, ) -> LRESULT; pub fn SendMessageW(hWnd: HWND, Msg: UINT, wParam: WPARAM, lParam: LPARAM) -> LRESULT; pub fn SendNotifyMessageA(hWnd: HWND, msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; pub fn SendNotifyMessageW(hWnd: HWND, msg: UINT, wParam: WPARAM, lParam: LPARAM) -> BOOL; pub fn SetActiveWindow(hWnd: HWND) -> HWND; // pub fn SetCapture(); pub fn SetCaretBlinkTime(uMSeconds: UINT) -> BOOL; pub fn SetCaretPos(x: c_int, y: c_int) -> BOOL; pub fn SetClassLongA(hWnd: HWND, nIndex: c_int, dwNewLong: LONG) -> DWORD; #[cfg(target_arch = "x86_64")] pub fn SetClassLongPtrA(hWnd: HWND, nIndex: c_int, dwNewLong: LONG_PTR) -> ULONG_PTR; #[cfg(target_arch = "x86_64")] pub fn SetClassLongPtrW(hWnd: HWND, nIndex: c_int, dwNewLong: LONG_PTR) -> ULONG_PTR; pub fn SetClassLongW(hWnd: HWND, nIndex: c_int, dwNewLong: LONG) -> DWORD; pub fn SetClassWord(hWnd: HWND, nIndex: c_int, wNewWord: WORD) -> WORD; // pub fn SetClipboardData(); pub fn SetClipboardViewer(hWndNewViewer: HWND) -> HWND; // pub fn SetCoalescableTimer(); pub fn SetCursor(hCursor: HCURSOR) -> HCURSOR; pub fn SetCursorPos(x: c_int, y: c_int) -> BOOL; // pub fn SetDebugErrorLevel(); // pub fn SetDeskWallpaper(); // pub fn SetDisplayAutoRotationPreferences(); // pub fn SetDisplayConfig(); // pub fn SetDlgItemInt(); // pub fn SetDlgItemTextA(); // pub fn SetDlgItemTextW(); // pub fn SetDoubleClickTime(); pub fn SetFocus(hWnd: HWND) -> HWND; pub fn SetForegroundWindow(hWnd: HWND) -> BOOL; // pub fn SetGestureConfig(); // pub fn SetKeyboardState(); // pub fn SetLastErrorEx(); // pub fn SetLayeredWindowAttributes(); // pub fn SetMenu(); // pub fn SetMenuContextHelpId(); // pub fn SetMenuDefaultItem(); // pub fn SetMenuInfo(); // pub fn SetMenuItemBitmaps(); // pub fn SetMenuItemInfoA(); // pub fn SetMenuItemInfoW(); // pub fn SetMessageExtraInfo(); // pub fn SetMessageQueue(); // pub fn SetParent(); pub fn SetPhysicalCursorPos(x: c_int, y: c_int) -> BOOL; // pub fn SetProcessDPIAware(); // pub fn SetProcessDefaultLayout(); // pub fn SetProcessRestrictionExemption(); // pub fn SetProcessWindowStation(); // pub fn SetPropA(); // pub fn SetPropW(); // pub fn SetRect(); // pub fn SetRectEmpty(); // pub fn SetScrollInfo(); pub fn SetScrollPos(hWnd: HWND, nBar: c_int, nPos: c_int, bRedraw: BOOL) -> c_int; pub fn SetScrollRange( hWnd: HWND, nBar: c_int, nMinPos: c_int, nMaxPos: c_int, bRedraw: BOOL, ) -> BOOL; // pub fn SetShellWindow(); // pub fn SetSysColors(); pub fn SetSystemCursor(hcur: HCURSOR, id: DWORD) -> BOOL; // pub fn SetThreadDesktop(); // pub fn SetTimer(); // pub fn SetUserObjectInformationA(); // pub fn SetUserObjectInformationW(); // pub fn SetUserObjectSecurity(); // pub fn SetWinEventHook(); // pub fn SetWindowContextHelpId(); // pub fn SetWindowDisplayAffinity(); // pub fn SetWindowFeedbackSetting(); pub fn SetWindowLongA(hWnd: HWND, nIndex: c_int, dwNewLong: LONG) -> LONG; #[cfg(target_arch = "x86_64")] pub fn SetWindowLongPtrA(hWnd: HWND, nIndex: c_int, dwNewLong: LONG_PTR) -> LONG_PTR; #[cfg(target_arch = "x86_64")] pub fn SetWindowLongPtrW(hWnd: HWND, nIndex: c_int, dwNewLong: LONG_PTR) -> LONG_PTR; pub fn SetWindowLongW(hWnd: HWND, nIndex: c_int, dwNewLong: LONG) -> LONG; // pub fn SetWindowPlacement(); pub fn SetWindowPos( hWnd: HWND, hWndInsertAfter: HWND, X: c_int, Y: c_int, cx: c_int, cy: c_int, uFlags: UINT, ) -> BOOL; // pub fn SetWindowRgn(); // pub fn SetWindowTextA(); pub fn SetWindowTextW(hWnd: HWND, lpString: LPCWSTR) -> BOOL; // pub fn SetWindowWord(); // pub fn SetWindowsHookA(); // pub fn SetWindowsHookExA(); // pub fn SetWindowsHookExW(); // pub fn SetWindowsHookW(); pub fn ShowCaret(hWnd: HWND) -> BOOL; pub fn ShowCursor(bShow: BOOL) -> c_int; // pub fn ShowOwnedPopups(); // pub fn ShowScrollBar(); // pub fn ShowSystemCursor(); pub fn ShowWindow(hWnd: HWND, nCmdShow: c_int) -> BOOL; pub fn ShowWindowAsync(hWnd: HWND, nCmdShow: c_int) -> BOOL; // pub fn ShutdownBlockReasonCreate(); // pub fn ShutdownBlockReasonDestroy(); // pub fn ShutdownBlockReasonQuery(); // pub fn SkipPointerFrameMessages(); // pub fn SoundSentry(); // pub fn SubtractRect(); // pub fn SwapMouseButton(); // pub fn SwitchDesktop(); // pub fn SwitchToThisWindow(); // pub fn SystemParametersInfoA(); // pub fn SystemParametersInfoW(); // pub fn TabbedTextOutA(); // pub fn TabbedTextOutW(); // pub fn TileChildWindows(); // pub fn TileWindows(); // pub fn ToAscii(); // pub fn ToAsciiEx(); // pub fn ToUnicode(); // pub fn ToUnicodeEx(); // pub fn TrackMouseEvent(); // pub fn TrackPopupMenu(); // pub fn TrackPopupMenuEx(); // pub fn TranslateAccelerator(); // pub fn TranslateAcceleratorA(); // pub fn TranslateAcceleratorW(); // pub fn TranslateMDISysAccel(); pub fn TranslateMessage(lpmsg: *const MSG) -> BOOL; // pub fn UnhookWinEvent(); // pub fn UnhookWindowsHook(); // pub fn UnhookWindowsHookEx(); // pub fn UnionRect(); // pub fn UnloadKeyboardLayout(); // pub fn UnpackDDElParam(); pub fn UnregisterClassA(lpClassName: LPCSTR, hInstance: HINSTANCE) -> BOOL; pub fn UnregisterClassW(lpClassName: LPCWSTR, hInstance: HINSTANCE) -> BOOL; // pub fn UnregisterDeviceNotification(); // pub fn UnregisterHotKey(); // pub fn UnregisterPointerInputTarget(); // pub fn UnregisterPowerSettingNotification(); // pub fn UnregisterSuspendResumeNotification(); // pub fn UnregisterTouchWindow(); // pub fn UpdateLayeredWindow(); // pub fn UpdateLayeredWindowIndirect(); pub fn UpdateWindow(hWnd: HWND) -> BOOL; // pub fn UserHandleGrantAccess(); // pub fn ValidateRect(); // pub fn ValidateRgn(); // pub fn VkKeyScanA(); // pub fn VkKeyScanExA(); // pub fn VkKeyScanExW(); // pub fn VkKeyScanW(); // pub fn WINNLSEnableIME(); // pub fn WINNLSGetEnableStatus(); // pub fn WINNLSGetIMEHotkey(); // pub fn WaitForInputIdle(); pub fn WaitMessage() -> BOOL; // pub fn WinHelpA(); // pub fn WinHelpW(); // pub fn WindowFromDC(); // pub fn WindowFromPhysicalPoint(); // pub fn WindowFromPoint(); // pub fn keybd_event(); // pub fn mouse_event(); // pub fn wsprintfA(); // pub fn wsprintfW(); // pub fn wvsprintfA(); // pub fn wvsprintfW(); }