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