github.com/tomatome/win@v0.3.1/user32.go (about) 1 // This file was automatically generated by https://github.com/kbinani/win/blob/generator/internal/cmd/gen/gen.go 2 // go run internal/cmd/gen/gen.go 3 4 // +build windows 5 6 package win 7 8 import ( 9 "syscall" 10 "unsafe" 11 ) 12 13 var ( 14 // Library 15 libuser32 uintptr 16 17 // Functions 18 activateKeyboardLayout uintptr 19 adjustWindowRect uintptr 20 adjustWindowRectEx uintptr 21 allowSetForegroundWindow uintptr 22 animateWindow uintptr 23 anyPopup uintptr 24 appendMenu uintptr 25 arrangeIconicWindows uintptr 26 attachThreadInput uintptr 27 beginDeferWindowPos uintptr 28 beginPaint uintptr 29 blockInput uintptr 30 bringWindowToTop uintptr 31 broadcastSystemMessageEx uintptr 32 broadcastSystemMessage uintptr 33 callMsgFilter uintptr 34 callNextHookEx uintptr 35 callWindowProc uintptr 36 cascadeWindows uintptr 37 changeClipboardChain uintptr 38 changeDisplaySettingsEx uintptr 39 changeDisplaySettings uintptr 40 changeMenu uintptr 41 charLowerBuff uintptr 42 charLower uintptr 43 charNextExA uintptr 44 charNext uintptr 45 charPrevExA uintptr 46 charPrev uintptr 47 charToOemBuff uintptr 48 charToOem uintptr 49 charUpperBuff uintptr 50 charUpper uintptr 51 checkDlgButton uintptr 52 checkMenuItem uintptr 53 checkMenuRadioItem uintptr 54 checkRadioButton uintptr 55 childWindowFromPoint uintptr 56 childWindowFromPointEx uintptr 57 clientToScreen uintptr 58 clipCursor uintptr 59 closeClipboard uintptr 60 closeDesktop uintptr 61 closeGestureInfoHandle uintptr 62 closeTouchInputHandle uintptr 63 closeWindow uintptr 64 closeWindowStation uintptr 65 copyAcceleratorTable uintptr 66 copyIcon uintptr 67 copyImage uintptr 68 copyRect uintptr 69 countClipboardFormats uintptr 70 createAcceleratorTable uintptr 71 createCaret uintptr 72 createCursor uintptr 73 createDesktop uintptr 74 createDialogIndirectParam uintptr 75 createDialogParam uintptr 76 createIcon uintptr 77 createIconFromResource uintptr 78 createIconFromResourceEx uintptr 79 createIconIndirect uintptr 80 createMDIWindow uintptr 81 createMenu uintptr 82 createPopupMenu uintptr 83 createWindowEx uintptr 84 createWindowStation uintptr 85 ddeAbandonTransaction uintptr 86 ddeAccessData uintptr 87 ddeAddData uintptr 88 ddeClientTransaction uintptr 89 ddeCmpStringHandles uintptr 90 ddeConnect uintptr 91 ddeConnectList uintptr 92 ddeCreateDataHandle uintptr 93 ddeCreateStringHandle uintptr 94 ddeDisconnect uintptr 95 ddeDisconnectList uintptr 96 ddeEnableCallback uintptr 97 ddeFreeDataHandle uintptr 98 ddeFreeStringHandle uintptr 99 ddeGetData uintptr 100 ddeGetLastError uintptr 101 ddeImpersonateClient uintptr 102 ddeInitialize uintptr 103 ddeKeepStringHandle uintptr 104 ddeNameService uintptr 105 ddePostAdvise uintptr 106 ddeQueryConvInfo uintptr 107 ddeQueryNextServer uintptr 108 ddeQueryString uintptr 109 ddeReconnect uintptr 110 ddeSetQualityOfService uintptr 111 ddeSetUserHandle uintptr 112 ddeUnaccessData uintptr 113 ddeUninitialize uintptr 114 defDlgProc uintptr 115 defFrameProc uintptr 116 defMDIChildProc uintptr 117 defRawInputProc uintptr 118 defWindowProc uintptr 119 deferWindowPos uintptr 120 deleteMenu uintptr 121 deregisterShellHookWindow uintptr 122 destroyAcceleratorTable uintptr 123 destroyCaret uintptr 124 destroyCursor uintptr 125 destroyIcon uintptr 126 destroyMenu uintptr 127 destroyWindow uintptr 128 dialogBoxIndirectParam uintptr 129 dialogBoxParam uintptr 130 disableProcessWindowsGhosting uintptr 131 dispatchMessage uintptr 132 dlgDirListComboBox uintptr 133 dlgDirList uintptr 134 dlgDirSelectComboBoxEx uintptr 135 dlgDirSelectEx uintptr 136 dragDetect uintptr 137 dragObject uintptr 138 drawAnimatedRects uintptr 139 drawCaption uintptr 140 drawEdge uintptr 141 drawFocusRect uintptr 142 drawFrameControl uintptr 143 drawIcon uintptr 144 drawIconEx uintptr 145 drawMenuBar uintptr 146 drawState uintptr 147 drawTextEx uintptr 148 drawText uintptr 149 emptyClipboard uintptr 150 enableMenuItem uintptr 151 enableScrollBar uintptr 152 enableWindow uintptr 153 endDeferWindowPos uintptr 154 endDialog uintptr 155 endMenu uintptr 156 endPaint uintptr 157 endTask uintptr 158 enumChildWindows uintptr 159 enumClipboardFormats uintptr 160 enumDesktopWindows uintptr 161 enumDesktops uintptr 162 enumDisplayDevices uintptr 163 enumDisplayMonitors uintptr 164 enumDisplaySettingsEx uintptr 165 enumDisplaySettings uintptr 166 enumPropsEx uintptr 167 enumProps uintptr 168 enumThreadWindows uintptr 169 enumWindowStations uintptr 170 enumWindows uintptr 171 equalRect uintptr 172 excludeUpdateRgn uintptr 173 exitWindowsEx uintptr 174 fillRect uintptr 175 findWindowEx uintptr 176 findWindow uintptr 177 flashWindow uintptr 178 flashWindowEx uintptr 179 frameRect uintptr 180 freeDDElParam uintptr 181 getActiveWindow uintptr 182 getAltTabInfo uintptr 183 getAncestor uintptr 184 getAsyncKeyState uintptr 185 getCapture uintptr 186 getCaretBlinkTime uintptr 187 getCaretPos uintptr 188 getClassInfoEx uintptr 189 getClassInfo uintptr 190 getClassLongPtr uintptr 191 getClassLong uintptr 192 getClassName uintptr 193 getClassWord uintptr 194 getClientRect uintptr 195 getClipCursor uintptr 196 getClipboardData uintptr 197 getClipboardFormatName uintptr 198 getClipboardOwner uintptr 199 getClipboardSequenceNumber uintptr 200 getClipboardViewer uintptr 201 getComboBoxInfo uintptr 202 getCursor uintptr 203 getCursorInfo uintptr 204 getCursorPos uintptr 205 getDC uintptr 206 getDCEx uintptr 207 getDesktopWindow uintptr 208 getDialogBaseUnits uintptr 209 getDlgCtrlID uintptr 210 getDlgItem uintptr 211 getDlgItemInt uintptr 212 getDlgItemText uintptr 213 getDoubleClickTime uintptr 214 getFocus uintptr 215 getForegroundWindow uintptr 216 getGUIThreadInfo uintptr 217 getGestureConfig uintptr 218 getGestureExtraArgs uintptr 219 getGestureInfo uintptr 220 getGuiResources uintptr 221 getIconInfo uintptr 222 getInputState uintptr 223 getKBCodePage uintptr 224 getKeyNameText uintptr 225 getKeyState uintptr 226 getKeyboardLayout uintptr 227 getKeyboardLayoutList uintptr 228 getKeyboardLayoutName uintptr 229 getKeyboardState uintptr 230 getKeyboardType uintptr 231 getLastActivePopup uintptr 232 getLastInputInfo uintptr 233 getLayeredWindowAttributes uintptr 234 getListBoxInfo uintptr 235 getMenu uintptr 236 getMenuBarInfo uintptr 237 getMenuCheckMarkDimensions uintptr 238 getMenuContextHelpId uintptr 239 getMenuDefaultItem uintptr 240 getMenuInfo uintptr 241 getMenuItemCount uintptr 242 getMenuItemID uintptr 243 getMenuItemInfo uintptr 244 getMenuItemRect uintptr 245 getMenuState uintptr 246 getMenuString uintptr 247 getMessageExtraInfo uintptr 248 getMessagePos uintptr 249 getMessageTime uintptr 250 getMessage uintptr 251 getMonitorInfo uintptr 252 getMouseMovePointsEx uintptr 253 getNextDlgGroupItem uintptr 254 getNextDlgTabItem uintptr 255 getOpenClipboardWindow uintptr 256 getParent uintptr 257 getPriorityClipboardFormat uintptr 258 getProcessDefaultLayout uintptr 259 getProcessWindowStation uintptr 260 getProp uintptr 261 getQueueStatus uintptr 262 getRawInputBuffer uintptr 263 getRawInputData uintptr 264 getRawInputDeviceInfo uintptr 265 getRawInputDeviceList uintptr 266 getRegisteredRawInputDevices uintptr 267 getScrollBarInfo uintptr 268 getScrollInfo uintptr 269 getScrollPos uintptr 270 getScrollRange uintptr 271 getShellWindow uintptr 272 getSubMenu uintptr 273 getSysColor uintptr 274 getSysColorBrush uintptr 275 getSystemMenu uintptr 276 getSystemMetrics uintptr 277 getTabbedTextExtent uintptr 278 getThreadDesktop uintptr 279 getTitleBarInfo uintptr 280 getTopWindow uintptr 281 getTouchInputInfo uintptr 282 getUpdateRect uintptr 283 getUpdateRgn uintptr 284 getUserObjectInformation uintptr 285 getUserObjectSecurity uintptr 286 getWindow uintptr 287 getWindowContextHelpId uintptr 288 getWindowDC uintptr 289 getWindowInfo uintptr 290 getWindowLongPtr uintptr 291 getWindowLong uintptr 292 getWindowModuleFileName uintptr 293 getWindowPlacement uintptr 294 getWindowRect uintptr 295 getWindowRgn uintptr 296 getWindowRgnBox uintptr 297 getWindowTextLength uintptr 298 getWindowText uintptr 299 getWindowThreadProcessId uintptr 300 getWindowWord uintptr 301 grayString uintptr 302 hideCaret uintptr 303 hiliteMenuItem uintptr 304 iMPGetIME uintptr 305 iMPQueryIME uintptr 306 iMPSetIME uintptr 307 impersonateDdeClientWindow uintptr 308 inSendMessage uintptr 309 inSendMessageEx uintptr 310 inflateRect uintptr 311 insertMenuItem uintptr 312 insertMenu uintptr 313 internalGetWindowText uintptr 314 intersectRect uintptr 315 invalidateRect uintptr 316 invalidateRgn uintptr 317 invertRect uintptr 318 isCharAlphaNumeric uintptr 319 isCharAlpha uintptr 320 isCharLower uintptr 321 isCharUpper uintptr 322 isChild uintptr 323 isClipboardFormatAvailable uintptr 324 isDialogMessage uintptr 325 isDlgButtonChecked uintptr 326 isGUIThread uintptr 327 isHungAppWindow uintptr 328 isIconic uintptr 329 isMenu uintptr 330 isRectEmpty uintptr 331 isTouchWindow uintptr 332 isWinEventHookInstalled uintptr 333 isWindow uintptr 334 isWindowEnabled uintptr 335 isWindowUnicode uintptr 336 isWindowVisible uintptr 337 isWow64Message uintptr 338 isZoomed uintptr 339 killTimer uintptr 340 loadAccelerators uintptr 341 loadBitmap uintptr 342 loadCursorFromFile uintptr 343 loadCursor uintptr 344 loadIcon uintptr 345 loadImage uintptr 346 loadKeyboardLayout uintptr 347 loadMenuIndirect uintptr 348 loadMenu uintptr 349 loadString uintptr 350 lockSetForegroundWindow uintptr 351 lockWindowUpdate uintptr 352 lockWorkStation uintptr 353 lookupIconIdFromDirectory uintptr 354 lookupIconIdFromDirectoryEx uintptr 355 mapDialogRect uintptr 356 mapVirtualKeyEx uintptr 357 mapVirtualKey uintptr 358 mapWindowPoints uintptr 359 menuItemFromPoint uintptr 360 messageBeep uintptr 361 messageBoxEx uintptr 362 messageBoxIndirect uintptr 363 messageBox uintptr 364 modifyMenu uintptr 365 monitorFromPoint uintptr 366 monitorFromRect uintptr 367 monitorFromWindow uintptr 368 moveWindow uintptr 369 msgWaitForMultipleObjects uintptr 370 msgWaitForMultipleObjectsEx uintptr 371 notifyWinEvent uintptr 372 oemKeyScan uintptr 373 oemToCharBuff uintptr 374 oemToChar uintptr 375 offsetRect uintptr 376 openClipboard uintptr 377 openDesktop uintptr 378 openIcon uintptr 379 openInputDesktop uintptr 380 openWindowStation uintptr 381 packDDElParam uintptr 382 paintDesktop uintptr 383 peekMessage uintptr 384 postMessage uintptr 385 postQuitMessage uintptr 386 postThreadMessage uintptr 387 printWindow uintptr 388 privateExtractIcons uintptr 389 ptInRect uintptr 390 realChildWindowFromPoint uintptr 391 realGetWindowClass uintptr 392 redrawWindow uintptr 393 registerClassEx uintptr 394 registerClass uintptr 395 registerClipboardFormat uintptr 396 registerDeviceNotification uintptr 397 registerHotKey uintptr 398 registerPowerSettingNotification uintptr 399 registerRawInputDevices uintptr 400 registerShellHookWindow uintptr 401 registerTouchWindow uintptr 402 registerWindowMessage uintptr 403 releaseCapture uintptr 404 releaseDC uintptr 405 removeMenu uintptr 406 removeProp uintptr 407 replyMessage uintptr 408 reuseDDElParam uintptr 409 screenToClient uintptr 410 scrollDC uintptr 411 scrollWindow uintptr 412 scrollWindowEx uintptr 413 sendDlgItemMessage uintptr 414 sendIMEMessageEx uintptr 415 sendInput uintptr 416 sendMessageCallback uintptr 417 sendMessageTimeout uintptr 418 sendMessage uintptr 419 sendNotifyMessage uintptr 420 setActiveWindow uintptr 421 setCapture uintptr 422 setCaretBlinkTime uintptr 423 setCaretPos uintptr 424 setClassLongPtr uintptr 425 setClassLong uintptr 426 setClassWord uintptr 427 setClipboardData uintptr 428 setClipboardViewer uintptr 429 setCursor uintptr 430 setCursorPos uintptr 431 setDebugErrorLevel uintptr 432 setDlgItemInt uintptr 433 setDlgItemText uintptr 434 setDoubleClickTime uintptr 435 setFocus uintptr 436 setForegroundWindow uintptr 437 setGestureConfig uintptr 438 setKeyboardState uintptr 439 setLastErrorEx uintptr 440 setLayeredWindowAttributes uintptr 441 setMenu uintptr 442 setMenuContextHelpId uintptr 443 setMenuDefaultItem uintptr 444 setMenuInfo uintptr 445 setMenuItemBitmaps uintptr 446 setMenuItemInfo uintptr 447 setMessageExtraInfo uintptr 448 setMessageQueue uintptr 449 setParent uintptr 450 setProcessDefaultLayout uintptr 451 setProcessWindowStation uintptr 452 setProp uintptr 453 setRect uintptr 454 setRectEmpty uintptr 455 setScrollInfo uintptr 456 setScrollPos uintptr 457 setScrollRange uintptr 458 setSysColors uintptr 459 setSystemCursor uintptr 460 setThreadDesktop uintptr 461 setTimer uintptr 462 setUserObjectInformation uintptr 463 setUserObjectSecurity uintptr 464 setWinEventHook uintptr 465 setWindowContextHelpId uintptr 466 setWindowLongPtr uintptr 467 setWindowLong uintptr 468 setWindowPlacement uintptr 469 setWindowPos uintptr 470 setWindowRgn uintptr 471 setWindowText uintptr 472 setWindowWord uintptr 473 setWindowsHookEx uintptr 474 setWindowsHook uintptr 475 showCaret uintptr 476 showCursor uintptr 477 showOwnedPopups uintptr 478 showScrollBar uintptr 479 showWindow uintptr 480 showWindowAsync uintptr 481 subtractRect uintptr 482 swapMouseButton uintptr 483 switchDesktop uintptr 484 switchToThisWindow uintptr 485 systemParametersInfo uintptr 486 tabbedTextOut uintptr 487 tileWindows uintptr 488 toAscii uintptr 489 toAsciiEx uintptr 490 toUnicode uintptr 491 toUnicodeEx uintptr 492 trackMouseEvent uintptr 493 trackPopupMenu uintptr 494 trackPopupMenuEx uintptr 495 translateAccelerator uintptr 496 translateMDISysAccel uintptr 497 translateMessage uintptr 498 unhookWinEvent uintptr 499 unhookWindowsHook uintptr 500 unhookWindowsHookEx uintptr 501 unionRect uintptr 502 unloadKeyboardLayout uintptr 503 unpackDDElParam uintptr 504 unregisterClass uintptr 505 unregisterDeviceNotification uintptr 506 unregisterHotKey uintptr 507 unregisterPowerSettingNotification uintptr 508 unregisterTouchWindow uintptr 509 updateLayeredWindow uintptr 510 updateLayeredWindowIndirect uintptr 511 updateWindow uintptr 512 userHandleGrantAccess uintptr 513 validateRect uintptr 514 validateRgn uintptr 515 vkKeyScanEx uintptr 516 vkKeyScan uintptr 517 wINNLSEnableIME uintptr 518 wINNLSGetEnableStatus uintptr 519 wINNLSGetIMEHotkey uintptr 520 waitForInputIdle uintptr 521 waitMessage uintptr 522 winHelp uintptr 523 windowFromDC uintptr 524 windowFromPoint uintptr 525 keybd_event uintptr 526 mouse_event uintptr 527 alignRects uintptr 528 cascadeChildWindows uintptr 529 createDialogIndirectParamAorW uintptr 530 dialogBoxIndirectParamAorW uintptr 531 drawCaptionTemp uintptr 532 drawMenuBarTemp uintptr 533 getAppCompatFlags uintptr 534 getAppCompatFlags2 uintptr 535 getCursorFrameInfo uintptr 536 getInternalWindowPos uintptr 537 getProgmanWindow uintptr 538 getTaskmanWindow uintptr 539 killSystemTimer uintptr 540 loadLocalFonts uintptr 541 messageBoxTimeout uintptr 542 privateExtractIconEx uintptr 543 registerLogonProcess uintptr 544 registerServicesProcess uintptr 545 registerSystemThread uintptr 546 registerTasklist uintptr 547 scrollChildren uintptr 548 setInternalWindowPos uintptr 549 setLogonNotifyWindow uintptr 550 setProgmanWindow uintptr 551 setShellWindow uintptr 552 setShellWindowEx uintptr 553 setSysColorsTemp uintptr 554 setSystemMenu uintptr 555 setSystemTimer uintptr 556 setTaskmanWindow uintptr 557 setWindowStationUser uintptr 558 tileChildWindows uintptr 559 user32InitializeImmEntryTable uintptr 560 userRealizePalette uintptr 561 userRegisterWowHandlers uintptr 562 addClipboardFormatListener uintptr 563 removeClipboardFormatListener uintptr 564 ) 565 566 func init() { 567 // Library 568 libuser32 = doLoadLibrary("user32.dll") 569 570 // Functions 571 activateKeyboardLayout = doGetProcAddress(libuser32, "ActivateKeyboardLayout") 572 adjustWindowRect = doGetProcAddress(libuser32, "AdjustWindowRect") 573 adjustWindowRectEx = doGetProcAddress(libuser32, "AdjustWindowRectEx") 574 allowSetForegroundWindow = doGetProcAddress(libuser32, "AllowSetForegroundWindow") 575 animateWindow = doGetProcAddress(libuser32, "AnimateWindow") 576 anyPopup = doGetProcAddress(libuser32, "AnyPopup") 577 appendMenu = doGetProcAddress(libuser32, "AppendMenuW") 578 arrangeIconicWindows = doGetProcAddress(libuser32, "ArrangeIconicWindows") 579 attachThreadInput = doGetProcAddress(libuser32, "AttachThreadInput") 580 beginDeferWindowPos = doGetProcAddress(libuser32, "BeginDeferWindowPos") 581 beginPaint = doGetProcAddress(libuser32, "BeginPaint") 582 blockInput = doGetProcAddress(libuser32, "BlockInput") 583 bringWindowToTop = doGetProcAddress(libuser32, "BringWindowToTop") 584 broadcastSystemMessageEx = doGetProcAddress(libuser32, "BroadcastSystemMessageExW") 585 broadcastSystemMessage = doGetProcAddress(libuser32, "BroadcastSystemMessageW") 586 callMsgFilter = doGetProcAddress(libuser32, "CallMsgFilterW") 587 callNextHookEx = doGetProcAddress(libuser32, "CallNextHookEx") 588 callWindowProc = doGetProcAddress(libuser32, "CallWindowProcW") 589 cascadeWindows = doGetProcAddress(libuser32, "CascadeWindows") 590 changeClipboardChain = doGetProcAddress(libuser32, "ChangeClipboardChain") 591 changeDisplaySettingsEx = doGetProcAddress(libuser32, "ChangeDisplaySettingsExW") 592 changeDisplaySettings = doGetProcAddress(libuser32, "ChangeDisplaySettingsW") 593 changeMenu = doGetProcAddress(libuser32, "ChangeMenuW") 594 charLowerBuff = doGetProcAddress(libuser32, "CharLowerBuffW") 595 charLower = doGetProcAddress(libuser32, "CharLowerW") 596 charNextExA = doGetProcAddress(libuser32, "CharNextExA") 597 charNext = doGetProcAddress(libuser32, "CharNextW") 598 charPrevExA = doGetProcAddress(libuser32, "CharPrevExA") 599 charPrev = doGetProcAddress(libuser32, "CharPrevW") 600 charToOemBuff = doGetProcAddress(libuser32, "CharToOemBuffW") 601 charToOem = doGetProcAddress(libuser32, "CharToOemW") 602 charUpperBuff = doGetProcAddress(libuser32, "CharUpperBuffW") 603 charUpper = doGetProcAddress(libuser32, "CharUpperW") 604 checkDlgButton = doGetProcAddress(libuser32, "CheckDlgButton") 605 checkMenuItem = doGetProcAddress(libuser32, "CheckMenuItem") 606 checkMenuRadioItem = doGetProcAddress(libuser32, "CheckMenuRadioItem") 607 checkRadioButton = doGetProcAddress(libuser32, "CheckRadioButton") 608 childWindowFromPoint = doGetProcAddress(libuser32, "ChildWindowFromPoint") 609 childWindowFromPointEx = doGetProcAddress(libuser32, "ChildWindowFromPointEx") 610 clientToScreen = doGetProcAddress(libuser32, "ClientToScreen") 611 clipCursor = doGetProcAddress(libuser32, "ClipCursor") 612 closeClipboard = doGetProcAddress(libuser32, "CloseClipboard") 613 closeDesktop = doGetProcAddress(libuser32, "CloseDesktop") 614 closeGestureInfoHandle = doGetProcAddress(libuser32, "CloseGestureInfoHandle") 615 closeTouchInputHandle = doGetProcAddress(libuser32, "CloseTouchInputHandle") 616 closeWindow = doGetProcAddress(libuser32, "CloseWindow") 617 closeWindowStation = doGetProcAddress(libuser32, "CloseWindowStation") 618 copyAcceleratorTable = doGetProcAddress(libuser32, "CopyAcceleratorTableW") 619 copyIcon = doGetProcAddress(libuser32, "CopyIcon") 620 copyImage = doGetProcAddress(libuser32, "CopyImage") 621 copyRect = doGetProcAddress(libuser32, "CopyRect") 622 countClipboardFormats = doGetProcAddress(libuser32, "CountClipboardFormats") 623 createAcceleratorTable = doGetProcAddress(libuser32, "CreateAcceleratorTableW") 624 createCaret = doGetProcAddress(libuser32, "CreateCaret") 625 createCursor = doGetProcAddress(libuser32, "CreateCursor") 626 createDesktop = doGetProcAddress(libuser32, "CreateDesktopW") 627 createDialogIndirectParam = doGetProcAddress(libuser32, "CreateDialogIndirectParamW") 628 createDialogParam = doGetProcAddress(libuser32, "CreateDialogParamW") 629 createIcon = doGetProcAddress(libuser32, "CreateIcon") 630 createIconFromResource = doGetProcAddress(libuser32, "CreateIconFromResource") 631 createIconFromResourceEx = doGetProcAddress(libuser32, "CreateIconFromResourceEx") 632 createIconIndirect = doGetProcAddress(libuser32, "CreateIconIndirect") 633 createMDIWindow = doGetProcAddress(libuser32, "CreateMDIWindowW") 634 createMenu = doGetProcAddress(libuser32, "CreateMenu") 635 createPopupMenu = doGetProcAddress(libuser32, "CreatePopupMenu") 636 createWindowEx = doGetProcAddress(libuser32, "CreateWindowExW") 637 createWindowStation = doGetProcAddress(libuser32, "CreateWindowStationW") 638 ddeAbandonTransaction = doGetProcAddress(libuser32, "DdeAbandonTransaction") 639 ddeAccessData = doGetProcAddress(libuser32, "DdeAccessData") 640 ddeAddData = doGetProcAddress(libuser32, "DdeAddData") 641 ddeClientTransaction = doGetProcAddress(libuser32, "DdeClientTransaction") 642 ddeCmpStringHandles = doGetProcAddress(libuser32, "DdeCmpStringHandles") 643 ddeConnect = doGetProcAddress(libuser32, "DdeConnect") 644 ddeConnectList = doGetProcAddress(libuser32, "DdeConnectList") 645 ddeCreateDataHandle = doGetProcAddress(libuser32, "DdeCreateDataHandle") 646 ddeCreateStringHandle = doGetProcAddress(libuser32, "DdeCreateStringHandleW") 647 ddeDisconnect = doGetProcAddress(libuser32, "DdeDisconnect") 648 ddeDisconnectList = doGetProcAddress(libuser32, "DdeDisconnectList") 649 ddeEnableCallback = doGetProcAddress(libuser32, "DdeEnableCallback") 650 ddeFreeDataHandle = doGetProcAddress(libuser32, "DdeFreeDataHandle") 651 ddeFreeStringHandle = doGetProcAddress(libuser32, "DdeFreeStringHandle") 652 ddeGetData = doGetProcAddress(libuser32, "DdeGetData") 653 ddeGetLastError = doGetProcAddress(libuser32, "DdeGetLastError") 654 ddeImpersonateClient = doGetProcAddress(libuser32, "DdeImpersonateClient") 655 ddeInitialize = doGetProcAddress(libuser32, "DdeInitializeW") 656 ddeKeepStringHandle = doGetProcAddress(libuser32, "DdeKeepStringHandle") 657 ddeNameService = doGetProcAddress(libuser32, "DdeNameService") 658 ddePostAdvise = doGetProcAddress(libuser32, "DdePostAdvise") 659 ddeQueryConvInfo = doGetProcAddress(libuser32, "DdeQueryConvInfo") 660 ddeQueryNextServer = doGetProcAddress(libuser32, "DdeQueryNextServer") 661 ddeQueryString = doGetProcAddress(libuser32, "DdeQueryStringW") 662 ddeReconnect = doGetProcAddress(libuser32, "DdeReconnect") 663 ddeSetQualityOfService = doGetProcAddress(libuser32, "DdeSetQualityOfService") 664 ddeSetUserHandle = doGetProcAddress(libuser32, "DdeSetUserHandle") 665 ddeUnaccessData = doGetProcAddress(libuser32, "DdeUnaccessData") 666 ddeUninitialize = doGetProcAddress(libuser32, "DdeUninitialize") 667 defDlgProc = doGetProcAddress(libuser32, "DefDlgProcW") 668 defFrameProc = doGetProcAddress(libuser32, "DefFrameProcW") 669 defMDIChildProc = doGetProcAddress(libuser32, "DefMDIChildProcW") 670 defRawInputProc = doGetProcAddress(libuser32, "DefRawInputProc") 671 defWindowProc = doGetProcAddress(libuser32, "DefWindowProcW") 672 deferWindowPos = doGetProcAddress(libuser32, "DeferWindowPos") 673 deleteMenu = doGetProcAddress(libuser32, "DeleteMenu") 674 deregisterShellHookWindow = doGetProcAddress(libuser32, "DeregisterShellHookWindow") 675 destroyAcceleratorTable = doGetProcAddress(libuser32, "DestroyAcceleratorTable") 676 destroyCaret = doGetProcAddress(libuser32, "DestroyCaret") 677 destroyCursor = doGetProcAddress(libuser32, "DestroyCursor") 678 destroyIcon = doGetProcAddress(libuser32, "DestroyIcon") 679 destroyMenu = doGetProcAddress(libuser32, "DestroyMenu") 680 destroyWindow = doGetProcAddress(libuser32, "DestroyWindow") 681 dialogBoxIndirectParam = doGetProcAddress(libuser32, "DialogBoxIndirectParamW") 682 dialogBoxParam = doGetProcAddress(libuser32, "DialogBoxParamW") 683 disableProcessWindowsGhosting = doGetProcAddress(libuser32, "DisableProcessWindowsGhosting") 684 dispatchMessage = doGetProcAddress(libuser32, "DispatchMessageW") 685 dlgDirListComboBox = doGetProcAddress(libuser32, "DlgDirListComboBoxW") 686 dlgDirList = doGetProcAddress(libuser32, "DlgDirListW") 687 dlgDirSelectComboBoxEx = doGetProcAddress(libuser32, "DlgDirSelectComboBoxExW") 688 dlgDirSelectEx = doGetProcAddress(libuser32, "DlgDirSelectExW") 689 dragDetect = doGetProcAddress(libuser32, "DragDetect") 690 dragObject = doGetProcAddress(libuser32, "DragObject") 691 drawAnimatedRects = doGetProcAddress(libuser32, "DrawAnimatedRects") 692 drawCaption = doGetProcAddress(libuser32, "DrawCaption") 693 drawEdge = doGetProcAddress(libuser32, "DrawEdge") 694 drawFocusRect = doGetProcAddress(libuser32, "DrawFocusRect") 695 drawFrameControl = doGetProcAddress(libuser32, "DrawFrameControl") 696 drawIcon = doGetProcAddress(libuser32, "DrawIcon") 697 drawIconEx = doGetProcAddress(libuser32, "DrawIconEx") 698 drawMenuBar = doGetProcAddress(libuser32, "DrawMenuBar") 699 drawState = doGetProcAddress(libuser32, "DrawStateW") 700 drawTextEx = doGetProcAddress(libuser32, "DrawTextExW") 701 drawText = doGetProcAddress(libuser32, "DrawTextW") 702 emptyClipboard = doGetProcAddress(libuser32, "EmptyClipboard") 703 enableMenuItem = doGetProcAddress(libuser32, "EnableMenuItem") 704 enableScrollBar = doGetProcAddress(libuser32, "EnableScrollBar") 705 enableWindow = doGetProcAddress(libuser32, "EnableWindow") 706 endDeferWindowPos = doGetProcAddress(libuser32, "EndDeferWindowPos") 707 endDialog = doGetProcAddress(libuser32, "EndDialog") 708 endMenu = doGetProcAddress(libuser32, "EndMenu") 709 endPaint = doGetProcAddress(libuser32, "EndPaint") 710 endTask = doGetProcAddress(libuser32, "EndTask") 711 enumChildWindows = doGetProcAddress(libuser32, "EnumChildWindows") 712 enumClipboardFormats = doGetProcAddress(libuser32, "EnumClipboardFormats") 713 enumDesktopWindows = doGetProcAddress(libuser32, "EnumDesktopWindows") 714 enumDesktops = doGetProcAddress(libuser32, "EnumDesktopsW") 715 enumDisplayDevices = doGetProcAddress(libuser32, "EnumDisplayDevicesW") 716 enumDisplayMonitors = doGetProcAddress(libuser32, "EnumDisplayMonitors") 717 enumDisplaySettingsEx = doGetProcAddress(libuser32, "EnumDisplaySettingsExW") 718 enumDisplaySettings = doGetProcAddress(libuser32, "EnumDisplaySettingsW") 719 enumPropsEx = doGetProcAddress(libuser32, "EnumPropsExW") 720 enumProps = doGetProcAddress(libuser32, "EnumPropsW") 721 enumThreadWindows = doGetProcAddress(libuser32, "EnumThreadWindows") 722 enumWindowStations = doGetProcAddress(libuser32, "EnumWindowStationsW") 723 enumWindows = doGetProcAddress(libuser32, "EnumWindows") 724 equalRect = doGetProcAddress(libuser32, "EqualRect") 725 excludeUpdateRgn = doGetProcAddress(libuser32, "ExcludeUpdateRgn") 726 exitWindowsEx = doGetProcAddress(libuser32, "ExitWindowsEx") 727 fillRect = doGetProcAddress(libuser32, "FillRect") 728 findWindowEx = doGetProcAddress(libuser32, "FindWindowExW") 729 findWindow = doGetProcAddress(libuser32, "FindWindowW") 730 flashWindow = doGetProcAddress(libuser32, "FlashWindow") 731 flashWindowEx = doGetProcAddress(libuser32, "FlashWindowEx") 732 frameRect = doGetProcAddress(libuser32, "FrameRect") 733 freeDDElParam = doGetProcAddress(libuser32, "FreeDDElParam") 734 getActiveWindow = doGetProcAddress(libuser32, "GetActiveWindow") 735 getAltTabInfo = doGetProcAddress(libuser32, "GetAltTabInfoW") 736 getAncestor = doGetProcAddress(libuser32, "GetAncestor") 737 getAsyncKeyState = doGetProcAddress(libuser32, "GetAsyncKeyState") 738 getCapture = doGetProcAddress(libuser32, "GetCapture") 739 getCaretBlinkTime = doGetProcAddress(libuser32, "GetCaretBlinkTime") 740 getCaretPos = doGetProcAddress(libuser32, "GetCaretPos") 741 getClassInfoEx = doGetProcAddress(libuser32, "GetClassInfoExW") 742 getClassInfo = doGetProcAddress(libuser32, "GetClassInfoW") 743 getClassLongPtr = doGetProcAddress(libuser32, "GetClassLongPtrW") 744 getClassLong = doGetProcAddress(libuser32, "GetClassLongW") 745 getClassName = doGetProcAddress(libuser32, "GetClassNameW") 746 getClassWord = doGetProcAddress(libuser32, "GetClassWord") 747 getClientRect = doGetProcAddress(libuser32, "GetClientRect") 748 getClipCursor = doGetProcAddress(libuser32, "GetClipCursor") 749 getClipboardData = doGetProcAddress(libuser32, "GetClipboardData") 750 getClipboardFormatName = doGetProcAddress(libuser32, "GetClipboardFormatNameW") 751 getClipboardOwner = doGetProcAddress(libuser32, "GetClipboardOwner") 752 getClipboardSequenceNumber = doGetProcAddress(libuser32, "GetClipboardSequenceNumber") 753 getClipboardViewer = doGetProcAddress(libuser32, "GetClipboardViewer") 754 getComboBoxInfo = doGetProcAddress(libuser32, "GetComboBoxInfo") 755 getCursor = doGetProcAddress(libuser32, "GetCursor") 756 getCursorInfo = doGetProcAddress(libuser32, "GetCursorInfo") 757 getCursorPos = doGetProcAddress(libuser32, "GetCursorPos") 758 getDC = doGetProcAddress(libuser32, "GetDC") 759 getDCEx = doGetProcAddress(libuser32, "GetDCEx") 760 getDesktopWindow = doGetProcAddress(libuser32, "GetDesktopWindow") 761 getDialogBaseUnits = doGetProcAddress(libuser32, "GetDialogBaseUnits") 762 getDlgCtrlID = doGetProcAddress(libuser32, "GetDlgCtrlID") 763 getDlgItem = doGetProcAddress(libuser32, "GetDlgItem") 764 getDlgItemInt = doGetProcAddress(libuser32, "GetDlgItemInt") 765 getDlgItemText = doGetProcAddress(libuser32, "GetDlgItemTextW") 766 getDoubleClickTime = doGetProcAddress(libuser32, "GetDoubleClickTime") 767 getFocus = doGetProcAddress(libuser32, "GetFocus") 768 getForegroundWindow = doGetProcAddress(libuser32, "GetForegroundWindow") 769 getGUIThreadInfo = doGetProcAddress(libuser32, "GetGUIThreadInfo") 770 getGestureConfig = doGetProcAddress(libuser32, "GetGestureConfig") 771 getGestureExtraArgs = doGetProcAddress(libuser32, "GetGestureExtraArgs") 772 getGestureInfo = doGetProcAddress(libuser32, "GetGestureInfo") 773 getGuiResources = doGetProcAddress(libuser32, "GetGuiResources") 774 getIconInfo = doGetProcAddress(libuser32, "GetIconInfo") 775 getInputState = doGetProcAddress(libuser32, "GetInputState") 776 getKBCodePage = doGetProcAddress(libuser32, "GetKBCodePage") 777 getKeyNameText = doGetProcAddress(libuser32, "GetKeyNameTextW") 778 getKeyState = doGetProcAddress(libuser32, "GetKeyState") 779 getKeyboardLayout = doGetProcAddress(libuser32, "GetKeyboardLayout") 780 getKeyboardLayoutList = doGetProcAddress(libuser32, "GetKeyboardLayoutList") 781 getKeyboardLayoutName = doGetProcAddress(libuser32, "GetKeyboardLayoutNameW") 782 getKeyboardState = doGetProcAddress(libuser32, "GetKeyboardState") 783 getKeyboardType = doGetProcAddress(libuser32, "GetKeyboardType") 784 getLastActivePopup = doGetProcAddress(libuser32, "GetLastActivePopup") 785 getLastInputInfo = doGetProcAddress(libuser32, "GetLastInputInfo") 786 getLayeredWindowAttributes = doGetProcAddress(libuser32, "GetLayeredWindowAttributes") 787 getListBoxInfo = doGetProcAddress(libuser32, "GetListBoxInfo") 788 getMenu = doGetProcAddress(libuser32, "GetMenu") 789 getMenuBarInfo = doGetProcAddress(libuser32, "GetMenuBarInfo") 790 getMenuCheckMarkDimensions = doGetProcAddress(libuser32, "GetMenuCheckMarkDimensions") 791 getMenuContextHelpId = doGetProcAddress(libuser32, "GetMenuContextHelpId") 792 getMenuDefaultItem = doGetProcAddress(libuser32, "GetMenuDefaultItem") 793 getMenuInfo = doGetProcAddress(libuser32, "GetMenuInfo") 794 getMenuItemCount = doGetProcAddress(libuser32, "GetMenuItemCount") 795 getMenuItemID = doGetProcAddress(libuser32, "GetMenuItemID") 796 getMenuItemInfo = doGetProcAddress(libuser32, "GetMenuItemInfoW") 797 getMenuItemRect = doGetProcAddress(libuser32, "GetMenuItemRect") 798 getMenuState = doGetProcAddress(libuser32, "GetMenuState") 799 getMenuString = doGetProcAddress(libuser32, "GetMenuStringW") 800 getMessageExtraInfo = doGetProcAddress(libuser32, "GetMessageExtraInfo") 801 getMessagePos = doGetProcAddress(libuser32, "GetMessagePos") 802 getMessageTime = doGetProcAddress(libuser32, "GetMessageTime") 803 getMessage = doGetProcAddress(libuser32, "GetMessageW") 804 getMonitorInfo = doGetProcAddress(libuser32, "GetMonitorInfoW") 805 getMouseMovePointsEx = doGetProcAddress(libuser32, "GetMouseMovePointsEx") 806 getNextDlgGroupItem = doGetProcAddress(libuser32, "GetNextDlgGroupItem") 807 getNextDlgTabItem = doGetProcAddress(libuser32, "GetNextDlgTabItem") 808 getOpenClipboardWindow = doGetProcAddress(libuser32, "GetOpenClipboardWindow") 809 getParent = doGetProcAddress(libuser32, "GetParent") 810 getPriorityClipboardFormat = doGetProcAddress(libuser32, "GetPriorityClipboardFormat") 811 getProcessDefaultLayout = doGetProcAddress(libuser32, "GetProcessDefaultLayout") 812 getProcessWindowStation = doGetProcAddress(libuser32, "GetProcessWindowStation") 813 getProp = doGetProcAddress(libuser32, "GetPropW") 814 getQueueStatus = doGetProcAddress(libuser32, "GetQueueStatus") 815 getRawInputBuffer = doGetProcAddress(libuser32, "GetRawInputBuffer") 816 getRawInputData = doGetProcAddress(libuser32, "GetRawInputData") 817 getRawInputDeviceInfo = doGetProcAddress(libuser32, "GetRawInputDeviceInfoW") 818 getRawInputDeviceList = doGetProcAddress(libuser32, "GetRawInputDeviceList") 819 getRegisteredRawInputDevices = doGetProcAddress(libuser32, "GetRegisteredRawInputDevices") 820 getScrollBarInfo = doGetProcAddress(libuser32, "GetScrollBarInfo") 821 getScrollInfo = doGetProcAddress(libuser32, "GetScrollInfo") 822 getScrollPos = doGetProcAddress(libuser32, "GetScrollPos") 823 getScrollRange = doGetProcAddress(libuser32, "GetScrollRange") 824 getShellWindow = doGetProcAddress(libuser32, "GetShellWindow") 825 getSubMenu = doGetProcAddress(libuser32, "GetSubMenu") 826 getSysColor = doGetProcAddress(libuser32, "GetSysColor") 827 getSysColorBrush = doGetProcAddress(libuser32, "GetSysColorBrush") 828 getSystemMenu = doGetProcAddress(libuser32, "GetSystemMenu") 829 getSystemMetrics = doGetProcAddress(libuser32, "GetSystemMetrics") 830 getTabbedTextExtent = doGetProcAddress(libuser32, "GetTabbedTextExtentW") 831 getThreadDesktop = doGetProcAddress(libuser32, "GetThreadDesktop") 832 getTitleBarInfo = doGetProcAddress(libuser32, "GetTitleBarInfo") 833 getTopWindow = doGetProcAddress(libuser32, "GetTopWindow") 834 getTouchInputInfo = doGetProcAddress(libuser32, "GetTouchInputInfo") 835 getUpdateRect = doGetProcAddress(libuser32, "GetUpdateRect") 836 getUpdateRgn = doGetProcAddress(libuser32, "GetUpdateRgn") 837 getUserObjectInformation = doGetProcAddress(libuser32, "GetUserObjectInformationW") 838 getUserObjectSecurity = doGetProcAddress(libuser32, "GetUserObjectSecurity") 839 getWindow = doGetProcAddress(libuser32, "GetWindow") 840 getWindowContextHelpId = doGetProcAddress(libuser32, "GetWindowContextHelpId") 841 getWindowDC = doGetProcAddress(libuser32, "GetWindowDC") 842 getWindowInfo = doGetProcAddress(libuser32, "GetWindowInfo") 843 getWindowLongPtr = doGetProcAddress(libuser32, "GetWindowLongPtrW") 844 getWindowLong = doGetProcAddress(libuser32, "GetWindowLongW") 845 getWindowModuleFileName = doGetProcAddress(libuser32, "GetWindowModuleFileNameW") 846 getWindowPlacement = doGetProcAddress(libuser32, "GetWindowPlacement") 847 getWindowRect = doGetProcAddress(libuser32, "GetWindowRect") 848 getWindowRgn = doGetProcAddress(libuser32, "GetWindowRgn") 849 getWindowRgnBox = doGetProcAddress(libuser32, "GetWindowRgnBox") 850 getWindowTextLength = doGetProcAddress(libuser32, "GetWindowTextLengthW") 851 getWindowText = doGetProcAddress(libuser32, "GetWindowTextW") 852 getWindowThreadProcessId = doGetProcAddress(libuser32, "GetWindowThreadProcessId") 853 getWindowWord = doGetProcAddress(libuser32, "GetWindowWord") 854 grayString = doGetProcAddress(libuser32, "GrayStringW") 855 hideCaret = doGetProcAddress(libuser32, "HideCaret") 856 hiliteMenuItem = doGetProcAddress(libuser32, "HiliteMenuItem") 857 iMPGetIME = doGetProcAddress(libuser32, "IMPGetIMEW") 858 iMPQueryIME = doGetProcAddress(libuser32, "IMPQueryIMEW") 859 iMPSetIME = doGetProcAddress(libuser32, "IMPSetIMEW") 860 impersonateDdeClientWindow = doGetProcAddress(libuser32, "ImpersonateDdeClientWindow") 861 inSendMessage = doGetProcAddress(libuser32, "InSendMessage") 862 inSendMessageEx = doGetProcAddress(libuser32, "InSendMessageEx") 863 inflateRect = doGetProcAddress(libuser32, "InflateRect") 864 insertMenuItem = doGetProcAddress(libuser32, "InsertMenuItemW") 865 insertMenu = doGetProcAddress(libuser32, "InsertMenuW") 866 internalGetWindowText = doGetProcAddress(libuser32, "InternalGetWindowText") 867 intersectRect = doGetProcAddress(libuser32, "IntersectRect") 868 invalidateRect = doGetProcAddress(libuser32, "InvalidateRect") 869 invalidateRgn = doGetProcAddress(libuser32, "InvalidateRgn") 870 invertRect = doGetProcAddress(libuser32, "InvertRect") 871 isCharAlphaNumeric = doGetProcAddress(libuser32, "IsCharAlphaNumericW") 872 isCharAlpha = doGetProcAddress(libuser32, "IsCharAlphaW") 873 isCharLower = doGetProcAddress(libuser32, "IsCharLowerW") 874 isCharUpper = doGetProcAddress(libuser32, "IsCharUpperW") 875 isChild = doGetProcAddress(libuser32, "IsChild") 876 isClipboardFormatAvailable = doGetProcAddress(libuser32, "IsClipboardFormatAvailable") 877 isDialogMessage = doGetProcAddress(libuser32, "IsDialogMessageW") 878 isDlgButtonChecked = doGetProcAddress(libuser32, "IsDlgButtonChecked") 879 isGUIThread = doGetProcAddress(libuser32, "IsGUIThread") 880 isHungAppWindow = doGetProcAddress(libuser32, "IsHungAppWindow") 881 isIconic = doGetProcAddress(libuser32, "IsIconic") 882 isMenu = doGetProcAddress(libuser32, "IsMenu") 883 isRectEmpty = doGetProcAddress(libuser32, "IsRectEmpty") 884 isTouchWindow = doGetProcAddress(libuser32, "IsTouchWindow") 885 isWinEventHookInstalled = doGetProcAddress(libuser32, "IsWinEventHookInstalled") 886 isWindow = doGetProcAddress(libuser32, "IsWindow") 887 isWindowEnabled = doGetProcAddress(libuser32, "IsWindowEnabled") 888 isWindowUnicode = doGetProcAddress(libuser32, "IsWindowUnicode") 889 isWindowVisible = doGetProcAddress(libuser32, "IsWindowVisible") 890 isWow64Message = doGetProcAddress(libuser32, "IsWow64Message") 891 isZoomed = doGetProcAddress(libuser32, "IsZoomed") 892 killTimer = doGetProcAddress(libuser32, "KillTimer") 893 loadAccelerators = doGetProcAddress(libuser32, "LoadAcceleratorsW") 894 loadBitmap = doGetProcAddress(libuser32, "LoadBitmapW") 895 loadCursorFromFile = doGetProcAddress(libuser32, "LoadCursorFromFileW") 896 loadCursor = doGetProcAddress(libuser32, "LoadCursorW") 897 loadIcon = doGetProcAddress(libuser32, "LoadIconW") 898 loadImage = doGetProcAddress(libuser32, "LoadImageW") 899 loadKeyboardLayout = doGetProcAddress(libuser32, "LoadKeyboardLayoutW") 900 loadMenuIndirect = doGetProcAddress(libuser32, "LoadMenuIndirectW") 901 loadMenu = doGetProcAddress(libuser32, "LoadMenuW") 902 loadString = doGetProcAddress(libuser32, "LoadStringW") 903 lockSetForegroundWindow = doGetProcAddress(libuser32, "LockSetForegroundWindow") 904 lockWindowUpdate = doGetProcAddress(libuser32, "LockWindowUpdate") 905 lockWorkStation = doGetProcAddress(libuser32, "LockWorkStation") 906 lookupIconIdFromDirectory = doGetProcAddress(libuser32, "LookupIconIdFromDirectory") 907 lookupIconIdFromDirectoryEx = doGetProcAddress(libuser32, "LookupIconIdFromDirectoryEx") 908 mapDialogRect = doGetProcAddress(libuser32, "MapDialogRect") 909 mapVirtualKeyEx = doGetProcAddress(libuser32, "MapVirtualKeyExW") 910 mapVirtualKey = doGetProcAddress(libuser32, "MapVirtualKeyW") 911 mapWindowPoints = doGetProcAddress(libuser32, "MapWindowPoints") 912 menuItemFromPoint = doGetProcAddress(libuser32, "MenuItemFromPoint") 913 messageBeep = doGetProcAddress(libuser32, "MessageBeep") 914 messageBoxEx = doGetProcAddress(libuser32, "MessageBoxExW") 915 messageBoxIndirect = doGetProcAddress(libuser32, "MessageBoxIndirectW") 916 messageBox = doGetProcAddress(libuser32, "MessageBoxW") 917 modifyMenu = doGetProcAddress(libuser32, "ModifyMenuW") 918 monitorFromPoint = doGetProcAddress(libuser32, "MonitorFromPoint") 919 monitorFromRect = doGetProcAddress(libuser32, "MonitorFromRect") 920 monitorFromWindow = doGetProcAddress(libuser32, "MonitorFromWindow") 921 moveWindow = doGetProcAddress(libuser32, "MoveWindow") 922 msgWaitForMultipleObjects = doGetProcAddress(libuser32, "MsgWaitForMultipleObjects") 923 msgWaitForMultipleObjectsEx = doGetProcAddress(libuser32, "MsgWaitForMultipleObjectsEx") 924 notifyWinEvent = doGetProcAddress(libuser32, "NotifyWinEvent") 925 oemKeyScan = doGetProcAddress(libuser32, "OemKeyScan") 926 oemToCharBuff = doGetProcAddress(libuser32, "OemToCharBuffW") 927 oemToChar = doGetProcAddress(libuser32, "OemToCharW") 928 offsetRect = doGetProcAddress(libuser32, "OffsetRect") 929 openClipboard = doGetProcAddress(libuser32, "OpenClipboard") 930 openDesktop = doGetProcAddress(libuser32, "OpenDesktopW") 931 openIcon = doGetProcAddress(libuser32, "OpenIcon") 932 openInputDesktop = doGetProcAddress(libuser32, "OpenInputDesktop") 933 openWindowStation = doGetProcAddress(libuser32, "OpenWindowStationW") 934 packDDElParam = doGetProcAddress(libuser32, "PackDDElParam") 935 paintDesktop = doGetProcAddress(libuser32, "PaintDesktop") 936 peekMessage = doGetProcAddress(libuser32, "PeekMessageW") 937 postMessage = doGetProcAddress(libuser32, "PostMessageW") 938 postQuitMessage = doGetProcAddress(libuser32, "PostQuitMessage") 939 postThreadMessage = doGetProcAddress(libuser32, "PostThreadMessageW") 940 printWindow = doGetProcAddress(libuser32, "PrintWindow") 941 privateExtractIcons = doGetProcAddress(libuser32, "PrivateExtractIconsW") 942 ptInRect = doGetProcAddress(libuser32, "PtInRect") 943 realChildWindowFromPoint = doGetProcAddress(libuser32, "RealChildWindowFromPoint") 944 realGetWindowClass = doGetProcAddress(libuser32, "RealGetWindowClassW") 945 redrawWindow = doGetProcAddress(libuser32, "RedrawWindow") 946 registerClassEx = doGetProcAddress(libuser32, "RegisterClassExW") 947 registerClass = doGetProcAddress(libuser32, "RegisterClassW") 948 registerClipboardFormat = doGetProcAddress(libuser32, "RegisterClipboardFormatW") 949 registerDeviceNotification = doGetProcAddress(libuser32, "RegisterDeviceNotificationW") 950 registerHotKey = doGetProcAddress(libuser32, "RegisterHotKey") 951 registerPowerSettingNotification = doGetProcAddress(libuser32, "RegisterPowerSettingNotification") 952 registerRawInputDevices = doGetProcAddress(libuser32, "RegisterRawInputDevices") 953 registerShellHookWindow = doGetProcAddress(libuser32, "RegisterShellHookWindow") 954 registerTouchWindow = doGetProcAddress(libuser32, "RegisterTouchWindow") 955 registerWindowMessage = doGetProcAddress(libuser32, "RegisterWindowMessageW") 956 releaseCapture = doGetProcAddress(libuser32, "ReleaseCapture") 957 releaseDC = doGetProcAddress(libuser32, "ReleaseDC") 958 removeMenu = doGetProcAddress(libuser32, "RemoveMenu") 959 removeProp = doGetProcAddress(libuser32, "RemovePropW") 960 replyMessage = doGetProcAddress(libuser32, "ReplyMessage") 961 reuseDDElParam = doGetProcAddress(libuser32, "ReuseDDElParam") 962 screenToClient = doGetProcAddress(libuser32, "ScreenToClient") 963 scrollDC = doGetProcAddress(libuser32, "ScrollDC") 964 scrollWindow = doGetProcAddress(libuser32, "ScrollWindow") 965 scrollWindowEx = doGetProcAddress(libuser32, "ScrollWindowEx") 966 sendDlgItemMessage = doGetProcAddress(libuser32, "SendDlgItemMessageW") 967 sendIMEMessageEx = doGetProcAddress(libuser32, "SendIMEMessageExW") 968 sendInput = doGetProcAddress(libuser32, "SendInput") 969 sendMessageCallback = doGetProcAddress(libuser32, "SendMessageCallbackW") 970 sendMessageTimeout = doGetProcAddress(libuser32, "SendMessageTimeoutW") 971 sendMessage = doGetProcAddress(libuser32, "SendMessageW") 972 sendNotifyMessage = doGetProcAddress(libuser32, "SendNotifyMessageW") 973 setActiveWindow = doGetProcAddress(libuser32, "SetActiveWindow") 974 setCapture = doGetProcAddress(libuser32, "SetCapture") 975 setCaretBlinkTime = doGetProcAddress(libuser32, "SetCaretBlinkTime") 976 setCaretPos = doGetProcAddress(libuser32, "SetCaretPos") 977 setClassLongPtr = doGetProcAddress(libuser32, "SetClassLongPtrW") 978 setClassLong = doGetProcAddress(libuser32, "SetClassLongW") 979 setClassWord = doGetProcAddress(libuser32, "SetClassWord") 980 setClipboardData = doGetProcAddress(libuser32, "SetClipboardData") 981 setClipboardViewer = doGetProcAddress(libuser32, "SetClipboardViewer") 982 setCursor = doGetProcAddress(libuser32, "SetCursor") 983 setCursorPos = doGetProcAddress(libuser32, "SetCursorPos") 984 setDebugErrorLevel = doGetProcAddress(libuser32, "SetDebugErrorLevel") 985 setDlgItemInt = doGetProcAddress(libuser32, "SetDlgItemInt") 986 setDlgItemText = doGetProcAddress(libuser32, "SetDlgItemTextW") 987 setDoubleClickTime = doGetProcAddress(libuser32, "SetDoubleClickTime") 988 setFocus = doGetProcAddress(libuser32, "SetFocus") 989 setForegroundWindow = doGetProcAddress(libuser32, "SetForegroundWindow") 990 setGestureConfig = doGetProcAddress(libuser32, "SetGestureConfig") 991 setKeyboardState = doGetProcAddress(libuser32, "SetKeyboardState") 992 setLastErrorEx = doGetProcAddress(libuser32, "SetLastErrorEx") 993 setLayeredWindowAttributes = doGetProcAddress(libuser32, "SetLayeredWindowAttributes") 994 setMenu = doGetProcAddress(libuser32, "SetMenu") 995 setMenuContextHelpId = doGetProcAddress(libuser32, "SetMenuContextHelpId") 996 setMenuDefaultItem = doGetProcAddress(libuser32, "SetMenuDefaultItem") 997 setMenuInfo = doGetProcAddress(libuser32, "SetMenuInfo") 998 setMenuItemBitmaps = doGetProcAddress(libuser32, "SetMenuItemBitmaps") 999 setMenuItemInfo = doGetProcAddress(libuser32, "SetMenuItemInfoW") 1000 setMessageExtraInfo = doGetProcAddress(libuser32, "SetMessageExtraInfo") 1001 setMessageQueue = doGetProcAddress(libuser32, "SetMessageQueue") 1002 setParent = doGetProcAddress(libuser32, "SetParent") 1003 setProcessDefaultLayout = doGetProcAddress(libuser32, "SetProcessDefaultLayout") 1004 setProcessWindowStation = doGetProcAddress(libuser32, "SetProcessWindowStation") 1005 setProp = doGetProcAddress(libuser32, "SetPropW") 1006 setRect = doGetProcAddress(libuser32, "SetRect") 1007 setRectEmpty = doGetProcAddress(libuser32, "SetRectEmpty") 1008 setScrollInfo = doGetProcAddress(libuser32, "SetScrollInfo") 1009 setScrollPos = doGetProcAddress(libuser32, "SetScrollPos") 1010 setScrollRange = doGetProcAddress(libuser32, "SetScrollRange") 1011 setSysColors = doGetProcAddress(libuser32, "SetSysColors") 1012 setSystemCursor = doGetProcAddress(libuser32, "SetSystemCursor") 1013 setThreadDesktop = doGetProcAddress(libuser32, "SetThreadDesktop") 1014 setTimer = doGetProcAddress(libuser32, "SetTimer") 1015 setUserObjectInformation = doGetProcAddress(libuser32, "SetUserObjectInformationW") 1016 setUserObjectSecurity = doGetProcAddress(libuser32, "SetUserObjectSecurity") 1017 setWinEventHook = doGetProcAddress(libuser32, "SetWinEventHook") 1018 setWindowContextHelpId = doGetProcAddress(libuser32, "SetWindowContextHelpId") 1019 setWindowLongPtr = doGetProcAddress(libuser32, "SetWindowLongPtrW") 1020 setWindowLong = doGetProcAddress(libuser32, "SetWindowLongW") 1021 setWindowPlacement = doGetProcAddress(libuser32, "SetWindowPlacement") 1022 setWindowPos = doGetProcAddress(libuser32, "SetWindowPos") 1023 setWindowRgn = doGetProcAddress(libuser32, "SetWindowRgn") 1024 setWindowText = doGetProcAddress(libuser32, "SetWindowTextW") 1025 setWindowWord = doGetProcAddress(libuser32, "SetWindowWord") 1026 setWindowsHookEx = doGetProcAddress(libuser32, "SetWindowsHookExW") 1027 setWindowsHook = doGetProcAddress(libuser32, "SetWindowsHookW") 1028 showCaret = doGetProcAddress(libuser32, "ShowCaret") 1029 showCursor = doGetProcAddress(libuser32, "ShowCursor") 1030 showOwnedPopups = doGetProcAddress(libuser32, "ShowOwnedPopups") 1031 showScrollBar = doGetProcAddress(libuser32, "ShowScrollBar") 1032 showWindow = doGetProcAddress(libuser32, "ShowWindow") 1033 showWindowAsync = doGetProcAddress(libuser32, "ShowWindowAsync") 1034 subtractRect = doGetProcAddress(libuser32, "SubtractRect") 1035 swapMouseButton = doGetProcAddress(libuser32, "SwapMouseButton") 1036 switchDesktop = doGetProcAddress(libuser32, "SwitchDesktop") 1037 switchToThisWindow = doGetProcAddress(libuser32, "SwitchToThisWindow") 1038 systemParametersInfo = doGetProcAddress(libuser32, "SystemParametersInfoW") 1039 tabbedTextOut = doGetProcAddress(libuser32, "TabbedTextOutW") 1040 tileWindows = doGetProcAddress(libuser32, "TileWindows") 1041 toAscii = doGetProcAddress(libuser32, "ToAscii") 1042 toAsciiEx = doGetProcAddress(libuser32, "ToAsciiEx") 1043 toUnicode = doGetProcAddress(libuser32, "ToUnicode") 1044 toUnicodeEx = doGetProcAddress(libuser32, "ToUnicodeEx") 1045 trackMouseEvent = doGetProcAddress(libuser32, "TrackMouseEvent") 1046 trackPopupMenu = doGetProcAddress(libuser32, "TrackPopupMenu") 1047 trackPopupMenuEx = doGetProcAddress(libuser32, "TrackPopupMenuEx") 1048 translateAccelerator = doGetProcAddress(libuser32, "TranslateAcceleratorW") 1049 translateMDISysAccel = doGetProcAddress(libuser32, "TranslateMDISysAccel") 1050 translateMessage = doGetProcAddress(libuser32, "TranslateMessage") 1051 unhookWinEvent = doGetProcAddress(libuser32, "UnhookWinEvent") 1052 unhookWindowsHook = doGetProcAddress(libuser32, "UnhookWindowsHook") 1053 unhookWindowsHookEx = doGetProcAddress(libuser32, "UnhookWindowsHookEx") 1054 unionRect = doGetProcAddress(libuser32, "UnionRect") 1055 unloadKeyboardLayout = doGetProcAddress(libuser32, "UnloadKeyboardLayout") 1056 unpackDDElParam = doGetProcAddress(libuser32, "UnpackDDElParam") 1057 unregisterClass = doGetProcAddress(libuser32, "UnregisterClassW") 1058 unregisterDeviceNotification = doGetProcAddress(libuser32, "UnregisterDeviceNotification") 1059 unregisterHotKey = doGetProcAddress(libuser32, "UnregisterHotKey") 1060 unregisterPowerSettingNotification = doGetProcAddress(libuser32, "UnregisterPowerSettingNotification") 1061 unregisterTouchWindow = doGetProcAddress(libuser32, "UnregisterTouchWindow") 1062 updateLayeredWindow = doGetProcAddress(libuser32, "UpdateLayeredWindow") 1063 updateLayeredWindowIndirect = doGetProcAddress(libuser32, "UpdateLayeredWindowIndirect") 1064 updateWindow = doGetProcAddress(libuser32, "UpdateWindow") 1065 userHandleGrantAccess = doGetProcAddress(libuser32, "UserHandleGrantAccess") 1066 validateRect = doGetProcAddress(libuser32, "ValidateRect") 1067 validateRgn = doGetProcAddress(libuser32, "ValidateRgn") 1068 vkKeyScanEx = doGetProcAddress(libuser32, "VkKeyScanExW") 1069 vkKeyScan = doGetProcAddress(libuser32, "VkKeyScanW") 1070 wINNLSEnableIME = doGetProcAddress(libuser32, "WINNLSEnableIME") 1071 wINNLSGetEnableStatus = doGetProcAddress(libuser32, "WINNLSGetEnableStatus") 1072 wINNLSGetIMEHotkey = doGetProcAddress(libuser32, "WINNLSGetIMEHotkey") 1073 waitForInputIdle = doGetProcAddress(libuser32, "WaitForInputIdle") 1074 waitMessage = doGetProcAddress(libuser32, "WaitMessage") 1075 winHelp = doGetProcAddress(libuser32, "WinHelpW") 1076 windowFromDC = doGetProcAddress(libuser32, "WindowFromDC") 1077 windowFromPoint = doGetProcAddress(libuser32, "WindowFromPoint") 1078 keybd_event = doGetProcAddress(libuser32, "keybd_event") 1079 mouse_event = doGetProcAddress(libuser32, "mouse_event") 1080 alignRects = doGetProcAddress(libuser32, "AlignRects") 1081 cascadeChildWindows = doGetProcAddress(libuser32, "CascadeChildWindows") 1082 createDialogIndirectParamAorW = doGetProcAddress(libuser32, "CreateDialogIndirectParamAorW") 1083 dialogBoxIndirectParamAorW = doGetProcAddress(libuser32, "DialogBoxIndirectParamAorW") 1084 drawCaptionTemp = doGetProcAddress(libuser32, "DrawCaptionTempW") 1085 drawMenuBarTemp = doGetProcAddress(libuser32, "DrawMenuBarTemp") 1086 getAppCompatFlags = doGetProcAddress(libuser32, "GetAppCompatFlags") 1087 getAppCompatFlags2 = doGetProcAddress(libuser32, "GetAppCompatFlags2") 1088 getCursorFrameInfo = doGetProcAddress(libuser32, "GetCursorFrameInfo") 1089 getInternalWindowPos = doGetProcAddress(libuser32, "GetInternalWindowPos") 1090 getProgmanWindow = doGetProcAddress(libuser32, "GetProgmanWindow") 1091 getTaskmanWindow = doGetProcAddress(libuser32, "GetTaskmanWindow") 1092 killSystemTimer = doGetProcAddress(libuser32, "KillSystemTimer") 1093 loadLocalFonts = doGetProcAddress(libuser32, "LoadLocalFonts") 1094 messageBoxTimeout = doGetProcAddress(libuser32, "MessageBoxTimeoutW") 1095 privateExtractIconEx = doGetProcAddress(libuser32, "PrivateExtractIconExW") 1096 registerLogonProcess = doGetProcAddress(libuser32, "RegisterLogonProcess") 1097 registerServicesProcess = doGetProcAddress(libuser32, "RegisterServicesProcess") 1098 registerSystemThread = doGetProcAddress(libuser32, "RegisterSystemThread") 1099 registerTasklist = doGetProcAddress(libuser32, "RegisterTasklist") 1100 scrollChildren = doGetProcAddress(libuser32, "ScrollChildren") 1101 setInternalWindowPos = doGetProcAddress(libuser32, "SetInternalWindowPos") 1102 setLogonNotifyWindow = doGetProcAddress(libuser32, "SetLogonNotifyWindow") 1103 setProgmanWindow = doGetProcAddress(libuser32, "SetProgmanWindow") 1104 setShellWindow = doGetProcAddress(libuser32, "SetShellWindow") 1105 setShellWindowEx = doGetProcAddress(libuser32, "SetShellWindowEx") 1106 setSysColorsTemp = doGetProcAddress(libuser32, "SetSysColorsTemp") 1107 setSystemMenu = doGetProcAddress(libuser32, "SetSystemMenu") 1108 setSystemTimer = doGetProcAddress(libuser32, "SetSystemTimer") 1109 setTaskmanWindow = doGetProcAddress(libuser32, "SetTaskmanWindow") 1110 setWindowStationUser = doGetProcAddress(libuser32, "SetWindowStationUser") 1111 tileChildWindows = doGetProcAddress(libuser32, "TileChildWindows") 1112 user32InitializeImmEntryTable = doGetProcAddress(libuser32, "User32InitializeImmEntryTable") 1113 userRealizePalette = doGetProcAddress(libuser32, "UserRealizePalette") 1114 userRegisterWowHandlers = doGetProcAddress(libuser32, "UserRegisterWowHandlers") 1115 addClipboardFormatListener = doGetProcAddress(libuser32, "AddClipboardFormatListener") 1116 removeClipboardFormatListener = doGetProcAddress(libuser32, "RemoveClipboardFormatListener") 1117 } 1118 1119 func ActivateKeyboardLayout(hkl HKL, flags UINT) HKL { 1120 ret1 := syscall3(activateKeyboardLayout, 2, 1121 uintptr(hkl), 1122 uintptr(flags), 1123 0) 1124 return HKL(ret1) 1125 } 1126 1127 func AdjustWindowRect(lpRect *RECT, dwStyle DWORD, bMenu bool) bool { 1128 ret1 := syscall3(adjustWindowRect, 3, 1129 uintptr(unsafe.Pointer(lpRect)), 1130 uintptr(dwStyle), 1131 getUintptrFromBool(bMenu)) 1132 return ret1 != 0 1133 } 1134 1135 func AdjustWindowRectEx(lpRect *RECT, dwStyle DWORD, bMenu bool, dwExStyle DWORD) bool { 1136 ret1 := syscall6(adjustWindowRectEx, 4, 1137 uintptr(unsafe.Pointer(lpRect)), 1138 uintptr(dwStyle), 1139 getUintptrFromBool(bMenu), 1140 uintptr(dwExStyle), 1141 0, 1142 0) 1143 return ret1 != 0 1144 } 1145 1146 func AllowSetForegroundWindow(dwProcessId DWORD) bool { 1147 ret1 := syscall3(allowSetForegroundWindow, 1, 1148 uintptr(dwProcessId), 1149 0, 1150 0) 1151 return ret1 != 0 1152 } 1153 1154 func AnimateWindow(hWnd HWND, dwTime DWORD, dwFlags DWORD) bool { 1155 ret1 := syscall3(animateWindow, 3, 1156 uintptr(hWnd), 1157 uintptr(dwTime), 1158 uintptr(dwFlags)) 1159 return ret1 != 0 1160 } 1161 1162 func AnyPopup() bool { 1163 ret1 := syscall3(anyPopup, 0, 1164 0, 1165 0, 1166 0) 1167 return ret1 != 0 1168 } 1169 1170 func AppendMenu(hMenu HMENU, uFlags UINT, uIDNewItem *uint32, lpNewItem string) bool { 1171 lpNewItemStr := unicode16FromString(lpNewItem) 1172 ret1 := syscall6(appendMenu, 4, 1173 uintptr(hMenu), 1174 uintptr(uFlags), 1175 uintptr(unsafe.Pointer(uIDNewItem)), 1176 uintptr(unsafe.Pointer(&lpNewItemStr[0])), 1177 0, 1178 0) 1179 return ret1 != 0 1180 } 1181 1182 func ArrangeIconicWindows(hWnd HWND) UINT { 1183 ret1 := syscall3(arrangeIconicWindows, 1, 1184 uintptr(hWnd), 1185 0, 1186 0) 1187 return UINT(ret1) 1188 } 1189 1190 func AttachThreadInput(idAttach DWORD, idAttachTo DWORD, fAttach bool) bool { 1191 ret1 := syscall3(attachThreadInput, 3, 1192 uintptr(idAttach), 1193 uintptr(idAttachTo), 1194 getUintptrFromBool(fAttach)) 1195 return ret1 != 0 1196 } 1197 1198 func BeginDeferWindowPos(nNumWindows int32) HDWP { 1199 ret1 := syscall3(beginDeferWindowPos, 1, 1200 uintptr(nNumWindows), 1201 0, 1202 0) 1203 return HDWP(ret1) 1204 } 1205 1206 func BeginPaint(hWnd HWND, lpPaint *PAINTSTRUCT) HDC { 1207 ret1 := syscall3(beginPaint, 2, 1208 uintptr(hWnd), 1209 uintptr(unsafe.Pointer(lpPaint)), 1210 0) 1211 return HDC(ret1) 1212 } 1213 1214 func BlockInput(fBlockIt bool) bool { 1215 ret1 := syscall3(blockInput, 1, 1216 getUintptrFromBool(fBlockIt), 1217 0, 1218 0) 1219 return ret1 != 0 1220 } 1221 1222 func BringWindowToTop(hWnd HWND) bool { 1223 ret1 := syscall3(bringWindowToTop, 1, 1224 uintptr(hWnd), 1225 0, 1226 0) 1227 return ret1 != 0 1228 } 1229 1230 func BroadcastSystemMessageEx(flags DWORD, lpInfo *uint32, msg UINT, wParam WPARAM, lParam LPARAM, pbsmInfo *BSMINFO) int32 { 1231 ret1 := syscall6(broadcastSystemMessageEx, 6, 1232 uintptr(flags), 1233 uintptr(unsafe.Pointer(lpInfo)), 1234 uintptr(msg), 1235 uintptr(wParam), 1236 uintptr(lParam), 1237 uintptr(unsafe.Pointer(pbsmInfo))) 1238 return int32(ret1) 1239 } 1240 1241 func BroadcastSystemMessage(flags DWORD, lpInfo *uint32, msg UINT, wParam WPARAM, lParam LPARAM) int32 { 1242 ret1 := syscall6(broadcastSystemMessage, 5, 1243 uintptr(flags), 1244 uintptr(unsafe.Pointer(lpInfo)), 1245 uintptr(msg), 1246 uintptr(wParam), 1247 uintptr(lParam), 1248 0) 1249 return int32(ret1) 1250 } 1251 1252 func CallMsgFilter(lpMsg *MSG, nCode int32) bool { 1253 ret1 := syscall3(callMsgFilter, 2, 1254 uintptr(unsafe.Pointer(lpMsg)), 1255 uintptr(nCode), 1256 0) 1257 return ret1 != 0 1258 } 1259 1260 func CallNextHookEx(hhk HHOOK, nCode int32, wParam WPARAM, lParam LPARAM) LRESULT { 1261 ret1 := syscall6(callNextHookEx, 4, 1262 uintptr(hhk), 1263 uintptr(nCode), 1264 uintptr(wParam), 1265 uintptr(lParam), 1266 0, 1267 0) 1268 return LRESULT(ret1) 1269 } 1270 1271 func CallWindowProc(lpPrevWndFunc WNDPROC, hWnd HWND, msg UINT, wParam WPARAM, lParam LPARAM) LRESULT { 1272 lpPrevWndFuncCallback := syscall.NewCallback(func(unnamed0RawArg HWND, unnamed1RawArg UINT, unnamed2RawArg WPARAM, unnamed3RawArg LPARAM) uintptr { 1273 ret := lpPrevWndFunc(unnamed0RawArg, unnamed1RawArg, unnamed2RawArg, unnamed3RawArg) 1274 return uintptr(ret) 1275 }) 1276 ret1 := syscall6(callWindowProc, 5, 1277 lpPrevWndFuncCallback, 1278 uintptr(hWnd), 1279 uintptr(msg), 1280 uintptr(wParam), 1281 uintptr(lParam), 1282 0) 1283 return LRESULT(ret1) 1284 } 1285 1286 func CascadeWindows(hwndParent HWND, wHow UINT, lpRect /*const*/ *RECT, cKids UINT, lpKids /*const*/ *HWND) WORD { 1287 ret1 := syscall6(cascadeWindows, 5, 1288 uintptr(hwndParent), 1289 uintptr(wHow), 1290 uintptr(unsafe.Pointer(lpRect)), 1291 uintptr(cKids), 1292 uintptr(unsafe.Pointer(lpKids)), 1293 0) 1294 return WORD(ret1) 1295 } 1296 1297 func ChangeClipboardChain(hWndRemove HWND, hWndNewNext HWND) bool { 1298 ret1 := syscall3(changeClipboardChain, 2, 1299 uintptr(hWndRemove), 1300 uintptr(hWndNewNext), 1301 0) 1302 return ret1 != 0 1303 } 1304 1305 func ChangeDisplaySettingsEx(lpszDeviceName string, lpDevMode LPDEVMODE, hwnd HWND, dwflags DWORD, lParam LPVOID) LONG { 1306 lpszDeviceNameStr := unicode16FromString(lpszDeviceName) 1307 ret1 := syscall6(changeDisplaySettingsEx, 5, 1308 uintptr(unsafe.Pointer(&lpszDeviceNameStr[0])), 1309 uintptr(unsafe.Pointer(lpDevMode)), 1310 uintptr(hwnd), 1311 uintptr(dwflags), 1312 uintptr(unsafe.Pointer(lParam)), 1313 0) 1314 return LONG(ret1) 1315 } 1316 1317 func ChangeDisplaySettings(lpDevMode LPDEVMODE, dwFlags DWORD) LONG { 1318 ret1 := syscall3(changeDisplaySettings, 2, 1319 uintptr(unsafe.Pointer(lpDevMode)), 1320 uintptr(dwFlags), 1321 0) 1322 return LONG(ret1) 1323 } 1324 1325 func ChangeMenu(hMenu HMENU, cmd UINT, lpszNewItem string, cmdInsert UINT, flags UINT) bool { 1326 lpszNewItemStr := unicode16FromString(lpszNewItem) 1327 ret1 := syscall6(changeMenu, 5, 1328 uintptr(hMenu), 1329 uintptr(cmd), 1330 uintptr(unsafe.Pointer(&lpszNewItemStr[0])), 1331 uintptr(cmdInsert), 1332 uintptr(flags), 1333 0) 1334 return ret1 != 0 1335 } 1336 1337 func CharLowerBuff(lpsz LPWSTR, cchLength DWORD) DWORD { 1338 ret1 := syscall3(charLowerBuff, 2, 1339 uintptr(unsafe.Pointer(lpsz)), 1340 uintptr(cchLength), 1341 0) 1342 return DWORD(ret1) 1343 } 1344 1345 func CharLower(lpsz LPWSTR) LPWSTR { 1346 ret1 := syscall3(charLower, 1, 1347 uintptr(unsafe.Pointer(lpsz)), 1348 0, 1349 0) 1350 return (LPWSTR)(unsafe.Pointer(ret1)) 1351 } 1352 1353 func CharNextExA(codePage WORD, lpCurrentChar /*const*/ LPCSTR, dwFlags DWORD) LPSTR { 1354 ret1 := syscall3(charNextExA, 3, 1355 uintptr(codePage), 1356 uintptr(unsafe.Pointer(lpCurrentChar)), 1357 uintptr(dwFlags)) 1358 return (LPSTR)(unsafe.Pointer(ret1)) 1359 } 1360 1361 func CharNext(lpsz string) LPWSTR { 1362 lpszStr := unicode16FromString(lpsz) 1363 ret1 := syscall3(charNext, 1, 1364 uintptr(unsafe.Pointer(&lpszStr[0])), 1365 0, 1366 0) 1367 return (LPWSTR)(unsafe.Pointer(ret1)) 1368 } 1369 1370 func CharPrevExA(codePage WORD, lpStart /*const*/ LPCSTR, lpCurrentChar /*const*/ LPCSTR, dwFlags DWORD) LPSTR { 1371 ret1 := syscall6(charPrevExA, 4, 1372 uintptr(codePage), 1373 uintptr(unsafe.Pointer(lpStart)), 1374 uintptr(unsafe.Pointer(lpCurrentChar)), 1375 uintptr(dwFlags), 1376 0, 1377 0) 1378 return (LPSTR)(unsafe.Pointer(ret1)) 1379 } 1380 1381 func CharPrev(lpszStart string, lpszCurrent string) LPWSTR { 1382 lpszStartStr := unicode16FromString(lpszStart) 1383 lpszCurrentStr := unicode16FromString(lpszCurrent) 1384 ret1 := syscall3(charPrev, 2, 1385 uintptr(unsafe.Pointer(&lpszStartStr[0])), 1386 uintptr(unsafe.Pointer(&lpszCurrentStr[0])), 1387 0) 1388 return (LPWSTR)(unsafe.Pointer(ret1)) 1389 } 1390 1391 func CharToOemBuff(lpszSrc string, lpszDst LPSTR, cchDstLength DWORD) bool { 1392 lpszSrcStr := unicode16FromString(lpszSrc) 1393 ret1 := syscall3(charToOemBuff, 3, 1394 uintptr(unsafe.Pointer(&lpszSrcStr[0])), 1395 uintptr(unsafe.Pointer(lpszDst)), 1396 uintptr(cchDstLength)) 1397 return ret1 != 0 1398 } 1399 1400 func CharToOem(lpszSrc string, lpszDst LPSTR) bool { 1401 lpszSrcStr := unicode16FromString(lpszSrc) 1402 ret1 := syscall3(charToOem, 2, 1403 uintptr(unsafe.Pointer(&lpszSrcStr[0])), 1404 uintptr(unsafe.Pointer(lpszDst)), 1405 0) 1406 return ret1 != 0 1407 } 1408 1409 func CharUpperBuff(lpsz LPWSTR, cchLength DWORD) DWORD { 1410 ret1 := syscall3(charUpperBuff, 2, 1411 uintptr(unsafe.Pointer(lpsz)), 1412 uintptr(cchLength), 1413 0) 1414 return DWORD(ret1) 1415 } 1416 1417 func CharUpper(lpsz LPWSTR) LPWSTR { 1418 ret1 := syscall3(charUpper, 1, 1419 uintptr(unsafe.Pointer(lpsz)), 1420 0, 1421 0) 1422 return (LPWSTR)(unsafe.Pointer(ret1)) 1423 } 1424 1425 func CheckDlgButton(hDlg HWND, nIDButton int32, uCheck UINT) bool { 1426 ret1 := syscall3(checkDlgButton, 3, 1427 uintptr(hDlg), 1428 uintptr(nIDButton), 1429 uintptr(uCheck)) 1430 return ret1 != 0 1431 } 1432 1433 func CheckMenuItem(hMenu HMENU, uIDCheckItem UINT, uCheck UINT) DWORD { 1434 ret1 := syscall3(checkMenuItem, 3, 1435 uintptr(hMenu), 1436 uintptr(uIDCheckItem), 1437 uintptr(uCheck)) 1438 return DWORD(ret1) 1439 } 1440 1441 func CheckMenuRadioItem(hmenu HMENU, first UINT, last UINT, check UINT, flags UINT) bool { 1442 ret1 := syscall6(checkMenuRadioItem, 5, 1443 uintptr(hmenu), 1444 uintptr(first), 1445 uintptr(last), 1446 uintptr(check), 1447 uintptr(flags), 1448 0) 1449 return ret1 != 0 1450 } 1451 1452 func CheckRadioButton(hDlg HWND, nIDFirstButton int32, nIDLastButton int32, nIDCheckButton int32) bool { 1453 ret1 := syscall6(checkRadioButton, 4, 1454 uintptr(hDlg), 1455 uintptr(nIDFirstButton), 1456 uintptr(nIDLastButton), 1457 uintptr(nIDCheckButton), 1458 0, 1459 0) 1460 return ret1 != 0 1461 } 1462 1463 func ChildWindowFromPoint(hWndParent HWND, point POINT) HWND { 1464 ret1 := syscall3(childWindowFromPoint, 3, 1465 uintptr(hWndParent), 1466 uintptr(point.X), 1467 uintptr(point.Y)) 1468 return HWND(ret1) 1469 } 1470 1471 func ChildWindowFromPointEx(hwnd HWND, pt POINT, flags UINT) HWND { 1472 ret1 := syscall6(childWindowFromPointEx, 4, 1473 uintptr(hwnd), 1474 uintptr(pt.X), 1475 uintptr(pt.Y), 1476 uintptr(flags), 1477 0, 1478 0) 1479 return HWND(ret1) 1480 } 1481 1482 func ClientToScreen(hWnd HWND, lpPoint *POINT) bool { 1483 ret1 := syscall3(clientToScreen, 2, 1484 uintptr(hWnd), 1485 uintptr(unsafe.Pointer(lpPoint)), 1486 0) 1487 return ret1 != 0 1488 } 1489 1490 func ClipCursor(lpRect /*const*/ *RECT) bool { 1491 ret1 := syscall3(clipCursor, 1, 1492 uintptr(unsafe.Pointer(lpRect)), 1493 0, 1494 0) 1495 return ret1 != 0 1496 } 1497 1498 func CloseClipboard() bool { 1499 ret1 := syscall3(closeClipboard, 0, 1500 0, 1501 0, 1502 0) 1503 return ret1 != 0 1504 } 1505 1506 func CloseDesktop(hDesktop HDESK) bool { 1507 ret1 := syscall3(closeDesktop, 1, 1508 uintptr(hDesktop), 1509 0, 1510 0) 1511 return ret1 != 0 1512 } 1513 1514 func CloseGestureInfoHandle(hGestureInfo HGESTUREINFO) bool { 1515 ret1 := syscall3(closeGestureInfoHandle, 1, 1516 uintptr(hGestureInfo), 1517 0, 1518 0) 1519 return ret1 != 0 1520 } 1521 1522 func CloseTouchInputHandle(hTouchInput HTOUCHINPUT) bool { 1523 ret1 := syscall3(closeTouchInputHandle, 1, 1524 uintptr(hTouchInput), 1525 0, 1526 0) 1527 return ret1 != 0 1528 } 1529 1530 func CloseWindow(hWnd HWND) bool { 1531 ret1 := syscall3(closeWindow, 1, 1532 uintptr(hWnd), 1533 0, 1534 0) 1535 return ret1 != 0 1536 } 1537 1538 func CloseWindowStation(hWinSta HWINSTA) bool { 1539 ret1 := syscall3(closeWindowStation, 1, 1540 uintptr(hWinSta), 1541 0, 1542 0) 1543 return ret1 != 0 1544 } 1545 1546 func CopyAcceleratorTable(hAccelSrc HACCEL, lpAccelDst *ACCEL, cAccelEntries int32) int32 { 1547 ret1 := syscall3(copyAcceleratorTable, 3, 1548 uintptr(hAccelSrc), 1549 uintptr(unsafe.Pointer(lpAccelDst)), 1550 uintptr(cAccelEntries)) 1551 return int32(ret1) 1552 } 1553 1554 func CopyIcon(hIcon HICON) HICON { 1555 ret1 := syscall3(copyIcon, 1, 1556 uintptr(hIcon), 1557 0, 1558 0) 1559 return HICON(ret1) 1560 } 1561 1562 func CopyImage(h HANDLE, aType UINT, cx int32, cy int32, flags UINT) HANDLE { 1563 ret1 := syscall6(copyImage, 5, 1564 uintptr(h), 1565 uintptr(aType), 1566 uintptr(cx), 1567 uintptr(cy), 1568 uintptr(flags), 1569 0) 1570 return HANDLE(ret1) 1571 } 1572 1573 func CopyRect(lprcDst *RECT, lprcSrc /*const*/ *RECT) bool { 1574 ret1 := syscall3(copyRect, 2, 1575 uintptr(unsafe.Pointer(lprcDst)), 1576 uintptr(unsafe.Pointer(lprcSrc)), 1577 0) 1578 return ret1 != 0 1579 } 1580 1581 func CountClipboardFormats() int32 { 1582 ret1 := syscall3(countClipboardFormats, 0, 1583 0, 1584 0, 1585 0) 1586 return int32(ret1) 1587 } 1588 1589 func CreateAcceleratorTable(paccel *ACCEL, cAccel int32) HACCEL { 1590 ret1 := syscall3(createAcceleratorTable, 2, 1591 uintptr(unsafe.Pointer(paccel)), 1592 uintptr(cAccel), 1593 0) 1594 return HACCEL(ret1) 1595 } 1596 1597 func CreateCaret(hWnd HWND, hBitmap HBITMAP, nWidth int32, nHeight int32) bool { 1598 ret1 := syscall6(createCaret, 4, 1599 uintptr(hWnd), 1600 uintptr(hBitmap), 1601 uintptr(nWidth), 1602 uintptr(nHeight), 1603 0, 1604 0) 1605 return ret1 != 0 1606 } 1607 1608 func CreateCursor(hInst HINSTANCE, xHotSpot int32, yHotSpot int32, nWidth int32, nHeight int32, pvANDPlane /*const*/ uintptr, pvXORPlane /*const*/ uintptr) HCURSOR { 1609 ret1 := syscall9(createCursor, 7, 1610 uintptr(hInst), 1611 uintptr(xHotSpot), 1612 uintptr(yHotSpot), 1613 uintptr(nWidth), 1614 uintptr(nHeight), 1615 pvANDPlane, 1616 pvXORPlane, 1617 0, 1618 0) 1619 return HCURSOR(ret1) 1620 } 1621 1622 func CreateDesktop(lpszDesktop string, lpszDevice string, pDevmode LPDEVMODE, dwFlags DWORD, dwDesiredAccess ACCESS_MASK, lpsa *SECURITY_ATTRIBUTES) HDESK { 1623 lpszDesktopStr := unicode16FromString(lpszDesktop) 1624 lpszDeviceStr := unicode16FromString(lpszDevice) 1625 ret1 := syscall6(createDesktop, 6, 1626 uintptr(unsafe.Pointer(&lpszDesktopStr[0])), 1627 uintptr(unsafe.Pointer(&lpszDeviceStr[0])), 1628 uintptr(unsafe.Pointer(pDevmode)), 1629 uintptr(dwFlags), 1630 uintptr(dwDesiredAccess), 1631 uintptr(unsafe.Pointer(lpsa))) 1632 return HDESK(ret1) 1633 } 1634 1635 func CreateDialogIndirectParam(hInstance HINSTANCE, lpTemplate /*const*/ *DLGTEMPLATE, hWndParent HWND, lpDialogFunc DLGPROC, dwInitParam LPARAM) HWND { 1636 lpDialogFuncCallback := syscall.NewCallback(func(hwndDlgRawArg HWND, uMsgRawArg uint32, wParamRawArg WPARAM, lParamRawArg LPARAM) uintptr { 1637 ret := lpDialogFunc(hwndDlgRawArg, uMsgRawArg, wParamRawArg, lParamRawArg) 1638 return uintptr(ret) 1639 }) 1640 ret1 := syscall6(createDialogIndirectParam, 5, 1641 uintptr(hInstance), 1642 uintptr(unsafe.Pointer(lpTemplate)), 1643 uintptr(hWndParent), 1644 lpDialogFuncCallback, 1645 uintptr(dwInitParam), 1646 0) 1647 return HWND(ret1) 1648 } 1649 1650 func CreateDialogParam(hInstance HINSTANCE, lpTemplateName string, hWndParent HWND, lpDialogFunc DLGPROC, dwInitParam LPARAM) HWND { 1651 lpTemplateNameStr := unicode16FromString(lpTemplateName) 1652 lpDialogFuncCallback := syscall.NewCallback(func(hwndDlgRawArg HWND, uMsgRawArg uint32, wParamRawArg WPARAM, lParamRawArg LPARAM) uintptr { 1653 ret := lpDialogFunc(hwndDlgRawArg, uMsgRawArg, wParamRawArg, lParamRawArg) 1654 return uintptr(ret) 1655 }) 1656 ret1 := syscall6(createDialogParam, 5, 1657 uintptr(hInstance), 1658 uintptr(unsafe.Pointer(&lpTemplateNameStr[0])), 1659 uintptr(hWndParent), 1660 lpDialogFuncCallback, 1661 uintptr(dwInitParam), 1662 0) 1663 return HWND(ret1) 1664 } 1665 1666 func CreateIcon(hInstance HINSTANCE, nWidth int32, nHeight int32, cPlanes BYTE, cBitsPixel BYTE, lpbANDbits /*const*/ *byte, lpbXORbits /*const*/ *byte) HICON { 1667 ret1 := syscall9(createIcon, 7, 1668 uintptr(hInstance), 1669 uintptr(nWidth), 1670 uintptr(nHeight), 1671 uintptr(cPlanes), 1672 uintptr(cBitsPixel), 1673 uintptr(unsafe.Pointer(lpbANDbits)), 1674 uintptr(unsafe.Pointer(lpbXORbits)), 1675 0, 1676 0) 1677 return HICON(ret1) 1678 } 1679 1680 func CreateIconFromResource(presbits *byte, dwResSize DWORD, fIcon bool, dwVer DWORD) HICON { 1681 ret1 := syscall6(createIconFromResource, 4, 1682 uintptr(unsafe.Pointer(presbits)), 1683 uintptr(dwResSize), 1684 getUintptrFromBool(fIcon), 1685 uintptr(dwVer), 1686 0, 1687 0) 1688 return HICON(ret1) 1689 } 1690 1691 func CreateIconFromResourceEx(presbits *byte, dwResSize DWORD, fIcon bool, dwVer DWORD, cxDesired int32, cyDesired int32, flags UINT) HICON { 1692 ret1 := syscall9(createIconFromResourceEx, 7, 1693 uintptr(unsafe.Pointer(presbits)), 1694 uintptr(dwResSize), 1695 getUintptrFromBool(fIcon), 1696 uintptr(dwVer), 1697 uintptr(cxDesired), 1698 uintptr(cyDesired), 1699 uintptr(flags), 1700 0, 1701 0) 1702 return HICON(ret1) 1703 } 1704 1705 func CreateIconIndirect(piconinfo *ICONINFO) HICON { 1706 ret1 := syscall3(createIconIndirect, 1, 1707 uintptr(unsafe.Pointer(piconinfo)), 1708 0, 1709 0) 1710 return HICON(ret1) 1711 } 1712 1713 func CreateMDIWindow(lpClassName string, lpWindowName string, dwStyle DWORD, x int32, y int32, nWidth int32, nHeight int32, hWndParent HWND, hInstance HINSTANCE, lParam LPARAM) HWND { 1714 lpClassNameStr := unicode16FromString(lpClassName) 1715 lpWindowNameStr := unicode16FromString(lpWindowName) 1716 ret1 := syscall12(createMDIWindow, 10, 1717 uintptr(unsafe.Pointer(&lpClassNameStr[0])), 1718 uintptr(unsafe.Pointer(&lpWindowNameStr[0])), 1719 uintptr(dwStyle), 1720 uintptr(x), 1721 uintptr(y), 1722 uintptr(nWidth), 1723 uintptr(nHeight), 1724 uintptr(hWndParent), 1725 uintptr(hInstance), 1726 uintptr(lParam), 1727 0, 1728 0) 1729 return HWND(ret1) 1730 } 1731 1732 func CreateMenu() HMENU { 1733 ret1 := syscall3(createMenu, 0, 1734 0, 1735 0, 1736 0) 1737 return HMENU(ret1) 1738 } 1739 1740 func CreatePopupMenu() HMENU { 1741 ret1 := syscall3(createPopupMenu, 0, 1742 0, 1743 0, 1744 0) 1745 return HMENU(ret1) 1746 } 1747 1748 func CreateWindowEx(dwExStyle DWORD, lpClassName string, lpWindowName string, dwStyle DWORD, x int32, y int32, nWidth int32, nHeight int32, hWndParent HWND, hMenu HMENU, hInstance HINSTANCE, lpParam LPVOID) HWND { 1749 lpClassNameStr := unicode16FromString(lpClassName) 1750 lpWindowNameStr := unicode16FromString(lpWindowName) 1751 ret1 := syscall12(createWindowEx, 12, 1752 uintptr(dwExStyle), 1753 uintptr(unsafe.Pointer(&lpClassNameStr[0])), 1754 uintptr(unsafe.Pointer(&lpWindowNameStr[0])), 1755 uintptr(dwStyle), 1756 uintptr(x), 1757 uintptr(y), 1758 uintptr(nWidth), 1759 uintptr(nHeight), 1760 uintptr(hWndParent), 1761 uintptr(hMenu), 1762 uintptr(hInstance), 1763 uintptr(unsafe.Pointer(lpParam))) 1764 return HWND(ret1) 1765 } 1766 1767 func CreateWindowStation(lpwinsta string, dwFlags DWORD, dwDesiredAccess ACCESS_MASK, lpsa *SECURITY_ATTRIBUTES) HWINSTA { 1768 lpwinstaStr := unicode16FromString(lpwinsta) 1769 ret1 := syscall6(createWindowStation, 4, 1770 uintptr(unsafe.Pointer(&lpwinstaStr[0])), 1771 uintptr(dwFlags), 1772 uintptr(dwDesiredAccess), 1773 uintptr(unsafe.Pointer(lpsa)), 1774 0, 1775 0) 1776 return HWINSTA(ret1) 1777 } 1778 1779 func DdeAbandonTransaction(idInst DWORD, hConv HCONV, idTransaction DWORD) bool { 1780 ret1 := syscall3(ddeAbandonTransaction, 3, 1781 uintptr(idInst), 1782 uintptr(hConv), 1783 uintptr(idTransaction)) 1784 return ret1 != 0 1785 } 1786 1787 func DdeAccessData(hData HDDEDATA, pcbDataSize *uint32) *byte { 1788 ret1 := syscall3(ddeAccessData, 2, 1789 uintptr(hData), 1790 uintptr(unsafe.Pointer(pcbDataSize)), 1791 0) 1792 return (*byte)(unsafe.Pointer(ret1)) 1793 } 1794 1795 func DdeAddData(hData HDDEDATA, pSrc *byte, cb DWORD, cbOff DWORD) HDDEDATA { 1796 ret1 := syscall6(ddeAddData, 4, 1797 uintptr(hData), 1798 uintptr(unsafe.Pointer(pSrc)), 1799 uintptr(cb), 1800 uintptr(cbOff), 1801 0, 1802 0) 1803 return HDDEDATA(ret1) 1804 } 1805 1806 func DdeClientTransaction(pData *byte, cbData DWORD, hConv HCONV, hszItem HSZ, wFmt UINT, wType UINT, dwTimeout DWORD, pdwResult *uint32) HDDEDATA { 1807 ret1 := syscall9(ddeClientTransaction, 8, 1808 uintptr(unsafe.Pointer(pData)), 1809 uintptr(cbData), 1810 uintptr(hConv), 1811 uintptr(hszItem), 1812 uintptr(wFmt), 1813 uintptr(wType), 1814 uintptr(dwTimeout), 1815 uintptr(unsafe.Pointer(pdwResult)), 1816 0) 1817 return HDDEDATA(ret1) 1818 } 1819 1820 func DdeCmpStringHandles(hsz1 HSZ, hsz2 HSZ) int32 { 1821 ret1 := syscall3(ddeCmpStringHandles, 2, 1822 uintptr(hsz1), 1823 uintptr(hsz2), 1824 0) 1825 return int32(ret1) 1826 } 1827 1828 func DdeConnect(idInst DWORD, hszService HSZ, hszTopic HSZ, pCC *CONVCONTEXT) HCONV { 1829 ret1 := syscall6(ddeConnect, 4, 1830 uintptr(idInst), 1831 uintptr(hszService), 1832 uintptr(hszTopic), 1833 uintptr(unsafe.Pointer(pCC)), 1834 0, 1835 0) 1836 return HCONV(ret1) 1837 } 1838 1839 func DdeConnectList(idInst DWORD, hszService HSZ, hszTopic HSZ, hConvList HCONVLIST, pCC *CONVCONTEXT) HCONVLIST { 1840 ret1 := syscall6(ddeConnectList, 5, 1841 uintptr(idInst), 1842 uintptr(hszService), 1843 uintptr(hszTopic), 1844 uintptr(hConvList), 1845 uintptr(unsafe.Pointer(pCC)), 1846 0) 1847 return HCONVLIST(ret1) 1848 } 1849 1850 func DdeCreateDataHandle(idInst DWORD, pSrc *byte, cb DWORD, cbOff DWORD, hszItem HSZ, wFmt UINT, afCmd UINT) HDDEDATA { 1851 ret1 := syscall9(ddeCreateDataHandle, 7, 1852 uintptr(idInst), 1853 uintptr(unsafe.Pointer(pSrc)), 1854 uintptr(cb), 1855 uintptr(cbOff), 1856 uintptr(hszItem), 1857 uintptr(wFmt), 1858 uintptr(afCmd), 1859 0, 1860 0) 1861 return HDDEDATA(ret1) 1862 } 1863 1864 func DdeCreateStringHandle(idInst DWORD, psz string, iCodePage int32) HSZ { 1865 pszStr := unicode16FromString(psz) 1866 ret1 := syscall3(ddeCreateStringHandle, 3, 1867 uintptr(idInst), 1868 uintptr(unsafe.Pointer(&pszStr[0])), 1869 uintptr(iCodePage)) 1870 return HSZ(ret1) 1871 } 1872 1873 func DdeDisconnect(hConv HCONV) bool { 1874 ret1 := syscall3(ddeDisconnect, 1, 1875 uintptr(hConv), 1876 0, 1877 0) 1878 return ret1 != 0 1879 } 1880 1881 func DdeDisconnectList(hConvList HCONVLIST) bool { 1882 ret1 := syscall3(ddeDisconnectList, 1, 1883 uintptr(hConvList), 1884 0, 1885 0) 1886 return ret1 != 0 1887 } 1888 1889 func DdeEnableCallback(idInst DWORD, hConv HCONV, wCmd UINT) bool { 1890 ret1 := syscall3(ddeEnableCallback, 3, 1891 uintptr(idInst), 1892 uintptr(hConv), 1893 uintptr(wCmd)) 1894 return ret1 != 0 1895 } 1896 1897 func DdeFreeDataHandle(hData HDDEDATA) bool { 1898 ret1 := syscall3(ddeFreeDataHandle, 1, 1899 uintptr(hData), 1900 0, 1901 0) 1902 return ret1 != 0 1903 } 1904 1905 func DdeFreeStringHandle(idInst DWORD, hsz HSZ) bool { 1906 ret1 := syscall3(ddeFreeStringHandle, 2, 1907 uintptr(idInst), 1908 uintptr(hsz), 1909 0) 1910 return ret1 != 0 1911 } 1912 1913 func DdeGetData(hData HDDEDATA, pDst *byte, cbMax DWORD, cbOff DWORD) DWORD { 1914 ret1 := syscall6(ddeGetData, 4, 1915 uintptr(hData), 1916 uintptr(unsafe.Pointer(pDst)), 1917 uintptr(cbMax), 1918 uintptr(cbOff), 1919 0, 1920 0) 1921 return DWORD(ret1) 1922 } 1923 1924 func DdeGetLastError(idInst DWORD) UINT { 1925 ret1 := syscall3(ddeGetLastError, 1, 1926 uintptr(idInst), 1927 0, 1928 0) 1929 return UINT(ret1) 1930 } 1931 1932 func DdeImpersonateClient(hConv HCONV) bool { 1933 ret1 := syscall3(ddeImpersonateClient, 1, 1934 uintptr(hConv), 1935 0, 1936 0) 1937 return ret1 != 0 1938 } 1939 1940 func DdeInitialize(pidInst *uint32, pfnCallback PFNCALLBACK, afCmd DWORD, ulRes DWORD) UINT { 1941 pfnCallbackCallback := syscall.NewCallback(func(wTypeRawArg uint32, wFmtRawArg uint32, hConvRawArg HCONV, hsz1RawArg HSZ, hsz2RawArg HSZ, hDataRawArg HDDEDATA, dwData1RawArg uintptr, dwData2RawArg uintptr) uintptr { 1942 ret := pfnCallback(wTypeRawArg, wFmtRawArg, hConvRawArg, hsz1RawArg, hsz2RawArg, hDataRawArg, dwData1RawArg, dwData2RawArg) 1943 return uintptr(ret) 1944 }) 1945 ret1 := syscall6(ddeInitialize, 4, 1946 uintptr(unsafe.Pointer(pidInst)), 1947 pfnCallbackCallback, 1948 uintptr(afCmd), 1949 uintptr(ulRes), 1950 0, 1951 0) 1952 return UINT(ret1) 1953 } 1954 1955 func DdeKeepStringHandle(idInst DWORD, hsz HSZ) bool { 1956 ret1 := syscall3(ddeKeepStringHandle, 2, 1957 uintptr(idInst), 1958 uintptr(hsz), 1959 0) 1960 return ret1 != 0 1961 } 1962 1963 func DdeNameService(idInst DWORD, hsz1 HSZ, hsz2 HSZ, afCmd UINT) HDDEDATA { 1964 ret1 := syscall6(ddeNameService, 4, 1965 uintptr(idInst), 1966 uintptr(hsz1), 1967 uintptr(hsz2), 1968 uintptr(afCmd), 1969 0, 1970 0) 1971 return HDDEDATA(ret1) 1972 } 1973 1974 func DdePostAdvise(idInst DWORD, hszTopic HSZ, hszItem HSZ) bool { 1975 ret1 := syscall3(ddePostAdvise, 3, 1976 uintptr(idInst), 1977 uintptr(hszTopic), 1978 uintptr(hszItem)) 1979 return ret1 != 0 1980 } 1981 1982 func DdeQueryConvInfo(hConv HCONV, idTransaction DWORD, pConvInfo *CONVINFO) UINT { 1983 ret1 := syscall3(ddeQueryConvInfo, 3, 1984 uintptr(hConv), 1985 uintptr(idTransaction), 1986 uintptr(unsafe.Pointer(pConvInfo))) 1987 return UINT(ret1) 1988 } 1989 1990 func DdeQueryNextServer(hConvList HCONVLIST, hConvPrev HCONV) HCONV { 1991 ret1 := syscall3(ddeQueryNextServer, 2, 1992 uintptr(hConvList), 1993 uintptr(hConvPrev), 1994 0) 1995 return HCONV(ret1) 1996 } 1997 1998 func DdeQueryString(idInst DWORD, hsz HSZ, psz LPWSTR, cchMax DWORD, iCodePage int32) DWORD { 1999 ret1 := syscall6(ddeQueryString, 5, 2000 uintptr(idInst), 2001 uintptr(hsz), 2002 uintptr(unsafe.Pointer(psz)), 2003 uintptr(cchMax), 2004 uintptr(iCodePage), 2005 0) 2006 return DWORD(ret1) 2007 } 2008 2009 func DdeReconnect(hConv HCONV) HCONV { 2010 ret1 := syscall3(ddeReconnect, 1, 2011 uintptr(hConv), 2012 0, 2013 0) 2014 return HCONV(ret1) 2015 } 2016 2017 func DdeSetQualityOfService(hwndClient HWND, pqosNew /*const*/ *SECURITY_QUALITY_OF_SERVICE, pqosPrev *SECURITY_QUALITY_OF_SERVICE) bool { 2018 ret1 := syscall3(ddeSetQualityOfService, 3, 2019 uintptr(hwndClient), 2020 uintptr(unsafe.Pointer(pqosNew)), 2021 uintptr(unsafe.Pointer(pqosPrev))) 2022 return ret1 != 0 2023 } 2024 2025 func DdeSetUserHandle(hConv HCONV, id DWORD, hUser *uint32) bool { 2026 ret1 := syscall3(ddeSetUserHandle, 3, 2027 uintptr(hConv), 2028 uintptr(id), 2029 uintptr(unsafe.Pointer(hUser))) 2030 return ret1 != 0 2031 } 2032 2033 func DdeUnaccessData(hData HDDEDATA) bool { 2034 ret1 := syscall3(ddeUnaccessData, 1, 2035 uintptr(hData), 2036 0, 2037 0) 2038 return ret1 != 0 2039 } 2040 2041 func DdeUninitialize(idInst DWORD) bool { 2042 ret1 := syscall3(ddeUninitialize, 1, 2043 uintptr(idInst), 2044 0, 2045 0) 2046 return ret1 != 0 2047 } 2048 2049 func DefDlgProc(hDlg HWND, msg UINT, wParam WPARAM, lParam LPARAM) LRESULT { 2050 ret1 := syscall6(defDlgProc, 4, 2051 uintptr(hDlg), 2052 uintptr(msg), 2053 uintptr(wParam), 2054 uintptr(lParam), 2055 0, 2056 0) 2057 return LRESULT(ret1) 2058 } 2059 2060 func DefFrameProc(hWnd HWND, hWndMDIClient HWND, uMsg UINT, wParam WPARAM, lParam LPARAM) LRESULT { 2061 ret1 := syscall6(defFrameProc, 5, 2062 uintptr(hWnd), 2063 uintptr(hWndMDIClient), 2064 uintptr(uMsg), 2065 uintptr(wParam), 2066 uintptr(lParam), 2067 0) 2068 return LRESULT(ret1) 2069 } 2070 2071 func DefMDIChildProc(hWnd HWND, uMsg UINT, wParam WPARAM, lParam LPARAM) LRESULT { 2072 ret1 := syscall6(defMDIChildProc, 4, 2073 uintptr(hWnd), 2074 uintptr(uMsg), 2075 uintptr(wParam), 2076 uintptr(lParam), 2077 0, 2078 0) 2079 return LRESULT(ret1) 2080 } 2081 2082 func DefRawInputProc(paRawInput uintptr, nInput INT, cbSizeHeader UINT) LRESULT { 2083 ret1 := syscall3(defRawInputProc, 3, 2084 paRawInput, 2085 uintptr(nInput), 2086 uintptr(cbSizeHeader)) 2087 return LRESULT(ret1) 2088 } 2089 2090 func DefWindowProc(hWnd HWND, msg UINT, wParam WPARAM, lParam LPARAM) LRESULT { 2091 ret1 := syscall6(defWindowProc, 4, 2092 uintptr(hWnd), 2093 uintptr(msg), 2094 uintptr(wParam), 2095 uintptr(lParam), 2096 0, 2097 0) 2098 return LRESULT(ret1) 2099 } 2100 2101 func DeferWindowPos(hWinPosInfo HDWP, hWnd HWND, hWndInsertAfter HWND, x int32, y int32, cx int32, cy int32, uFlags UINT) HDWP { 2102 ret1 := syscall9(deferWindowPos, 8, 2103 uintptr(hWinPosInfo), 2104 uintptr(hWnd), 2105 uintptr(hWndInsertAfter), 2106 uintptr(x), 2107 uintptr(y), 2108 uintptr(cx), 2109 uintptr(cy), 2110 uintptr(uFlags), 2111 0) 2112 return HDWP(ret1) 2113 } 2114 2115 func DeleteMenu(hMenu HMENU, uPosition UINT, uFlags UINT) bool { 2116 ret1 := syscall3(deleteMenu, 3, 2117 uintptr(hMenu), 2118 uintptr(uPosition), 2119 uintptr(uFlags)) 2120 return ret1 != 0 2121 } 2122 2123 func DeregisterShellHookWindow(hwnd HWND) bool { 2124 ret1 := syscall3(deregisterShellHookWindow, 1, 2125 uintptr(hwnd), 2126 0, 2127 0) 2128 return ret1 != 0 2129 } 2130 2131 func DestroyAcceleratorTable(hAccel HACCEL) bool { 2132 ret1 := syscall3(destroyAcceleratorTable, 1, 2133 uintptr(hAccel), 2134 0, 2135 0) 2136 return ret1 != 0 2137 } 2138 2139 func DestroyCaret() bool { 2140 ret1 := syscall3(destroyCaret, 0, 2141 0, 2142 0, 2143 0) 2144 return ret1 != 0 2145 } 2146 2147 func DestroyCursor(hCursor HCURSOR) bool { 2148 ret1 := syscall3(destroyCursor, 1, 2149 uintptr(hCursor), 2150 0, 2151 0) 2152 return ret1 != 0 2153 } 2154 2155 func DestroyIcon(hIcon HICON) bool { 2156 ret1 := syscall3(destroyIcon, 1, 2157 uintptr(hIcon), 2158 0, 2159 0) 2160 return ret1 != 0 2161 } 2162 2163 func DestroyMenu(hMenu HMENU) bool { 2164 ret1 := syscall3(destroyMenu, 1, 2165 uintptr(hMenu), 2166 0, 2167 0) 2168 return ret1 != 0 2169 } 2170 2171 func DestroyWindow(hWnd HWND) bool { 2172 ret1 := syscall3(destroyWindow, 1, 2173 uintptr(hWnd), 2174 0, 2175 0) 2176 return ret1 != 0 2177 } 2178 2179 func DialogBoxIndirectParam(hInstance HINSTANCE, hDialogTemplate /*const*/ *DLGTEMPLATE, hWndParent HWND, lpDialogFunc DLGPROC, dwInitParam LPARAM) INT_PTR { 2180 lpDialogFuncCallback := syscall.NewCallback(func(hwndDlgRawArg HWND, uMsgRawArg uint32, wParamRawArg WPARAM, lParamRawArg LPARAM) uintptr { 2181 ret := lpDialogFunc(hwndDlgRawArg, uMsgRawArg, wParamRawArg, lParamRawArg) 2182 return uintptr(ret) 2183 }) 2184 ret1 := syscall6(dialogBoxIndirectParam, 5, 2185 uintptr(hInstance), 2186 uintptr(unsafe.Pointer(hDialogTemplate)), 2187 uintptr(hWndParent), 2188 lpDialogFuncCallback, 2189 uintptr(dwInitParam), 2190 0) 2191 return (INT_PTR)(unsafe.Pointer(ret1)) 2192 } 2193 2194 func DialogBoxParam(hInstance HINSTANCE, lpTemplateName string, hWndParent HWND, lpDialogFunc DLGPROC, dwInitParam LPARAM) INT_PTR { 2195 lpTemplateNameStr := unicode16FromString(lpTemplateName) 2196 lpDialogFuncCallback := syscall.NewCallback(func(hwndDlgRawArg HWND, uMsgRawArg uint32, wParamRawArg WPARAM, lParamRawArg LPARAM) uintptr { 2197 ret := lpDialogFunc(hwndDlgRawArg, uMsgRawArg, wParamRawArg, lParamRawArg) 2198 return uintptr(ret) 2199 }) 2200 ret1 := syscall6(dialogBoxParam, 5, 2201 uintptr(hInstance), 2202 uintptr(unsafe.Pointer(&lpTemplateNameStr[0])), 2203 uintptr(hWndParent), 2204 lpDialogFuncCallback, 2205 uintptr(dwInitParam), 2206 0) 2207 return (INT_PTR)(unsafe.Pointer(ret1)) 2208 } 2209 2210 func DisableProcessWindowsGhosting() { 2211 syscall3(disableProcessWindowsGhosting, 0, 2212 0, 2213 0, 2214 0) 2215 } 2216 2217 func DispatchMessage(lpMsg /*const*/ *MSG) LRESULT { 2218 ret1 := syscall3(dispatchMessage, 1, 2219 uintptr(unsafe.Pointer(lpMsg)), 2220 0, 2221 0) 2222 return LRESULT(ret1) 2223 } 2224 2225 func DlgDirListComboBox(hDlg HWND, lpPathSpec LPWSTR, nIDComboBox int32, nIDStaticPath int32, uFiletype UINT) int32 { 2226 ret1 := syscall6(dlgDirListComboBox, 5, 2227 uintptr(hDlg), 2228 uintptr(unsafe.Pointer(lpPathSpec)), 2229 uintptr(nIDComboBox), 2230 uintptr(nIDStaticPath), 2231 uintptr(uFiletype), 2232 0) 2233 return int32(ret1) 2234 } 2235 2236 func DlgDirList(hDlg HWND, lpPathSpec LPWSTR, nIDListBox int32, nIDStaticPath int32, uFileType UINT) int32 { 2237 ret1 := syscall6(dlgDirList, 5, 2238 uintptr(hDlg), 2239 uintptr(unsafe.Pointer(lpPathSpec)), 2240 uintptr(nIDListBox), 2241 uintptr(nIDStaticPath), 2242 uintptr(uFileType), 2243 0) 2244 return int32(ret1) 2245 } 2246 2247 func DlgDirSelectComboBoxEx(hwndDlg HWND, lpString LPWSTR, cchOut int32, idComboBox int32) bool { 2248 ret1 := syscall6(dlgDirSelectComboBoxEx, 4, 2249 uintptr(hwndDlg), 2250 uintptr(unsafe.Pointer(lpString)), 2251 uintptr(cchOut), 2252 uintptr(idComboBox), 2253 0, 2254 0) 2255 return ret1 != 0 2256 } 2257 2258 func DlgDirSelectEx(hwndDlg HWND, lpString LPWSTR, chCount int32, idListBox int32) bool { 2259 ret1 := syscall6(dlgDirSelectEx, 4, 2260 uintptr(hwndDlg), 2261 uintptr(unsafe.Pointer(lpString)), 2262 uintptr(chCount), 2263 uintptr(idListBox), 2264 0, 2265 0) 2266 return ret1 != 0 2267 } 2268 2269 func DragDetect(hwnd HWND, pt POINT) bool { 2270 ret1 := syscall3(dragDetect, 3, 2271 uintptr(hwnd), 2272 uintptr(pt.X), 2273 uintptr(pt.Y)) 2274 return ret1 != 0 2275 } 2276 2277 func DragObject(hwndParent HWND, hwndFrom HWND, fmt UINT, data *uint32, hcur HCURSOR) DWORD { 2278 ret1 := syscall6(dragObject, 5, 2279 uintptr(hwndParent), 2280 uintptr(hwndFrom), 2281 uintptr(fmt), 2282 uintptr(unsafe.Pointer(data)), 2283 uintptr(hcur), 2284 0) 2285 return DWORD(ret1) 2286 } 2287 2288 func DrawAnimatedRects(hwnd HWND, idAni int32, lprcFrom /*const*/ *RECT, lprcTo /*const*/ *RECT) bool { 2289 ret1 := syscall6(drawAnimatedRects, 4, 2290 uintptr(hwnd), 2291 uintptr(idAni), 2292 uintptr(unsafe.Pointer(lprcFrom)), 2293 uintptr(unsafe.Pointer(lprcTo)), 2294 0, 2295 0) 2296 return ret1 != 0 2297 } 2298 2299 func DrawCaption(hwnd HWND, hdc HDC, lprect /*const*/ *RECT, flags UINT) bool { 2300 ret1 := syscall6(drawCaption, 4, 2301 uintptr(hwnd), 2302 uintptr(hdc), 2303 uintptr(unsafe.Pointer(lprect)), 2304 uintptr(flags), 2305 0, 2306 0) 2307 return ret1 != 0 2308 } 2309 2310 func DrawEdge(hdc HDC, qrc *RECT, edge UINT, grfFlags UINT) bool { 2311 ret1 := syscall6(drawEdge, 4, 2312 uintptr(hdc), 2313 uintptr(unsafe.Pointer(qrc)), 2314 uintptr(edge), 2315 uintptr(grfFlags), 2316 0, 2317 0) 2318 return ret1 != 0 2319 } 2320 2321 func DrawFocusRect(hDC HDC, lprc /*const*/ *RECT) bool { 2322 ret1 := syscall3(drawFocusRect, 2, 2323 uintptr(hDC), 2324 uintptr(unsafe.Pointer(lprc)), 2325 0) 2326 return ret1 != 0 2327 } 2328 2329 func DrawFrameControl(unnamed0 HDC, unnamed1 *RECT, unnamed2 UINT, unnamed3 UINT) bool { 2330 ret1 := syscall6(drawFrameControl, 4, 2331 uintptr(unnamed0), 2332 uintptr(unsafe.Pointer(unnamed1)), 2333 uintptr(unnamed2), 2334 uintptr(unnamed3), 2335 0, 2336 0) 2337 return ret1 != 0 2338 } 2339 2340 func DrawIcon(hDC HDC, x int32, y int32, hIcon HICON) bool { 2341 ret1 := syscall6(drawIcon, 4, 2342 uintptr(hDC), 2343 uintptr(x), 2344 uintptr(y), 2345 uintptr(hIcon), 2346 0, 2347 0) 2348 return ret1 != 0 2349 } 2350 2351 func DrawIconEx(hdc HDC, xLeft int32, yTop int32, hIcon HICON, cxWidth int32, cyWidth int32, istepIfAniCur UINT, hbrFlickerFreeDraw HBRUSH, diFlags UINT) bool { 2352 ret1 := syscall9(drawIconEx, 9, 2353 uintptr(hdc), 2354 uintptr(xLeft), 2355 uintptr(yTop), 2356 uintptr(hIcon), 2357 uintptr(cxWidth), 2358 uintptr(cyWidth), 2359 uintptr(istepIfAniCur), 2360 uintptr(hbrFlickerFreeDraw), 2361 uintptr(diFlags)) 2362 return ret1 != 0 2363 } 2364 2365 func DrawMenuBar(hWnd HWND) bool { 2366 ret1 := syscall3(drawMenuBar, 1, 2367 uintptr(hWnd), 2368 0, 2369 0) 2370 return ret1 != 0 2371 } 2372 2373 func DrawState(hdc HDC, hbrFore HBRUSH, qfnCallBack DRAWSTATEPROC, lData LPARAM, wData WPARAM, x int32, y int32, cx int32, cy int32, uFlags UINT) bool { 2374 qfnCallBackCallback := syscall.NewCallback(func(hdcRawArg HDC, lDataRawArg uintptr, wDataRawArg uintptr, cxRawArg int32, cyRawArg int32) uintptr { 2375 ret := qfnCallBack(hdcRawArg, lDataRawArg, wDataRawArg, cxRawArg, cyRawArg) 2376 return uintptr(ret) 2377 }) 2378 ret1 := syscall12(drawState, 10, 2379 uintptr(hdc), 2380 uintptr(hbrFore), 2381 qfnCallBackCallback, 2382 uintptr(lData), 2383 uintptr(wData), 2384 uintptr(x), 2385 uintptr(y), 2386 uintptr(cx), 2387 uintptr(cy), 2388 uintptr(uFlags), 2389 0, 2390 0) 2391 return ret1 != 0 2392 } 2393 2394 func DrawTextEx(hdc HDC, lpchText LPWSTR, cchText int32, lprc *RECT, format UINT, lpdtp *DRAWTEXTPARAMS) int32 { 2395 ret1 := syscall6(drawTextEx, 6, 2396 uintptr(hdc), 2397 uintptr(unsafe.Pointer(lpchText)), 2398 uintptr(cchText), 2399 uintptr(unsafe.Pointer(lprc)), 2400 uintptr(format), 2401 uintptr(unsafe.Pointer(lpdtp))) 2402 return int32(ret1) 2403 } 2404 2405 func DrawText(hdc HDC, lpchText string, cchText int32, lprc *RECT, format UINT) int32 { 2406 lpchTextStr := unicode16FromString(lpchText) 2407 ret1 := syscall6(drawText, 5, 2408 uintptr(hdc), 2409 uintptr(unsafe.Pointer(&lpchTextStr[0])), 2410 uintptr(cchText), 2411 uintptr(unsafe.Pointer(lprc)), 2412 uintptr(format), 2413 0) 2414 return int32(ret1) 2415 } 2416 2417 func EmptyClipboard() bool { 2418 ret1 := syscall3(emptyClipboard, 0, 2419 0, 2420 0, 2421 0) 2422 return ret1 != 0 2423 } 2424 2425 func EnableMenuItem(hMenu HMENU, uIDEnableItem UINT, uEnable UINT) bool { 2426 ret1 := syscall3(enableMenuItem, 3, 2427 uintptr(hMenu), 2428 uintptr(uIDEnableItem), 2429 uintptr(uEnable)) 2430 return ret1 != 0 2431 } 2432 2433 func EnableScrollBar(hWnd HWND, wSBflags UINT, wArrows UINT) bool { 2434 ret1 := syscall3(enableScrollBar, 3, 2435 uintptr(hWnd), 2436 uintptr(wSBflags), 2437 uintptr(wArrows)) 2438 return ret1 != 0 2439 } 2440 2441 func EnableWindow(hWnd HWND, bEnable bool) bool { 2442 ret1 := syscall3(enableWindow, 2, 2443 uintptr(hWnd), 2444 getUintptrFromBool(bEnable), 2445 0) 2446 return ret1 != 0 2447 } 2448 2449 func EndDeferWindowPos(hWinPosInfo HDWP) bool { 2450 ret1 := syscall3(endDeferWindowPos, 1, 2451 uintptr(hWinPosInfo), 2452 0, 2453 0) 2454 return ret1 != 0 2455 } 2456 2457 func EndDialog(hDlg HWND, nResult INT_PTR) bool { 2458 ret1 := syscall3(endDialog, 2, 2459 uintptr(hDlg), 2460 uintptr(unsafe.Pointer(nResult)), 2461 0) 2462 return ret1 != 0 2463 } 2464 2465 func EndMenu() bool { 2466 ret1 := syscall3(endMenu, 0, 2467 0, 2468 0, 2469 0) 2470 return ret1 != 0 2471 } 2472 2473 func EndPaint(hWnd HWND, lpPaint /*const*/ *PAINTSTRUCT) bool { 2474 ret1 := syscall3(endPaint, 2, 2475 uintptr(hWnd), 2476 uintptr(unsafe.Pointer(lpPaint)), 2477 0) 2478 return ret1 != 0 2479 } 2480 2481 func EndTask(hWnd HWND, fShutDown bool, fForce bool) bool { 2482 ret1 := syscall3(endTask, 3, 2483 uintptr(hWnd), 2484 getUintptrFromBool(fShutDown), 2485 getUintptrFromBool(fForce)) 2486 return ret1 != 0 2487 } 2488 2489 func EnumChildWindows(hWndParent HWND, lpEnumFunc WNDENUMPROC, lParam LPARAM) bool { 2490 lpEnumFuncCallback := syscall.NewCallback(func(hWndRawArg HWND, lParamRawArg LPARAM) uintptr { 2491 ret := lpEnumFunc(hWndRawArg, lParamRawArg) 2492 return uintptr(ret) 2493 }) 2494 ret1 := syscall3(enumChildWindows, 3, 2495 uintptr(hWndParent), 2496 lpEnumFuncCallback, 2497 uintptr(lParam)) 2498 return ret1 != 0 2499 } 2500 2501 func EnumClipboardFormats(format UINT) UINT { 2502 ret1 := syscall3(enumClipboardFormats, 1, 2503 uintptr(format), 2504 0, 2505 0) 2506 return UINT(ret1) 2507 } 2508 2509 func EnumDesktopWindows(hDesktop HDESK, lpfn WNDENUMPROC, lParam LPARAM) bool { 2510 lpfnCallback := syscall.NewCallback(func(hWndRawArg HWND, lParamRawArg LPARAM) uintptr { 2511 ret := lpfn(hWndRawArg, lParamRawArg) 2512 return uintptr(ret) 2513 }) 2514 ret1 := syscall3(enumDesktopWindows, 3, 2515 uintptr(hDesktop), 2516 lpfnCallback, 2517 uintptr(lParam)) 2518 return ret1 != 0 2519 } 2520 2521 func EnumDesktops(hwinsta HWINSTA, lpEnumFunc DESKTOPENUMPROC, lParam LPARAM) bool { 2522 lpEnumFuncCallback := syscall.NewCallback(func(lpszDesktopRawArg LPWSTR, lParamRawArg LPARAM) uintptr { 2523 ret := lpEnumFunc(lpszDesktopRawArg, lParamRawArg) 2524 return uintptr(ret) 2525 }) 2526 ret1 := syscall3(enumDesktops, 3, 2527 uintptr(hwinsta), 2528 lpEnumFuncCallback, 2529 uintptr(lParam)) 2530 return ret1 != 0 2531 } 2532 2533 func EnumDisplayDevices(lpDevice string, iDevNum DWORD, lpDisplayDevice *DISPLAY_DEVICE, dwFlags DWORD) bool { 2534 lpDeviceStr := unicode16FromString(lpDevice) 2535 ret1 := syscall6(enumDisplayDevices, 4, 2536 uintptr(unsafe.Pointer(&lpDeviceStr[0])), 2537 uintptr(iDevNum), 2538 uintptr(unsafe.Pointer(lpDisplayDevice)), 2539 uintptr(dwFlags), 2540 0, 2541 0) 2542 return ret1 != 0 2543 } 2544 2545 func EnumDisplayMonitors(hdc HDC, lprcClip /*const*/ *RECT, lpfnEnum MONITORENUMPROC, dwData LPARAM) bool { 2546 lpfnEnumCallback := syscall.NewCallback(func(hMonitorRawArg HMONITOR, hdcMonitorRawArg HDC, lprcMonitorRawArg *RECT, dwDataRawArg uintptr) uintptr { 2547 ret := lpfnEnum(hMonitorRawArg, hdcMonitorRawArg, lprcMonitorRawArg, dwDataRawArg) 2548 return uintptr(ret) 2549 }) 2550 ret1 := syscall6(enumDisplayMonitors, 4, 2551 uintptr(hdc), 2552 uintptr(unsafe.Pointer(lprcClip)), 2553 lpfnEnumCallback, 2554 uintptr(dwData), 2555 0, 2556 0) 2557 return ret1 != 0 2558 } 2559 2560 func EnumDisplaySettingsEx(lpszDeviceName string, iModeNum DWORD, lpDevMode LPDEVMODE, dwFlags DWORD) bool { 2561 lpszDeviceNameStr := unicode16FromString(lpszDeviceName) 2562 ret1 := syscall6(enumDisplaySettingsEx, 4, 2563 uintptr(unsafe.Pointer(&lpszDeviceNameStr[0])), 2564 uintptr(iModeNum), 2565 uintptr(unsafe.Pointer(lpDevMode)), 2566 uintptr(dwFlags), 2567 0, 2568 0) 2569 return ret1 != 0 2570 } 2571 2572 func EnumDisplaySettings(lpszDeviceName string, iModeNum DWORD, lpDevMode LPDEVMODE) bool { 2573 lpszDeviceNameStr := unicode16FromString(lpszDeviceName) 2574 ret1 := syscall3(enumDisplaySettings, 3, 2575 uintptr(unsafe.Pointer(&lpszDeviceNameStr[0])), 2576 uintptr(iModeNum), 2577 uintptr(unsafe.Pointer(lpDevMode))) 2578 return ret1 != 0 2579 } 2580 2581 func EnumPropsEx(hWnd HWND, lpEnumFunc PROPENUMPROCEX, lParam LPARAM) int32 { 2582 lpEnumFuncCallback := syscall.NewCallback(func(hwndRawArg HWND, lpszStringRawArg LPWSTR, hDataRawArg HANDLE, dwDataRawArg uintptr) uintptr { 2583 ret := lpEnumFunc(hwndRawArg, lpszStringRawArg, hDataRawArg, dwDataRawArg) 2584 return uintptr(ret) 2585 }) 2586 ret1 := syscall3(enumPropsEx, 3, 2587 uintptr(hWnd), 2588 lpEnumFuncCallback, 2589 uintptr(lParam)) 2590 return int32(ret1) 2591 } 2592 2593 func EnumProps(hWnd HWND, lpEnumFunc PROPENUMPROC) int32 { 2594 lpEnumFuncCallback := syscall.NewCallback(func(hWndRawArg HWND, lpszStringRawArg /*const*/ *uint16, hDataRawArg HANDLE) uintptr { 2595 lpszString := stringFromUnicode16(lpszStringRawArg) 2596 ret := lpEnumFunc(hWndRawArg, lpszString, hDataRawArg) 2597 return uintptr(ret) 2598 }) 2599 ret1 := syscall3(enumProps, 2, 2600 uintptr(hWnd), 2601 lpEnumFuncCallback, 2602 0) 2603 return int32(ret1) 2604 } 2605 2606 func EnumThreadWindows(dwThreadId DWORD, lpfn WNDENUMPROC, lParam LPARAM) bool { 2607 lpfnCallback := syscall.NewCallback(func(hWndRawArg HWND, lParamRawArg LPARAM) uintptr { 2608 ret := lpfn(hWndRawArg, lParamRawArg) 2609 return uintptr(ret) 2610 }) 2611 ret1 := syscall3(enumThreadWindows, 3, 2612 uintptr(dwThreadId), 2613 lpfnCallback, 2614 uintptr(lParam)) 2615 return ret1 != 0 2616 } 2617 2618 func EnumWindowStations(lpEnumFunc WINSTAENUMPROC, lParam LPARAM) bool { 2619 lpEnumFuncCallback := syscall.NewCallback(func(lpszWindowStationRawArg LPWSTR, lParamRawArg LPARAM) uintptr { 2620 ret := lpEnumFunc(lpszWindowStationRawArg, lParamRawArg) 2621 return uintptr(ret) 2622 }) 2623 ret1 := syscall3(enumWindowStations, 2, 2624 lpEnumFuncCallback, 2625 uintptr(lParam), 2626 0) 2627 return ret1 != 0 2628 } 2629 2630 func EnumWindows(lpEnumFunc WNDENUMPROC, lParam LPARAM) bool { 2631 lpEnumFuncCallback := syscall.NewCallback(func(hWndRawArg HWND, lParamRawArg LPARAM) uintptr { 2632 ret := lpEnumFunc(hWndRawArg, lParamRawArg) 2633 return uintptr(ret) 2634 }) 2635 ret1 := syscall3(enumWindows, 2, 2636 lpEnumFuncCallback, 2637 uintptr(lParam), 2638 0) 2639 return ret1 != 0 2640 } 2641 2642 func EqualRect(lprc1 /*const*/ *RECT, lprc2 /*const*/ *RECT) bool { 2643 ret1 := syscall3(equalRect, 2, 2644 uintptr(unsafe.Pointer(lprc1)), 2645 uintptr(unsafe.Pointer(lprc2)), 2646 0) 2647 return ret1 != 0 2648 } 2649 2650 func ExcludeUpdateRgn(hDC HDC, hWnd HWND) int32 { 2651 ret1 := syscall3(excludeUpdateRgn, 2, 2652 uintptr(hDC), 2653 uintptr(hWnd), 2654 0) 2655 return int32(ret1) 2656 } 2657 2658 func ExitWindowsEx(uFlags UINT, dwReason DWORD) bool { 2659 ret1 := syscall3(exitWindowsEx, 2, 2660 uintptr(uFlags), 2661 uintptr(dwReason), 2662 0) 2663 return ret1 != 0 2664 } 2665 2666 func FillRect(hDC HDC, lprc /*const*/ *RECT, hbr HBRUSH) int32 { 2667 ret1 := syscall3(fillRect, 3, 2668 uintptr(hDC), 2669 uintptr(unsafe.Pointer(lprc)), 2670 uintptr(hbr)) 2671 return int32(ret1) 2672 } 2673 2674 func FindWindowEx(hWndParent HWND, hWndChildAfter HWND, lpszClass string, lpszWindow string) HWND { 2675 lpszClassStr := unicode16FromString(lpszClass) 2676 lpszWindowStr := unicode16FromString(lpszWindow) 2677 ret1 := syscall6(findWindowEx, 4, 2678 uintptr(hWndParent), 2679 uintptr(hWndChildAfter), 2680 uintptr(unsafe.Pointer(&lpszClassStr[0])), 2681 uintptr(unsafe.Pointer(&lpszWindowStr[0])), 2682 0, 2683 0) 2684 return HWND(ret1) 2685 } 2686 2687 func FindWindow(lpClassName string, lpWindowName string) HWND { 2688 lpClassNameStr := unicode16FromString(lpClassName) 2689 lpWindowNameStr := unicode16FromString(lpWindowName) 2690 ret1 := syscall3(findWindow, 2, 2691 uintptr(unsafe.Pointer(&lpClassNameStr[0])), 2692 uintptr(unsafe.Pointer(&lpWindowNameStr[0])), 2693 0) 2694 return HWND(ret1) 2695 } 2696 2697 func FlashWindow(hWnd HWND, bInvert bool) bool { 2698 ret1 := syscall3(flashWindow, 2, 2699 uintptr(hWnd), 2700 getUintptrFromBool(bInvert), 2701 0) 2702 return ret1 != 0 2703 } 2704 2705 func FlashWindowEx(pfwi *FLASHWINFO) bool { 2706 ret1 := syscall3(flashWindowEx, 1, 2707 uintptr(unsafe.Pointer(pfwi)), 2708 0, 2709 0) 2710 return ret1 != 0 2711 } 2712 2713 func FrameRect(hDC HDC, lprc /*const*/ *RECT, hbr HBRUSH) int32 { 2714 ret1 := syscall3(frameRect, 3, 2715 uintptr(hDC), 2716 uintptr(unsafe.Pointer(lprc)), 2717 uintptr(hbr)) 2718 return int32(ret1) 2719 } 2720 2721 func FreeDDElParam(msg UINT, lParam LPARAM) bool { 2722 ret1 := syscall3(freeDDElParam, 2, 2723 uintptr(msg), 2724 uintptr(lParam), 2725 0) 2726 return ret1 != 0 2727 } 2728 2729 func GetActiveWindow() HWND { 2730 ret1 := syscall3(getActiveWindow, 0, 2731 0, 2732 0, 2733 0) 2734 return HWND(ret1) 2735 } 2736 2737 func GetAltTabInfo(hwnd HWND, iItem int32, pati *ALTTABINFO, pszItemText LPWSTR, cchItemText UINT) bool { 2738 ret1 := syscall6(getAltTabInfo, 5, 2739 uintptr(hwnd), 2740 uintptr(iItem), 2741 uintptr(unsafe.Pointer(pati)), 2742 uintptr(unsafe.Pointer(pszItemText)), 2743 uintptr(cchItemText), 2744 0) 2745 return ret1 != 0 2746 } 2747 2748 func GetAncestor(hwnd HWND, gaFlags UINT) HWND { 2749 ret1 := syscall3(getAncestor, 2, 2750 uintptr(hwnd), 2751 uintptr(gaFlags), 2752 0) 2753 return HWND(ret1) 2754 } 2755 2756 func GetAsyncKeyState(vKey int32) SHORT { 2757 ret1 := syscall3(getAsyncKeyState, 1, 2758 uintptr(vKey), 2759 0, 2760 0) 2761 return SHORT(ret1) 2762 } 2763 2764 func GetCapture() HWND { 2765 ret1 := syscall3(getCapture, 0, 2766 0, 2767 0, 2768 0) 2769 return HWND(ret1) 2770 } 2771 2772 func GetCaretBlinkTime() UINT { 2773 ret1 := syscall3(getCaretBlinkTime, 0, 2774 0, 2775 0, 2776 0) 2777 return UINT(ret1) 2778 } 2779 2780 func GetCaretPos(lpPoint *POINT) bool { 2781 ret1 := syscall3(getCaretPos, 1, 2782 uintptr(unsafe.Pointer(lpPoint)), 2783 0, 2784 0) 2785 return ret1 != 0 2786 } 2787 2788 func GetClassInfoEx(hInstance HINSTANCE, lpszClass string, lpwcx *WNDCLASSEX) bool { 2789 lpszClassStr := unicode16FromString(lpszClass) 2790 ret1 := syscall3(getClassInfoEx, 3, 2791 uintptr(hInstance), 2792 uintptr(unsafe.Pointer(&lpszClassStr[0])), 2793 uintptr(unsafe.Pointer(lpwcx))) 2794 return ret1 != 0 2795 } 2796 2797 func GetClassInfo(hInstance HINSTANCE, lpClassName string, lpWndClass *WNDCLASS) bool { 2798 lpClassNameStr := unicode16FromString(lpClassName) 2799 ret1 := syscall3(getClassInfo, 3, 2800 uintptr(hInstance), 2801 uintptr(unsafe.Pointer(&lpClassNameStr[0])), 2802 uintptr(unsafe.Pointer(lpWndClass))) 2803 return ret1 != 0 2804 } 2805 2806 func GetClassLongPtr(hWnd HWND, nIndex int32) *uint32 { 2807 ret1 := syscall3(getClassLongPtr, 2, 2808 uintptr(hWnd), 2809 uintptr(nIndex), 2810 0) 2811 return (*uint32)(unsafe.Pointer(ret1)) 2812 } 2813 2814 func GetClassLong(hWnd HWND, nIndex int32) DWORD { 2815 ret1 := syscall3(getClassLong, 2, 2816 uintptr(hWnd), 2817 uintptr(nIndex), 2818 0) 2819 return DWORD(ret1) 2820 } 2821 2822 func GetClassName(hWnd HWND, lpClassName LPWSTR, nMaxCount int32) int32 { 2823 ret1 := syscall3(getClassName, 3, 2824 uintptr(hWnd), 2825 uintptr(unsafe.Pointer(lpClassName)), 2826 uintptr(nMaxCount)) 2827 return int32(ret1) 2828 } 2829 2830 func GetClassWord(hWnd HWND, nIndex int32) WORD { 2831 ret1 := syscall3(getClassWord, 2, 2832 uintptr(hWnd), 2833 uintptr(nIndex), 2834 0) 2835 return WORD(ret1) 2836 } 2837 2838 func GetClientRect(hWnd HWND, lpRect *RECT) bool { 2839 ret1 := syscall3(getClientRect, 2, 2840 uintptr(hWnd), 2841 uintptr(unsafe.Pointer(lpRect)), 2842 0) 2843 return ret1 != 0 2844 } 2845 2846 func GetClipCursor(lpRect *RECT) bool { 2847 ret1 := syscall3(getClipCursor, 1, 2848 uintptr(unsafe.Pointer(lpRect)), 2849 0, 2850 0) 2851 return ret1 != 0 2852 } 2853 2854 func GetClipboardData(uFormat UINT) HANDLE { 2855 ret1 := syscall3(getClipboardData, 1, 2856 uintptr(uFormat), 2857 0, 2858 0) 2859 return HANDLE(ret1) 2860 } 2861 2862 func GetClipboardFormatName(format UINT, lpszFormatName LPWSTR, cchMaxCount int32) int32 { 2863 ret1 := syscall3(getClipboardFormatName, 3, 2864 uintptr(format), 2865 uintptr(unsafe.Pointer(lpszFormatName)), 2866 uintptr(cchMaxCount)) 2867 return int32(ret1) 2868 } 2869 2870 func GetClipboardOwner() HWND { 2871 ret1 := syscall3(getClipboardOwner, 0, 2872 0, 2873 0, 2874 0) 2875 return HWND(ret1) 2876 } 2877 2878 func GetClipboardSequenceNumber() DWORD { 2879 ret1 := syscall3(getClipboardSequenceNumber, 0, 2880 0, 2881 0, 2882 0) 2883 return DWORD(ret1) 2884 } 2885 2886 func GetClipboardViewer() HWND { 2887 ret1 := syscall3(getClipboardViewer, 0, 2888 0, 2889 0, 2890 0) 2891 return HWND(ret1) 2892 } 2893 2894 func GetComboBoxInfo(hwndCombo HWND, pcbi *COMBOBOXINFO) bool { 2895 ret1 := syscall3(getComboBoxInfo, 2, 2896 uintptr(hwndCombo), 2897 uintptr(unsafe.Pointer(pcbi)), 2898 0) 2899 return ret1 != 0 2900 } 2901 2902 func GetCursor() HCURSOR { 2903 ret1 := syscall3(getCursor, 0, 2904 0, 2905 0, 2906 0) 2907 return HCURSOR(ret1) 2908 } 2909 2910 func GetCursorInfo(pci *CURSORINFO) bool { 2911 ret1 := syscall3(getCursorInfo, 1, 2912 uintptr(unsafe.Pointer(pci)), 2913 0, 2914 0) 2915 return ret1 != 0 2916 } 2917 2918 func GetCursorPos(lpPoint *POINT) bool { 2919 ret1 := syscall3(getCursorPos, 1, 2920 uintptr(unsafe.Pointer(lpPoint)), 2921 0, 2922 0) 2923 return ret1 != 0 2924 } 2925 2926 func GetDC(hWnd HWND) HDC { 2927 ret1 := syscall3(getDC, 1, 2928 uintptr(hWnd), 2929 0, 2930 0) 2931 return HDC(ret1) 2932 } 2933 2934 func GetDCEx(hWnd HWND, hrgnClip HRGN, flags DWORD) HDC { 2935 ret1 := syscall3(getDCEx, 3, 2936 uintptr(hWnd), 2937 uintptr(hrgnClip), 2938 uintptr(flags)) 2939 return HDC(ret1) 2940 } 2941 2942 func GetDesktopWindow() HWND { 2943 ret1 := syscall3(getDesktopWindow, 0, 2944 0, 2945 0, 2946 0) 2947 return HWND(ret1) 2948 } 2949 2950 func GetDialogBaseUnits() int32 { 2951 ret1 := syscall3(getDialogBaseUnits, 0, 2952 0, 2953 0, 2954 0) 2955 return int32(ret1) 2956 } 2957 2958 func GetDlgCtrlID(hWnd HWND) int32 { 2959 ret1 := syscall3(getDlgCtrlID, 1, 2960 uintptr(hWnd), 2961 0, 2962 0) 2963 return int32(ret1) 2964 } 2965 2966 func GetDlgItem(hDlg HWND, nIDDlgItem int32) HWND { 2967 ret1 := syscall3(getDlgItem, 2, 2968 uintptr(hDlg), 2969 uintptr(nIDDlgItem), 2970 0) 2971 return HWND(ret1) 2972 } 2973 2974 func GetDlgItemInt(hDlg HWND, nIDDlgItem int32, lpTranslated *BOOL, bSigned bool) UINT { 2975 ret1 := syscall6(getDlgItemInt, 4, 2976 uintptr(hDlg), 2977 uintptr(nIDDlgItem), 2978 uintptr(unsafe.Pointer(lpTranslated)), 2979 getUintptrFromBool(bSigned), 2980 0, 2981 0) 2982 return UINT(ret1) 2983 } 2984 2985 func GetDlgItemText(hDlg HWND, nIDDlgItem int32, lpString LPWSTR, cchMax int32) UINT { 2986 ret1 := syscall6(getDlgItemText, 4, 2987 uintptr(hDlg), 2988 uintptr(nIDDlgItem), 2989 uintptr(unsafe.Pointer(lpString)), 2990 uintptr(cchMax), 2991 0, 2992 0) 2993 return UINT(ret1) 2994 } 2995 2996 func GetDoubleClickTime() UINT { 2997 ret1 := syscall3(getDoubleClickTime, 0, 2998 0, 2999 0, 3000 0) 3001 return UINT(ret1) 3002 } 3003 3004 func GetFocus() HWND { 3005 ret1 := syscall3(getFocus, 0, 3006 0, 3007 0, 3008 0) 3009 return HWND(ret1) 3010 } 3011 3012 func GetForegroundWindow() HWND { 3013 ret1 := syscall3(getForegroundWindow, 0, 3014 0, 3015 0, 3016 0) 3017 return HWND(ret1) 3018 } 3019 3020 func GetGUIThreadInfo(idThread DWORD, pgui *GUITHREADINFO) bool { 3021 ret1 := syscall3(getGUIThreadInfo, 2, 3022 uintptr(idThread), 3023 uintptr(unsafe.Pointer(pgui)), 3024 0) 3025 return ret1 != 0 3026 } 3027 3028 func GetGestureConfig(hwnd HWND, dwReserved DWORD, dwFlags DWORD, pcIDs *uint32, pGestureConfig *GESTURECONFIG, cbSize UINT) bool { 3029 ret1 := syscall6(getGestureConfig, 6, 3030 uintptr(hwnd), 3031 uintptr(dwReserved), 3032 uintptr(dwFlags), 3033 uintptr(unsafe.Pointer(pcIDs)), 3034 uintptr(unsafe.Pointer(pGestureConfig)), 3035 uintptr(cbSize)) 3036 return ret1 != 0 3037 } 3038 3039 func GetGestureExtraArgs(hGestureInfo HGESTUREINFO, cbExtraArgs UINT, pExtraArgs *byte) bool { 3040 ret1 := syscall3(getGestureExtraArgs, 3, 3041 uintptr(hGestureInfo), 3042 uintptr(cbExtraArgs), 3043 uintptr(unsafe.Pointer(pExtraArgs))) 3044 return ret1 != 0 3045 } 3046 3047 func GetGestureInfo(hGestureInfo HGESTUREINFO, pGestureInfo *GESTUREINFO) bool { 3048 ret1 := syscall3(getGestureInfo, 2, 3049 uintptr(hGestureInfo), 3050 uintptr(unsafe.Pointer(pGestureInfo)), 3051 0) 3052 return ret1 != 0 3053 } 3054 3055 func GetGuiResources(hProcess HANDLE, uiFlags DWORD) DWORD { 3056 ret1 := syscall3(getGuiResources, 2, 3057 uintptr(hProcess), 3058 uintptr(uiFlags), 3059 0) 3060 return DWORD(ret1) 3061 } 3062 3063 func GetIconInfo(hIcon HICON, piconinfo *ICONINFO) bool { 3064 ret1 := syscall3(getIconInfo, 2, 3065 uintptr(hIcon), 3066 uintptr(unsafe.Pointer(piconinfo)), 3067 0) 3068 return ret1 != 0 3069 } 3070 3071 func GetInputState() bool { 3072 ret1 := syscall3(getInputState, 0, 3073 0, 3074 0, 3075 0) 3076 return ret1 != 0 3077 } 3078 3079 func GetKBCodePage() UINT { 3080 ret1 := syscall3(getKBCodePage, 0, 3081 0, 3082 0, 3083 0) 3084 return UINT(ret1) 3085 } 3086 3087 func GetKeyNameText(lParam LONG, lpString LPWSTR, cchSize int32) int32 { 3088 ret1 := syscall3(getKeyNameText, 3, 3089 uintptr(lParam), 3090 uintptr(unsafe.Pointer(lpString)), 3091 uintptr(cchSize)) 3092 return int32(ret1) 3093 } 3094 3095 func GetKeyState(nVirtKey int32) SHORT { 3096 ret1 := syscall3(getKeyState, 1, 3097 uintptr(nVirtKey), 3098 0, 3099 0) 3100 return SHORT(ret1) 3101 } 3102 3103 func GetKeyboardLayout(idThread DWORD) HKL { 3104 ret1 := syscall3(getKeyboardLayout, 1, 3105 uintptr(idThread), 3106 0, 3107 0) 3108 return HKL(ret1) 3109 } 3110 3111 func GetKeyboardLayoutList(nBuff int32, lpList *HKL) int32 { 3112 ret1 := syscall3(getKeyboardLayoutList, 2, 3113 uintptr(nBuff), 3114 uintptr(unsafe.Pointer(lpList)), 3115 0) 3116 return int32(ret1) 3117 } 3118 3119 func GetKeyboardLayoutName(pwszKLID LPWSTR) bool { 3120 ret1 := syscall3(getKeyboardLayoutName, 1, 3121 uintptr(unsafe.Pointer(pwszKLID)), 3122 0, 3123 0) 3124 return ret1 != 0 3125 } 3126 3127 func GetKeyboardState(lpKeyState *byte) bool { 3128 ret1 := syscall3(getKeyboardState, 1, 3129 uintptr(unsafe.Pointer(lpKeyState)), 3130 0, 3131 0) 3132 return ret1 != 0 3133 } 3134 3135 func GetKeyboardType(nTypeFlag int32) int32 { 3136 ret1 := syscall3(getKeyboardType, 1, 3137 uintptr(nTypeFlag), 3138 0, 3139 0) 3140 return int32(ret1) 3141 } 3142 3143 func GetLastActivePopup(hWnd HWND) HWND { 3144 ret1 := syscall3(getLastActivePopup, 1, 3145 uintptr(hWnd), 3146 0, 3147 0) 3148 return HWND(ret1) 3149 } 3150 3151 func GetLastInputInfo(plii *LASTINPUTINFO) bool { 3152 ret1 := syscall3(getLastInputInfo, 1, 3153 uintptr(unsafe.Pointer(plii)), 3154 0, 3155 0) 3156 return ret1 != 0 3157 } 3158 3159 func GetLayeredWindowAttributes(hwnd HWND, pcrKey *COLORREF, pbAlpha *byte, pdwFlags *uint32) bool { 3160 ret1 := syscall6(getLayeredWindowAttributes, 4, 3161 uintptr(hwnd), 3162 uintptr(unsafe.Pointer(pcrKey)), 3163 uintptr(unsafe.Pointer(pbAlpha)), 3164 uintptr(unsafe.Pointer(pdwFlags)), 3165 0, 3166 0) 3167 return ret1 != 0 3168 } 3169 3170 func GetListBoxInfo(hwnd HWND) DWORD { 3171 ret1 := syscall3(getListBoxInfo, 1, 3172 uintptr(hwnd), 3173 0, 3174 0) 3175 return DWORD(ret1) 3176 } 3177 3178 func GetMenu(hWnd HWND) HMENU { 3179 ret1 := syscall3(getMenu, 1, 3180 uintptr(hWnd), 3181 0, 3182 0) 3183 return HMENU(ret1) 3184 } 3185 3186 func GetMenuBarInfo(hwnd HWND, idObject LONG, idItem LONG, pmbi *MENUBARINFO) bool { 3187 ret1 := syscall6(getMenuBarInfo, 4, 3188 uintptr(hwnd), 3189 uintptr(idObject), 3190 uintptr(idItem), 3191 uintptr(unsafe.Pointer(pmbi)), 3192 0, 3193 0) 3194 return ret1 != 0 3195 } 3196 3197 func GetMenuCheckMarkDimensions() LONG { 3198 ret1 := syscall3(getMenuCheckMarkDimensions, 0, 3199 0, 3200 0, 3201 0) 3202 return LONG(ret1) 3203 } 3204 3205 func GetMenuContextHelpId(unnamed0 HMENU) DWORD { 3206 ret1 := syscall3(getMenuContextHelpId, 1, 3207 uintptr(unnamed0), 3208 0, 3209 0) 3210 return DWORD(ret1) 3211 } 3212 3213 func GetMenuDefaultItem(hMenu HMENU, fByPos UINT, gmdiFlags UINT) UINT { 3214 ret1 := syscall3(getMenuDefaultItem, 3, 3215 uintptr(hMenu), 3216 uintptr(fByPos), 3217 uintptr(gmdiFlags)) 3218 return UINT(ret1) 3219 } 3220 3221 func GetMenuInfo(unnamed0 HMENU, unnamed1 *MENUINFO) bool { 3222 ret1 := syscall3(getMenuInfo, 2, 3223 uintptr(unnamed0), 3224 uintptr(unsafe.Pointer(unnamed1)), 3225 0) 3226 return ret1 != 0 3227 } 3228 3229 func GetMenuItemCount(hMenu HMENU) int32 { 3230 ret1 := syscall3(getMenuItemCount, 1, 3231 uintptr(hMenu), 3232 0, 3233 0) 3234 return int32(ret1) 3235 } 3236 3237 func GetMenuItemID(hMenu HMENU, nPos int32) UINT { 3238 ret1 := syscall3(getMenuItemID, 2, 3239 uintptr(hMenu), 3240 uintptr(nPos), 3241 0) 3242 return UINT(ret1) 3243 } 3244 3245 func GetMenuItemInfo(hmenu HMENU, item UINT, fByPosition bool, lpmii *MENUITEMINFO) bool { 3246 ret1 := syscall6(getMenuItemInfo, 4, 3247 uintptr(hmenu), 3248 uintptr(item), 3249 getUintptrFromBool(fByPosition), 3250 uintptr(unsafe.Pointer(lpmii)), 3251 0, 3252 0) 3253 return ret1 != 0 3254 } 3255 3256 func GetMenuItemRect(hWnd HWND, hMenu HMENU, uItem UINT, lprcItem *RECT) bool { 3257 ret1 := syscall6(getMenuItemRect, 4, 3258 uintptr(hWnd), 3259 uintptr(hMenu), 3260 uintptr(uItem), 3261 uintptr(unsafe.Pointer(lprcItem)), 3262 0, 3263 0) 3264 return ret1 != 0 3265 } 3266 3267 func GetMenuState(hMenu HMENU, uId UINT, uFlags UINT) UINT { 3268 ret1 := syscall3(getMenuState, 3, 3269 uintptr(hMenu), 3270 uintptr(uId), 3271 uintptr(uFlags)) 3272 return UINT(ret1) 3273 } 3274 3275 func GetMenuString(hMenu HMENU, uIDItem UINT, lpString LPWSTR, cchMax int32, flags UINT) int32 { 3276 ret1 := syscall6(getMenuString, 5, 3277 uintptr(hMenu), 3278 uintptr(uIDItem), 3279 uintptr(unsafe.Pointer(lpString)), 3280 uintptr(cchMax), 3281 uintptr(flags), 3282 0) 3283 return int32(ret1) 3284 } 3285 3286 func GetMessageExtraInfo() LPARAM { 3287 ret1 := syscall3(getMessageExtraInfo, 0, 3288 0, 3289 0, 3290 0) 3291 return LPARAM(ret1) 3292 } 3293 3294 func GetMessagePos() DWORD { 3295 ret1 := syscall3(getMessagePos, 0, 3296 0, 3297 0, 3298 0) 3299 return DWORD(ret1) 3300 } 3301 3302 func GetMessageTime() LONG { 3303 ret1 := syscall3(getMessageTime, 0, 3304 0, 3305 0, 3306 0) 3307 return LONG(ret1) 3308 } 3309 3310 func GetMessage(lpMsg *MSG, hWnd HWND, wMsgFilterMin UINT, wMsgFilterMax UINT) bool { 3311 ret1 := syscall6(getMessage, 4, 3312 uintptr(unsafe.Pointer(lpMsg)), 3313 uintptr(hWnd), 3314 uintptr(wMsgFilterMin), 3315 uintptr(wMsgFilterMax), 3316 0, 3317 0) 3318 return ret1 != 0 3319 } 3320 3321 func GetMonitorInfo(hMonitor HMONITOR, lpmi *MONITORINFO) bool { 3322 ret1 := syscall3(getMonitorInfo, 2, 3323 uintptr(hMonitor), 3324 uintptr(unsafe.Pointer(lpmi)), 3325 0) 3326 return ret1 != 0 3327 } 3328 3329 func GetMouseMovePointsEx(cbSize UINT, lppt *MOUSEMOVEPOINT, lpptBuf *MOUSEMOVEPOINT, nBufPoints int32, resolution DWORD) int32 { 3330 ret1 := syscall6(getMouseMovePointsEx, 5, 3331 uintptr(cbSize), 3332 uintptr(unsafe.Pointer(lppt)), 3333 uintptr(unsafe.Pointer(lpptBuf)), 3334 uintptr(nBufPoints), 3335 uintptr(resolution), 3336 0) 3337 return int32(ret1) 3338 } 3339 3340 func GetNextDlgGroupItem(hDlg HWND, hCtl HWND, bPrevious bool) HWND { 3341 ret1 := syscall3(getNextDlgGroupItem, 3, 3342 uintptr(hDlg), 3343 uintptr(hCtl), 3344 getUintptrFromBool(bPrevious)) 3345 return HWND(ret1) 3346 } 3347 3348 func GetNextDlgTabItem(hDlg HWND, hCtl HWND, bPrevious bool) HWND { 3349 ret1 := syscall3(getNextDlgTabItem, 3, 3350 uintptr(hDlg), 3351 uintptr(hCtl), 3352 getUintptrFromBool(bPrevious)) 3353 return HWND(ret1) 3354 } 3355 3356 func GetOpenClipboardWindow() HWND { 3357 ret1 := syscall3(getOpenClipboardWindow, 0, 3358 0, 3359 0, 3360 0) 3361 return HWND(ret1) 3362 } 3363 3364 func GetParent(hWnd HWND) HWND { 3365 ret1 := syscall3(getParent, 1, 3366 uintptr(hWnd), 3367 0, 3368 0) 3369 return HWND(ret1) 3370 } 3371 3372 func GetPriorityClipboardFormat(paFormatPriorityList *UINT, cFormats int32) int32 { 3373 ret1 := syscall3(getPriorityClipboardFormat, 2, 3374 uintptr(unsafe.Pointer(paFormatPriorityList)), 3375 uintptr(cFormats), 3376 0) 3377 return int32(ret1) 3378 } 3379 3380 func GetProcessDefaultLayout(pdwDefaultLayout *uint32) bool { 3381 ret1 := syscall3(getProcessDefaultLayout, 1, 3382 uintptr(unsafe.Pointer(pdwDefaultLayout)), 3383 0, 3384 0) 3385 return ret1 != 0 3386 } 3387 3388 func GetProcessWindowStation() HWINSTA { 3389 ret1 := syscall3(getProcessWindowStation, 0, 3390 0, 3391 0, 3392 0) 3393 return HWINSTA(ret1) 3394 } 3395 3396 func GetProp(hWnd HWND, lpString string) HANDLE { 3397 lpStringStr := unicode16FromString(lpString) 3398 ret1 := syscall3(getProp, 2, 3399 uintptr(hWnd), 3400 uintptr(unsafe.Pointer(&lpStringStr[0])), 3401 0) 3402 return HANDLE(ret1) 3403 } 3404 3405 func GetQueueStatus(flags UINT) DWORD { 3406 ret1 := syscall3(getQueueStatus, 1, 3407 uintptr(flags), 3408 0, 3409 0) 3410 return DWORD(ret1) 3411 } 3412 3413 func GetRawInputBuffer(pData *RAWINPUT, pcbSize *uint32, cbSizeHeader UINT) UINT { 3414 ret1 := syscall3(getRawInputBuffer, 3, 3415 uintptr(unsafe.Pointer(pData)), 3416 uintptr(unsafe.Pointer(pcbSize)), 3417 uintptr(cbSizeHeader)) 3418 return UINT(ret1) 3419 } 3420 3421 func GetRawInputData(hRawInput HRAWINPUT, uiCommand UINT, pData LPVOID, pcbSize *uint32, cbSizeHeader UINT) UINT { 3422 ret1 := syscall6(getRawInputData, 5, 3423 uintptr(hRawInput), 3424 uintptr(uiCommand), 3425 uintptr(unsafe.Pointer(pData)), 3426 uintptr(unsafe.Pointer(pcbSize)), 3427 uintptr(cbSizeHeader), 3428 0) 3429 return UINT(ret1) 3430 } 3431 3432 func GetRawInputDeviceInfo(hDevice HANDLE, uiCommand UINT, pData LPVOID, pcbSize *uint32) UINT { 3433 ret1 := syscall6(getRawInputDeviceInfo, 4, 3434 uintptr(hDevice), 3435 uintptr(uiCommand), 3436 uintptr(unsafe.Pointer(pData)), 3437 uintptr(unsafe.Pointer(pcbSize)), 3438 0, 3439 0) 3440 return UINT(ret1) 3441 } 3442 3443 func GetRawInputDeviceList(pRawInputDeviceList *RAWINPUTDEVICELIST, puiNumDevices *uint32, cbSize UINT) UINT { 3444 ret1 := syscall3(getRawInputDeviceList, 3, 3445 uintptr(unsafe.Pointer(pRawInputDeviceList)), 3446 uintptr(unsafe.Pointer(puiNumDevices)), 3447 uintptr(cbSize)) 3448 return UINT(ret1) 3449 } 3450 3451 func GetRegisteredRawInputDevices(pRawInputDevices *RAWINPUTDEVICE, puiNumDevices *uint32, cbSize UINT) UINT { 3452 ret1 := syscall3(getRegisteredRawInputDevices, 3, 3453 uintptr(unsafe.Pointer(pRawInputDevices)), 3454 uintptr(unsafe.Pointer(puiNumDevices)), 3455 uintptr(cbSize)) 3456 return UINT(ret1) 3457 } 3458 3459 func GetScrollBarInfo(hwnd HWND, idObject LONG, psbi *SCROLLBARINFO) bool { 3460 ret1 := syscall3(getScrollBarInfo, 3, 3461 uintptr(hwnd), 3462 uintptr(idObject), 3463 uintptr(unsafe.Pointer(psbi))) 3464 return ret1 != 0 3465 } 3466 3467 func GetScrollInfo(hwnd HWND, nBar int32, lpsi *SCROLLINFO) bool { 3468 ret1 := syscall3(getScrollInfo, 3, 3469 uintptr(hwnd), 3470 uintptr(nBar), 3471 uintptr(unsafe.Pointer(lpsi))) 3472 return ret1 != 0 3473 } 3474 3475 func GetScrollPos(hWnd HWND, nBar int32) int32 { 3476 ret1 := syscall3(getScrollPos, 2, 3477 uintptr(hWnd), 3478 uintptr(nBar), 3479 0) 3480 return int32(ret1) 3481 } 3482 3483 func GetScrollRange(hWnd HWND, nBar int32, lpMinPos *int32, lpMaxPos *int32) bool { 3484 ret1 := syscall6(getScrollRange, 4, 3485 uintptr(hWnd), 3486 uintptr(nBar), 3487 uintptr(unsafe.Pointer(lpMinPos)), 3488 uintptr(unsafe.Pointer(lpMaxPos)), 3489 0, 3490 0) 3491 return ret1 != 0 3492 } 3493 3494 func GetShellWindow() HWND { 3495 ret1 := syscall3(getShellWindow, 0, 3496 0, 3497 0, 3498 0) 3499 return HWND(ret1) 3500 } 3501 3502 func GetSubMenu(hMenu HMENU, nPos int32) HMENU { 3503 ret1 := syscall3(getSubMenu, 2, 3504 uintptr(hMenu), 3505 uintptr(nPos), 3506 0) 3507 return HMENU(ret1) 3508 } 3509 3510 func GetSysColor(nIndex int32) DWORD { 3511 ret1 := syscall3(getSysColor, 1, 3512 uintptr(nIndex), 3513 0, 3514 0) 3515 return DWORD(ret1) 3516 } 3517 3518 func GetSysColorBrush(nIndex int32) HBRUSH { 3519 ret1 := syscall3(getSysColorBrush, 1, 3520 uintptr(nIndex), 3521 0, 3522 0) 3523 return HBRUSH(ret1) 3524 } 3525 3526 func GetSystemMenu(hWnd HWND, bRevert bool) HMENU { 3527 ret1 := syscall3(getSystemMenu, 2, 3528 uintptr(hWnd), 3529 getUintptrFromBool(bRevert), 3530 0) 3531 return HMENU(ret1) 3532 } 3533 3534 func GetSystemMetrics(nIndex int32) int32 { 3535 ret1 := syscall3(getSystemMetrics, 1, 3536 uintptr(nIndex), 3537 0, 3538 0) 3539 return int32(ret1) 3540 } 3541 3542 func GetTabbedTextExtent(hdc HDC, lpString string, chCount int32, nTabPositions int32, lpnTabStopPositions /*const*/ *int32) DWORD { 3543 lpStringStr := unicode16FromString(lpString) 3544 ret1 := syscall6(getTabbedTextExtent, 5, 3545 uintptr(hdc), 3546 uintptr(unsafe.Pointer(&lpStringStr[0])), 3547 uintptr(chCount), 3548 uintptr(nTabPositions), 3549 uintptr(unsafe.Pointer(lpnTabStopPositions)), 3550 0) 3551 return DWORD(ret1) 3552 } 3553 3554 func GetThreadDesktop(dwThreadId DWORD) HDESK { 3555 ret1 := syscall3(getThreadDesktop, 1, 3556 uintptr(dwThreadId), 3557 0, 3558 0) 3559 return HDESK(ret1) 3560 } 3561 3562 func GetTitleBarInfo(hwnd HWND, pti *TITLEBARINFO) bool { 3563 ret1 := syscall3(getTitleBarInfo, 2, 3564 uintptr(hwnd), 3565 uintptr(unsafe.Pointer(pti)), 3566 0) 3567 return ret1 != 0 3568 } 3569 3570 func GetTopWindow(hWnd HWND) HWND { 3571 ret1 := syscall3(getTopWindow, 1, 3572 uintptr(hWnd), 3573 0, 3574 0) 3575 return HWND(ret1) 3576 } 3577 3578 func GetTouchInputInfo(hTouchInput HTOUCHINPUT, cInputs UINT, pInputs *TOUCHINPUT, cbSize int32) bool { 3579 ret1 := syscall6(getTouchInputInfo, 4, 3580 uintptr(hTouchInput), 3581 uintptr(cInputs), 3582 uintptr(unsafe.Pointer(pInputs)), 3583 uintptr(cbSize), 3584 0, 3585 0) 3586 return ret1 != 0 3587 } 3588 3589 func GetUpdateRect(hWnd HWND, lpRect *RECT, bErase bool) bool { 3590 ret1 := syscall3(getUpdateRect, 3, 3591 uintptr(hWnd), 3592 uintptr(unsafe.Pointer(lpRect)), 3593 getUintptrFromBool(bErase)) 3594 return ret1 != 0 3595 } 3596 3597 func GetUpdateRgn(hWnd HWND, hRgn HRGN, bErase bool) int32 { 3598 ret1 := syscall3(getUpdateRgn, 3, 3599 uintptr(hWnd), 3600 uintptr(hRgn), 3601 getUintptrFromBool(bErase)) 3602 return int32(ret1) 3603 } 3604 3605 func GetUserObjectInformation(hObj HANDLE, nIndex int32, pvInfo uintptr, nLength DWORD, lpnLengthNeeded *uint32) bool { 3606 ret1 := syscall6(getUserObjectInformation, 5, 3607 uintptr(hObj), 3608 uintptr(nIndex), 3609 pvInfo, 3610 uintptr(nLength), 3611 uintptr(unsafe.Pointer(lpnLengthNeeded)), 3612 0) 3613 return ret1 != 0 3614 } 3615 3616 func GetUserObjectSecurity(hObj HANDLE, pSIRequested *SECURITY_INFORMATION, pSID PSECURITY_DESCRIPTOR, nLength DWORD, lpnLengthNeeded *uint32) bool { 3617 ret1 := syscall6(getUserObjectSecurity, 5, 3618 uintptr(hObj), 3619 uintptr(unsafe.Pointer(pSIRequested)), 3620 uintptr(unsafe.Pointer(pSID)), 3621 uintptr(nLength), 3622 uintptr(unsafe.Pointer(lpnLengthNeeded)), 3623 0) 3624 return ret1 != 0 3625 } 3626 3627 func GetWindow(hWnd HWND, uCmd UINT) HWND { 3628 ret1 := syscall3(getWindow, 2, 3629 uintptr(hWnd), 3630 uintptr(uCmd), 3631 0) 3632 return HWND(ret1) 3633 } 3634 3635 func GetWindowContextHelpId(unnamed0 HWND) DWORD { 3636 ret1 := syscall3(getWindowContextHelpId, 1, 3637 uintptr(unnamed0), 3638 0, 3639 0) 3640 return DWORD(ret1) 3641 } 3642 3643 func GetWindowDC(hWnd HWND) HDC { 3644 ret1 := syscall3(getWindowDC, 1, 3645 uintptr(hWnd), 3646 0, 3647 0) 3648 return HDC(ret1) 3649 } 3650 3651 func GetWindowInfo(hwnd HWND, pwi *WINDOWINFO) bool { 3652 ret1 := syscall3(getWindowInfo, 2, 3653 uintptr(hwnd), 3654 uintptr(unsafe.Pointer(pwi)), 3655 0) 3656 return ret1 != 0 3657 } 3658 3659 func GetWindowLongPtr(hWnd HWND, nIndex int32) uintptr { 3660 ret1 := syscall3(getWindowLongPtr, 2, 3661 uintptr(hWnd), 3662 uintptr(nIndex), 3663 0) 3664 return (uintptr)(unsafe.Pointer(ret1)) 3665 } 3666 3667 func GetWindowLong(hWnd HWND, nIndex int32) LONG { 3668 ret1 := syscall3(getWindowLong, 2, 3669 uintptr(hWnd), 3670 uintptr(nIndex), 3671 0) 3672 return LONG(ret1) 3673 } 3674 3675 func GetWindowModuleFileName(hwnd HWND, pszFileName LPWSTR, cchFileNameMax UINT) UINT { 3676 ret1 := syscall3(getWindowModuleFileName, 3, 3677 uintptr(hwnd), 3678 uintptr(unsafe.Pointer(pszFileName)), 3679 uintptr(cchFileNameMax)) 3680 return UINT(ret1) 3681 } 3682 3683 func GetWindowPlacement(hWnd HWND, lpwndpl *WINDOWPLACEMENT) bool { 3684 ret1 := syscall3(getWindowPlacement, 2, 3685 uintptr(hWnd), 3686 uintptr(unsafe.Pointer(lpwndpl)), 3687 0) 3688 return ret1 != 0 3689 } 3690 3691 func GetWindowRect(hWnd HWND, lpRect *RECT) bool { 3692 ret1 := syscall3(getWindowRect, 2, 3693 uintptr(hWnd), 3694 uintptr(unsafe.Pointer(lpRect)), 3695 0) 3696 return ret1 != 0 3697 } 3698 3699 func GetWindowRgn(hWnd HWND, hRgn HRGN) int32 { 3700 ret1 := syscall3(getWindowRgn, 2, 3701 uintptr(hWnd), 3702 uintptr(hRgn), 3703 0) 3704 return int32(ret1) 3705 } 3706 3707 func GetWindowRgnBox(hWnd HWND, lprc *RECT) int32 { 3708 ret1 := syscall3(getWindowRgnBox, 2, 3709 uintptr(hWnd), 3710 uintptr(unsafe.Pointer(lprc)), 3711 0) 3712 return int32(ret1) 3713 } 3714 3715 func GetWindowTextLength(hWnd HWND) int32 { 3716 ret1 := syscall3(getWindowTextLength, 1, 3717 uintptr(hWnd), 3718 0, 3719 0) 3720 return int32(ret1) 3721 } 3722 3723 func GetWindowText(hWnd HWND, lpString LPWSTR, nMaxCount int32) int32 { 3724 ret1 := syscall3(getWindowText, 3, 3725 uintptr(hWnd), 3726 uintptr(unsafe.Pointer(lpString)), 3727 uintptr(nMaxCount)) 3728 return int32(ret1) 3729 } 3730 3731 func GetWindowThreadProcessId(hWnd HWND, lpdwProcessId *uint32) DWORD { 3732 ret1 := syscall3(getWindowThreadProcessId, 2, 3733 uintptr(hWnd), 3734 uintptr(unsafe.Pointer(lpdwProcessId)), 3735 0) 3736 return DWORD(ret1) 3737 } 3738 3739 func GetWindowWord(hWnd HWND, nIndex int32) WORD { 3740 ret1 := syscall3(getWindowWord, 2, 3741 uintptr(hWnd), 3742 uintptr(nIndex), 3743 0) 3744 return WORD(ret1) 3745 } 3746 3747 func GrayString(hDC HDC, hBrush HBRUSH, lpOutputFunc GRAYSTRINGPROC, lpData LPARAM, nCount int32, x int32, y int32, nWidth int32, nHeight int32) bool { 3748 lpOutputFuncCallback := syscall.NewCallback(func(hdcRawArg HDC, lParamRawArg LPARAM, cchDataRawArg int) uintptr { 3749 ret := lpOutputFunc(hdcRawArg, lParamRawArg, cchDataRawArg) 3750 return uintptr(ret) 3751 }) 3752 ret1 := syscall9(grayString, 9, 3753 uintptr(hDC), 3754 uintptr(hBrush), 3755 lpOutputFuncCallback, 3756 uintptr(lpData), 3757 uintptr(nCount), 3758 uintptr(x), 3759 uintptr(y), 3760 uintptr(nWidth), 3761 uintptr(nHeight)) 3762 return ret1 != 0 3763 } 3764 3765 func HideCaret(hWnd HWND) bool { 3766 ret1 := syscall3(hideCaret, 1, 3767 uintptr(hWnd), 3768 0, 3769 0) 3770 return ret1 != 0 3771 } 3772 3773 func HiliteMenuItem(hWnd HWND, hMenu HMENU, uIDHiliteItem UINT, uHilite UINT) bool { 3774 ret1 := syscall6(hiliteMenuItem, 4, 3775 uintptr(hWnd), 3776 uintptr(hMenu), 3777 uintptr(uIDHiliteItem), 3778 uintptr(uHilite), 3779 0, 3780 0) 3781 return ret1 != 0 3782 } 3783 3784 func IMPGetIME(unnamed0 HWND, unnamed1 *IMEPRO) bool { 3785 ret1 := syscall3(iMPGetIME, 2, 3786 uintptr(unnamed0), 3787 uintptr(unsafe.Pointer(unnamed1)), 3788 0) 3789 return ret1 != 0 3790 } 3791 3792 func IMPQueryIME(unnamed0 *IMEPRO) bool { 3793 ret1 := syscall3(iMPQueryIME, 1, 3794 uintptr(unsafe.Pointer(unnamed0)), 3795 0, 3796 0) 3797 return ret1 != 0 3798 } 3799 3800 func IMPSetIME(unnamed0 HWND, unnamed1 *IMEPRO) bool { 3801 ret1 := syscall3(iMPSetIME, 2, 3802 uintptr(unnamed0), 3803 uintptr(unsafe.Pointer(unnamed1)), 3804 0) 3805 return ret1 != 0 3806 } 3807 3808 func ImpersonateDdeClientWindow(hWndClient HWND, hWndServer HWND) bool { 3809 ret1 := syscall3(impersonateDdeClientWindow, 2, 3810 uintptr(hWndClient), 3811 uintptr(hWndServer), 3812 0) 3813 return ret1 != 0 3814 } 3815 3816 func InSendMessage() bool { 3817 ret1 := syscall3(inSendMessage, 0, 3818 0, 3819 0, 3820 0) 3821 return ret1 != 0 3822 } 3823 3824 func InSendMessageEx(lpReserved LPVOID) DWORD { 3825 ret1 := syscall3(inSendMessageEx, 1, 3826 uintptr(unsafe.Pointer(lpReserved)), 3827 0, 3828 0) 3829 return DWORD(ret1) 3830 } 3831 3832 func InflateRect(lprc *RECT, dx int32, dy int32) bool { 3833 ret1 := syscall3(inflateRect, 3, 3834 uintptr(unsafe.Pointer(lprc)), 3835 uintptr(dx), 3836 uintptr(dy)) 3837 return ret1 != 0 3838 } 3839 3840 func InsertMenuItem(hmenu HMENU, item UINT, fByPosition bool, lpmi /*const*/ *MENUITEMINFO) bool { 3841 ret1 := syscall6(insertMenuItem, 4, 3842 uintptr(hmenu), 3843 uintptr(item), 3844 getUintptrFromBool(fByPosition), 3845 uintptr(unsafe.Pointer(lpmi)), 3846 0, 3847 0) 3848 return ret1 != 0 3849 } 3850 3851 func InsertMenu(hMenu HMENU, uPosition UINT, uFlags UINT, uIDNewItem *uint32, lpNewItem string) bool { 3852 lpNewItemStr := unicode16FromString(lpNewItem) 3853 ret1 := syscall6(insertMenu, 5, 3854 uintptr(hMenu), 3855 uintptr(uPosition), 3856 uintptr(uFlags), 3857 uintptr(unsafe.Pointer(uIDNewItem)), 3858 uintptr(unsafe.Pointer(&lpNewItemStr[0])), 3859 0) 3860 return ret1 != 0 3861 } 3862 3863 func InternalGetWindowText(hWnd HWND, pString LPWSTR, cchMaxCount int32) int32 { 3864 ret1 := syscall3(internalGetWindowText, 3, 3865 uintptr(hWnd), 3866 uintptr(unsafe.Pointer(pString)), 3867 uintptr(cchMaxCount)) 3868 return int32(ret1) 3869 } 3870 3871 func IntersectRect(lprcDst *RECT, lprcSrc1 /*const*/ *RECT, lprcSrc2 /*const*/ *RECT) bool { 3872 ret1 := syscall3(intersectRect, 3, 3873 uintptr(unsafe.Pointer(lprcDst)), 3874 uintptr(unsafe.Pointer(lprcSrc1)), 3875 uintptr(unsafe.Pointer(lprcSrc2))) 3876 return ret1 != 0 3877 } 3878 3879 func InvalidateRect(hWnd HWND, lpRect /*const*/ *RECT, bErase bool) bool { 3880 ret1 := syscall3(invalidateRect, 3, 3881 uintptr(hWnd), 3882 uintptr(unsafe.Pointer(lpRect)), 3883 getUintptrFromBool(bErase)) 3884 return ret1 != 0 3885 } 3886 3887 func InvalidateRgn(hWnd HWND, hRgn HRGN, bErase bool) bool { 3888 ret1 := syscall3(invalidateRgn, 3, 3889 uintptr(hWnd), 3890 uintptr(hRgn), 3891 getUintptrFromBool(bErase)) 3892 return ret1 != 0 3893 } 3894 3895 func InvertRect(hDC HDC, lprc /*const*/ *RECT) bool { 3896 ret1 := syscall3(invertRect, 2, 3897 uintptr(hDC), 3898 uintptr(unsafe.Pointer(lprc)), 3899 0) 3900 return ret1 != 0 3901 } 3902 3903 func IsCharAlphaNumeric(ch WCHAR) bool { 3904 ret1 := syscall3(isCharAlphaNumeric, 1, 3905 uintptr(ch), 3906 0, 3907 0) 3908 return ret1 != 0 3909 } 3910 3911 func IsCharAlpha(ch WCHAR) bool { 3912 ret1 := syscall3(isCharAlpha, 1, 3913 uintptr(ch), 3914 0, 3915 0) 3916 return ret1 != 0 3917 } 3918 3919 func IsCharLower(ch WCHAR) bool { 3920 ret1 := syscall3(isCharLower, 1, 3921 uintptr(ch), 3922 0, 3923 0) 3924 return ret1 != 0 3925 } 3926 3927 func IsCharUpper(ch WCHAR) bool { 3928 ret1 := syscall3(isCharUpper, 1, 3929 uintptr(ch), 3930 0, 3931 0) 3932 return ret1 != 0 3933 } 3934 3935 func IsChild(hWndParent HWND, hWnd HWND) bool { 3936 ret1 := syscall3(isChild, 2, 3937 uintptr(hWndParent), 3938 uintptr(hWnd), 3939 0) 3940 return ret1 != 0 3941 } 3942 3943 func IsClipboardFormatAvailable(format UINT) bool { 3944 ret1 := syscall3(isClipboardFormatAvailable, 1, 3945 uintptr(format), 3946 0, 3947 0) 3948 return ret1 != 0 3949 } 3950 3951 func IsDialogMessage(hDlg HWND, lpMsg *MSG) bool { 3952 ret1 := syscall3(isDialogMessage, 2, 3953 uintptr(hDlg), 3954 uintptr(unsafe.Pointer(lpMsg)), 3955 0) 3956 return ret1 != 0 3957 } 3958 3959 func IsDlgButtonChecked(hDlg HWND, nIDButton int32) UINT { 3960 ret1 := syscall3(isDlgButtonChecked, 2, 3961 uintptr(hDlg), 3962 uintptr(nIDButton), 3963 0) 3964 return UINT(ret1) 3965 } 3966 3967 func IsGUIThread(bConvert bool) bool { 3968 ret1 := syscall3(isGUIThread, 1, 3969 getUintptrFromBool(bConvert), 3970 0, 3971 0) 3972 return ret1 != 0 3973 } 3974 3975 func IsHungAppWindow(hwnd HWND) bool { 3976 ret1 := syscall3(isHungAppWindow, 1, 3977 uintptr(hwnd), 3978 0, 3979 0) 3980 return ret1 != 0 3981 } 3982 3983 func IsIconic(hWnd HWND) bool { 3984 ret1 := syscall3(isIconic, 1, 3985 uintptr(hWnd), 3986 0, 3987 0) 3988 return ret1 != 0 3989 } 3990 3991 func IsMenu(hMenu HMENU) bool { 3992 ret1 := syscall3(isMenu, 1, 3993 uintptr(hMenu), 3994 0, 3995 0) 3996 return ret1 != 0 3997 } 3998 3999 func IsRectEmpty(lprc /*const*/ *RECT) bool { 4000 ret1 := syscall3(isRectEmpty, 1, 4001 uintptr(unsafe.Pointer(lprc)), 4002 0, 4003 0) 4004 return ret1 != 0 4005 } 4006 4007 func IsTouchWindow(hwnd HWND, pulFlags *uint32) bool { 4008 ret1 := syscall3(isTouchWindow, 2, 4009 uintptr(hwnd), 4010 uintptr(unsafe.Pointer(pulFlags)), 4011 0) 4012 return ret1 != 0 4013 } 4014 4015 func IsWinEventHookInstalled(event DWORD) bool { 4016 ret1 := syscall3(isWinEventHookInstalled, 1, 4017 uintptr(event), 4018 0, 4019 0) 4020 return ret1 != 0 4021 } 4022 4023 func IsWindow(hWnd HWND) bool { 4024 ret1 := syscall3(isWindow, 1, 4025 uintptr(hWnd), 4026 0, 4027 0) 4028 return ret1 != 0 4029 } 4030 4031 func IsWindowEnabled(hWnd HWND) bool { 4032 ret1 := syscall3(isWindowEnabled, 1, 4033 uintptr(hWnd), 4034 0, 4035 0) 4036 return ret1 != 0 4037 } 4038 4039 func IsWindowUnicode(hWnd HWND) bool { 4040 ret1 := syscall3(isWindowUnicode, 1, 4041 uintptr(hWnd), 4042 0, 4043 0) 4044 return ret1 != 0 4045 } 4046 4047 func IsWindowVisible(hWnd HWND) bool { 4048 ret1 := syscall3(isWindowVisible, 1, 4049 uintptr(hWnd), 4050 0, 4051 0) 4052 return ret1 != 0 4053 } 4054 4055 func IsWow64Message() bool { 4056 ret1 := syscall3(isWow64Message, 0, 4057 0, 4058 0, 4059 0) 4060 return ret1 != 0 4061 } 4062 4063 func IsZoomed(hWnd HWND) bool { 4064 ret1 := syscall3(isZoomed, 1, 4065 uintptr(hWnd), 4066 0, 4067 0) 4068 return ret1 != 0 4069 } 4070 4071 func KillTimer(hWnd HWND, uIDEvent *uint32) bool { 4072 ret1 := syscall3(killTimer, 2, 4073 uintptr(hWnd), 4074 uintptr(unsafe.Pointer(uIDEvent)), 4075 0) 4076 return ret1 != 0 4077 } 4078 4079 func LoadAccelerators(hInstance HINSTANCE, lpTableName string) HACCEL { 4080 lpTableNameStr := unicode16FromString(lpTableName) 4081 ret1 := syscall3(loadAccelerators, 2, 4082 uintptr(hInstance), 4083 uintptr(unsafe.Pointer(&lpTableNameStr[0])), 4084 0) 4085 return HACCEL(ret1) 4086 } 4087 4088 func LoadBitmap(hInstance HINSTANCE, lpBitmapName string) HBITMAP { 4089 lpBitmapNameStr := unicode16FromString(lpBitmapName) 4090 ret1 := syscall3(loadBitmap, 2, 4091 uintptr(hInstance), 4092 uintptr(unsafe.Pointer(&lpBitmapNameStr[0])), 4093 0) 4094 return HBITMAP(ret1) 4095 } 4096 4097 func LoadCursorFromFile(lpFileName string) HCURSOR { 4098 lpFileNameStr := unicode16FromString(lpFileName) 4099 ret1 := syscall3(loadCursorFromFile, 1, 4100 uintptr(unsafe.Pointer(&lpFileNameStr[0])), 4101 0, 4102 0) 4103 return HCURSOR(ret1) 4104 } 4105 4106 func LoadCursor(hInstance HINSTANCE, lpCursorName string) HCURSOR { 4107 lpCursorNameStr := unicode16FromString(lpCursorName) 4108 ret1 := syscall3(loadCursor, 2, 4109 uintptr(hInstance), 4110 uintptr(unsafe.Pointer(&lpCursorNameStr[0])), 4111 0) 4112 return HCURSOR(ret1) 4113 } 4114 4115 func LoadIcon(hInstance HINSTANCE, lpIconName string) HICON { 4116 lpIconNameStr := unicode16FromString(lpIconName) 4117 ret1 := syscall3(loadIcon, 2, 4118 uintptr(hInstance), 4119 uintptr(unsafe.Pointer(&lpIconNameStr[0])), 4120 0) 4121 return HICON(ret1) 4122 } 4123 4124 func LoadImage(hInst HINSTANCE, name string, aType UINT, cx int32, cy int32, fuLoad UINT) HANDLE { 4125 nameStr := unicode16FromString(name) 4126 ret1 := syscall6(loadImage, 6, 4127 uintptr(hInst), 4128 uintptr(unsafe.Pointer(&nameStr[0])), 4129 uintptr(aType), 4130 uintptr(cx), 4131 uintptr(cy), 4132 uintptr(fuLoad)) 4133 return HANDLE(ret1) 4134 } 4135 4136 func LoadKeyboardLayout(pwszKLID string, flags UINT) HKL { 4137 pwszKLIDStr := unicode16FromString(pwszKLID) 4138 ret1 := syscall3(loadKeyboardLayout, 2, 4139 uintptr(unsafe.Pointer(&pwszKLIDStr[0])), 4140 uintptr(flags), 4141 0) 4142 return HKL(ret1) 4143 } 4144 4145 func LoadMenuIndirect(lpMenuTemplate /*const*/ uintptr) HMENU { 4146 ret1 := syscall3(loadMenuIndirect, 1, 4147 lpMenuTemplate, 4148 0, 4149 0) 4150 return HMENU(ret1) 4151 } 4152 4153 func LoadMenu(hInstance HINSTANCE, lpMenuName string) HMENU { 4154 lpMenuNameStr := unicode16FromString(lpMenuName) 4155 ret1 := syscall3(loadMenu, 2, 4156 uintptr(hInstance), 4157 uintptr(unsafe.Pointer(&lpMenuNameStr[0])), 4158 0) 4159 return HMENU(ret1) 4160 } 4161 4162 func LoadString(hInstance HINSTANCE, uID UINT, lpBuffer LPWSTR, cchBufferMax int32) int32 { 4163 ret1 := syscall6(loadString, 4, 4164 uintptr(hInstance), 4165 uintptr(uID), 4166 uintptr(unsafe.Pointer(lpBuffer)), 4167 uintptr(cchBufferMax), 4168 0, 4169 0) 4170 return int32(ret1) 4171 } 4172 4173 func LockSetForegroundWindow(uLockCode UINT) bool { 4174 ret1 := syscall3(lockSetForegroundWindow, 1, 4175 uintptr(uLockCode), 4176 0, 4177 0) 4178 return ret1 != 0 4179 } 4180 4181 func LockWindowUpdate(hWndLock HWND) bool { 4182 ret1 := syscall3(lockWindowUpdate, 1, 4183 uintptr(hWndLock), 4184 0, 4185 0) 4186 return ret1 != 0 4187 } 4188 4189 func LockWorkStation() bool { 4190 ret1 := syscall3(lockWorkStation, 0, 4191 0, 4192 0, 4193 0) 4194 return ret1 != 0 4195 } 4196 4197 func LookupIconIdFromDirectory(presbits *byte, fIcon bool) int32 { 4198 ret1 := syscall3(lookupIconIdFromDirectory, 2, 4199 uintptr(unsafe.Pointer(presbits)), 4200 getUintptrFromBool(fIcon), 4201 0) 4202 return int32(ret1) 4203 } 4204 4205 func LookupIconIdFromDirectoryEx(presbits *byte, fIcon bool, cxDesired int32, cyDesired int32, flags UINT) int32 { 4206 ret1 := syscall6(lookupIconIdFromDirectoryEx, 5, 4207 uintptr(unsafe.Pointer(presbits)), 4208 getUintptrFromBool(fIcon), 4209 uintptr(cxDesired), 4210 uintptr(cyDesired), 4211 uintptr(flags), 4212 0) 4213 return int32(ret1) 4214 } 4215 4216 func MapDialogRect(hDlg HWND, lpRect *RECT) bool { 4217 ret1 := syscall3(mapDialogRect, 2, 4218 uintptr(hDlg), 4219 uintptr(unsafe.Pointer(lpRect)), 4220 0) 4221 return ret1 != 0 4222 } 4223 4224 func MapVirtualKeyEx(uCode UINT, uMapType UINT, dwhkl HKL) UINT { 4225 ret1 := syscall3(mapVirtualKeyEx, 3, 4226 uintptr(uCode), 4227 uintptr(uMapType), 4228 uintptr(dwhkl)) 4229 return UINT(ret1) 4230 } 4231 4232 func MapVirtualKey(uCode UINT, uMapType UINT) UINT { 4233 ret1 := syscall3(mapVirtualKey, 2, 4234 uintptr(uCode), 4235 uintptr(uMapType), 4236 0) 4237 return UINT(ret1) 4238 } 4239 4240 func MapWindowPoints(hWndFrom HWND, hWndTo HWND, lpPoints *POINT, cPoints UINT) int32 { 4241 ret1 := syscall6(mapWindowPoints, 4, 4242 uintptr(hWndFrom), 4243 uintptr(hWndTo), 4244 uintptr(unsafe.Pointer(lpPoints)), 4245 uintptr(cPoints), 4246 0, 4247 0) 4248 return int32(ret1) 4249 } 4250 4251 func MenuItemFromPoint(hWnd HWND, hMenu HMENU, ptScreen POINT) int32 { 4252 ret1 := syscall6(menuItemFromPoint, 4, 4253 uintptr(hWnd), 4254 uintptr(hMenu), 4255 uintptr(ptScreen.X), 4256 uintptr(ptScreen.Y), 4257 0, 4258 0) 4259 return int32(ret1) 4260 } 4261 4262 func MessageBeep(uType UINT) bool { 4263 ret1 := syscall3(messageBeep, 1, 4264 uintptr(uType), 4265 0, 4266 0) 4267 return ret1 != 0 4268 } 4269 4270 func MessageBoxEx(hWnd HWND, lpText string, lpCaption string, uType UINT, wLanguageId WORD) int32 { 4271 lpTextStr := unicode16FromString(lpText) 4272 lpCaptionStr := unicode16FromString(lpCaption) 4273 ret1 := syscall6(messageBoxEx, 5, 4274 uintptr(hWnd), 4275 uintptr(unsafe.Pointer(&lpTextStr[0])), 4276 uintptr(unsafe.Pointer(&lpCaptionStr[0])), 4277 uintptr(uType), 4278 uintptr(wLanguageId), 4279 0) 4280 return int32(ret1) 4281 } 4282 4283 func MessageBoxIndirect(lpmbp /*const*/ *MSGBOXPARAMS) int32 { 4284 ret1 := syscall3(messageBoxIndirect, 1, 4285 uintptr(unsafe.Pointer(lpmbp)), 4286 0, 4287 0) 4288 return int32(ret1) 4289 } 4290 4291 func MessageBox(hWnd HWND, lpText string, lpCaption string, uType UINT) int32 { 4292 lpTextStr := unicode16FromString(lpText) 4293 lpCaptionStr := unicode16FromString(lpCaption) 4294 ret1 := syscall6(messageBox, 4, 4295 uintptr(hWnd), 4296 uintptr(unsafe.Pointer(&lpTextStr[0])), 4297 uintptr(unsafe.Pointer(&lpCaptionStr[0])), 4298 uintptr(uType), 4299 0, 4300 0) 4301 return int32(ret1) 4302 } 4303 4304 func ModifyMenu(hMnu HMENU, uPosition UINT, uFlags UINT, uIDNewItem *uint32, lpNewItem string) bool { 4305 lpNewItemStr := unicode16FromString(lpNewItem) 4306 ret1 := syscall6(modifyMenu, 5, 4307 uintptr(hMnu), 4308 uintptr(uPosition), 4309 uintptr(uFlags), 4310 uintptr(unsafe.Pointer(uIDNewItem)), 4311 uintptr(unsafe.Pointer(&lpNewItemStr[0])), 4312 0) 4313 return ret1 != 0 4314 } 4315 4316 func MonitorFromPoint(pt POINT, dwFlags DWORD) HMONITOR { 4317 ret1 := syscall3(monitorFromPoint, 3, 4318 uintptr(pt.X), 4319 uintptr(pt.Y), 4320 uintptr(dwFlags)) 4321 return HMONITOR(ret1) 4322 } 4323 4324 func MonitorFromRect(lprc /*const*/ *RECT, dwFlags DWORD) HMONITOR { 4325 ret1 := syscall3(monitorFromRect, 2, 4326 uintptr(unsafe.Pointer(lprc)), 4327 uintptr(dwFlags), 4328 0) 4329 return HMONITOR(ret1) 4330 } 4331 4332 func MonitorFromWindow(hwnd HWND, dwFlags DWORD) HMONITOR { 4333 ret1 := syscall3(monitorFromWindow, 2, 4334 uintptr(hwnd), 4335 uintptr(dwFlags), 4336 0) 4337 return HMONITOR(ret1) 4338 } 4339 4340 func MoveWindow(hWnd HWND, x int32, y int32, nWidth int32, nHeight int32, bRepaint bool) bool { 4341 ret1 := syscall6(moveWindow, 6, 4342 uintptr(hWnd), 4343 uintptr(x), 4344 uintptr(y), 4345 uintptr(nWidth), 4346 uintptr(nHeight), 4347 getUintptrFromBool(bRepaint)) 4348 return ret1 != 0 4349 } 4350 4351 func MsgWaitForMultipleObjects(nCount DWORD, pHandles /*const*/ *HANDLE, fWaitAll bool, dwMilliseconds DWORD, dwWakeMask DWORD) DWORD { 4352 ret1 := syscall6(msgWaitForMultipleObjects, 5, 4353 uintptr(nCount), 4354 uintptr(unsafe.Pointer(pHandles)), 4355 getUintptrFromBool(fWaitAll), 4356 uintptr(dwMilliseconds), 4357 uintptr(dwWakeMask), 4358 0) 4359 return DWORD(ret1) 4360 } 4361 4362 func MsgWaitForMultipleObjectsEx(nCount DWORD, pHandles /*const*/ *HANDLE, dwMilliseconds DWORD, dwWakeMask DWORD, dwFlags DWORD) DWORD { 4363 ret1 := syscall6(msgWaitForMultipleObjectsEx, 5, 4364 uintptr(nCount), 4365 uintptr(unsafe.Pointer(pHandles)), 4366 uintptr(dwMilliseconds), 4367 uintptr(dwWakeMask), 4368 uintptr(dwFlags), 4369 0) 4370 return DWORD(ret1) 4371 } 4372 4373 func NotifyWinEvent(event DWORD, hwnd HWND, idObject LONG, idChild LONG) { 4374 syscall6(notifyWinEvent, 4, 4375 uintptr(event), 4376 uintptr(hwnd), 4377 uintptr(idObject), 4378 uintptr(idChild), 4379 0, 4380 0) 4381 } 4382 4383 func OemKeyScan(wOemChar WORD) DWORD { 4384 ret1 := syscall3(oemKeyScan, 1, 4385 uintptr(wOemChar), 4386 0, 4387 0) 4388 return DWORD(ret1) 4389 } 4390 4391 func OemToCharBuff(lpszSrc /*const*/ LPCSTR, lpszDst LPWSTR, cchDstLength DWORD) bool { 4392 ret1 := syscall3(oemToCharBuff, 3, 4393 uintptr(unsafe.Pointer(lpszSrc)), 4394 uintptr(unsafe.Pointer(lpszDst)), 4395 uintptr(cchDstLength)) 4396 return ret1 != 0 4397 } 4398 4399 func OemToChar(lpszSrc /*const*/ LPCSTR, lpszDst LPWSTR) bool { 4400 ret1 := syscall3(oemToChar, 2, 4401 uintptr(unsafe.Pointer(lpszSrc)), 4402 uintptr(unsafe.Pointer(lpszDst)), 4403 0) 4404 return ret1 != 0 4405 } 4406 4407 func OffsetRect(lprc *RECT, dx int32, dy int32) bool { 4408 ret1 := syscall3(offsetRect, 3, 4409 uintptr(unsafe.Pointer(lprc)), 4410 uintptr(dx), 4411 uintptr(dy)) 4412 return ret1 != 0 4413 } 4414 4415 func OpenClipboard(hWndNewOwner HWND) bool { 4416 ret1 := syscall3(openClipboard, 1, 4417 uintptr(hWndNewOwner), 4418 0, 4419 0) 4420 return ret1 != 0 4421 } 4422 4423 func OpenDesktop(lpszDesktop string, dwFlags DWORD, fInherit bool, dwDesiredAccess ACCESS_MASK) HDESK { 4424 lpszDesktopStr := unicode16FromString(lpszDesktop) 4425 ret1 := syscall6(openDesktop, 4, 4426 uintptr(unsafe.Pointer(&lpszDesktopStr[0])), 4427 uintptr(dwFlags), 4428 getUintptrFromBool(fInherit), 4429 uintptr(dwDesiredAccess), 4430 0, 4431 0) 4432 return HDESK(ret1) 4433 } 4434 4435 func OpenIcon(hWnd HWND) bool { 4436 ret1 := syscall3(openIcon, 1, 4437 uintptr(hWnd), 4438 0, 4439 0) 4440 return ret1 != 0 4441 } 4442 4443 func OpenInputDesktop(dwFlags DWORD, fInherit bool, dwDesiredAccess ACCESS_MASK) HDESK { 4444 ret1 := syscall3(openInputDesktop, 3, 4445 uintptr(dwFlags), 4446 getUintptrFromBool(fInherit), 4447 uintptr(dwDesiredAccess)) 4448 return HDESK(ret1) 4449 } 4450 4451 func OpenWindowStation(lpszWinSta string, fInherit bool, dwDesiredAccess ACCESS_MASK) HWINSTA { 4452 lpszWinStaStr := unicode16FromString(lpszWinSta) 4453 ret1 := syscall3(openWindowStation, 3, 4454 uintptr(unsafe.Pointer(&lpszWinStaStr[0])), 4455 getUintptrFromBool(fInherit), 4456 uintptr(dwDesiredAccess)) 4457 return HWINSTA(ret1) 4458 } 4459 4460 func PackDDElParam(msg UINT, uiLo *uint32, uiHi *uint32) LPARAM { 4461 ret1 := syscall3(packDDElParam, 3, 4462 uintptr(msg), 4463 uintptr(unsafe.Pointer(uiLo)), 4464 uintptr(unsafe.Pointer(uiHi))) 4465 return LPARAM(ret1) 4466 } 4467 4468 func PaintDesktop(hdc HDC) bool { 4469 ret1 := syscall3(paintDesktop, 1, 4470 uintptr(hdc), 4471 0, 4472 0) 4473 return ret1 != 0 4474 } 4475 4476 func PeekMessage(lpMsg *MSG, hWnd HWND, wMsgFilterMin UINT, wMsgFilterMax UINT, wRemoveMsg UINT) bool { 4477 ret1 := syscall6(peekMessage, 5, 4478 uintptr(unsafe.Pointer(lpMsg)), 4479 uintptr(hWnd), 4480 uintptr(wMsgFilterMin), 4481 uintptr(wMsgFilterMax), 4482 uintptr(wRemoveMsg), 4483 0) 4484 return ret1 != 0 4485 } 4486 4487 func PostMessage(hWnd HWND, msg UINT, wParam WPARAM, lParam LPARAM) bool { 4488 ret1 := syscall6(postMessage, 4, 4489 uintptr(hWnd), 4490 uintptr(msg), 4491 uintptr(wParam), 4492 uintptr(lParam), 4493 0, 4494 0) 4495 return ret1 != 0 4496 } 4497 4498 func PostQuitMessage(nExitCode int32) { 4499 syscall3(postQuitMessage, 1, 4500 uintptr(nExitCode), 4501 0, 4502 0) 4503 } 4504 4505 func PostThreadMessage(idThread DWORD, msg UINT, wParam WPARAM, lParam LPARAM) bool { 4506 ret1 := syscall6(postThreadMessage, 4, 4507 uintptr(idThread), 4508 uintptr(msg), 4509 uintptr(wParam), 4510 uintptr(lParam), 4511 0, 4512 0) 4513 return ret1 != 0 4514 } 4515 4516 func PrintWindow(hwnd HWND, hdcBlt HDC, nFlags UINT) bool { 4517 ret1 := syscall3(printWindow, 3, 4518 uintptr(hwnd), 4519 uintptr(hdcBlt), 4520 uintptr(nFlags)) 4521 return ret1 != 0 4522 } 4523 4524 func PrivateExtractIcons(szFileName string, nIconIndex int32, cxIcon int32, cyIcon int32, phicon *HICON, piconid *UINT, nIcons UINT, flags UINT) UINT { 4525 szFileNameStr := unicode16FromString(szFileName) 4526 ret1 := syscall9(privateExtractIcons, 8, 4527 uintptr(unsafe.Pointer(&szFileNameStr[0])), 4528 uintptr(nIconIndex), 4529 uintptr(cxIcon), 4530 uintptr(cyIcon), 4531 uintptr(unsafe.Pointer(phicon)), 4532 uintptr(unsafe.Pointer(piconid)), 4533 uintptr(nIcons), 4534 uintptr(flags), 4535 0) 4536 return UINT(ret1) 4537 } 4538 4539 func PtInRect(lprc /*const*/ *RECT, pt POINT) bool { 4540 ret1 := syscall3(ptInRect, 3, 4541 uintptr(unsafe.Pointer(lprc)), 4542 uintptr(pt.X), 4543 uintptr(pt.Y)) 4544 return ret1 != 0 4545 } 4546 4547 func RealChildWindowFromPoint(hwndParent HWND, ptParentClientCoords POINT) HWND { 4548 ret1 := syscall3(realChildWindowFromPoint, 3, 4549 uintptr(hwndParent), 4550 uintptr(ptParentClientCoords.X), 4551 uintptr(ptParentClientCoords.Y)) 4552 return HWND(ret1) 4553 } 4554 4555 func RealGetWindowClass(hwnd HWND, ptszClassName LPWSTR, cchClassNameMax UINT) UINT { 4556 ret1 := syscall3(realGetWindowClass, 3, 4557 uintptr(hwnd), 4558 uintptr(unsafe.Pointer(ptszClassName)), 4559 uintptr(cchClassNameMax)) 4560 return UINT(ret1) 4561 } 4562 4563 func RedrawWindow(hWnd HWND, lprcUpdate /*const*/ *RECT, hrgnUpdate HRGN, flags UINT) bool { 4564 ret1 := syscall6(redrawWindow, 4, 4565 uintptr(hWnd), 4566 uintptr(unsafe.Pointer(lprcUpdate)), 4567 uintptr(hrgnUpdate), 4568 uintptr(flags), 4569 0, 4570 0) 4571 return ret1 != 0 4572 } 4573 4574 func RegisterClassEx(unnamed0 /*const*/ *WNDCLASSEX) ATOM { 4575 ret1 := syscall3(registerClassEx, 1, 4576 uintptr(unsafe.Pointer(unnamed0)), 4577 0, 4578 0) 4579 return ATOM(ret1) 4580 } 4581 4582 func RegisterClass(lpWndClass /*const*/ *WNDCLASS) ATOM { 4583 ret1 := syscall3(registerClass, 1, 4584 uintptr(unsafe.Pointer(lpWndClass)), 4585 0, 4586 0) 4587 return ATOM(ret1) 4588 } 4589 4590 func RegisterClipboardFormat(lpszFormat string) UINT { 4591 lpszFormatStr := unicode16FromString(lpszFormat) 4592 ret1 := syscall3(registerClipboardFormat, 1, 4593 uintptr(unsafe.Pointer(&lpszFormatStr[0])), 4594 0, 4595 0) 4596 return UINT(ret1) 4597 } 4598 4599 func RegisterDeviceNotification(hRecipient HANDLE, notificationFilter LPVOID, flags DWORD) HDEVNOTIFY { 4600 ret1 := syscall3(registerDeviceNotification, 3, 4601 uintptr(hRecipient), 4602 uintptr(unsafe.Pointer(notificationFilter)), 4603 uintptr(flags)) 4604 return HDEVNOTIFY(ret1) 4605 } 4606 4607 func RegisterHotKey(hWnd HWND, id int32, fsModifiers UINT, vk UINT) bool { 4608 ret1 := syscall6(registerHotKey, 4, 4609 uintptr(hWnd), 4610 uintptr(id), 4611 uintptr(fsModifiers), 4612 uintptr(vk), 4613 0, 4614 0) 4615 return ret1 != 0 4616 } 4617 4618 func RegisterPowerSettingNotification(hRecipient HANDLE, powerSettingGuid /*const*/ *GUID, flags DWORD) HPOWERNOTIFY { 4619 ret1 := syscall3(registerPowerSettingNotification, 3, 4620 uintptr(hRecipient), 4621 uintptr(unsafe.Pointer(powerSettingGuid)), 4622 uintptr(flags)) 4623 return HPOWERNOTIFY(ret1) 4624 } 4625 4626 func RegisterRawInputDevices(pRawInputDevices /*const*/ *RAWINPUTDEVICE, uiNumDevices UINT, cbSize UINT) bool { 4627 ret1 := syscall3(registerRawInputDevices, 3, 4628 uintptr(unsafe.Pointer(pRawInputDevices)), 4629 uintptr(uiNumDevices), 4630 uintptr(cbSize)) 4631 return ret1 != 0 4632 } 4633 4634 func RegisterShellHookWindow(hwnd HWND) bool { 4635 ret1 := syscall3(registerShellHookWindow, 1, 4636 uintptr(hwnd), 4637 0, 4638 0) 4639 return ret1 != 0 4640 } 4641 4642 func RegisterTouchWindow(hwnd HWND, ulFlags ULONG) bool { 4643 ret1 := syscall3(registerTouchWindow, 2, 4644 uintptr(hwnd), 4645 uintptr(ulFlags), 4646 0) 4647 return ret1 != 0 4648 } 4649 4650 func RegisterWindowMessage(lpString string) UINT { 4651 lpStringStr := unicode16FromString(lpString) 4652 ret1 := syscall3(registerWindowMessage, 1, 4653 uintptr(unsafe.Pointer(&lpStringStr[0])), 4654 0, 4655 0) 4656 return UINT(ret1) 4657 } 4658 4659 func ReleaseCapture() bool { 4660 ret1 := syscall3(releaseCapture, 0, 4661 0, 4662 0, 4663 0) 4664 return ret1 != 0 4665 } 4666 4667 func ReleaseDC(hWnd HWND, hDC HDC) int32 { 4668 ret1 := syscall3(releaseDC, 2, 4669 uintptr(hWnd), 4670 uintptr(hDC), 4671 0) 4672 return int32(ret1) 4673 } 4674 4675 func RemoveMenu(hMenu HMENU, uPosition UINT, uFlags UINT) bool { 4676 ret1 := syscall3(removeMenu, 3, 4677 uintptr(hMenu), 4678 uintptr(uPosition), 4679 uintptr(uFlags)) 4680 return ret1 != 0 4681 } 4682 4683 func RemoveProp(hWnd HWND, lpString string) HANDLE { 4684 lpStringStr := unicode16FromString(lpString) 4685 ret1 := syscall3(removeProp, 2, 4686 uintptr(hWnd), 4687 uintptr(unsafe.Pointer(&lpStringStr[0])), 4688 0) 4689 return HANDLE(ret1) 4690 } 4691 4692 func ReplyMessage(lResult LRESULT) bool { 4693 ret1 := syscall3(replyMessage, 1, 4694 uintptr(lResult), 4695 0, 4696 0) 4697 return ret1 != 0 4698 } 4699 4700 func ReuseDDElParam(lParam LPARAM, msgIn UINT, msgOut UINT, uiLo *uint32, uiHi *uint32) LPARAM { 4701 ret1 := syscall6(reuseDDElParam, 5, 4702 uintptr(lParam), 4703 uintptr(msgIn), 4704 uintptr(msgOut), 4705 uintptr(unsafe.Pointer(uiLo)), 4706 uintptr(unsafe.Pointer(uiHi)), 4707 0) 4708 return LPARAM(ret1) 4709 } 4710 4711 func ScreenToClient(hWnd HWND, lpPoint *POINT) bool { 4712 ret1 := syscall3(screenToClient, 2, 4713 uintptr(hWnd), 4714 uintptr(unsafe.Pointer(lpPoint)), 4715 0) 4716 return ret1 != 0 4717 } 4718 4719 func ScrollDC(hDC HDC, dx int32, dy int32, lprcScroll /*const*/ *RECT, lprcClip /*const*/ *RECT, hrgnUpdate HRGN, lprcUpdate *RECT) bool { 4720 ret1 := syscall9(scrollDC, 7, 4721 uintptr(hDC), 4722 uintptr(dx), 4723 uintptr(dy), 4724 uintptr(unsafe.Pointer(lprcScroll)), 4725 uintptr(unsafe.Pointer(lprcClip)), 4726 uintptr(hrgnUpdate), 4727 uintptr(unsafe.Pointer(lprcUpdate)), 4728 0, 4729 0) 4730 return ret1 != 0 4731 } 4732 4733 func ScrollWindow(hWnd HWND, xAmount int32, yAmount int32, lpRect /*const*/ *RECT, lpClipRect /*const*/ *RECT) bool { 4734 ret1 := syscall6(scrollWindow, 5, 4735 uintptr(hWnd), 4736 uintptr(xAmount), 4737 uintptr(yAmount), 4738 uintptr(unsafe.Pointer(lpRect)), 4739 uintptr(unsafe.Pointer(lpClipRect)), 4740 0) 4741 return ret1 != 0 4742 } 4743 4744 func ScrollWindowEx(hWnd HWND, dx int32, dy int32, prcScroll /*const*/ *RECT, prcClip /*const*/ *RECT, hrgnUpdate HRGN, prcUpdate *RECT, flags UINT) int32 { 4745 ret1 := syscall9(scrollWindowEx, 8, 4746 uintptr(hWnd), 4747 uintptr(dx), 4748 uintptr(dy), 4749 uintptr(unsafe.Pointer(prcScroll)), 4750 uintptr(unsafe.Pointer(prcClip)), 4751 uintptr(hrgnUpdate), 4752 uintptr(unsafe.Pointer(prcUpdate)), 4753 uintptr(flags), 4754 0) 4755 return int32(ret1) 4756 } 4757 4758 func SendDlgItemMessage(hDlg HWND, nIDDlgItem int32, msg UINT, wParam WPARAM, lParam LPARAM) LRESULT { 4759 ret1 := syscall6(sendDlgItemMessage, 5, 4760 uintptr(hDlg), 4761 uintptr(nIDDlgItem), 4762 uintptr(msg), 4763 uintptr(wParam), 4764 uintptr(lParam), 4765 0) 4766 return LRESULT(ret1) 4767 } 4768 4769 func SendIMEMessageEx(unnamed0 HWND, unnamed1 LPARAM) LRESULT { 4770 ret1 := syscall3(sendIMEMessageEx, 2, 4771 uintptr(unnamed0), 4772 uintptr(unnamed1), 4773 0) 4774 return LRESULT(ret1) 4775 } 4776 4777 func SendInput(cInputs UINT, pInputs *INPUT, cbSize int32) UINT { 4778 ret1 := syscall3(sendInput, 3, 4779 uintptr(cInputs), 4780 uintptr(unsafe.Pointer(pInputs)), 4781 uintptr(cbSize)) 4782 return UINT(ret1) 4783 } 4784 4785 func SendMessageCallback(hWnd HWND, msg UINT, wParam WPARAM, lParam LPARAM, lpResultCallBack SENDASYNCPROC, dwData *uint32) bool { 4786 lpResultCallBackCallback := syscall.NewCallback(lpResultCallBack) 4787 ret1 := syscall6(sendMessageCallback, 6, 4788 uintptr(hWnd), 4789 uintptr(msg), 4790 uintptr(wParam), 4791 uintptr(lParam), 4792 lpResultCallBackCallback, 4793 uintptr(unsafe.Pointer(dwData))) 4794 return ret1 != 0 4795 } 4796 4797 func SendMessageTimeout(hWnd HWND, msg UINT, wParam WPARAM, lParam LPARAM, fuFlags UINT, uTimeout UINT, lpdwResult *uintptr) LRESULT { 4798 ret1 := syscall9(sendMessageTimeout, 7, 4799 uintptr(hWnd), 4800 uintptr(msg), 4801 uintptr(wParam), 4802 uintptr(lParam), 4803 uintptr(fuFlags), 4804 uintptr(uTimeout), 4805 uintptr(unsafe.Pointer(lpdwResult)), 4806 0, 4807 0) 4808 return LRESULT(ret1) 4809 } 4810 4811 func SendMessage(hWnd HWND, msg UINT, wParam WPARAM, lParam LPARAM) LRESULT { 4812 ret1 := syscall6(sendMessage, 4, 4813 uintptr(hWnd), 4814 uintptr(msg), 4815 uintptr(wParam), 4816 uintptr(lParam), 4817 0, 4818 0) 4819 return LRESULT(ret1) 4820 } 4821 4822 func SendNotifyMessage(hWnd HWND, msg UINT, wParam WPARAM, lParam LPARAM) bool { 4823 ret1 := syscall6(sendNotifyMessage, 4, 4824 uintptr(hWnd), 4825 uintptr(msg), 4826 uintptr(wParam), 4827 uintptr(lParam), 4828 0, 4829 0) 4830 return ret1 != 0 4831 } 4832 4833 func SetActiveWindow(hWnd HWND) HWND { 4834 ret1 := syscall3(setActiveWindow, 1, 4835 uintptr(hWnd), 4836 0, 4837 0) 4838 return HWND(ret1) 4839 } 4840 4841 func SetCapture(hWnd HWND) HWND { 4842 ret1 := syscall3(setCapture, 1, 4843 uintptr(hWnd), 4844 0, 4845 0) 4846 return HWND(ret1) 4847 } 4848 4849 func SetCaretBlinkTime(uMSeconds UINT) bool { 4850 ret1 := syscall3(setCaretBlinkTime, 1, 4851 uintptr(uMSeconds), 4852 0, 4853 0) 4854 return ret1 != 0 4855 } 4856 4857 func SetCaretPos(x int32, y int32) bool { 4858 ret1 := syscall3(setCaretPos, 2, 4859 uintptr(x), 4860 uintptr(y), 4861 0) 4862 return ret1 != 0 4863 } 4864 4865 func SetClassLongPtr(hWnd HWND, nIndex int32, dwNewLong uintptr) *uint32 { 4866 ret1 := syscall3(setClassLongPtr, 3, 4867 uintptr(hWnd), 4868 uintptr(nIndex), 4869 dwNewLong) 4870 return (*uint32)(unsafe.Pointer(ret1)) 4871 } 4872 4873 func SetClassLong(hWnd HWND, nIndex int32, dwNewLong LONG) DWORD { 4874 ret1 := syscall3(setClassLong, 3, 4875 uintptr(hWnd), 4876 uintptr(nIndex), 4877 uintptr(dwNewLong)) 4878 return DWORD(ret1) 4879 } 4880 4881 func SetClassWord(hWnd HWND, nIndex int32, wNewWord WORD) WORD { 4882 ret1 := syscall3(setClassWord, 3, 4883 uintptr(hWnd), 4884 uintptr(nIndex), 4885 uintptr(wNewWord)) 4886 return WORD(ret1) 4887 } 4888 4889 func SetClipboardData(uFormat UINT, hMem HANDLE) HANDLE { 4890 ret1 := syscall3(setClipboardData, 2, 4891 uintptr(uFormat), 4892 uintptr(hMem), 4893 0) 4894 return HANDLE(ret1) 4895 } 4896 4897 func SetClipboardViewer(hWndNewViewer HWND) HWND { 4898 ret1 := syscall3(setClipboardViewer, 1, 4899 uintptr(hWndNewViewer), 4900 0, 4901 0) 4902 return HWND(ret1) 4903 } 4904 4905 func SetCursor(hCursor HCURSOR) HCURSOR { 4906 ret1 := syscall3(setCursor, 1, 4907 uintptr(hCursor), 4908 0, 4909 0) 4910 return HCURSOR(ret1) 4911 } 4912 4913 func SetCursorPos(x int32, y int32) bool { 4914 ret1 := syscall3(setCursorPos, 2, 4915 uintptr(x), 4916 uintptr(y), 4917 0) 4918 return ret1 != 0 4919 } 4920 4921 func SetDebugErrorLevel(dwLevel DWORD) { 4922 syscall3(setDebugErrorLevel, 1, 4923 uintptr(dwLevel), 4924 0, 4925 0) 4926 } 4927 4928 func SetDlgItemInt(hDlg HWND, nIDDlgItem int32, uValue UINT, bSigned bool) bool { 4929 ret1 := syscall6(setDlgItemInt, 4, 4930 uintptr(hDlg), 4931 uintptr(nIDDlgItem), 4932 uintptr(uValue), 4933 getUintptrFromBool(bSigned), 4934 0, 4935 0) 4936 return ret1 != 0 4937 } 4938 4939 func SetDlgItemText(hDlg HWND, nIDDlgItem int32, lpString string) bool { 4940 lpStringStr := unicode16FromString(lpString) 4941 ret1 := syscall3(setDlgItemText, 3, 4942 uintptr(hDlg), 4943 uintptr(nIDDlgItem), 4944 uintptr(unsafe.Pointer(&lpStringStr[0]))) 4945 return ret1 != 0 4946 } 4947 4948 func SetDoubleClickTime(unnamed0 UINT) bool { 4949 ret1 := syscall3(setDoubleClickTime, 1, 4950 uintptr(unnamed0), 4951 0, 4952 0) 4953 return ret1 != 0 4954 } 4955 4956 func SetFocus(hWnd HWND) HWND { 4957 ret1 := syscall3(setFocus, 1, 4958 uintptr(hWnd), 4959 0, 4960 0) 4961 return HWND(ret1) 4962 } 4963 4964 func SetForegroundWindow(hWnd HWND) bool { 4965 ret1 := syscall3(setForegroundWindow, 1, 4966 uintptr(hWnd), 4967 0, 4968 0) 4969 return ret1 != 0 4970 } 4971 4972 func SetGestureConfig(hwnd HWND, dwReserved DWORD, cIDs UINT, pGestureConfig *GESTURECONFIG, cbSize UINT) bool { 4973 ret1 := syscall6(setGestureConfig, 5, 4974 uintptr(hwnd), 4975 uintptr(dwReserved), 4976 uintptr(cIDs), 4977 uintptr(unsafe.Pointer(pGestureConfig)), 4978 uintptr(cbSize), 4979 0) 4980 return ret1 != 0 4981 } 4982 4983 func SetKeyboardState(lpKeyState *byte) bool { 4984 ret1 := syscall3(setKeyboardState, 1, 4985 uintptr(unsafe.Pointer(lpKeyState)), 4986 0, 4987 0) 4988 return ret1 != 0 4989 } 4990 4991 func SetLastErrorEx(dwErrCode DWORD, dwType DWORD) { 4992 syscall3(setLastErrorEx, 2, 4993 uintptr(dwErrCode), 4994 uintptr(dwType), 4995 0) 4996 } 4997 4998 func SetLayeredWindowAttributes(hwnd HWND, crKey COLORREF, bAlpha BYTE, dwFlags DWORD) bool { 4999 ret1 := syscall6(setLayeredWindowAttributes, 4, 5000 uintptr(hwnd), 5001 uintptr(crKey), 5002 uintptr(bAlpha), 5003 uintptr(dwFlags), 5004 0, 5005 0) 5006 return ret1 != 0 5007 } 5008 5009 func SetMenu(hWnd HWND, hMenu HMENU) bool { 5010 ret1 := syscall3(setMenu, 2, 5011 uintptr(hWnd), 5012 uintptr(hMenu), 5013 0) 5014 return ret1 != 0 5015 } 5016 5017 func SetMenuContextHelpId(unnamed0 HMENU, unnamed1 DWORD) bool { 5018 ret1 := syscall3(setMenuContextHelpId, 2, 5019 uintptr(unnamed0), 5020 uintptr(unnamed1), 5021 0) 5022 return ret1 != 0 5023 } 5024 5025 func SetMenuDefaultItem(hMenu HMENU, uItem UINT, fByPos UINT) bool { 5026 ret1 := syscall3(setMenuDefaultItem, 3, 5027 uintptr(hMenu), 5028 uintptr(uItem), 5029 uintptr(fByPos)) 5030 return ret1 != 0 5031 } 5032 5033 func SetMenuInfo(unnamed0 HMENU, unnamed1 /*const*/ *MENUINFO) bool { 5034 ret1 := syscall3(setMenuInfo, 2, 5035 uintptr(unnamed0), 5036 uintptr(unsafe.Pointer(unnamed1)), 5037 0) 5038 return ret1 != 0 5039 } 5040 5041 func SetMenuItemBitmaps(hMenu HMENU, uPosition UINT, uFlags UINT, hBitmapUnchecked HBITMAP, hBitmapChecked HBITMAP) bool { 5042 ret1 := syscall6(setMenuItemBitmaps, 5, 5043 uintptr(hMenu), 5044 uintptr(uPosition), 5045 uintptr(uFlags), 5046 uintptr(hBitmapUnchecked), 5047 uintptr(hBitmapChecked), 5048 0) 5049 return ret1 != 0 5050 } 5051 5052 func SetMenuItemInfo(hmenu HMENU, item UINT, fByPositon bool, lpmii /*const*/ *MENUITEMINFO) bool { 5053 ret1 := syscall6(setMenuItemInfo, 4, 5054 uintptr(hmenu), 5055 uintptr(item), 5056 getUintptrFromBool(fByPositon), 5057 uintptr(unsafe.Pointer(lpmii)), 5058 0, 5059 0) 5060 return ret1 != 0 5061 } 5062 5063 func SetMessageExtraInfo(lParam LPARAM) LPARAM { 5064 ret1 := syscall3(setMessageExtraInfo, 1, 5065 uintptr(lParam), 5066 0, 5067 0) 5068 return LPARAM(ret1) 5069 } 5070 5071 func SetMessageQueue(cMessagesMax int32) bool { 5072 ret1 := syscall3(setMessageQueue, 1, 5073 uintptr(cMessagesMax), 5074 0, 5075 0) 5076 return ret1 != 0 5077 } 5078 5079 func SetParent(hWndChild HWND, hWndNewParent HWND) HWND { 5080 ret1 := syscall3(setParent, 2, 5081 uintptr(hWndChild), 5082 uintptr(hWndNewParent), 5083 0) 5084 return HWND(ret1) 5085 } 5086 5087 func SetProcessDefaultLayout(dwDefaultLayout DWORD) bool { 5088 ret1 := syscall3(setProcessDefaultLayout, 1, 5089 uintptr(dwDefaultLayout), 5090 0, 5091 0) 5092 return ret1 != 0 5093 } 5094 5095 func SetProcessWindowStation(hWinSta HWINSTA) bool { 5096 ret1 := syscall3(setProcessWindowStation, 1, 5097 uintptr(hWinSta), 5098 0, 5099 0) 5100 return ret1 != 0 5101 } 5102 5103 func SetProp(hWnd HWND, lpString string, hData HANDLE) bool { 5104 lpStringStr := unicode16FromString(lpString) 5105 ret1 := syscall3(setProp, 3, 5106 uintptr(hWnd), 5107 uintptr(unsafe.Pointer(&lpStringStr[0])), 5108 uintptr(hData)) 5109 return ret1 != 0 5110 } 5111 5112 func SetRect(lprc *RECT, xLeft int32, yTop int32, xRight int32, yBottom int32) bool { 5113 ret1 := syscall6(setRect, 5, 5114 uintptr(unsafe.Pointer(lprc)), 5115 uintptr(xLeft), 5116 uintptr(yTop), 5117 uintptr(xRight), 5118 uintptr(yBottom), 5119 0) 5120 return ret1 != 0 5121 } 5122 5123 func SetRectEmpty(lprc *RECT) bool { 5124 ret1 := syscall3(setRectEmpty, 1, 5125 uintptr(unsafe.Pointer(lprc)), 5126 0, 5127 0) 5128 return ret1 != 0 5129 } 5130 5131 func SetScrollInfo(hwnd HWND, nBar int32, lpsi /*const*/ *SCROLLINFO, redraw bool) int32 { 5132 ret1 := syscall6(setScrollInfo, 4, 5133 uintptr(hwnd), 5134 uintptr(nBar), 5135 uintptr(unsafe.Pointer(lpsi)), 5136 getUintptrFromBool(redraw), 5137 0, 5138 0) 5139 return int32(ret1) 5140 } 5141 5142 func SetScrollPos(hWnd HWND, nBar int32, nPos int32, bRedraw bool) int32 { 5143 ret1 := syscall6(setScrollPos, 4, 5144 uintptr(hWnd), 5145 uintptr(nBar), 5146 uintptr(nPos), 5147 getUintptrFromBool(bRedraw), 5148 0, 5149 0) 5150 return int32(ret1) 5151 } 5152 5153 func SetScrollRange(hWnd HWND, nBar int32, nMinPos int32, nMaxPos int32, bRedraw bool) bool { 5154 ret1 := syscall6(setScrollRange, 5, 5155 uintptr(hWnd), 5156 uintptr(nBar), 5157 uintptr(nMinPos), 5158 uintptr(nMaxPos), 5159 getUintptrFromBool(bRedraw), 5160 0) 5161 return ret1 != 0 5162 } 5163 5164 func SetSysColors(cElements int32, lpaElements /*const*/ *int32, lpaRgbValues /*const*/ *COLORREF) bool { 5165 ret1 := syscall3(setSysColors, 3, 5166 uintptr(cElements), 5167 uintptr(unsafe.Pointer(lpaElements)), 5168 uintptr(unsafe.Pointer(lpaRgbValues))) 5169 return ret1 != 0 5170 } 5171 5172 func SetSystemCursor(hcur HCURSOR, id DWORD) bool { 5173 ret1 := syscall3(setSystemCursor, 2, 5174 uintptr(hcur), 5175 uintptr(id), 5176 0) 5177 return ret1 != 0 5178 } 5179 5180 func SetThreadDesktop(hDesktop HDESK) bool { 5181 ret1 := syscall3(setThreadDesktop, 1, 5182 uintptr(hDesktop), 5183 0, 5184 0) 5185 return ret1 != 0 5186 } 5187 5188 func SetTimer(hWnd HWND, nIDEvent *uint32, uElapse UINT, lpTimerFunc TIMERPROC) *uint32 { 5189 lpTimerFuncCallback := syscall.NewCallback(lpTimerFunc) 5190 ret1 := syscall6(setTimer, 4, 5191 uintptr(hWnd), 5192 uintptr(unsafe.Pointer(nIDEvent)), 5193 uintptr(uElapse), 5194 lpTimerFuncCallback, 5195 0, 5196 0) 5197 return (*uint32)(unsafe.Pointer(ret1)) 5198 } 5199 5200 func SetUserObjectInformation(hObj HANDLE, nIndex int32, pvInfo uintptr, nLength DWORD) bool { 5201 ret1 := syscall6(setUserObjectInformation, 4, 5202 uintptr(hObj), 5203 uintptr(nIndex), 5204 pvInfo, 5205 uintptr(nLength), 5206 0, 5207 0) 5208 return ret1 != 0 5209 } 5210 5211 func SetUserObjectSecurity(hObj HANDLE, pSIRequested *SECURITY_INFORMATION, pSID PSECURITY_DESCRIPTOR) bool { 5212 ret1 := syscall3(setUserObjectSecurity, 3, 5213 uintptr(hObj), 5214 uintptr(unsafe.Pointer(pSIRequested)), 5215 uintptr(unsafe.Pointer(pSID))) 5216 return ret1 != 0 5217 } 5218 5219 func SetWinEventHook(eventMin DWORD, eventMax DWORD, hmodWinEventProc HMODULE, pfnWinEventProc WINEVENTPROC, idProcess DWORD, idThread DWORD, dwFlags DWORD) HWINEVENTHOOK { 5220 pfnWinEventProcCallback := syscall.NewCallback(pfnWinEventProc) 5221 ret1 := syscall9(setWinEventHook, 7, 5222 uintptr(eventMin), 5223 uintptr(eventMax), 5224 uintptr(hmodWinEventProc), 5225 pfnWinEventProcCallback, 5226 uintptr(idProcess), 5227 uintptr(idThread), 5228 uintptr(dwFlags), 5229 0, 5230 0) 5231 return HWINEVENTHOOK(ret1) 5232 } 5233 5234 func SetWindowContextHelpId(unnamed0 HWND, unnamed1 DWORD) bool { 5235 ret1 := syscall3(setWindowContextHelpId, 2, 5236 uintptr(unnamed0), 5237 uintptr(unnamed1), 5238 0) 5239 return ret1 != 0 5240 } 5241 5242 func SetWindowLongPtr(hWnd HWND, nIndex int32, dwNewLong uintptr) uintptr { 5243 ret1 := syscall3(setWindowLongPtr, 3, 5244 uintptr(hWnd), 5245 uintptr(nIndex), 5246 dwNewLong) 5247 return (uintptr)(unsafe.Pointer(ret1)) 5248 } 5249 5250 func SetWindowLong(hWnd HWND, nIndex int32, dwNewLong LONG) LONG { 5251 ret1 := syscall3(setWindowLong, 3, 5252 uintptr(hWnd), 5253 uintptr(nIndex), 5254 uintptr(dwNewLong)) 5255 return LONG(ret1) 5256 } 5257 5258 func SetWindowPlacement(hWnd HWND, lpwndpl /*const*/ *WINDOWPLACEMENT) bool { 5259 ret1 := syscall3(setWindowPlacement, 2, 5260 uintptr(hWnd), 5261 uintptr(unsafe.Pointer(lpwndpl)), 5262 0) 5263 return ret1 != 0 5264 } 5265 5266 func SetWindowPos(hWnd HWND, hWndInsertAfter HWND, x int32, y int32, cx int32, cy int32, uFlags UINT) bool { 5267 ret1 := syscall9(setWindowPos, 7, 5268 uintptr(hWnd), 5269 uintptr(hWndInsertAfter), 5270 uintptr(x), 5271 uintptr(y), 5272 uintptr(cx), 5273 uintptr(cy), 5274 uintptr(uFlags), 5275 0, 5276 0) 5277 return ret1 != 0 5278 } 5279 5280 func SetWindowRgn(hWnd HWND, hRgn HRGN, bRedraw bool) int32 { 5281 ret1 := syscall3(setWindowRgn, 3, 5282 uintptr(hWnd), 5283 uintptr(hRgn), 5284 getUintptrFromBool(bRedraw)) 5285 return int32(ret1) 5286 } 5287 5288 func SetWindowText(hWnd HWND, lpString string) bool { 5289 lpStringStr := unicode16FromString(lpString) 5290 ret1 := syscall3(setWindowText, 2, 5291 uintptr(hWnd), 5292 uintptr(unsafe.Pointer(&lpStringStr[0])), 5293 0) 5294 return ret1 != 0 5295 } 5296 5297 func SetWindowWord(hWnd HWND, nIndex int32, wNewWord WORD) WORD { 5298 ret1 := syscall3(setWindowWord, 3, 5299 uintptr(hWnd), 5300 uintptr(nIndex), 5301 uintptr(wNewWord)) 5302 return WORD(ret1) 5303 } 5304 5305 func SetWindowsHookEx(idHook int32, lpfn HOOKPROC, hmod HINSTANCE, dwThreadId DWORD) HHOOK { 5306 lpfnCallback := syscall.NewCallback(func(codeRawArg int32, wParamRawArg WPARAM, lParamRawArg LPARAM) uintptr { 5307 ret := lpfn(codeRawArg, wParamRawArg, lParamRawArg) 5308 return uintptr(ret) 5309 }) 5310 ret1 := syscall6(setWindowsHookEx, 4, 5311 uintptr(idHook), 5312 lpfnCallback, 5313 uintptr(hmod), 5314 uintptr(dwThreadId), 5315 0, 5316 0) 5317 return HHOOK(ret1) 5318 } 5319 5320 func SetWindowsHook(nFilterType int32, pfnFilterProc HOOKPROC) HHOOK { 5321 pfnFilterProcCallback := syscall.NewCallback(func(codeRawArg int32, wParamRawArg WPARAM, lParamRawArg LPARAM) uintptr { 5322 ret := pfnFilterProc(codeRawArg, wParamRawArg, lParamRawArg) 5323 return uintptr(ret) 5324 }) 5325 ret1 := syscall3(setWindowsHook, 2, 5326 uintptr(nFilterType), 5327 pfnFilterProcCallback, 5328 0) 5329 return HHOOK(ret1) 5330 } 5331 5332 func ShowCaret(hWnd HWND) bool { 5333 ret1 := syscall3(showCaret, 1, 5334 uintptr(hWnd), 5335 0, 5336 0) 5337 return ret1 != 0 5338 } 5339 5340 func ShowCursor(bShow bool) int32 { 5341 ret1 := syscall3(showCursor, 1, 5342 getUintptrFromBool(bShow), 5343 0, 5344 0) 5345 return int32(ret1) 5346 } 5347 5348 func ShowOwnedPopups(hWnd HWND, fShow bool) bool { 5349 ret1 := syscall3(showOwnedPopups, 2, 5350 uintptr(hWnd), 5351 getUintptrFromBool(fShow), 5352 0) 5353 return ret1 != 0 5354 } 5355 5356 func ShowScrollBar(hWnd HWND, wBar int32, bShow bool) bool { 5357 ret1 := syscall3(showScrollBar, 3, 5358 uintptr(hWnd), 5359 uintptr(wBar), 5360 getUintptrFromBool(bShow)) 5361 return ret1 != 0 5362 } 5363 5364 func ShowWindow(hWnd HWND, nCmdShow int32) bool { 5365 ret1 := syscall3(showWindow, 2, 5366 uintptr(hWnd), 5367 uintptr(nCmdShow), 5368 0) 5369 return ret1 != 0 5370 } 5371 5372 func ShowWindowAsync(hWnd HWND, nCmdShow int32) bool { 5373 ret1 := syscall3(showWindowAsync, 2, 5374 uintptr(hWnd), 5375 uintptr(nCmdShow), 5376 0) 5377 return ret1 != 0 5378 } 5379 5380 func SubtractRect(lprcDst *RECT, lprcSrc1 /*const*/ *RECT, lprcSrc2 /*const*/ *RECT) bool { 5381 ret1 := syscall3(subtractRect, 3, 5382 uintptr(unsafe.Pointer(lprcDst)), 5383 uintptr(unsafe.Pointer(lprcSrc1)), 5384 uintptr(unsafe.Pointer(lprcSrc2))) 5385 return ret1 != 0 5386 } 5387 5388 func SwapMouseButton(fSwap bool) bool { 5389 ret1 := syscall3(swapMouseButton, 1, 5390 getUintptrFromBool(fSwap), 5391 0, 5392 0) 5393 return ret1 != 0 5394 } 5395 5396 func SwitchDesktop(hDesktop HDESK) bool { 5397 ret1 := syscall3(switchDesktop, 1, 5398 uintptr(hDesktop), 5399 0, 5400 0) 5401 return ret1 != 0 5402 } 5403 5404 func SwitchToThisWindow(hwnd HWND, fUnknown bool) { 5405 syscall3(switchToThisWindow, 2, 5406 uintptr(hwnd), 5407 getUintptrFromBool(fUnknown), 5408 0) 5409 } 5410 5411 func SystemParametersInfo(uiAction UINT, uiParam UINT, pvParam uintptr, fWinIni UINT) bool { 5412 ret1 := syscall6(systemParametersInfo, 4, 5413 uintptr(uiAction), 5414 uintptr(uiParam), 5415 pvParam, 5416 uintptr(fWinIni), 5417 0, 5418 0) 5419 return ret1 != 0 5420 } 5421 5422 func TabbedTextOut(hdc HDC, x int32, y int32, lpString string, chCount int32, nTabPositions int32, lpnTabStopPositions /*const*/ *int32, nTabOrigin int32) LONG { 5423 lpStringStr := unicode16FromString(lpString) 5424 ret1 := syscall9(tabbedTextOut, 8, 5425 uintptr(hdc), 5426 uintptr(x), 5427 uintptr(y), 5428 uintptr(unsafe.Pointer(&lpStringStr[0])), 5429 uintptr(chCount), 5430 uintptr(nTabPositions), 5431 uintptr(unsafe.Pointer(lpnTabStopPositions)), 5432 uintptr(nTabOrigin), 5433 0) 5434 return LONG(ret1) 5435 } 5436 5437 func TileWindows(hwndParent HWND, wHow UINT, lpRect /*const*/ *RECT, cKids UINT, lpKids /*const*/ *HWND) WORD { 5438 ret1 := syscall6(tileWindows, 5, 5439 uintptr(hwndParent), 5440 uintptr(wHow), 5441 uintptr(unsafe.Pointer(lpRect)), 5442 uintptr(cKids), 5443 uintptr(unsafe.Pointer(lpKids)), 5444 0) 5445 return WORD(ret1) 5446 } 5447 5448 func ToAscii(uVirtKey UINT, uScanCode UINT, lpKeyState /*const*/ *byte, lpChar *uint16, uFlags UINT) int32 { 5449 ret1 := syscall6(toAscii, 5, 5450 uintptr(uVirtKey), 5451 uintptr(uScanCode), 5452 uintptr(unsafe.Pointer(lpKeyState)), 5453 uintptr(unsafe.Pointer(lpChar)), 5454 uintptr(uFlags), 5455 0) 5456 return int32(ret1) 5457 } 5458 5459 func ToAsciiEx(uVirtKey UINT, uScanCode UINT, lpKeyState /*const*/ *byte, lpChar *uint16, uFlags UINT, dwhkl HKL) int32 { 5460 ret1 := syscall6(toAsciiEx, 6, 5461 uintptr(uVirtKey), 5462 uintptr(uScanCode), 5463 uintptr(unsafe.Pointer(lpKeyState)), 5464 uintptr(unsafe.Pointer(lpChar)), 5465 uintptr(uFlags), 5466 uintptr(dwhkl)) 5467 return int32(ret1) 5468 } 5469 5470 func ToUnicode(wVirtKey UINT, wScanCode UINT, lpKeyState /*const*/ *byte, pwszBuff LPWSTR, cchBuff int32, wFlags UINT) int32 { 5471 ret1 := syscall6(toUnicode, 6, 5472 uintptr(wVirtKey), 5473 uintptr(wScanCode), 5474 uintptr(unsafe.Pointer(lpKeyState)), 5475 uintptr(unsafe.Pointer(pwszBuff)), 5476 uintptr(cchBuff), 5477 uintptr(wFlags)) 5478 return int32(ret1) 5479 } 5480 5481 func ToUnicodeEx(wVirtKey UINT, wScanCode UINT, lpKeyState /*const*/ *byte, pwszBuff LPWSTR, cchBuff int32, wFlags UINT, dwhkl HKL) int32 { 5482 ret1 := syscall9(toUnicodeEx, 7, 5483 uintptr(wVirtKey), 5484 uintptr(wScanCode), 5485 uintptr(unsafe.Pointer(lpKeyState)), 5486 uintptr(unsafe.Pointer(pwszBuff)), 5487 uintptr(cchBuff), 5488 uintptr(wFlags), 5489 uintptr(dwhkl), 5490 0, 5491 0) 5492 return int32(ret1) 5493 } 5494 5495 func TrackMouseEvent(lpEventTrack *TRACKMOUSEEVENT) bool { 5496 ret1 := syscall3(trackMouseEvent, 1, 5497 uintptr(unsafe.Pointer(lpEventTrack)), 5498 0, 5499 0) 5500 return ret1 != 0 5501 } 5502 5503 func TrackPopupMenu(hMenu HMENU, uFlags UINT, x int32, y int32, nReserved int32, hWnd HWND, prcRect /*const*/ *RECT) bool { 5504 ret1 := syscall9(trackPopupMenu, 7, 5505 uintptr(hMenu), 5506 uintptr(uFlags), 5507 uintptr(x), 5508 uintptr(y), 5509 uintptr(nReserved), 5510 uintptr(hWnd), 5511 uintptr(unsafe.Pointer(prcRect)), 5512 0, 5513 0) 5514 return ret1 != 0 5515 } 5516 5517 func TrackPopupMenuEx(unnamed0 HMENU, unnamed1 UINT, unnamed2 int32, unnamed3 int32, unnamed4 HWND, unnamed5 *TPMPARAMS) bool { 5518 ret1 := syscall6(trackPopupMenuEx, 6, 5519 uintptr(unnamed0), 5520 uintptr(unnamed1), 5521 uintptr(unnamed2), 5522 uintptr(unnamed3), 5523 uintptr(unnamed4), 5524 uintptr(unsafe.Pointer(unnamed5))) 5525 return ret1 != 0 5526 } 5527 5528 func TranslateAccelerator(hWnd HWND, hAccTable HACCEL, lpMsg *MSG) int32 { 5529 ret1 := syscall3(translateAccelerator, 3, 5530 uintptr(hWnd), 5531 uintptr(hAccTable), 5532 uintptr(unsafe.Pointer(lpMsg))) 5533 return int32(ret1) 5534 } 5535 5536 func TranslateMDISysAccel(hWndClient HWND, lpMsg *MSG) bool { 5537 ret1 := syscall3(translateMDISysAccel, 2, 5538 uintptr(hWndClient), 5539 uintptr(unsafe.Pointer(lpMsg)), 5540 0) 5541 return ret1 != 0 5542 } 5543 5544 func TranslateMessage(lpMsg /*const*/ *MSG) bool { 5545 ret1 := syscall3(translateMessage, 1, 5546 uintptr(unsafe.Pointer(lpMsg)), 5547 0, 5548 0) 5549 return ret1 != 0 5550 } 5551 5552 func UnhookWinEvent(hWinEventHook HWINEVENTHOOK) bool { 5553 ret1 := syscall3(unhookWinEvent, 1, 5554 uintptr(hWinEventHook), 5555 0, 5556 0) 5557 return ret1 != 0 5558 } 5559 5560 func UnhookWindowsHook(nCode int32, pfnFilterProc HOOKPROC) bool { 5561 pfnFilterProcCallback := syscall.NewCallback(func(codeRawArg int32, wParamRawArg WPARAM, lParamRawArg LPARAM) uintptr { 5562 ret := pfnFilterProc(codeRawArg, wParamRawArg, lParamRawArg) 5563 return uintptr(ret) 5564 }) 5565 ret1 := syscall3(unhookWindowsHook, 2, 5566 uintptr(nCode), 5567 pfnFilterProcCallback, 5568 0) 5569 return ret1 != 0 5570 } 5571 5572 func UnhookWindowsHookEx(hhk HHOOK) bool { 5573 ret1 := syscall3(unhookWindowsHookEx, 1, 5574 uintptr(hhk), 5575 0, 5576 0) 5577 return ret1 != 0 5578 } 5579 5580 func UnionRect(lprcDst *RECT, lprcSrc1 /*const*/ *RECT, lprcSrc2 /*const*/ *RECT) bool { 5581 ret1 := syscall3(unionRect, 3, 5582 uintptr(unsafe.Pointer(lprcDst)), 5583 uintptr(unsafe.Pointer(lprcSrc1)), 5584 uintptr(unsafe.Pointer(lprcSrc2))) 5585 return ret1 != 0 5586 } 5587 5588 func UnloadKeyboardLayout(hkl HKL) bool { 5589 ret1 := syscall3(unloadKeyboardLayout, 1, 5590 uintptr(hkl), 5591 0, 5592 0) 5593 return ret1 != 0 5594 } 5595 5596 func UnpackDDElParam(msg UINT, lParam LPARAM, puiLo *uintptr, puiHi *uintptr) bool { 5597 ret1 := syscall6(unpackDDElParam, 4, 5598 uintptr(msg), 5599 uintptr(lParam), 5600 uintptr(unsafe.Pointer(puiLo)), 5601 uintptr(unsafe.Pointer(puiHi)), 5602 0, 5603 0) 5604 return ret1 != 0 5605 } 5606 5607 func UnregisterClass(lpClassName string, hInstance HINSTANCE) bool { 5608 lpClassNameStr := unicode16FromString(lpClassName) 5609 ret1 := syscall3(unregisterClass, 2, 5610 uintptr(unsafe.Pointer(&lpClassNameStr[0])), 5611 uintptr(hInstance), 5612 0) 5613 return ret1 != 0 5614 } 5615 5616 func UnregisterDeviceNotification(handle HDEVNOTIFY) bool { 5617 ret1 := syscall3(unregisterDeviceNotification, 1, 5618 uintptr(handle), 5619 0, 5620 0) 5621 return ret1 != 0 5622 } 5623 5624 func UnregisterHotKey(hWnd HWND, id int32) bool { 5625 ret1 := syscall3(unregisterHotKey, 2, 5626 uintptr(hWnd), 5627 uintptr(id), 5628 0) 5629 return ret1 != 0 5630 } 5631 5632 func UnregisterPowerSettingNotification(handle HPOWERNOTIFY) bool { 5633 ret1 := syscall3(unregisterPowerSettingNotification, 1, 5634 uintptr(handle), 5635 0, 5636 0) 5637 return ret1 != 0 5638 } 5639 5640 func UnregisterTouchWindow(hwnd HWND) bool { 5641 ret1 := syscall3(unregisterTouchWindow, 1, 5642 uintptr(hwnd), 5643 0, 5644 0) 5645 return ret1 != 0 5646 } 5647 5648 func UpdateLayeredWindow(hWnd HWND, hdcDst HDC, pptDst *POINT, psize *SIZE, hdcSrc HDC, pptSrc *POINT, crKey COLORREF, pblend *BLENDFUNCTION, dwFlags DWORD) bool { 5649 ret1 := syscall9(updateLayeredWindow, 9, 5650 uintptr(hWnd), 5651 uintptr(hdcDst), 5652 uintptr(unsafe.Pointer(pptDst)), 5653 uintptr(unsafe.Pointer(psize)), 5654 uintptr(hdcSrc), 5655 uintptr(unsafe.Pointer(pptSrc)), 5656 uintptr(crKey), 5657 uintptr(unsafe.Pointer(pblend)), 5658 uintptr(dwFlags)) 5659 return ret1 != 0 5660 } 5661 5662 func UpdateLayeredWindowIndirect(hWnd HWND, pULWInfo /*const*/ *UPDATELAYEREDWINDOWINFO) bool { 5663 ret1 := syscall3(updateLayeredWindowIndirect, 2, 5664 uintptr(hWnd), 5665 uintptr(unsafe.Pointer(pULWInfo)), 5666 0) 5667 return ret1 != 0 5668 } 5669 5670 func UpdateWindow(hWnd HWND) bool { 5671 ret1 := syscall3(updateWindow, 1, 5672 uintptr(hWnd), 5673 0, 5674 0) 5675 return ret1 != 0 5676 } 5677 5678 func UserHandleGrantAccess(hUserHandle HANDLE, hJob HANDLE, bGrant bool) bool { 5679 ret1 := syscall3(userHandleGrantAccess, 3, 5680 uintptr(hUserHandle), 5681 uintptr(hJob), 5682 getUintptrFromBool(bGrant)) 5683 return ret1 != 0 5684 } 5685 5686 func ValidateRect(hWnd HWND, lpRect /*const*/ *RECT) bool { 5687 ret1 := syscall3(validateRect, 2, 5688 uintptr(hWnd), 5689 uintptr(unsafe.Pointer(lpRect)), 5690 0) 5691 return ret1 != 0 5692 } 5693 5694 func ValidateRgn(hWnd HWND, hRgn HRGN) bool { 5695 ret1 := syscall3(validateRgn, 2, 5696 uintptr(hWnd), 5697 uintptr(hRgn), 5698 0) 5699 return ret1 != 0 5700 } 5701 5702 func VkKeyScanEx(ch WCHAR, dwhkl HKL) SHORT { 5703 ret1 := syscall3(vkKeyScanEx, 2, 5704 uintptr(ch), 5705 uintptr(dwhkl), 5706 0) 5707 return SHORT(ret1) 5708 } 5709 5710 func VkKeyScan(ch WCHAR) SHORT { 5711 ret1 := syscall3(vkKeyScan, 1, 5712 uintptr(ch), 5713 0, 5714 0) 5715 return SHORT(ret1) 5716 } 5717 5718 func WINNLSEnableIME(unnamed0 HWND, unnamed1 bool) bool { 5719 ret1 := syscall3(wINNLSEnableIME, 2, 5720 uintptr(unnamed0), 5721 getUintptrFromBool(unnamed1), 5722 0) 5723 return ret1 != 0 5724 } 5725 5726 func WINNLSGetEnableStatus(unnamed0 HWND) bool { 5727 ret1 := syscall3(wINNLSGetEnableStatus, 1, 5728 uintptr(unnamed0), 5729 0, 5730 0) 5731 return ret1 != 0 5732 } 5733 5734 func WINNLSGetIMEHotkey(unnamed0 HWND) UINT { 5735 ret1 := syscall3(wINNLSGetIMEHotkey, 1, 5736 uintptr(unnamed0), 5737 0, 5738 0) 5739 return UINT(ret1) 5740 } 5741 5742 func WaitForInputIdle(hProcess HANDLE, dwMilliseconds DWORD) DWORD { 5743 ret1 := syscall3(waitForInputIdle, 2, 5744 uintptr(hProcess), 5745 uintptr(dwMilliseconds), 5746 0) 5747 return DWORD(ret1) 5748 } 5749 5750 func WaitMessage() bool { 5751 ret1 := syscall3(waitMessage, 0, 5752 0, 5753 0, 5754 0) 5755 return ret1 != 0 5756 } 5757 5758 func WinHelp(hWndMain HWND, lpszHelp string, uCommand UINT, dwData *uint32) bool { 5759 lpszHelpStr := unicode16FromString(lpszHelp) 5760 ret1 := syscall6(winHelp, 4, 5761 uintptr(hWndMain), 5762 uintptr(unsafe.Pointer(&lpszHelpStr[0])), 5763 uintptr(uCommand), 5764 uintptr(unsafe.Pointer(dwData)), 5765 0, 5766 0) 5767 return ret1 != 0 5768 } 5769 5770 func WindowFromDC(hDC HDC) HWND { 5771 ret1 := syscall3(windowFromDC, 1, 5772 uintptr(hDC), 5773 0, 5774 0) 5775 return HWND(ret1) 5776 } 5777 5778 func WindowFromPoint(point POINT) HWND { 5779 ret1 := syscall3(windowFromPoint, 2, 5780 uintptr(point.X), 5781 uintptr(point.Y), 5782 0) 5783 return HWND(ret1) 5784 } 5785 5786 func Keybd_event(bVk BYTE, bScan BYTE, dwFlags DWORD, dwExtraInfo *uint32) { 5787 syscall6(keybd_event, 4, 5788 uintptr(bVk), 5789 uintptr(bScan), 5790 uintptr(dwFlags), 5791 uintptr(unsafe.Pointer(dwExtraInfo)), 5792 0, 5793 0) 5794 } 5795 5796 func Mouse_event(dwFlags DWORD, dx DWORD, dy DWORD, dwData DWORD, dwExtraInfo *uint32) { 5797 syscall6(mouse_event, 5, 5798 uintptr(dwFlags), 5799 uintptr(dx), 5800 uintptr(dy), 5801 uintptr(dwData), 5802 uintptr(unsafe.Pointer(dwExtraInfo)), 5803 0) 5804 } 5805 5806 func AlignRects(rect *RECT, b DWORD, c DWORD, d DWORD) bool { 5807 ret1 := syscall6(alignRects, 4, 5808 uintptr(unsafe.Pointer(rect)), 5809 uintptr(b), 5810 uintptr(c), 5811 uintptr(d), 5812 0, 5813 0) 5814 return ret1 != 0 5815 } 5816 5817 func CascadeChildWindows(parent HWND, flags UINT) WORD { 5818 ret1 := syscall3(cascadeChildWindows, 2, 5819 uintptr(parent), 5820 uintptr(flags), 5821 0) 5822 return WORD(ret1) 5823 } 5824 5825 func CreateDialogIndirectParamAorW(hInst HINSTANCE, dlgTemplate /*const*/ uintptr, owner HWND, dlgProc DLGPROC, param LPARAM, flags DWORD) HWND { 5826 dlgProcCallback := syscall.NewCallback(func(hwndDlgRawArg HWND, uMsgRawArg uint32, wParamRawArg WPARAM, lParamRawArg LPARAM) uintptr { 5827 ret := dlgProc(hwndDlgRawArg, uMsgRawArg, wParamRawArg, lParamRawArg) 5828 return uintptr(ret) 5829 }) 5830 ret1 := syscall6(createDialogIndirectParamAorW, 6, 5831 uintptr(hInst), 5832 dlgTemplate, 5833 uintptr(owner), 5834 dlgProcCallback, 5835 uintptr(param), 5836 uintptr(flags)) 5837 return HWND(ret1) 5838 } 5839 5840 func DialogBoxIndirectParamAorW(hInstance HINSTANCE, template /*const*/ uintptr, owner HWND, dlgProc DLGPROC, param LPARAM, flags DWORD) INT_PTR { 5841 dlgProcCallback := syscall.NewCallback(func(hwndDlgRawArg HWND, uMsgRawArg uint32, wParamRawArg WPARAM, lParamRawArg LPARAM) uintptr { 5842 ret := dlgProc(hwndDlgRawArg, uMsgRawArg, wParamRawArg, lParamRawArg) 5843 return uintptr(ret) 5844 }) 5845 ret1 := syscall6(dialogBoxIndirectParamAorW, 6, 5846 uintptr(hInstance), 5847 template, 5848 uintptr(owner), 5849 dlgProcCallback, 5850 uintptr(param), 5851 uintptr(flags)) 5852 return (INT_PTR)(unsafe.Pointer(ret1)) 5853 } 5854 5855 func DrawCaptionTemp(hwnd HWND, hdc HDC, rect /*const*/ *RECT, hFont HFONT, hIcon HICON, str string, uFlags UINT) bool { 5856 strStr := unicode16FromString(str) 5857 ret1 := syscall9(drawCaptionTemp, 7, 5858 uintptr(hwnd), 5859 uintptr(hdc), 5860 uintptr(unsafe.Pointer(rect)), 5861 uintptr(hFont), 5862 uintptr(hIcon), 5863 uintptr(unsafe.Pointer(&strStr[0])), 5864 uintptr(uFlags), 5865 0, 5866 0) 5867 return ret1 != 0 5868 } 5869 5870 func DrawMenuBarTemp(hwnd HWND, hDC HDC, lprect *RECT, hMenu HMENU, hFont HFONT) DWORD { 5871 ret1 := syscall6(drawMenuBarTemp, 5, 5872 uintptr(hwnd), 5873 uintptr(hDC), 5874 uintptr(unsafe.Pointer(lprect)), 5875 uintptr(hMenu), 5876 uintptr(hFont), 5877 0) 5878 return DWORD(ret1) 5879 } 5880 5881 func GetAppCompatFlags(hTask HTASK) DWORD { 5882 ret1 := syscall3(getAppCompatFlags, 1, 5883 uintptr(hTask), 5884 0, 5885 0) 5886 return DWORD(ret1) 5887 } 5888 5889 func GetAppCompatFlags2(hTask HTASK) DWORD { 5890 ret1 := syscall3(getAppCompatFlags2, 1, 5891 uintptr(hTask), 5892 0, 5893 0) 5894 return DWORD(ret1) 5895 } 5896 5897 func GetCursorFrameInfo(hCursor HCURSOR, reserved DWORD, istep DWORD, rate_jiffies *uint32, num_steps *uint32) HCURSOR { 5898 ret1 := syscall6(getCursorFrameInfo, 5, 5899 uintptr(hCursor), 5900 uintptr(reserved), 5901 uintptr(istep), 5902 uintptr(unsafe.Pointer(rate_jiffies)), 5903 uintptr(unsafe.Pointer(num_steps)), 5904 0) 5905 return HCURSOR(ret1) 5906 } 5907 5908 func GetInternalWindowPos(hwnd HWND, rectWnd *RECT, ptIcon *POINT) UINT { 5909 ret1 := syscall3(getInternalWindowPos, 3, 5910 uintptr(hwnd), 5911 uintptr(unsafe.Pointer(rectWnd)), 5912 uintptr(unsafe.Pointer(ptIcon))) 5913 return UINT(ret1) 5914 } 5915 5916 func GetProgmanWindow() HWND { 5917 ret1 := syscall3(getProgmanWindow, 0, 5918 0, 5919 0, 5920 0) 5921 return HWND(ret1) 5922 } 5923 5924 func GetTaskmanWindow() HWND { 5925 ret1 := syscall3(getTaskmanWindow, 0, 5926 0, 5927 0, 5928 0) 5929 return HWND(ret1) 5930 } 5931 5932 func KillSystemTimer(hwnd HWND, id *uint32) bool { 5933 ret1 := syscall3(killSystemTimer, 2, 5934 uintptr(hwnd), 5935 uintptr(unsafe.Pointer(id)), 5936 0) 5937 return ret1 != 0 5938 } 5939 5940 func LoadLocalFonts() { 5941 syscall3(loadLocalFonts, 0, 5942 0, 5943 0, 5944 0) 5945 } 5946 5947 func MessageBoxTimeout(hWnd HWND, text string, title string, aType UINT, langid WORD, timeout DWORD) INT { 5948 textStr := unicode16FromString(text) 5949 titleStr := unicode16FromString(title) 5950 ret1 := syscall6(messageBoxTimeout, 6, 5951 uintptr(hWnd), 5952 uintptr(unsafe.Pointer(&textStr[0])), 5953 uintptr(unsafe.Pointer(&titleStr[0])), 5954 uintptr(aType), 5955 uintptr(langid), 5956 uintptr(timeout)) 5957 return INT(ret1) 5958 } 5959 5960 func PrivateExtractIconEx(lpwstrFile string, nIndex int32, phIconLarge *HICON, phIconSmall *HICON, nIcons UINT) UINT { 5961 lpwstrFileStr := unicode16FromString(lpwstrFile) 5962 ret1 := syscall6(privateExtractIconEx, 5, 5963 uintptr(unsafe.Pointer(&lpwstrFileStr[0])), 5964 uintptr(nIndex), 5965 uintptr(unsafe.Pointer(phIconLarge)), 5966 uintptr(unsafe.Pointer(phIconSmall)), 5967 uintptr(nIcons), 5968 0) 5969 return UINT(ret1) 5970 } 5971 5972 func RegisterLogonProcess(hprocess HANDLE, x bool) DWORD { 5973 ret1 := syscall3(registerLogonProcess, 2, 5974 uintptr(hprocess), 5975 getUintptrFromBool(x), 5976 0) 5977 return DWORD(ret1) 5978 } 5979 5980 func RegisterServicesProcess(servicesProcessId DWORD) int32 { 5981 ret1 := syscall3(registerServicesProcess, 1, 5982 uintptr(servicesProcessId), 5983 0, 5984 0) 5985 return int32(ret1) 5986 } 5987 5988 func RegisterSystemThread(flags DWORD, reserved DWORD) { 5989 syscall3(registerSystemThread, 2, 5990 uintptr(flags), 5991 uintptr(reserved), 5992 0) 5993 } 5994 5995 func RegisterTasklist(x DWORD) DWORD { 5996 ret1 := syscall3(registerTasklist, 1, 5997 uintptr(x), 5998 0, 5999 0) 6000 return DWORD(ret1) 6001 } 6002 6003 func ScrollChildren(hWnd HWND, uMsg UINT, wParam WPARAM, lParam LPARAM) { 6004 syscall6(scrollChildren, 4, 6005 uintptr(hWnd), 6006 uintptr(uMsg), 6007 uintptr(wParam), 6008 uintptr(lParam), 6009 0, 6010 0) 6011 } 6012 6013 func SetInternalWindowPos(hwnd HWND, showCmd UINT, rect *RECT, pt *POINT) { 6014 syscall6(setInternalWindowPos, 4, 6015 uintptr(hwnd), 6016 uintptr(showCmd), 6017 uintptr(unsafe.Pointer(rect)), 6018 uintptr(unsafe.Pointer(pt)), 6019 0, 6020 0) 6021 } 6022 6023 func SetLogonNotifyWindow(hwinsta HWINSTA, hwnd HWND) DWORD { 6024 ret1 := syscall3(setLogonNotifyWindow, 2, 6025 uintptr(hwinsta), 6026 uintptr(hwnd), 6027 0) 6028 return DWORD(ret1) 6029 } 6030 6031 func SetProgmanWindow(hwnd HWND) HWND { 6032 ret1 := syscall3(setProgmanWindow, 1, 6033 uintptr(hwnd), 6034 0, 6035 0) 6036 return HWND(ret1) 6037 } 6038 6039 func SetShellWindow(hwndShell HWND) bool { 6040 ret1 := syscall3(setShellWindow, 1, 6041 uintptr(hwndShell), 6042 0, 6043 0) 6044 return ret1 != 0 6045 } 6046 6047 func SetShellWindowEx(hwndShell HWND, hwndListView HWND) bool { 6048 ret1 := syscall3(setShellWindowEx, 2, 6049 uintptr(hwndShell), 6050 uintptr(hwndListView), 6051 0) 6052 return ret1 != 0 6053 } 6054 6055 func SetSysColorsTemp(pPens /*const*/ *COLORREF, pBrushes /*const*/ *HBRUSH, n *uint32) *uint32 { 6056 ret1 := syscall3(setSysColorsTemp, 3, 6057 uintptr(unsafe.Pointer(pPens)), 6058 uintptr(unsafe.Pointer(pBrushes)), 6059 uintptr(unsafe.Pointer(n))) 6060 return (*uint32)(unsafe.Pointer(ret1)) 6061 } 6062 6063 func SetSystemMenu(hwnd HWND, hMenu HMENU) bool { 6064 ret1 := syscall3(setSystemMenu, 2, 6065 uintptr(hwnd), 6066 uintptr(hMenu), 6067 0) 6068 return ret1 != 0 6069 } 6070 6071 func SetSystemTimer(hwnd HWND, id *uint32, timeout UINT, proc TIMERPROC) *uint32 { 6072 procCallback := syscall.NewCallback(proc) 6073 ret1 := syscall6(setSystemTimer, 4, 6074 uintptr(hwnd), 6075 uintptr(unsafe.Pointer(id)), 6076 uintptr(timeout), 6077 procCallback, 6078 0, 6079 0) 6080 return (*uint32)(unsafe.Pointer(ret1)) 6081 } 6082 6083 func SetTaskmanWindow(hwnd HWND) HWND { 6084 ret1 := syscall3(setTaskmanWindow, 1, 6085 uintptr(hwnd), 6086 0, 6087 0) 6088 return HWND(ret1) 6089 } 6090 6091 func SetWindowStationUser(x1 DWORD, x2 DWORD) DWORD { 6092 ret1 := syscall3(setWindowStationUser, 2, 6093 uintptr(x1), 6094 uintptr(x2), 6095 0) 6096 return DWORD(ret1) 6097 } 6098 6099 func TileChildWindows(parent HWND, flags UINT) WORD { 6100 ret1 := syscall3(tileChildWindows, 2, 6101 uintptr(parent), 6102 uintptr(flags), 6103 0) 6104 return WORD(ret1) 6105 } 6106 6107 func User32InitializeImmEntryTable(unnamed0 DWORD) bool { 6108 ret1 := syscall3(user32InitializeImmEntryTable, 1, 6109 uintptr(unnamed0), 6110 0, 6111 0) 6112 return ret1 != 0 6113 } 6114 6115 func UserRealizePalette(hDC HDC) UINT { 6116 ret1 := syscall3(userRealizePalette, 1, 6117 uintptr(hDC), 6118 0, 6119 0) 6120 return UINT(ret1) 6121 } 6122 6123 func UserRegisterWowHandlers(aNew /*const*/ uintptr, orig uintptr) { 6124 syscall3(userRegisterWowHandlers, 2, 6125 aNew, 6126 orig, 6127 0) 6128 } 6129 6130 func AddClipboardFormatListener(hWnd HWND) DWORD { 6131 ret1 := syscall3(addClipboardFormatListener, 1, 6132 uintptr(hWnd), 6133 0, 6134 0) 6135 return DWORD(ret1) 6136 } 6137 6138 func RemoveClipboardFormatListener(hWnd HWND) DWORD { 6139 ret1 := syscall3(removeClipboardFormatListener, 1, 6140 uintptr(hWnd), 6141 0, 6142 0) 6143 return DWORD(ret1) 6144 }