- Timestamp:
- Mar 13, 2007, 1:13:06 AM (18 years ago)
- Location:
- Include
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/api_gdi.sbp
r141 r160 16 16 Const _FuncName_GetEnhMetaFileDescription = "GetEnhMetaFileDescriptionW" 17 17 Const _FuncName_GetObject = "GetObjectW" 18 Const _FuncName_GetTextFace = "GetTextFaceW" 18 19 Const _FuncName_GetTextMetrics = "GetTextMetricsW" 19 20 Const _FuncName_ResetDC = "ResetDCW" … … 32 33 Const _FuncName_GetEnhMetaFileDescription = "GetEnhMetaFileDescriptionA" 33 34 Const _FuncName_GetObject = "GetObjectA" 35 Const _FuncName_GetTextFace = "GetTextFaceA" 34 36 Const _FuncName_GetTextMetrics = "GetTextMetricsA" 35 37 Const _FuncName_ResetDC = "ResetDCA" … … 428 430 Const DMCOLLATE_TRUE = 1 429 431 430 Const CCHDEVICENAME = 32431 432 Const CCHFORMNAME = 32 432 433 Type DEVMODEW … … 571 572 572 573 Declare Function AbortPath Lib "gdi32" (hdc As HDC) As BOOL 574 Type BLENDFUNCTION 575 BlendOp As Byte 576 BlendFlags As Byte 577 SourceConstantAlpha As Byte 578 AlphaFormat As Byte 579 End Type 580 Declare Function AlphaBlend Lib "msimg32" (hdcDest As HDC, nXDest As Long, nYDest As Long, nDestWidth As Long, nDestHeight As Long, hdcSrc As HDC, XSrc As Long, YSrc As Long, nSrcWidth As Long, nSrcHeight As Long, ByRef blendfunc As BLENDFUNCTION) As Long 573 581 Declare Function Arc Lib "gdi32" (hdc As HDC, nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long, nXStartArc As Long, nYStartArc As Long, nXEndArc As Long, nYEndArc As Long) As BOOL 574 582 Declare Function BeginPath Lib "gdi32" (hdc As HDC) As BOOL … … 1014 1022 Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32A" (hdc As HDC, pString As PCSTR, cbString As Long, ByRef Size As SIZE) As Long 1015 1023 #endif 1024 Declare Function GetTextFace Lib "gdi32" Alias _FuncName_GetTextFace (hdc As HDC, nCount As Long, lpFacename As LPTSTR)As Long 1016 1025 1017 1026 Const TMPF_FIXED_PITCH = &H01 … … 1161 1170 Declare Function TextOut Lib "gdi32" Alias "TextOutA" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCSTR, cbString As Long) As Long 1162 1171 #endif 1172 Declare Function TransparentBlt Lib "msimg32" (hdcDest As HDC, nXDest As Long, nYDest As Long, nDestWidth As Long, nDestHeight As Long, hdcSrc As HDC, XSrc As Long, YSrc As Long, nSrcWidth As Long, nSrcHeight As Long, dwRop As DWord) As Long 1163 1173 1164 1174 /* Pixel Format */ -
Include/api_imm.sbp
r125 r160 49 49 Declare Function ImmReleaseContext Lib "imm32" (hWnd As HWND, hIMC As HIMC) As BOOL 50 50 51 Declare Function ImmAssociateContext Lib "imm32" (hWnd As HWND, himc As HIMC) As HIMC 52 51 53 Const GCS_COMPREADSTR = &h0001 52 54 Const GCS_COMPREADATTR = &h0002 -
Include/api_shell.sbp
r141 r160 16 16 Const _FuncName_ShellAbout = "ShellAboutW" 17 17 Const _FuncName_ShellExecute = "ShellExecuteW" 18 Const _FuncName_ShellExecuteEx = "ShellExecuteExW" 19 Const _FuncName_Shell_NotifyIcon = "_FuncName_Shell_NotifyIconW" 20 Const _FuncName_SHEmptyRecycleBin = "_FuncName_SHEmptyRecycleBinW" 18 21 Const _FuncName_SHFileOperation = "SHFileOperationW" 22 Const _FuncName_SHGetFileInfo = "_FuncName_SHGetFileInfoW" 19 23 Const _FuncName_SHGetPathFromIDList = "SHGetPathFromIDListW" 24 Const _FuncName_SHGetSpecialFolderPath = "_FuncName_SHGetSpecialFolderPathW" 20 25 #else 21 26 Const _FuncName_DoEnvironmentSubst = "DoEnvironmentSubstA" … … 29 34 Const _FuncName_ShellAbout = "ShellAboutA" 30 35 Const _FuncName_ShellExecute = "ShellExecuteA" 36 Const _FuncName_ShellExecuteEx = "ShellExecuteExA" 37 Const _FuncName_Shell_NotifyIcon = "_FuncName_Shell_NotifyIconA" 38 Const _FuncName_SHEmptyRecycleBin = "_FuncName_SHEmptyRecycleBinA" 31 39 Const _FuncName_SHFileOperation = "SHFileOperationA" 40 Const _FuncName_SHGetFileInfo = "_FuncName_SHGetFileInfoA" 32 41 Const _FuncName_SHGetPathFromIDList = "SHGetPathFromIDListA" 33 #endif 42 Const _FuncName_SHGetSpecialFolderPath = "_FuncName_SHGetSpecialFolderPathA" 43 #endif 44 45 Interface IEnumIDList 46 End Interface 34 47 35 48 '----------- 36 49 ' Shell API 37 50 51 ' shellapi.h 38 52 Declare Function DoEnvironmentSubst Lib "shell32" Alias _FuncName_DoEnvironmentSubst ( 39 pszString As P STR,53 pszString As PTSTR, 40 54 cchString As DWord 41 55 ) As DWord 42 56 57 ' shellapi.h 43 58 Declare Sub DragAcceptFiles Lib "shell32" (hWnd As HWND, bAccept As BOOL) 44 59 Declare Sub DragFinish Lib "shell32" (hDrop As HDROP) … … 46 61 Declare Function DragQueryPoint Lib "shell32" (hDrop As HDROP, ByRef lpPoint As POINTAPI) As Long 47 62 Declare Function ExtractAssociatedIcon Lib "shell32" Alias _FuncName_ExtractAssociatedIcon (hInst As HINSTANCE, lpIconPath As LPTSTR, lpiIcon As *Word) As HICON 63 ' Shellapi.h 48 64 Declare Function ExtractIcon Lib "shell32" Alias _FuncName_ExtractIcon (hInst As HINSTANCE, lpszExeFileName As LPCTSTR, nIconIndex As Long) As HICON 49 65 Declare Function ExtractIconEx Lib "shell32" Alias _FuncName_ExtractIconEx (lpszFile As PCSTR, nIconIndex As Long, phiconLarge As *DWord, phiconSmall As *DWord, nIcons As Long) As HICON 50 66 67 ' shellapi.h 51 68 Declare Function FindExecutable Lib "shell32" Alias _FuncName_FindExecutable ( 52 pFile AsPCTSTR,53 pDirectory AsPCTSTR,54 pResult AsPCTSTR69 lpFile As LPCTSTR, 70 lpDirectory As LPCTSTR, 71 lpResult As LPCTSTR 55 72 ) As Long 56 73 … … 72 89 ) As HRESULT 73 90 91 ' shlobj.h 74 92 Declare Sub SHAddToRecentDocs Lib "shell32" (ByVal uFlags As Long, ByVal pv As VoidPtr) 75 93 … … 108 126 End Type 109 127 128 ' shellapi.h 110 129 Declare Function SHAppBarMessage Lib "shell32" (dwMessage As DWord, ByRef Data As APPBARDATA) As ULONG_PTR 111 130 … … 148 167 #endif 149 168 150 Type SHITEMID 169 Type SHITEMID 'shtypes.h 151 170 cb As Word 152 171 abID[ELM(1)] As Byte 153 172 End Type 154 173 155 Type ITEMIDLIST 174 Type ITEMIDLIST 'shtypes.h 156 175 mkid As SHITEMID 157 176 End Type 177 178 typedef LPITEMIDLIST = /*__unaligned*/ *ITEMIDLIST 179 typedef LPCITEMIDLIST = /*__unaligned const*/ *ITEMIDLIST 180 181 'shlobj.h 158 182 Declare Function SHBrowseForFolder Lib "shell32" Alias _FuncName_SHBrowseForFolder (ByRef bi As BROWSEINFO) As *ITEMIDLIST 159 183 … … 232 256 ' ShellApi.h 233 257 Declare Function ShellExecute Lib "shell32" Alias _FuncName_ShellExecute (hWnd As HWND, lpOperation As LPCTSTR, lpFile As LPCTSTR, lpParameters As LPCTSTR, lpDirectory As LPCTSTR, nShowCmd As Long) As HINSTANCE 258 259 Const SEE_MASK_CLASSNAME = &H0001 260 Const SEE_MASK_CLASSKEY = &H0003 261 Const SEE_MASK_IDLIST = &H0004 262 Const SEE_MASK_INVOKEIDLIST = &H000C 263 Const SEE_MASK_ICON = &H0010 264 Const SEE_MASK_HOTKEY = &H0020 265 Const SEE_MASK_NOCLOSEPROCESS = &H0040 266 Const SEE_MASK_CONNECTNETDRV = &H0080 267 Const SEE_MASK_FLAG_DDEWAIT = &H0100 268 Const SEE_MASK_DOENVSUBST = &H0200 269 Const SEE_MASK_FLAG_NO_UI = &H0400 270 271 Type SHELLEXECUTEINFOA 272 cbSize As DWord 273 fMask As DWord 274 hwnd As HWND 275 lpVerb As LPCSTR 276 lpFile As LPCSTR 277 lpParameters As LPCSTR 278 lpDirectory As LPCSTR 279 nShow As Long 280 hInstApp As HINSTANCE 281 lpIDList As LPVOID 282 lpClass As LPCSTR 283 hkeyClass As HKEY 284 dwHotKey As DWord 285 hIcon As HANDLE 286 hProcess As HANDLE 287 End Type 288 Type SHELLEXECUTEINFOW 289 cbSize As DWord 290 fMask As DWord 291 hwnd As HWND 292 lpVerb As LPCWSTR 293 lpFile As LPCWSTR 294 lpParameters As LPCWSTR 295 lpDirectory As LPCWSTR 296 nShow As Long 297 hInstApp As HINSTANCE 298 lpIDList As LPVOID 299 lpClass As LPCWSTR 300 hkeyClass As HKEY 301 dwHotKey As DWord 302 hIcon As HANDLE 303 hProcess As HANDLE 304 End Type 305 #ifdef UNICODE 306 TypeDef SHELLEXECUTEINFO = SHELLEXECUTEINFOW 307 #else 308 TypeDef SHELLEXECUTEINFO = SHELLEXECUTEINFOA 309 #endif 310 TypeDef LPSHELLEXECUTEINFO = *SHELLEXECUTEINFO 311 Declare Function ShellExecuteEx Lib "shell32" Alias _FuncName_ShellExecuteEx (ByRef ExecInfo As SHELLEXECUTEINFO) As BOOL 234 312 235 313 Const FO_MOVE = &H0001 … … 283 361 'SHGetDataFromIDList 284 362 363 'shlobj.h 364 Declare Function SHGetDesktopFolder Lib "shell32" (ByRef pshf As *IShellFolder) As HRESULT 365 285 366 Declare Function SHGetPathFromIDList Lib "shell32" Alias _FuncName_SHGetPathFromIDList (pidl As *ITEMIDLIST, pszPath As PTSTR) As Long 286 367 368 ' ShellApi.h 369 Declare Function SHEmptyRecycleBin Lib"shell32" Alias _FuncName_SHEmptyRecycleBin (hwnd As HWND, pszRootPath As LPCTSTR, dwFlags As DWord) As HRESULT 370 371 ' ShlObj.h 372 Declare Function SHGetSpecialFolderPath Lib "shell32" Alias _FuncName_SHGetSpecialFolderPath (hwndOwner As HWND, lpszPath As LPTSTR, nFolder As Long, fCreate As BOOL) As BOOL 373 374 ' shlobj.h 375 Declare Function SHGetInstanceExplorer Lib "shell32" (ByRef ppunk As *IUnknown) As HRESULT 376 377 Const CSIDL_PERSONAL = 5 378 Const CSIDL_FAVORITIES = 6 379 380 Const SHGFI_ICON = &H000000100 381 Const SHGFI_DISPLAYNAME = &H000000200 382 Const SHGFI_TYPENAME = &H000000400 383 Const SHGFI_ATTRIBUTES = &H000000800 384 Const SHGFI_ICONLOCATION = &H000001000 385 Const SHGFI_EXETYPE = &H000002000 386 Const SHGFI_SYSICONINDEX = &H000004000 387 Const SHGFI_LINKOVERLAY = &H000008000 388 Const SHGFI_SELECTED = &H000010000 389 Const SHGFI_ATTR_SPECIFIED = &H000020000 390 Const SHGFI_LARGEICON = &H000000000 391 Const SHGFI_SMALLICON = &H000000001 392 Const SHGFI_OPENICON = &H000000002 393 Const SHGFI_SHELLICONSIZE = &H000000004 394 Const SHGFI_PIDL = &H000000008 395 Const SHGFI_USEFILEATTRIBUTES = &H000000010 396 Const SHGFI_ADDOVERLAYS = &H000000020 397 Const SHGFI_OVERLAYINDEX = &H000000040 398 399 ' ShellApi.h 400 Type SHFILEINFO 401 hIcon As HICON 402 iIcon As Long 403 dwAttributes As DWord 404 szDisplayName[ELM(MAX_PATH)] As TCHAR 405 szTypeName[ELM(80)] As TCHAR 406 End Type 407 408 ' shellapi.h 409 Declare Function SHGetFileInfo Lib "shell32" Alias _FuncName_SHGetFileInfo (pszPath As LPCTSTR, dwFileAttributes As DWord, ByRef sfi As SHFILEINFO, cbFileInfo As DWord, uFlags As DWord) As ULONG_PTR 410 411 Type NOTIFYICONDATAW 412 cbSize As DWord 413 hWnd As HWND 414 uID As DWord 415 uFlags As DWord 416 uCallbackMessage As DWord 417 hIcon As HICON 418 szTip[ELM(64)] As WCHAR 419 dwState As DWord 420 dwStateMask As DWord 421 szInfo[ELM(256)] As WCHAR 422 'Union 423 uTimeout As DWord 424 ' uVersion As DWord 425 'End Union 426 szInfoTitle[ELM(64)] As WCHAR 427 dwInfoFlags As DWord 428 guidItem As GUID 429 End Type 430 Type NOTIFYICONDATAA 431 cbSize As DWord 432 hWnd As HWND 433 uID As DWord 434 uFlags As DWord 435 uCallbackMessage As DWord 436 hIcon As HICON 437 szTip[ELM(64)] As SByte 438 dwState As DWord 439 dwStateMask As DWord 440 szInfo[ELM(256)] As SByte 441 'Union 442 uTimeout As DWord 443 ' uVersion As DWord 444 'End Union 445 szInfoTitle[ELM(64)] As SByte 446 dwInfoFlags As DWord 447 guidItem As GUID 448 End Type 449 #ifdef UNICODE 450 TypeDef NOTIFYICONDATA = NOTIFYICONDATAW 451 #else 452 TypeDef NOTIFYICONDATA = NOTIFYICONDATAA 453 #endif 454 Declare Function Shell_NotifyIcon Lib "shell32" Alias _FuncName_Shell_NotifyIcon (dwMessage As DWORD, ByRef data As NOTIFYICONDATA) As BOOL 455 456 Type STRRET 'shtypes.h 457 uType As DWord 458 'Union 459 'pOleStr As *WCHAR 460 'uOffset As DWord 461 cStr[ELM(MAX_PATH)] As Byte 462 'End Union 463 End Type 464 465 ' shobjidl.h 466 Enum SLGP_FLAGS 467 SLGP_SHORTPATH = &h1 468 SLGP_UNCPRIORITY = &h2 469 SLGP_RAWPATH = &h4 470 SLGP_RELATIVEPRIORITY = &h8 471 End Enum 472 473 Interface IShellLinkA 'shobjidl.h 474 Inherits IUnknown 475 476 Function GetPath( 477 /* [size_is][out] */ pszFile As PSTR, 478 /* [in] */ cch As Long, 479 /* [full][out][in] */ pfd As *WIN32_FIND_DATAA, 480 /* [in] */ fFlags As DWord) As HRESULT 481 Function GetIDList( 482 /* [out] */ ByRef ppidl As LPITEMIDLIST) As HRESULT 483 Function SetIDList( 484 /* [in] */ pidl As LPCITEMIDLIST) As HRESULT 485 Function GetDescription( 486 /* [size_is][out] */ pszName As PSTR, 487 /* [in] */ cch As Long) As HRESULT 488 Function SetDescription( 489 /* [in] */ pszName As PCSTR) As HRESULT 490 Function GetWorkingDirectory( 491 /* [size_is][out] */ pszDir As PSTR, 492 /* [in] */ cch As Long) As HRESULT 493 Function SetWorkingDirectory( 494 /* [in] */ pszDir As PCSTR) As HRESULT 495 Function GetArguments( 496 /* [size_is][out] */ pszArgs As PSTR, 497 /* [in] */ cch As Long) As HRESULT 498 Function SetArguments( 499 /* [in] */ pszArgs As PCSTR) As HRESULT 500 Function GetHotkey( 501 /* [out] */ ByRef wHotkey As Word) As HRESULT 502 Function SetHotkey( 503 /* [in] */ wHotkey As Word) As HRESULT 504 Function GetShowCmd( 505 /* [out] */ ByRef piShowCmd As Long) As HRESULT 506 Function SetShowCmd( 507 /* [in] */ iShowCmd As Long) As HRESULT 508 Function GetIconLocation( 509 /* [size_is][out] */ pszIconPath As PSTR, 510 /* [in] */ cch As Long, 511 /* [out] */ ByRef iIcon As Long) As HRESULT 512 Function SetIconLocation( 513 /* [in] */ pszIconPath As PCSTR, 514 /* [in] */ iIcon As Long) As HRESULT 515 Function SetRelativePath( 516 /* [in] */ pszPathRel As PCSTR, 517 /* [in] */ dwReserved As DWord) As HRESULT 518 Function Resolve( 519 /* [in] */ hwnd As HWND, 520 /* [in] */ fFlags As DWord) As HRESULT 521 Function SetPath( 522 /* [in] */ pszFile As PCSTR) As HRESULT 523 End Interface 524 525 Interface IShellLinkW 'shobjidl.h 526 Inherits IUnknown 527 528 Function GetPath( 529 /* [size_is][out] */ pszFile As PWSTR, 530 /* [in] */ cch As Long, 531 /* [full][out][in] */ pfd As *WIN32_FIND_DATAW, 532 /* [in] */ fFlags As DWord) As HRESULT 533 Function GetIDList( 534 /* [out] */ ppidl As *LPITEMIDLIST) As HRESULT 535 Function SetIDList( 536 /* [in] */ pidl As LPCITEMIDLIST) As HRESULT 537 Function GetDescription( 538 /* [size_is][out] */ pszName As PWSTR, 539 /* [in] */ cch As Long) As HRESULT 540 Function SetDescription( 541 /* [in] */ pszName As PCWSTR) As HRESULT 542 Function GetWorkingDirectory( 543 /* [size_is][out] */ pszDir As PSTR, 544 /* [in] */ cch As Long) As HRESULT 545 Function SetWorkingDirectory( 546 /* [in] */ pszDir As PCWSTR) As HRESULT 547 Function GetArguments( 548 /* [size_is][out] */ pszArgs As PSTR, 549 /* [in] */ cch As Long) As HRESULT 550 Function SetArguments( 551 /* [in] */ pszArgs As PCWSTR) As HRESULT 552 Function GetHotkey( 553 /* [out] */ ByRef wHotkey As Word) As HRESULT 554 Function SetHotkey( 555 /* [in] */ wHotkey As Word) As HRESULT 556 Function GetShowCmd( 557 /* [out] */ ByRef piShowCmd As Long) As HRESULT 558 Function SetShowCmd( 559 /* [in] */ iShowCmd As Long) As HRESULT 560 Function GetIconLocation( 561 /* [size_is][out] */ pszIconPath As PWSTR, 562 /* [in] */ cch As Long, 563 /* [out] */ ByRef iIcon As Long) As HRESULT 564 Function SetIconLocation( 565 /* [in] */ pszIconPath As PCWSTR, 566 /* [in] */ iIcon As Long) As HRESULT 567 Function SetRelativePath( 568 /* [in] */ pszPathRel As PCWSTR, 569 /* [in] */ dwReserved As DWord) As HRESULT 570 Function Resolve( 571 /* [in] */ hwnd As HWND, 572 /* [in] */ fFlags As DWord) As HRESULT 573 Function SetPath( 574 /* [in] */ pszFile As PCWSTR) As HRESULT 575 End Interface 576 577 #ifdef UNICODE 578 TypeDef IShellLink = IShellLinkW 579 #else 580 TypeDef IShellLink = IShellLinkA 581 #endif 582 583 Enum SHCONT 584 SHCONTF_FOLDERS = &h0020 585 SHCONTF_NONFOLDERS = &h0040 586 SHCONTF_INCLUDEHIDDEN = &h0080 587 SHCONTF_INIT_ON_FIRST_NEXT = &h0100 588 SHCONTF_NETPRINTERSRCH = &h0200 589 SHCONTF_SHAREABLE = &h0400 590 SHCONTF_STORAGE = &h0800 591 End Enum 592 593 Enum SHGNO 594 SHGDN_NORMAL = &h0000 595 SHGDN_INFOLDER = &h0001 596 SHGDN_FOREDITING = &h1000 597 SHGDN_FORADDRESSBAR = &h4000 598 SHGDN_FORPARSING = &h8000 599 End Enum 600 601 TypeDef SHCONTF = DWord 602 TypeDef SFGAOF = DWord 603 TypeDef SHGDNF = DWord 604 605 Dim IID_IShellFolder = [&h000214E6, 0, 0, [&hC0, 0, 0, 0, 0, 0, 0, &h46]] As IID 606 Interface IShellFolder 'shobjidl.h 607 Inherits IUnknown 608 609 Function ParseDisplayName( 610 /* [in] */ hwnd As HWND, 611 /* [in] */ pbc As *IBindCtx, 612 /* [string][in] */ pszDisplayName As LPOLESTR, 613 /* [out] */ pchEaten As *DWord, 614 /* [out] */ ByRef pidl As *ITEMIDLIST, 615 /* [unique][out][in] */ pdwAttributes As *DWord) As HRESULT 616 Function EnumObjects( 617 /* [in] */ hwnd As HWND, 618 /* [in] */ grfFlags As SHCONTF, 619 /* [out] */ ByRef penumIDList As *IEnumIDList) As HRESULT 620 Function BindToObject( 621 /* [in] */ pidl As *ITEMIDLIST, 622 /* [in] */ pbc As *IBindCtx, 623 /* [in] */ ByRef riid As IID, 624 /* [iid_is][out] */ ppv As *VoidPtr) As HRESULT 625 Function BindToStorage( 626 /* [in] */ pidl As *ITEMIDLIST, 627 /* [in] */ pbc As *IBindCtx, 628 /* [in] */ ByRef riid As IID, 629 /* [iid_is][out] */ ppv As *VoidPtr) As HRESULT 630 Function CompareIDs( 631 /* [in] */ lParam As LPARAM, 632 /* [in] */ pidl1 As *ITEMIDLIST, 633 /* [in] */ pidl2 As *ITEMIDLIST) As HRESULT 634 Function CreateViewObject( 635 /* [in] */ hwndOwner As HWND, 636 /* [in] */ ByRef riid As IID, 637 /* [iid_is][out] */ ppv As *VoidPtr) As HRESULT 638 Function GetAttributesOf( 639 /* [in] */ cidl As DWord, 640 /* [size_is][in] */ apidl As *ITEMIDLIST, 641 /* [out][in] */ ByRef rgfInOut As SFGAOF) As HRESULT 642 Function GetUIObjectOf( 643 /* [in] */ hwndOwner As HWND, 644 /* [in] */ cidl As DWord, 645 /* [size_is][in] */ apidl As *ITEMIDLIST, 646 /* [in] */ ByRef riid As IID, 647 /* [unique][out][in] */ rgfReserved As *DWord, 648 /* [iid_is][out] */ ppv As *VoidPtr) As HRESULT 649 Function GetDisplayNameOf( 650 /* [in] */ pidl As *ITEMIDLIST, 651 /* [in] */ uFlags As SHGDNF, 652 /* [out] */ ByRef pName As STRRET) As HRESULT 653 Function SetNameOf( 654 /* [in] */ hwnd As HWND, 655 /* [in] */ pidl As *ITEMIDLIST, 656 /* [string][in] */ pszName As LPCWSTR, 657 /* [in] */ uFlags As SHGDNF, 658 /* [out] */ ByRef ppidlOut As LPITEMIDLIST) As HRESULT 659 End Interface 660 287 661 #endif '_INC_SHELL -
Include/api_shlwapi.sbp
r141 r160 6 6 7 7 8 Declare Function PathGetArgsA Lib "shlwapi" Alias(pszPath As LPCWSTR) As LPWSTR9 Declare Function PathGetArgsW Lib "shlwapi" Alias(pszPath As LPCSTR) As LPSTR8 Declare Function PathGetArgsA Lib "shlwapi" (pszPath As LPCWSTR) As LPWSTR 9 Declare Function PathGetArgsW Lib "shlwapi" (pszPath As LPCSTR) As LPSTR 10 10 #ifdef UNICODE 11 11 Declare Function PathGetArgs Lib "shlwapi" Alias "PathGetArgsW" (pszPath As LPCWSTR) As LPWSTR … … 14 14 #endif 15 15 16 Declare Function StrFormatByteSize64 Lib "shlwapi" Alias(ll As Int64, pszBuf As PWSTR, BufSize As DWord) As PWSTR17 Declare Function StrFormatByteSize64 Lib "shlwapi" Alias(ll As Int64, pszBuf As PSTR, BufSize As DWord) As PSTR16 Declare Function StrFormatByteSize64W Lib "shlwapi" (ll As Int64, pszBuf As PWSTR, BufSize As DWord) As PWSTR 17 Declare Function StrFormatByteSize64A Lib "shlwapi" (ll As Int64, pszBuf As PSTR, BufSize As DWord) As PSTR 18 18 #ifdef UNICODE 19 19 Declare Function StrFormatByteSize64 Lib "shlwapi" Alias "StrFormatByteSize64W" (ll As Int64, pszBuf As PWSTR, BufSize As DWord) As PWSTR … … 22 22 #endif 23 23 24 Declare Function StrFormatKBSizeA Lib "shlwapi" (ByVal Value As Int64, ByVal pszBuf As LPSTR, ByVal uiBuSize As DWord) As LPSTR 25 Declare Function StrFormatKBSizeW Lib "shlwapi" (ByVal Value As Int64, ByVal pszBuf As LPWSTR, ByVal uiBuSize As DWord) As LPWSTR 26 #ifdef UNICODE 27 Declare Function StrFormatKBSize Lib "shlwapi" Alias "StrFormatKBSizeW" (ByVal Value As Int64, ByVal pszBuf As LPWSTR, ByVal uiBuSize As DWord) As LPWSTR 28 #else 29 Declare Function StrFormatKBSize Lib "shlwapi" Alias "StrFormatKBSizeA" (ByVal Value As Int64, ByVal pszBuf As LPSTR, ByVal uiBuSize As DWord) As LPSTR 30 #endif 31 32 Declare Function StrRetToStrA Lib "shlwapi" (ByRef pstr As STRRET, pidl As *ITEMIDLIST, ByRef pszName As PSTR) As HRESULT 33 Declare Function StrRetToStrW Lib "shlwapi" (ByRef pstr As STRRET, pidl As *ITEMIDLIST, ByRef pszName As PWSTR) As HRESULT 34 #ifdef UNICODE 35 Declare Function StrRetToStr Lib "shlwapi" Alias "StrRetToStrW" (ByRef str As STRRET, pidl As *ITEMIDLIST, ByRef pszName As PWSTR) As HRESULT 36 #else 37 Declare Function StrRetToStr Lib "shlwapi" Alias "StrRetToStrA" (ByRef str As STRRET, pidl As *ITEMIDLIST, ByRef pszName As PSTR) As HRESULT 38 #endif 39 40 Declare Function StrChrA Lib "shlwapi" (lpStart As LPCSTR, ch As SByte) As LPSTR 41 Declare Function StrChrW Lib "shlwapi" (lpStart As LPCWSTR, ch As WCHAR) As LPWSTR 42 #ifdef UNICODE 43 Declare Function StrChr Lib "shlwapi" Alias "StrChrW" (lpStart As LPCWSTR, ch As WCHAR) As LPWSTR 44 #else 45 Declare Function StrChr Lib "shlwapi" Alias "StrChrA" (lpStart As LPCSTR, ch As SByte) As LPSTR 46 #endif 47 48 Declare Function StrStrA Lib "shlwapi" (lpFirst As LPCSTR, lpSrch As LPCSTR) As LPSTR 49 Declare Function StrStrW Lib "shlwapi" (lpFirst As LPCWSTR, lpSrch As LPCWSTR) As LPWSTR 50 #ifdef UNICODE 51 Declare Function StrStr Lib "shlwapi" Alias "StrStrW" (lpFirst As LPCWSTR, lpSrch As LPCWSTR) As LPWSTR 52 #else 53 Declare Function StrStr Lib "shlwapi" Alias "StrStrA" (lpFirst As LPCSTR, lpSrch As LPCSTR) As LPSTR 54 #endif 55 56 Declare Function StrToIntA Lib "shlwapi" (psz As LPCSTR) As Long 57 Declare Function StrToIntW Lib "shlwapi" (psz As LPCWSTR) As Long 58 #ifdef UNICODE 59 Declare Function StrToInt Lib "shlwapi" Alias "StrToIntW" (psz As LPCWSTR) As Long 60 #else 61 Declare Function StrToInt Lib "shlwapi" Alias "StrToIntA" (psz As LPCSTR) As Long 62 #endif 63 64 Declare Function PathRenameExtensionA Lib "shlwapi" (pszPath As LPSTR, pszExt As LPCSTR) As BOOL 65 Declare Function PathRenameExtensionW Lib "shlwapi" (pszPath As LPWSTR, pszExt As LPCWSTR) As BOOL 66 #ifdef UNICODE 67 Declare Function PathRenameExtension Lib "shlwapi" Alias "PathRenameExtensionW" (pszPath As LPWSTR, pszExt As LPCWSTR) As BOOL 68 #else 69 Declare Function PathRenameExtension Lib "shlwapi" Alias "PathRenameExtensionA" (pszPath As LPSTR, pszExt As LPCSTR) As BOOL 70 #endif 71 72 73 Declare Function PathRemoveFileSpecA Lib "shlwapi" (pszPath As LPCSTR) As BOOL 74 Declare Function PathRemoveFileSpecW Lib "shlwapi" (pszPath As LPCWSTR) As BOOL 75 #ifdef UNICODE 76 Declare Function PathRemoveFileSpec Lib "shlwapi" Alias "PathRemoveFileSpecW" (pszPath As LPCWSTR) As BOOL 77 #else 78 Declare Function PathRemoveFileSpec Lib "shlwapi" Alias "PathRemoveFileSpecA" (pszPath As LPCSTR) As BOOL 79 #endif 80 81 Declare Function PathRenameExtensionA Lib "shlwapi" (hKey As HKEY, pszSubKey As LPCSTR) As DWord 82 Declare Function PathRenameExtensionW Lib "shlwapi" (hKey As HKEY, pszSubKey As LPCWSTR) As DWord 83 #ifdef UNICODE 84 Declare Function PathRenameExtension Lib "shlwapi" Alias "PathRenameExtensionW" (hKey As HKEY, pszSubKey As LPCWSTR) As DWord 85 #else 86 Declare Function PathRenameExtension Lib "shlwapi" Alias "PathRenameExtensionA" (hKey As HKEY, pszSubKey As LPCSTR) As DWord 87 #endif 88 24 89 #endif '_INC_SHLWAPI -
Include/api_system.sbp
r142 r160 18 18 Const _FuncName_CreateProcess = "CreateProcessW" 19 19 Const _FuncName_DeleteFile = "DeleteFileW" 20 Const _FuncName_ExpandEnvironmentStrings = "ExpandEnvironmentStringsW" 20 21 Const _FuncName_FatalAppExit = "FatalAppExitW" 21 22 Const _FuncName_FindFirstChangeNotification = "FindFirstChangeNotificationW" 22 23 Const _FuncName_FindFirstFile = "FindFirstFileW" 23 24 Const _FuncName_FindNextFile = "FindNextFileW" 25 Const _FuncName_FindResource = "FindResourceW" 24 26 Const _FuncName_FormatMessage = "FormatMessageW" 25 27 Const _FuncName_FreeEnvironmentStrings = "FreeEnvironmentStringsW" … … 37 39 Const _FuncName_GetFullPathName = "GetFullPathNameW" 38 40 Const _FuncName_GetLogicalDriveStrings = "GetLogicalDriveStringsW" 41 Const _FuncName_GetLongPathName = "GetLongPathNameW" 39 42 Const _FuncName_GetModuleFileName = "GetModuleFileNameW" 40 43 Const _FuncName_GetModuleHandle = "GetModuleHandleW" … … 51 54 Const _FuncName_LoadLibrary = "LoadLibraryW" 52 55 Const _FuncName_LoadLibraryEx = "LoadLibraryExW" 56 Const _FuncName_LookupPrivilegeValue = "LookupPrivilegeValueW" 53 57 Const _FuncName_lstrcat = "lstrcatW" 54 58 Const _FuncName_lstrcmp = "lstrcmpW" 55 59 Const _FuncName_lstrcmpi = "lstrcmpiW" 56 60 Const _FuncName_lstrcpy = "lstrcpyW" 61 Const _FuncName_lstrcpyn = "lstrcpynW" 57 62 Const _FuncName_MoveFile = "MoveFileW" 58 63 Const _FuncName_OpenEvent = "OpenEventW" … … 80 85 Const _FuncName_CreateProcess = "CreateProcessA" 81 86 Const _FuncName_DeleteFile = "DeleteFileA" 87 Const _FuncName_ExpandEnvironmentStrings = "ExpandEnvironmentStringsA" 82 88 Const _FuncName_FatalAppExit = "FatalAppExitA" 83 89 Const _FuncName_FindFirstChangeNotification = "FindFirstChangeNotificationA" 84 90 Const _FuncName_FindFirstFile = "FindFirstFileA" 85 91 Const _FuncName_FindNextFile = "FindNextFileA" 92 Const _FuncName_FindResource = "FindResourceA" 86 93 Const _FuncName_FormatMessage = "FormatMessageA" 87 94 Const _FuncName_FreeEnvironmentStrings = "FreeEnvironmentStringsA" … … 99 106 Const _FuncName_GetFullPathName = "GetFullPathNameA" 100 107 Const _FuncName_GetLogicalDriveStrings = "GetLogicalDriveStringsA" 108 Const _FuncName_GetLongPathName = "GetLongPathNameA" 101 109 Const _FuncName_GetModuleFileName = "GetModuleFileNameA" 102 110 Const _FuncName_GetModuleHandle = "GetModuleHandleA" … … 113 121 Const _FuncName_LoadLibrary = "LoadLibraryA" 114 122 Const _FuncName_LoadLibraryEx = "LoadLibraryExA" 123 Const _FuncName_LookupPrivilegeValue = "LookupPrivilegeValueA" 115 124 Const _FuncName_lstrcat = "lstrcatA" 116 125 Const _FuncName_lstrcmp = "lstrcmpA" 117 126 Const _FuncName_lstrcmpi = "lstrcmpiA" 118 127 Const _FuncName_lstrcpy = "lstrcpyA" 128 Const _FuncName_lstrcpyn = "lstrcpynA" 119 129 Const _FuncName_MoveFile = "MoveFileA" 120 130 Const _FuncName_OpenEvent = "OpenEventA" … … 483 493 Declare Function CreateEvent Lib "kernel32" Alias _FuncName_CreateEvent (pEventAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, bInitialState As BOOL, pName As PCTSTR) As HANDLE 484 494 Declare Function CreateMutex Lib "kernel32" Alias _FuncName_CreateMutex (lpMutexAttributes As *SECURITY_ATTRIBUTES, bInitialOwner As BOOL, lpName As PCTSTR) As HANDLE 495 Declare Function CreatePipe Lib "Kernel32" ( 496 ByRef hReadPipe As HANDLE, 497 ByRef hWritePipe As HANDLE, 498 ByVal pPipeAttributes As *SECURITY_ATTRIBUTES, 499 ByVal nSize As DWORD) As Long 485 500 Declare Function CreateSemaphore Lib "kernel32" Alias _FuncName_CreateSemaphore (pSemaphoreAttributes As *SECURITY_ATTRIBUTES, lInitialCount As Long, lMaximumCount As Long, pName As PCTSTR) As HANDLE 486 501 … … 646 661 ) As Long 647 662 Declare Function DisableThreadLibraryCalls Lib "kernel32" (hLibModule As HINSTANCE) As BOOL 648 Declare Function DosDateTimeToFileTime Lib "kernel32" (wFatDate As Word, wFatTime As Word, ByRef lpFileTime As FILETIME) As BOOL663 Declare Function DosDateTimeToFileTime Lib "kernel32" (wFatDate As Word, wFatTime As Word, ByRef FileTime As FILETIME) As BOOL 649 664 650 665 Const DUPLICATE_CLOSE_SOURCE = 1 … … 788 803 Declare Function GetLogicalDrives Lib "kernel32" () As DWord 789 804 Declare Function GetLogicalDriveStrings Lib "kernel32" Alias _FuncName_GetLogicalDriveStrings (nBufferLength As DWord, pBuffer As PTSTR) As DWord 805 Declare Function GetLongPathName Lib "kernel32" Alias _FuncName_GetLongPathName (lpszShortPath As LPCTSTR, lpszLongPath As LPTSTR, cchBuffer As DWord) As DWord 790 806 Declare Function GetModuleFileName Lib "kernel32" Alias _FuncName_GetModuleFileName (hModule As HINSTANCE, lpFileName As PTSTR, nSize As DWord) As DWord 791 807 Declare Function GetModuleHandle Lib "kernel32" Alias _FuncName_GetModuleHandle (lpModuleName As PTSTR) As HINSTANCE … … 796 812 bWait As BOOL 797 813 ) As BOOL 814 Type SYSTEM_POWER_STATUS 815 ACLineStatus As Byte 816 BatteryFlag As Byte 817 BatteryLifePercent As Byte 818 Reserved1 As Byte 819 BatteryLifeTime As Long 820 BatteryFullLifeTime As Long 821 End Type 822 Declare Function GetSystemPowerStatus Lib "kernel32" (ByRef SystemPowerStatus As SYSTEM_POWER_STATUS) As Long 798 823 Declare Function GetPriorityClass Lib "kernel32" (hProcess As HANDLE) As DWord 799 824 Declare Function GetProcAddress Lib "kernel32" (hModule As HINSTANCE, pProcName As PCSTR) As DWord … … 868 893 Const TIME_FORCE24HOURFORMAT = &H00000008 869 894 Declare Function GetTimeFormat Lib "kernel32" Alias _FuncName_GetTimeFormat (Locale As LCID, dwFlags As DWord, ByRef Time As SYSTEMTIME, lpFormat As PCTSTR, lpTimeStr As PTSTR, cchTime As DWord) As BOOL 870 871 895 Declare Function GetUserDefaultLCID Lib "kernel32" () As LCID 872 896 Declare Function GetUserName Lib "advapi32" Alias _FuncName_GetUserName (pBuffer As PTSTR, ByRef nSize As DWord) As BOOL … … 967 991 Declare Function LoadLibraryEx Lib "kernel32" Alias _FuncName_LoadLibraryEx (pLibFileName As PCTSTR, hFile As HANDLE, dwFlags As DWord) As HINSTANCE 968 992 969 Declare Function lstrcat Lib "kernel32" Alias _FuncName_lstrcat (pString1 As PTSTR, pString2 As PCTSTR) As PSTR 970 Declare Function lstrcmp Lib "kernel32" Alias _FuncName_lstrcmp (pString1 As PCTSTR, pString2 As PCTSTR) As Long 971 Declare Function lstrcmpi Lib "kernel32" Alias _FuncName_lstrcmpi (pString1 As PCTSTR, pString2 As PCTSTR) As Long 972 Declare Function lstrcpy Lib "kernel32" Alias _FuncName_lstrcpy (pString1 As PTSTR, pString2 As PCTSTR) As PSTR 973 Declare Function lstrlenA Lib "kernel32" (pString As PCSTR) As Long 974 Declare Function lstrlenW Lib "kernel32" (pString As PCWSTR) As Long 993 Declare Function lstrcat Lib "kernel32" Alias _FuncName_lstrcat (lpString1 As LPTSTR, lpString2 As LPCTSTR) As LPTSTR 994 Declare Function lstrcmp Lib "kernel32" Alias _FuncName_lstrcmp (lpString1 As LPCTSTR, lpString2 As LPCTSTR) As Long 995 Declare Function lstrcmpi Lib "kernel32" Alias _FuncName_lstrcmpi (lpString1 As LPCTSTR, lpString2 As LPCTSTR) As Long 996 Declare Function lstrcpy Lib "kernel32" Alias _FuncName_lstrcpy (lpString1 As LPTSTR, lpString2 As LPCTSTR) As LPTSTR 997 Declare Function lstrcpyn Lib "kernel32" Alias _FuncName_lstrcpyn (lpString1 As LPTSTR,ByVal lpString2 As LPCTSTR,ByVal iMaxLength As Long) As LPTSTR 998 Declare Function lstrlenA Lib "kernel32" (lpString As LPCSTR) As Long 999 Declare Function lstrlenW Lib "kernel32" (lpString As LPCWSTR) As Long 975 1000 #ifdef UNICODE 976 Declare Function lstrlen Lib "kernel32" Alias "lstrlenW" ( pString AsPCWSTR) As Long1001 Declare Function lstrlen Lib "kernel32" Alias "lstrlenW" (lpString As LPCWSTR) As Long 977 1002 #else 978 Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" ( pString AsPCSTR) As Long1003 Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (lpString As LPCSTR) As Long 979 1004 #endif 980 1005 Declare Sub memcpy Lib "kernel32" Alias "RtlMoveMemory" (pDest As VoidPtr, pSrc As VoidPtr, length As SIZE_T) 981 1006 Declare Function MoveFile Lib "kernel32" Alias _FuncName_MoveFile (lpExistingFileName As LPCTSTR, lpNewFileName As LPCTSTR) As BOOL 982 Declare Sub MoveMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As VoidPtr, pSrc As VoidPtr, length As SIZE_T)1007 Declare Sub MoveMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As PVOID, pSrc As VoidPtr, length As SIZE_T) 983 1008 984 1009 Declare Function MulDiv Lib "kernel32" ( … … 1030 1055 pArguments As *ULONG_PTR) 1031 1056 Declare Function ReadFile Lib "kernel32" (hFile As HANDLE, lpBuffer As VoidPtr, nNumberOfBytesToRead As DWord, lpNumberOfBytesRead As DWordPtr, ByRef lpOverlapped As OVERLAPPED) As BOOL 1057 Declare Function ReadProcessMemory Lib "Kernel32" (hProcess As HANDLE, lpBaseAddress As VoidPtr, lpBuffer As VoidPtr, nSize As SIZE_T, lpNumberOfBytesRead As *SIZE_T) As BOOL 1032 1058 Declare Function ReleaseMutex Lib "kernel32" (hMutex As HANDLE) As BOOL 1033 1059 Declare Function ReleaseSemaphore Lib "kernel32" (hSemaphore As HANDLE, lReleaseCount As Long, ByRef lpPreviousCount As Long) As BOOL … … 1066 1092 ) As BOOL 1067 1093 1068 Const EXCEPTION_MAXIMUM_PARAMETERS = ELM(15)1094 Const EXCEPTION_MAXIMUM_PARAMETERS = 15 1069 1095 1070 1096 Type EXCEPTION_RECORD … … 1074 1100 ExceptionAddress As VoidPtr 1075 1101 NumberParameters As DWord 1076 ExceptionInformation[E XCEPTION_MAXIMUM_PARAMETERS] As ULONG_PTR1102 ExceptionInformation[ELM(EXCEPTION_MAXIMUM_PARAMETERS)] As ULONG_PTR 1077 1103 End Type 1078 1104 … … 1416 1442 Const WAIT_IO_COMPLETION = &h000000C0 'STATUS_USER_APC 1417 1443 1444 Declare Function FindResource Lib "kernel32" Alias _FuncName_FindResource (hInstance As HINSTANCE, lpName As LPCTSTR, lpType As LPCTSTR) As HRSRC 1445 Declare Function LoadResource Lib "kernel32" (hModule As HMODULE, hResInfo As HRSRC) As HGLOBAL 1446 Declare Function FreeResource Lib "kernel32" (hResData As HGLOBAL) As BOOL 1447 Declare Function LockResource Lib "kernel32" (hResData As HGLOBAL) As VoidPtr 1448 Declare Function SizeofResource Lib "kernel32" (hModule As HANDLE, hResInfo As HRSRC) As DWord 1449 1450 Declare Function ExpandEnvironmentStrings Lib "kernel32" Alias _FuncName_ExpandEnvironmentStrings (lpSrc As LPCTSTR, lpDst As LPTSTR, nSize As DWord) As DWord 1451 1452 Type DCB 1453 DCBlength As DWord 1454 BaudRate As DWord 1455 fBitFields As DWord 1456 wReserved As Word 1457 XonLim As Word 1458 XoffLim As Word 1459 ByteSize As Byte 1460 Parity As Byte 1461 StopBits As Byte 1462 XonChar As CHAR 1463 XoffChar As CHAR 1464 ErrorChar As CHAR 1465 EofChar As CHAR 1466 EvtChar As CHAR 1467 wReserved1 As Word 1468 End Type 1469 1470 Type COMMTIMEOUTS 1471 ReadIntervalTimeout As DWord 1472 ReadTotalTimeoutMultiplier As DWord 1473 ReadTotalTimeoutConstant As DWord 1474 WriteTotalTimeoutMultiplier As DWord 1475 WriteTotalTimeoutConstant As DWord 1476 End Type 1477 Type COMSTAT 1478 fCoBitFlds As Long 'See Comment in Win32API.Txt 1479 cbInQue As DWord 1480 cbOutQue As DWord 1481 End Type 1482 Declare Function SetCommState Lib "kernel32" (hCommDev As HANDLE, ByRef dcb As DCB) As BOOL 1483 Declare Function SetCommTimeouts Lib "kernel32" (hFile As HANDLE ,ByRef pCommTimeouts As COMMTIMEOUTS) As BOOL 1484 Declare Function ClearCommError Lib "kernel32" (hCommDevs As HANDLE, ByRef Errors As DWord, ByRef Stat As COMSTAT) As BOOL 1485 Declare Function EscapeCommFunction Lib "kernel32" (nCid As HANDLE, ByVal nFunc As DWord) As BOOL 1486 Declare Function GetCommModemStatus Lib "kernel32" (hFile As HANDLE, ByRef ModemStat As DWord) As BOOL 1487 Declare Function SetCommMask Lib "kernel32" (hFile As HANDLE, dwEvtMask As DWord) As BOOL 1488 Declare Function WaitCommEvent Lib "kernel32" (hFile As HANDLE, ByRef EvtMask As DWord, lpOverlapped As *OVERLAPPED) As BOOL 1489 1490 Const ANYSIZE_ARRAY = 1 1491 Type LUID 1492 LowPart As DWord 1493 HighPart As Long 1494 End Type 1495 Type LUID_AND_ATTRIBUTES 1496 Luid As LUID 1497 Attributes As DWord 1498 End Type 1499 TypeDef PLUID_AND_ATTRIBUTES = *LUID_AND_ATTRIBUTES 1500 'TypeDef LUID_AND_ATTRIBUTES_ARRAY = LUID_AND_ATTRIBUTES[ANYSIZE_ARRAY] 1501 'TypeDef PLUID_AND_ATTRIBUTES_ARRAY = *LUID_AND_ATTRIBUTES_ARRAY 1502 1503 Type TOKEN_PRIVILEGES 1504 PrivilegeCount As DWord 1505 Privileges[ELM(ANYSIZE_ARRAY)] As LUID_AND_ATTRIBUTES 1506 End Type 1507 1508 Declare Function OpenProcessToken Lib "advapi32" (ProcessHandle As HANDLE, DesiredAccess As DWord, ByRef TokenHandle As HANDLE) As BOOL 1509 Declare Function LookupPrivilegeValue Lib "advapi32" Alias _FuncName_LookupPrivilegeValue (lpSystemName As LPCTSTR, lpName As LPCTSTR, ByRef Luid As LUID) As Long 1510 Declare Function AdjustTokenPrivileges Lib "advapi32" (TokenHandle As Long, DisableAllPrivileges As Long,_ 1511 ByRef NewState As TOKEN_PRIVILEGES, BufferLength As Long, 1512 ByRef PreviousState As TOKEN_PRIVILEGES, ByRef ReturnLength As Long) As Long 1513 1418 1514 #endif '_INC_SYSTEM -
Include/api_window.sbp
r141 r160 8 8 ' Window API Function Names 9 9 #ifdef UNICODE 10 Const _FuncName_CreateWindowEx = "CreateWindowExW"11 10 Const _FuncName_CallWindowProc = "CallWindowProcW" 12 11 Const _FuncName_CharLower = "CharLowerW" 12 Const _FuncName_CharNext = "CharNextW" 13 Const _FuncName_CharPrev = "CharPrevW" 13 14 Const _FuncName_CharUpper = "CharUpperW" 15 Const _FuncName_CreateAcceleratorTable = "CreateAcceleratorTableW" 16 Const _FuncName_CreateWindowEx = "CreateWindowExW" 17 Const _FuncName_DefDlgProc = "DefDlgProcW" 14 18 Const _FuncName_DefWindowProc = "DefWindowProcW" 19 Const _FuncName_DialogBoxIndirectParam = "DialogBoxIndirectParamW" 15 20 Const _FuncName_DispatchMessage = "DispatchMessageW" 21 Const _FuncName_DlgDirList = "DlgDirListW" 22 Const _FuncName_DlgDirListComboBox = "DlgDirListComboBoxW" 23 Const _FuncName_DlgDirSelectComboBoxEx = "DlgDirSelectComboBoxExW" 24 Const _FuncName_DlgDirSelectEx = "DlgDirSelectExW" 16 25 Const _FuncName_DrawText = "DrawTextW" 17 26 Const _FuncName_DrawTextEx = "DrawTextExW" … … 24 33 Const _FuncName_GetClipboardFormatName = "GetClipboardFormatNameW" 25 34 Const _FuncName_GetDlgItemText = "GetDlgItemTextW" 35 Const _FuncName_GetMonitorInfo = "GetMonitorInfoW" 26 36 Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoW" 27 37 Const _FuncName_GetMessage = "GetMessageW" … … 31 41 Const _FuncName_GetWindowText = "GetWindowTextW" 32 42 Const _FuncName_GetWindowTextLength = "GetWindowTextLengthW" 43 Const _FuncName_GetWindowModuleFileName = "GetWindowModuleFileNameW" 33 44 Const _FuncName_InsertMenuItem = "InsertMenuItemW" 34 45 Const _FuncName_IsCharAlpha = "IsCharAlphaW" … … 42 53 Const _FuncName_LoadIcon = "LoadIconW" 43 54 Const _FuncName_LoadImage = "LoadImageW" 55 Const _FuncName_LoadString = "LoadStringW" 56 Const _FuncName_MapVirtualKey = "MapVirtualKeyW" 44 57 Const _FuncName_PeekMessage = "PeekMessageW" 45 58 Const _FuncName_PostMessage = "PostMessageW" … … 54 67 Const _FuncName_SetDlgItemText = "SetDlgItemTextW" 55 68 Const _FuncName_SetClassLong = "SetClassLongW" 56 Const _FuncName_SetClassLong = "SetClassLongW"69 Const _FuncName_SetClassLongPtr = "SetClassLongPtrW" 57 70 Const _FuncName_SetMenuItemInfo = "SetMenuItemInfoW" 58 71 Const _FuncName_SetProp = "SetPropW" … … 60 73 Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrW" 61 74 Const _FuncName_SetWindowText = "SetWindowTextW" 75 Const _FuncName_SetWindowsHookEx = "SetWindowsHookExW" 62 76 Const _FuncName_SystemParametersInfo = "SystemParametersInfoW" 77 Const _FuncName_TranslateAccelerator = "TranslateAcceleratorW" 63 78 Const _FuncName_UnregisterClass = "UnregisterClassW" 64 79 Const _FuncName_wsprintf = "wsprintfW" 65 80 Const _FuncName_wvsprintf = "wvsprintfW" 66 81 #else 67 Const _FuncName_CreateWindowEx = "CreateWindowExA"68 82 Const _FuncName_CallWindowProc = "CallWindowProcA" 69 83 Const _FuncName_CharLower = "CharLowerA" 84 Const _FuncName_CharNext = "CharNextA" 85 Const _FuncName_CharPrev = "CharPrevA" 70 86 Const _FuncName_CharUpper = "CharUpperA" 87 Const _FuncName_CreateAcceleratorTable = "CreateAcceleratorTableA" 88 Const _FuncName_CreateWindowEx = "CreateWindowExA" 89 Const _FuncName_DefDlgProc = "DefDlgProcA" 71 90 Const _FuncName_DefWindowProc = "DefWindowProcA" 91 Const _FuncName_DialogBoxIndirectParam = "DialogBoxIndirectParamA" 72 92 Const _FuncName_DispatchMessage = "DispatchMessageA" 93 Const _FuncName_DlgDirList = "DlgDirListA" 94 Const _FuncName_DlgDirListComboBox = "DlgDirListComboBoxA" 95 Const _FuncName_DlgDirSelectComboBoxEx = "DlgDirSelectComboBoxExA" 96 Const _FuncName_DlgDirSelectEx = "DlgDirSelectExA" 73 97 Const _FuncName_DrawText = "DrawTextA" 74 98 Const _FuncName_DrawTextEx = "DrawTextExA" … … 83 107 Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoA" 84 108 Const _FuncName_GetMessage = "GetMessageA" 109 Const _FuncName_GetMonitorInfo = "GetMonitorInfoA" 85 110 Const _FuncName_GetProp = "GetPropA" 86 111 Const _FuncName_GetWindowLong = "GetWindowLongA" … … 88 113 Const _FuncName_GetWindowText = "GetWindowTextA" 89 114 Const _FuncName_GetWindowTextLength = "GetWindowTextLengthA" 115 Const _FuncName_GetWindowModuleFileName = "GetWindowModuleFileNameA" 90 116 Const _FuncName_InsertMenuItem = "InsertMenuItemA" 91 117 Const _FuncName_IsCharAlpha = "IsCharAlphaA" … … 99 125 Const _FuncName_LoadIcon = "LoadIconA" 100 126 Const _FuncName_LoadImage = "LoadImageA" 127 Const _FuncName_LoadString = "LoadStringA" 128 Const _FuncName_MapVirtualKey = "MapVirtualKeyA" 101 129 Const _FuncName_PeekMessage = "PeekMessageA" 102 130 Const _FuncName_PostMessage = "PostMessageA" … … 116 144 Const _FuncName_SetWindowLong = "SetWindowLongA" 117 145 Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrA" 146 Const _FuncName_SetWindowsHookEx = "SetWindowsHookExA" 118 147 Const _FuncName_SetWindowText = "SetWindowTextA" 119 148 Const _FuncName_SystemParametersInfo = "SystemParametersInfoA" 149 Const _FuncName_TranslateAccelerator = "TranslateAcceleratorA" 120 150 Const _FuncName_UnregisterClass = "UnregisterClassA" 121 151 Const _FuncName_wsprintf = "wsprintfA" … … 123 153 #endif 124 154 125 Const CREATEPROCESS_MANIFEST_RESOURCE_ID = 1 126 155 Type _System_DeclareHandle_HDWP:unused As DWord:End Type 156 TypeDef HDWP = *_System_DeclareHandle_HDWP 127 157 128 158 Type MSG … … 135 165 End Type 136 166 137 138 Const MAKEINTRESOURCEW(i) = i As PCWSTR 139 Const MAKEINTRESOURCEA(i) = i As PCSTR 140 Const MAKEINTRESOURCE(i) = i As PCTSTR 141 142 TypeDef WNDENUMPROC = *Function(ByVal hwnd As HWND, ByVal lParam As LPARAM) As BOOL 167 Const IS_INTRESOURCE(_r) = ((((_r) As ULONG_PTR) >> 16) = 0) 168 Const MAKEINTRESOURCEW(i) = ((((i) As Word) As ULONG_PTR) As PCWSTR) 169 Const MAKEINTRESOURCEA(i) = ((((i) As Word) As ULONG_PTR) As PCSTR) 170 Const MAKEINTRESOURCE(i) = ((((i) As Word) As ULONG_PTR) As PCTSTR) 171 172 Const RT_CURSOR = MAKEINTRESOURCE(1) 173 Const RT_BITMAP = MAKEINTRESOURCE(2) 174 Const RT_ICON = MAKEINTRESOURCE(3) 175 Const RT_MENU = MAKEINTRESOURCE(4) 176 Const RT_DIALOG = MAKEINTRESOURCE(5) 177 Const RT_STRING = MAKEINTRESOURCE(6) 178 Const RT_FONTDIR = MAKEINTRESOURCE(7) 179 Const RT_FONT = MAKEINTRESOURCE(8) 180 Const RT_ACCELERATOR = MAKEINTRESOURCE(9) 181 Const RT_RCDATA = MAKEINTRESOURCE(10) 182 Const RT_MESSAGETABLE = MAKEINTRESOURCE(11) 183 184 Const DIFFERENCE = 11 185 Const RT_GROUP_CURSOR = MAKEINTRESOURCE((RT_CURSOR) As ULONG_PTR + DIFFERENCE) 186 Const RT_GROUP_ICON = MAKEINTRESOURCE((RT_ICON) As ULONG_PTR + DIFFERENCE) 187 Const RT_VERSION = MAKEINTRESOURCE(16) 188 Const RT_DLGINCLUDE = MAKEINTRESOURCE(17) 189 Const RT_PLUGPLAY = MAKEINTRESOURCE(19) 190 Const RT_VXD = MAKEINTRESOURCE(20) 191 Const RT_ANICURSOR = MAKEINTRESOURCE(21) 192 Const RT_ANIICON = MAKEINTRESOURCE(22) 193 Const RT_HTML = MAKEINTRESOURCE(23) 194 Const RT_MANIFEST = MAKEINTRESOURCE(24) 195 Const CREATEPROCESS_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(1) 196 Const ISOLATIONAWARE_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(2) 197 Const ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(3) 198 Const MINIMUM_RESERVED_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(1) 199 Const MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(16) 200 201 TypeDef WNDENUMPROC = *Function(hwnd As HWND, lParam As LPARAM) As BOOL 202 TypeDef HOOKPROC = *Function(code As Long, wParam As WPARAM, lParam As LPARAM) As LRESULT 203 TypeDef MONITORENUMPROC = *Function(hm As HMONITOR, hdc As HDC, ByRef rc As RECT, dwData As LPARAM) As BOOL 143 204 144 205 Const CS_VREDRAW = &H0001 … … 373 434 374 435 Declare Function BringWindowToTop Lib "user32" (hWnd As HWND) As Long 436 Declare Function CallNextHookEx Lib "user32" (hHook As HHOOK, nCode As Long, wParam As WPARAM, lParam As LPARAM) As LRESULT 375 437 Declare Function CallWindowProc Lib "user32" Alias _FuncName_CallWindowProc (lpPrevWndFunc As WNDPROC, hWnd As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 438 Declare Function ChangeClipboardChain Lib "user32" (hwndRemove As HWND, hwndNewNext As HWND) As BOOL 376 439 Declare Function CharLower Lib "user32" Alias _FuncName_CharLower (psz As PTSTR) As DWord 440 Declare Function CharNext Lib "user32" Alias _FuncName_CharNext (lpszCurrent As LPCTSTR) As LPTSTR 441 Declare Function CharNextExA Lib "user32" (CodePage As Word, lpCurrentChar As LPCSTR, dwFlags As DWord) As LPSTR 442 Declare Function CharPrev Lib "user32" Alias _FuncName_CharPrev (lpszStart As LPCTSTR, lpszCurrent As LPCTSTR) As LPTSTR 443 Declare Function CharPrevExA Lib "user32" (CodePage As Word, lpStart As LPCSTR, lpCurrentChar As LPCSTR, dwFlags As DWord) As LPSTR 377 444 Declare Function CharUpper Lib "user32" Alias _FuncName_CharUpper (psz As PTSTR) As DWord 378 445 Declare Function CheckMenuItem Lib "user32" (hMenu As HMENU, uIDCheckItem As DWord, uCheck As DWord) As DWord 379 446 Declare Function CheckMenuRadioItem Lib "user32" (hMenu As HMENU, idFirst As DWord, idLast As DWord, idCheck As DWord, uFlags As DWord) As BOOL 447 Declare Function CheckDlgButton Lib "user32" (hDlg As HWND, nIDButton As Long, uCheck As DWord) As BOOL 448 Declare Function CheckRadioButton Lib "user32" (hDlg As HWND, nIDFirstButton As Long, nIDLastButton As Long, nIDCheckButton As Long) As BOOL 380 449 Declare Function ChildWindowFromPoint Lib "user32" (hWndParent As HWND, x As Long, y As Long) As HWND 381 382 450 Const CWP_ALL = &H0000 383 451 Const CWP_SKIPINVISIBLE = &H0001 … … 392 460 Declare Function CopyImage Lib "user32" (hImage As HANDLE, uType As DWord, cxDesired As Long, cyDesired As Long, fuFlags As DWord) As HANDLE 393 461 Declare Function CountClipboardFormats Lib "user32" () As Long 462 Const FVIRTKEY = &H01 463 Const FNOINVERT = &H02 464 Const FSHIFT = &H04 465 Const FCONTROL = &H08 466 Const FALT = &H10 467 Type ACCEL 468 fVirt As Byte 469 key As Word 470 cmd As Word 471 End Type 472 Declare Function CreateAcceleratorTable Lib "user32" Alias _FuncName_CreateAcceleratorTable (ByRef acl As ACCEL, i As Long) As HACCEL 394 473 Declare Function CreateCaret Lib "user32" (hWnd As HWND, hBitmap As HBITMAP, nWidth As Long, nHeight As Long) As BOOL 395 474 Declare Function CreateCursor Lib "user32" (hInst As HINSTANCE, xHotSpot As Long, yHotSpot As Long, nWidth As Long, nHeight As Long, pvANDPlane As VoidPtr, pvXORPlane As VoidPtr) As HCURSOR … … 411 490 Declare Function CreateWindowEx Lib "user32" Alias _FuncName_CreateWindowEx (dwExStyle As DWord, pClassName As PCTSTR, lpWindowName As PCTSTR, dwStyle As DWord, x As Long, y As Long, nWidth As Long, nHeight As Long, hwndParent As HWND, hmenu As HMENU, hInstance As HINSTANCE, pParm As VoidPtr) As HWND 412 491 492 Declare Function DefDlgProc Lib "user32" Alias _FuncName_DefWindowProc (hDlg As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 413 493 Declare Function DefWindowProc Lib "user32" Alias _FuncName_DefWindowProc (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 414 494 Declare Function DeleteMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL 495 Declare Function DestroyAcceleratorTable Lib "user32" (hAccel As HACCEL) As BOOL 415 496 Declare Function DestroyCaret Lib "user32" () As BOOL 416 497 Declare Function DestroyCursor Lib "user32" (hCursor As HCURSOR) As BOOL … … 418 499 Declare Function DestroyMenu Lib "user32" (hMenu As HMENU) As BOOL 419 500 Declare Function DestroyWindow Lib "user32" (hWnd As HWND) As BOOL 501 Type DLGITEMTEMPLATE 502 style As DWord 503 dwExtendedStyle As DWord 504 x As Integer 505 y As Integer 506 cx As Integer 507 cy As Integer 508 id As Word 509 End Type 510 Type DLGTEMPLATE 511 style As DWord 512 dwExtendedStyle As DWord 513 cdit As Word 514 x As Integer 515 y As Integer 516 cx As Integer 517 cy As Integer 518 End Type 519 Declare Function DialogBoxIndirectParam Lib "user32" Alias _FuncName_DialogBoxIndirectParam (hInstance As HINSTANCE, DialogTemplate As *DLGTEMPLATE, hwndParent As HWND, pDialogFunc As DLGPROC, InitParam As LPARAM) As LONG_PTR 420 520 Declare Function DispatchMessage Lib "user32" Alias _FuncName_DispatchMessage (ByRef Msg As MSG) As LRESULT 421 521 Declare Function DlgDirList Lib "user32" Alias _FuncName_DlgDirList (hDlg As HWND, lpPathSpec As LPTSTR, nIDListBox As Long, nIDStaticPath As Long, uFileType As DWord) As Long 522 Declare Function DlgDirListComboBox Lib "user32" Alias _FuncName_DlgDirListComboBox (hDlg As HWND, lpPathSpec As LPTSTR, nIDComboBox As Long, nIDStaticPath As Long,uFileType As DWord) As Long 523 Declare Function DlgDirSelectComboBoxEx Lib "user32" Alias _FuncName_DlgDirSelectComboBoxEx (hDlg As HWND, lpString As LPTSTR, nCount As Long, nIDComboBox As Long) As BOOL 524 Declare Function DlgDirSelectEx Lib "user32" Alias _FuncName_DlgDirSelectEx (hDlg As HWND, lpString As LPTSTR, nCount As Long, nIDListBox As Long) As BOOL 422 525 Const BDR_RAISEDOUTER = &H0001 423 526 Const BDR_SUNKENOUTER = &H0002 … … 545 648 546 649 Declare Function EnableWindow Lib "user32" (hWnd As HWND, bEnable As BOOL) As BOOL 650 Declare Function EndDialogAPI Lib "user32" Alias "EndDialog" (hwndDlg As HWND, nRet As Long) As BOOL 547 651 Declare Function EndPaint Lib "user32" (hWnd As HWND, ByRef lpPaint As PAINTSTRUCT) As BOOL 548 652 Declare Function EnumClipboardFormats Lib "user32" (uFormat As DWord) As DWord 549 653 Declare Function EnumChildWindows Lib "user32" (hwndParent As HWND, pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL 654 Declare Function EnumDisplayMonitors Lib "user32.dll" (ByVal hdc As HDC, lprcClip As *RECT, ByVal lpfnEnum As MONITORENUMPROC, dwData As LPARAM) As BOOL 550 655 Declare Function EnumThreadWindows Lib "user32" (dwThreadId As DWord, pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL 551 656 Declare Function EnumWindows Lib "user32" (pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL 657 Declare Function ExitWindowsEx Lib "user32" (uFlags As DWord, dwReserved As DWord) As BOOL 552 658 Declare Function FillRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As BOOL 553 659 Declare Function FindWindow Lib "user32" Alias _FuncName_FindWindow (pClassName As PCTSTR, lpWindowName As PCTSTR) As HWND 554 660 Declare Function FindWindowEx Lib "user32" Alias _FuncName_FindWindowEx (hwndParent As HWND, hwndChildAfter As HWND, pszClass As PCTSTR, pszWindow As PCTSTR) As HWND 555 661 Declare Function FlashWindow Lib "user32" (hWnd As HWND, bInvert As BOOL) As BOOL 662 Const FLASHW_STOP = 0 663 Const FLASHW_CAPTION = 1 664 Const FLASHW_TRAY = 2 665 Const FLASHW_ALL = (FLASHW_CAPTION Or FLASHW_TRAY) 666 Const FLASHW_TIMER = 4 667 Const FLASHW_TIMERNOFG = 12 668 Type FLASHWINFO 669 cbSize As DWord 670 hWnd As HWND 671 dwFlags As DWord 672 uCount As DWord 673 dwTimeout As DWord 674 End Type 675 Declare Function FlashWindowEx Lib "user32" (ByRef fwi As FLASHWINFO) As Long 556 676 Declare Function FrameRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As Long 557 677 Declare Function GetActiveWindow Lib "user32" () As HWND … … 584 704 Declare Function GetClipboardData Lib "user32" (uFormat As DWord) As HANDLE 585 705 Declare Function GetClipboardFormatName Lib "user32" Alias _FuncName_GetClipboardFormatName (uFormat As DWord, pszFormatName As PTSTR, cchMaxCount As Long) As BOOL 706 Declare Function GetClipboardOwner Lib "user32" () As HWND 707 Declare Function GetClipboardViewer Lib "user32" () As HWND 586 708 Declare Function GetClipCursor Lib "user32" (ByRef lpRect As RECT) As BOOL 587 709 Declare Function GetCursor Lib "user32" () As HCURSOR … … 604 726 605 727 Declare Function GetDesktopWindow Lib "user32" () As HWND 728 Declare Function GetDialogBaseUnits Lib "user32" () As Long 606 729 Declare Function GetDlgCtrlID Lib "user32" (hWnd As HWND) As Long 607 730 Declare Function GetDlgItem Lib "user32" (hDlg As HWND, nIDDlgItem As Long) As HWND 731 Declare Function GetDlgItemInt Lib "user32" (hDlg As HWND, nIDDlgItem As Long, lpTranslated As *BOOL, bSigned As BOOL) As DWord 608 732 Declare Function GetDlgItemText Lib "user32" Alias _FuncName_GetDlgItemText (hDlg As HWND, nIDDlgItem As Long, pString As PTSTR, nMaxCount As Long) As Long 609 733 Declare Function GetDoubleClickTime Lib "user32" () As DWord … … 613 737 Declare Function GetKeyboardState Lib "user32" (lpKeyState As *Byte) As BOOL 614 738 Declare Function GetKeyState Lib "user32" (nVirtKey As Long) As Integer 739 Declare Function GetListBoxInfo Lib "user32" (ByVal hwnd As HWND) As DWord 615 740 Declare Function GetMenu Lib "user32" (hWnd As HWND) As HMENU 616 741 … … 624 749 Declare Function GetMenuItemInfo Lib "user32" Alias _FuncName_GetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As DWord, ByRef mii As MENUITEMINFO) As BOOL 625 750 Declare Function GetMessage Lib "user32" Alias _FuncName_GetMessage (ByRef Msg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord) As Long 751 Const CCHDEVICENAME = 32 752 Type MONITORINFO 753 cbSize As DWord 754 rcMonitor As RECT 755 rcWork As RECT 756 dwFlags As DWord 757 End Type 758 Type MONITORINFOEXA 759 cbSize As DWord 760 rcMonitor As RECT 761 rcWork As RECT 762 dwFlags As DWord 763 szDevice[ELM(CCHDEVICENAME)] As SByte 764 End Type 765 Type MONITORINFOEXW 766 cbSize As DWord 767 rcMonitor As RECT 768 rcWork As RECT 769 dwFlags As DWord 770 szDevice[ELM(CCHDEVICENAME)] As WCHAR 771 End Type 772 Declare Function GetMonitorInfo Lib "user32.dll" Alias _FuncName_GetMonitorInfo (hMonitor As HMONITOR, ByRef mi As Any /*MONITORINFO*/) As BOOL 773 Declare Function GetNextDlgGroupItem Lib "user32" (hDlg As HWND, hCtl As HWND, bPrevious As BOOL) As HWND 774 Declare Function GetNextDlgTabItem Lib "user32" (hDlg As HWND, hCtl As HWND, bPrevious As BOOL) As HWND 775 Declare Function GetOpenClipboardWindow Lib "user32" () As HWND 626 776 Declare Function GetParent Lib "user32" (hWnd As HWND) As HWND 777 Declare Function GetPriorityClipboardFormat Lib "user32" (lpFormatList As *DWord, FormatNum As Long) As Long 627 778 Declare Function GetProp Lib "user32" Alias _FuncName_GetProp (hWnd As HWND, pString As PCTSTR) As HANDLE 628 779 Declare Function GetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO) As BOOL … … 787 938 Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR 788 939 #endif 940 Declare Function GetWindowModuleFileName Lib "user32" Alias _FuncName_GetWindowModuleFileName (hwnd As HWND, pszFileName As LPTSTR, cchFileNameMax As DWord) As DWord 789 941 790 942 Const WPF_SETMINPOSITION = &H0001 … … 815 967 Declare Function IsCharUpper Lib "user32" Alias _FuncName_IsCharUpper (ch As TCHAR) As BOOL 816 968 Declare Function IsChild Lib "user32" (hWndParent As HWND, hWnd As HWND) As BOOL 969 Declare Function IsClipboardFormatAvailable Lib "user32" (ByVal wFormat As DWord) As BOOL 817 970 Declare Function IsDialogMessage Lib "user32" Alias _FuncName_IsDialogMessage (hDlg As HWND, ByRef msg As MSG) As BOOL 971 Declare Function IsDlgButtonChecked Lib "user32" (hDlg As HWND, nIDButton As Long) As DWord 818 972 Declare Function IsIconic Lib "user32" (hWnd As HWND) As BOOL 819 973 Declare Function IsWindow Lib "user32" (hWnd As HWND) As BOOL … … 876 1030 Const LR_SHARED = &H8000 877 1031 Declare Function LoadImage Lib "user32" Alias _FuncName_LoadImage (hinst As HINSTANCE, pszName As PCTSTR, dwImageType As DWord, cxDesired As Long, cyDesired As Long, dwFlags As DWord) As HANDLE 878 1032 Declare Function LoadString Lib "user32" Alias _FuncName_LoadString (hInstance As HINSTANCE, uID As DWord, lpBuffer As LPTSTR, nBufferMax As Long) As Long 879 1033 Declare Function LockWindowUpdate Lib "user32" (hWnd As HWND) As BOOL 1034 Declare Function MapVirtualKey Lib "user32" Alias _FuncName_MapVirtualKey (wCode As DWord, wMapType As DWord) As DWord 880 1035 Declare Function MapWindowPoints Lib "user32" ( 881 1036 hWndFrom As HWND, … … 945 1100 Declare Sub PostQuitMessage Lib "user32" (nExitCode As Long) 946 1101 Declare Function PostThreadMessage Lib "user32" Alias _FuncName_PostThreadMessage (idThread As DWord, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL 1102 Declare Function RealChildWindowFromPoint Lib "user32" (hwndParent As HWND, xPoint As Long, yPoint As Long) As HWND 947 1103 948 1104 Const RDW_INVALIDATE = &H0001 … … 962 1118 Declare Function RegisterClassEx Lib "user32" Alias _FuncName_RegisterClassEx (ByRef wcx As WNDCLASSEX) As ATOM 963 1119 Declare Function RegisterClipboardFormat Lib "user32" Alias _FuncName_RegisterClipboardFormat (pszFormat As PCTSTR) As DWord 1120 Declare Function RegisterHotKey lib "user32.dll" (hwnd As HWND, id As Long, dwModufuers As DWord, vk As DWord) As BOOL 964 1121 Declare Function RegisterWindowMessage Lib "user32" Alias _FuncName_RegisterWindowMessage (pString As PCTSTR) As DWord 965 1122 Declare Function ReleaseCapture Lib "user32" () As BOOL … … 967 1124 Declare Function RemoveMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL 968 1125 Declare Function RemoveProp Lib "user32" Alias _FuncName_RemoveProp (hWnd As HWND, pString As PCTSTR) As HANDLE 969 Declare Function TranslateMessage Lib "user32" (ByRef lpMsg As MSG) As Long 970 Declare Function ScreenToClient Lib "user32" (hWnd As HWND, ByRef lpPoint As POINTAPI) As BOOL 1126 Declare Function TranslateAccelerator Lib "user32" Alias _FuncName_TranslateAccelerator (hwnd As HWND, hAccTable As HACCEL, ByRef msg As MSG) As Long 1127 Declare Function TranslateMessage Lib "user32" (ByRef msg As MSG) As Long 1128 Declare Function ScreenToClient Lib "user32" (hWnd As HWND, ByRef Point As POINTAPI) As BOOL 971 1129 Declare Function ScrollDC Lib "user32" (hdc As HDC, dx As Long, dy As Long, ByRef rcScroll As RECT, ByRef rcClip As RECT, hrgnUpdate As HRGN, ByRef rcUpdate As RECT) As BOOL 972 1130 … … 980 1138 Declare Function SendNotifyMessage Lib "user32" Alias _FuncName_SendNotifyMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 981 1139 Declare Function SetActiveWindow Lib "user32" (hWnd As HWND) As HWND 1140 Declare Function SetDlgItemInt Lib "user32" (hDlg As HWND, nIDDlgItem As Long, uValue As DWord, bSigned As BOOL) As BOOL 982 1141 Declare Function SetDlgItemText Lib "user32" Alias _FuncName_SetDlgItemText (hDlg As HWND, nIDDlgItem As Long, lpString As PCTSTR) As BOOL 983 1142 Declare Function SetCapture Lib "user32" (hWnd As HWND) As HWND … … 993 1152 994 1153 Declare Function SetClipboardData Lib "user32" (uFormat As DWord, hMem As HANDLE) As HANDLE 1154 Declare Function SetClipboardViewer Lib "user32" (ByVal hWndNewViewer As HWND) As HWND 995 1155 Declare Function SetCursor Lib "user32" (hCursor As HCURSOR) As HCURSOR 996 1156 Declare Function SetCursorPos Lib "user32" (x As Long, y As Long) As BOOL … … 1005 1165 Declare Function SetParent Lib "user32" (hWndChild As HWND, hWndNewParent As HWND) As HWND 1006 1166 Declare Function SetProp Lib "user32" Alias _FuncName_SetProp (hWnd As HWND, pString As PCTSTR, hData As HANDLE) As BOOL 1167 Declare Function SetRect Lib "User32" (ByRef rc As RECT, xLeft As Long, yTop As Long, xRight As Long, yBottom As Long) As Long 1007 1168 Declare Function SetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO, bRedraw As Long) As BOOL 1008 1169 Declare Function SetSysColors Lib "user32" (cElements As Long, lpaElements As *DWord, lpaRgbValues As *DWord) As BOOL … … 1012 1173 1013 1174 Declare Function SetWindowContextHelpId Lib "user32"(hwnd As HWND, dwContextHelpId As DWord) As BOOL 1014 1015 1175 #ifdef _WIN64 1016 1176 Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR … … 1045 1205 1046 1206 Declare Function SetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bRedraw As BOOL) As BOOL 1207 Declare Function SetWindowsHookEx Lib "user32" Alias _FuncName_SetWindowsHookEx (idHook As Long, lpfn As HOOKPROC, hMod As HINSTANCE, dwThreadId As DWord) As HHOOK 1047 1208 Declare Function SetWindowText Lib "user32" Alias _FuncName_SetWindowText (hWnd As HWND, pString As PCTSTR) As BOOL 1048 1209 Declare Function ShowCaret Lib "user32" (hWnd As HWND) As BOOL … … 1267 1428 Declare Function TrackPopupMenu Lib "user32" (hMenu As HMENU, uFlags As DWord, x As Long, y As Long, nReserved As Long, hWnd As HWND, ByRef prcRect As RECT) As BOOL 1268 1429 1430 declare function UnhookWindowsHookEx lib "user32" (ByVal hhk As HHOOK) As BOOL 1269 1431 Declare Function UnregisterClass Lib "user32" Alias _FuncName_UnregisterClass (pClassName As PCTSTR, hinst As HINSTANCE) As BOOL 1432 Declare Function UnregisterHotKey Lib "user32" (hwnd As HWND, id As Long) As BOOL 1270 1433 Declare Function UpdateWindow Lib "user32" (hWnd As HWND) As BOOL 1271 1434 Declare Function ValidateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL -
Include/objbase.sbp
r1 r160 104 104 ' IStream Interface 105 105 '------------------- 106 107 Type STATSTG108 pwcsName As LPOLESTR109 dwType As DWord110 cbSize As ULARGE_INTEGER111 ntime As FILETIME112 ctime As FILETIME113 atime As FILETIME114 grfMode As DWord115 grfLocksSupported As DWord116 clsid As CLSID117 grfStateBits As DWord118 reserved As DWord119 End Type120 106 121 107 Const CLSCTX_INPROC_SERVER = &H01 -
Include/objidl.sbp
r1 r160 4 4 TypeDef SNB = **OLECHAR 5 5 6 Class ISequentialStream 7 Inherits IUnknown 8 Public 9 Abstract Function Read(pv As VoidPtr, cb As DWord, pcbRead As *DWord) As HRESULT 10 Abstract Function Write(pv As VoidPtr, cb As DWord, pcbWritten As *DWord) As HRESULT 11 End Class 12 13 Class IStream 14 Inherits ISequentialStream 15 Public 16 Abstract Function Seek(dlibMove_LowPart As DWord, dlibMove_HighPart As Long, dwOrigin As DWord, plibNewPosition As *ULARGE_INTEGER) As HRESULT 17 Abstract Function SetSize(libNewSize_LowPart As DWord, libNewSize_HighPart As DWord) As HRESULT 18 Abstract Function CopyTo(pstm As *IStream, cb_LowPart As DWord, cb_HighPart As DWord, pcbRead As *ULARGE_INTEGER, pcbWritten As *ULARGE_INTEGER) As HRESULT 19 Abstract Function Commit(grfCommitFlags As DWord) As HRESULT 20 Abstract Function Revert() As HRESULT 21 Abstract Function LockRegion(libOffset_LowPart As DWord, libOffset_HighPart As DWord, cb_LowPart As DWord, cb_HighPart As DWord, dwLockType As DWord) As HRESULT 22 Abstract Function UnlockRegion(libOffset_LowPart As DWord, libOffset_HighPart As DWord, cb_LowPart As DWord, cb_HighPart As DWord, dwLockType As DWord) As HRESULT 23 Abstract Function Stat(pstatstg As *STATSTG, grfStatFlag As DWord) As HRESULT 24 Abstract Function Clone(ByRef ppstm As *IStream) As HRESULT 25 End Class 26 TypeDef LPSTREAM = *IStream 27 28 Interface IMessageFilter 29 Inherits IUnknown 30 End Interface 31 32 Interface IStorage 33 Inherits IUnknown 34 End Interface 35 36 Interface ILockBytes 37 Inherits IUnknown 38 End Interface 39 40 Interface IFillLockBytes 41 Inherits IUnknown 42 End Interface 43 44 Interface IMoniker 45 Inherits IUnknown 46 End Interface 47 48 Interface IBindCtx 49 Inherits IUnknown 50 End Interface 51 52 Interface IRunningObjectTable 53 Inherits IUnknown 54 End Interface 55 56 Interface IDataAdviseHolder 57 Inherits IUnknown 58 End Interface 59 60 Class IMalloc 61 Inherits IUnknown 62 Public 63 Abstract Function Alloc(cb As SIZE_T) As VoidPtr 64 Abstract Function Realloc(pv As VoidPtr, cb As SIZE_T) As VoidPtr 65 Abstract Sub Free(pv As VoidPtr) 66 Abstract Function GetSize(pv As VoidPtr) As SIZE_T 67 Abstract Function DidAlloc(pv As VoidPtr) As Long 68 Abstract Sub HeapMinimize() 69 End Class 70 71 Class BIND_OPTS 72 Public 6 ' IMarshal 7 8 ' IMarshal2 9 10 Interface IMalloc 11 Inherits IUnknown 12 13 Function Alloc(cb As SIZE_T) As VoidPtr 14 Function Realloc(pv As VoidPtr, cb As SIZE_T) As VoidPtr 15 Sub Free(pv As VoidPtr) 16 Function GetSize(pv As VoidPtr) As SIZE_T 17 Function DidAlloc(pv As VoidPtr) As Long 18 Sub HeapMinimize() 19 End Interface 20 21 ' IMallocSpy 22 23 ' IStdMarshalInfo 24 25 ' IExternalCennection 26 27 ' IMultiQI 28 29 ' AsyncIMultiQI 30 31 ' IInternalUnknown 32 33 ' IEnumUnknown 34 35 Type BIND_OPTS 73 36 cbStruct As DWord 74 37 grfFlags As DWord 75 38 grfMode As DWord 76 39 dwTickCountDeadline As DWord 77 End Class 78 79 Class BIND_OPTS2 80 Inherits BIND_OPTS 81 Public 40 End Type 41 42 Type BIND_OPTS2 43 ' Inherits BIND_OPTS 44 cbStruct As DWord 45 grfFlags As DWord 46 grfMode As DWord 47 dwTickCountDeadline As DWord 48 82 49 dwTrackFlags As DWord 83 50 dwClassContext As DWord 84 51 locale As LCID 85 52 pServerInfo As *COSERVERINFO 86 End Class 87 53 End Type 54 55 Interface IBindCtx 56 Inherits IUnknown 57 End Interface 58 59 ' IEnumMoniker 60 61 Interface IRunningObjectTable 62 Inherits IUnknown 63 End Interface 64 65 Dim IID_IPersist = [&h0000010c, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID 66 Interface IPersist 67 Inherits IUnknown 68 69 Function GetClassID( 70 /* [out] */ ByRef ClassID As CLSID) As HRESULT 71 End Interface 72 73 Dim IID_IPersistStream = [&h00000109, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID 74 Interface IPersistStream 75 Inherits IPersist 76 77 Function IsDirty() As HRESULT 78 79 Function Load( 80 /* [unique][in] */ pStm As *IStream) As HRESULT 81 82 Function Save( 83 /* [unique][in] */ pStm As *IStream, 84 /* [in] */ fClearDirty As BOOL) As HRESULT 85 86 Function GetSizeMax( 87 /* [out] */ ByRef cbSize As ULARGE_INTEGER) As HRESULT 88 End Interface 89 90 Interface IMoniker 91 Inherits IPersistStream 92 End Interface 93 94 ' IEnumString 95 96 Dim IID_ISequentialStream = [&h0c733a30, &h2a1c, &h11ce, [&had, &he5, &h00, &haa, &h00, &h44, &h77, &h3d]] As IID 97 Interface ISequentialStream 98 Inherits IUnknown 99 100 Function Read(pv As VoidPtr, cb As DWord, pcbRead As *DWord) As HRESULT 101 Function Write(pv As VoidPtr, cb As DWord, pcbWritten As *DWord) As HRESULT 102 End Interface 103 104 Type STATSTG 105 pwcsName As LPOLESTR 106 type_ As DWord 107 cbSize As ULARGE_INTEGER 108 mtime As FILETIME 109 ctime As FILETIME 110 atime As FILETIME 111 grfMode As DWord 112 grfLocksSupported As DWord 113 clsid As CLSID 114 grfStateBits As DWord 115 reserved As DWord 116 End Type 117 118 Enum STGTY 119 STGTY_STORAGE = 1 120 STGTY_STREAM = 2 121 STGTY_LOCKBYTES = 3 122 STGTY_PROPERTY = 4 123 End Enum 124 125 Enum STREAM_SEEK 126 STREAM_SEEK_SET = 0 127 STREAM_SEEK_CUR = 1 128 STREAM_SEEK_END = 2 129 End Enum 130 131 Enum LOCKTYPE 132 LOCK_WRITE = 1 133 LOCK_EXCLUSIVE = 2 134 LOCK_ONLYONCE = 4 135 End Enum 136 137 Dim IID_IStream = [&h0000000c, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID 138 Interface IStream 139 Inherits ISequentialStream 140 141 Function Seek(dlibMove As LARGE_INTEGER, dwOrigin As DWord, plibNewPosition As *ULARGE_INTEGER) As HRESULT 142 Function SetSize(libNewSize As ULARGE_INTEGER) As HRESULT 143 Function CopyTo(pstm As *IStream, cb As ULARGE_INTEGER, pcbRead As *ULARGE_INTEGER, pcbWritten As *ULARGE_INTEGER) As HRESULT 144 Function Commit(grfCommitFlags As DWord) As HRESULT 145 Function Revert() As HRESULT 146 Function LockRegion(libOffset As ULARGE_INTEGER, cb As ULARGE_INTEGER, dwLockType As DWord) As HRESULT 147 Function UnlockRegion(libOffset As ULARGE_INTEGER, cb As ULARGE_INTEGER, dwLockType As DWord) As HRESULT 148 Function Stat(pstatstg As *STATSTG, grfStatFlag As DWord) As HRESULT 149 Function Clone(ByRef ppstm As *IStream) As HRESULT 150 End Interface 151 TypeDef LPSTREAM = *IStream 152 153 ' IEnumSTATSTG 154 155 Interface IStorage 156 Inherits IUnknown 157 End Interface 158 159 Interface IPersistFile 160 Inherits IPersist 161 162 Function IsDirty() As HRESULT 163 164 Function Load( 165 /* [in] */ pszFileName As LPCOLESTR, 166 /* [in] */ dwMode As DWord) As HRESULT 167 168 Function Save( 169 /* [unique][in] */ pszFileName As LPCOLESTR, 170 /* [in] */ fRemember As BOOL) As HRESULT 171 172 Function SaveCompleted( 173 /* [unique][in] */ pszFileName As LPCOLESTR) As HRESULT 174 175 Function GetCurFile( 176 /* [out] */ ByRef pszFileName As LPOLESTR) As HRESULT 177 End Interface 178 179 180 ' IPersistStrage 181 182 Interface ILockBytes 183 Inherits IUnknown 184 End Interface 185 186 Type DVTARGETDEVICE 187 tdSize As DWord 188 tdDriverNameOffset As Word 189 tdDeviceNameOffset As Word 190 tdPortNameOffset As Word 191 tdExtDevmodeOffset As Word 192 tdData[ELM(1)] As Byte 193 End Type 194 195 TypeDef CLIPFORMAT = Word 196 TypeDef LPCLIPFORMAT = *CLIPFORMAT 197 198 Type FORMATETC 199 cfFormat As CLIPFORMAT 200 ptd As *DVTARGETDEVICE 201 dwAspect As DWord 202 lindex As Long 203 tymed As DWord 204 End Type 205 206 TypeDef LPFORMATETC = *FORMATETC 207 208 Interface IEnumFORMATETC 209 Inherits IUnknown 210 End Interface 211 212 Interface IEnumSTATDATA 213 Inherits IUnknown 214 End Interface 215 216 ' IRootStorage 217 218 Enum /*[transmit_as(long)]*/ TYMED 219 TYMED_HGLOBAL = 1 220 TYMED_FILE = 2 221 TYMED_ISTREAM = 4 222 TYMED_ISTORAGE = 8 223 TYMED_GDI = 16 224 TYMED_MFPICT = 32 225 TYMED_ENHMF = 64 226 TYMED_NULL = 0 227 End Enum 228 229 Type STGMEDIUM 230 tymed As DWord 231 data As VoidPtr 232 ' /* [switch_type(DWORD), switch_is((DWORD) tymed)] */ 233 ' Union 234 ' /*[case(TYMED_GDI)]*/ hBitmap As HBITMAP 235 ' /*[case(TYMED_MFPICT)]*/ hMetaFilePict As HMETAFILEPICT 236 ' /*[case(TYMED_ENHMF)]*/ hEnhMetaFile As HENHMETAFILE 237 ' /*[case(TYMED_HGLOBAL)]*/ hGlobal As HGLOBAL 238 ' /*[case(TYMED_FILE)]*/ lpszFileName As LPWSTR 239 ' /*[case(TYMED_ISTREAM)]*/ pstm As *IStream 240 ' /*[case(TYMED_ISTORAGE)]*/ pstg As *IStorage 241 ' /*[default]*/ 242 ' End Union 243 /*[unique]*/ pUnkForRelease As *IUnknown 244 End Type 245 246 Interface IAdviseSink 247 Inherits IUnknown 248 End Interface 249 250 ' AsyncIAdviseSink 251 252 ' IAdviseSink2 253 254 ' AsyncIAdviseSink2 255 256 Interface IDataObject 257 Inherits IUnknown 258 259 Function /* [local] */ GetData( 260 /* [unique][in] */ ByRef rformatetcIn As FORMATETC, 261 /* [out] */ ByRef rmedium As STGMEDIUM) As HRESULT 262 263 Function /* [local] */ GetDataHere( 264 /* [unique][in] */ ByRef rformatetcIn As FORMATETC, 265 /* [out] */ ByRef pmedium As STGMEDIUM) As HRESULT 266 267 Function QueryGetData( 268 /* [unique][in] */ ByRef pformatetc As FORMATETC) As HRESULT 269 270 Function GetCanonicalFormatEtc( 271 /* [unique][in] */ ByRef pformatetcIn As FORMATETC, 272 /* [out] */ ByRef pmedium As STGMEDIUM) As HRESULT 273 274 Function /* [local] */ SetData( 275 /* [unique][in] */ pformatetcIn As *FORMATETC, 276 /* [out] */ pmedium As *STGMEDIUM, 277 /* [in] */ fRelease As BOOL) As HRESULT 278 279 Function EnumFormatEtc( 280 /* [in] */ ByVal dwDirection As DWord, 281 /* [out] */ ByRef rpenumFormatEtc As *IEnumFORMATETC) As HRESULT 282 283 Function DAdvise( 284 /* [in] */ ByRef pformatetc As FORMATETC, 285 /* [in] */ ByVal advf As DWORD, 286 /* [unique][in] */ ByVal pAdvSink As *IAdviseSink, 287 /* [out] */ ByVal pdwConnection As *DWord) As HRESULT 288 289 Function DUnadvise( 290 /* [in] */ ByVal dwConnection As DWord) As HRESULT 291 292 Function EnumDAdvise( 293 /* [out] */ ByRef rpenumAdvise As *IEnumSTATDATA) As HRESULT 294 End Interface 295 296 Interface IDataAdviseHolder 297 Inherits IUnknown 298 End Interface 299 300 Enum CALLTYPE 301 CALLTYPE_TOPLEVEL = 1 302 CALLTYPE_NESTED = 2 303 CALLTYPE_ASYNC = 3 304 CALLTYPE_TOPLEVEL_CALLPENDING = 4 305 CALLTYPE_ASYNC_CALLPENDING = 5 306 End Enum 307 308 Enum ERVERCALL 309 SERVERCALL_ISHANDLED = 0 310 SERVERCALL_REJECTED = 1 311 SERVERCALL_RETRYLATER = 2 312 End Enum 313 314 Enum PENDINGTYPE 315 PENDINGTYPE_TOPLEVEL = 1 316 PENDINGTYPE_NESTED = 2 317 End Enum 318 319 Enum PENDINGMSG 320 PENDINGMSG_CANCELCALL = 0 321 PENDINGMSG_WAITNOPROCESS = 1 322 PENDINGMSG_WAITDEFPROCESS = 2 323 End Enum 324 325 Type INTERFACEINFO 326 pUnk As *IUnknown 327 iid As IID 328 wMethod As Word 329 End Type 330 TypeDef LPINTERFACEINFO = *INTERFACEINFO 331 332 Dim IID_IMessageFilter = [&h00000016, &h0000, &h0000, [&hC0, &h00, &h00, &h00, &h00, &h00, &h00, &h46]] As IID 333 334 Interface IMessageFilter 335 Inherits IUnknown 336 337 Function HandleInComingCall( 338 /* [in] */ dwCallType As DWord, 339 /* [in] */ htaskCaller As HTASK, 340 /* [in] */ dwTickCount As DWord, 341 /* [in] */ lpInterfaceInfo As LPINTERFACEINFO) As DWord 342 343 Function RetryRejectedCall( 344 /* [in] */ htaskCallee As HTASK, 345 /* [in] */ dwTickCount As DWord, 346 /* [in] */ dwRejectType As DWord) As DWord 347 348 Function MessagePending( 349 /* [in] */ htaskCallee As HTASK, 350 /* [in] */ dwTickCount As DWord, 351 /* [in] */ dwPendingType As DWord) As DWord 352 End Interface 353 354 ' IRpcChannelBuffer 355 356 ' IRpcChannelBuffer2 357 358 ' IAsyncRpcChannelBuffer 359 360 ' IRpcChannelBuffer3 361 362 ' IRpcSyntaxNegotiate 363 364 ' IRpcProxyBuffer 365 366 ' IRpcStubBuffer 367 368 ' IPSFactoryBuffer 369 370 ' IChannelHook 371 372 ' IClientSecurity 373 374 ' IServerSecurity 375 376 ' IClassActivator 377 378 ' IRpcOptions 379 380 Interface IFillLockBytes 381 Inherits IUnknown 382 End Interface 383 384 ' IProgressNotify 385 386 ' ILayoutStorage 387 388 ' IBlockingLock 389 390 ' ITimeAndNoticeControl 391 392 ' IOplockStorage 393 394 ' ISurrogate 395 396 ' IGlobalInterfaceTable 397 398 ' IDirectWriterLock 399 400 ' ISynchronize 401 402 ' ISynchronizeHandle 403 404 ' ISynchronizeEvent 405 406 ' ISynchronizeContainer 407 408 ' ISynchronizeMutex 409 410 ' ICancelMethodCalls 411 412 ' IAsyncManager 413 414 ' ICallFactory 415 416 ' IRpcHelper 417 418 ' IReleaseMarshalBuffers 419 420 ' IWaitMultiple 421 422 ' IUrlMon 423 424 ' IForegroundTransfer 425 426 ' IAddrTrackingControl 427 428 ' IAddrExclusionControl 429 430 ' IPipeByte 431 432 ' AsyncIPipeByte 433 434 ' IPipeLong 435 436 ' AsyncIPipeLong 437 438 ' IPipeDouble 439 440 ' AsyncIPipeDouble 441 442 ' IThumbnailExtractor 443 444 ' IDummyHICONIncluder 445 446 ' IEnumContextProps 447 448 ' IContext 449 450 ' IObjContext 451 452 ' IProcessLock 453 454 ' ISurrogateService 455 456 ' IComThreadingInfo 457 458 ' IProcessInitControl 459 460 ' IInitializeSpy 88 461 89 462 #endif'_INC_OBJIDL -
Include/ole2.ab
r150 r160 368 368 /*OUT*/ ByRef medium As STGMEDIUM) As HRESULT ' bits 369 369 370 ' olectl.h 371 Declare Function OleLoadPicture Lib "olepro32" (pStream As *IStream, lSize As Long, fRunmode As BOOL, ByRef riid As IID, ppvObj As VoidPtr) As HRESULT 372 370 373 #endif ' __OLE2_AB__ -
Include/windows.sbp
r119 r160 17 17 TypeDef HKEY = *_System_DeclareHandle_HKEY 18 18 TypeDef HFILE = Long 19 Type _System_DeclareHandle_HANDLE:unused As DWord:End Type 20 TypeDef HRSRC = *_System_DeclareHandle_HANDLE 19 21 20 22 'variable type - User … … 51 53 Type _System_DeclareHandle_HTASK:unused As DWord:End Type 52 54 TypeDef HTASK = *_System_DeclareHandle_HTASK 55 Type _System_DeclareHandle_HHOOK:unused As DWord:End Type 56 TypeDef HHOOK = *_System_DeclareHandle_HHOOK 57 Type _System_DeclareHandle_HMONITOR:unused As DWord:End Type 58 TypeDef HMONITOR = *_System_DeclareHandle_HMONITOR 53 59 54 60 'variable type - Shell … … 123 129 TypeDef SIZEL = SIZE 124 130 131 TypeDef PVOID = VoidPtr 132 TypeDef LPVOID = VoidPtr 133 TypeDef LPCVOID = VoidPtr 134 125 135 TypeDef FARPROC = *Function() As LONG_PTR 126 136 TypeDef NEARPROC = FARPROC … … 129 139 TypeDef DLGPROC = *Function(hwnd As HWND, msg As DWord, wParam As WPARAM, lParam As LPARAM) As LONG_PTR 130 140 131 # include <api_winerror.sbp>132 # include <api_system.sbp>133 # include <api_window.sbp>134 # include <api_commdlg.sbp>135 # include <api_gdi.sbp>136 # include <api_shell.sbp>137 # include <api_reg.sbp>138 # include <api_msg.sbp>139 # include <api_windowstyles.sbp>140 # include <api_winspool.sbp>141 141 #require <api_winerror.sbp> 142 #require <api_system.sbp> 143 #require <api_window.sbp> 144 #require <api_commdlg.sbp> 145 #require <api_gdi.sbp> 146 #require <api_shell.sbp> 147 #require <api_reg.sbp> 148 #require <api_msg.sbp> 149 #require <api_windowstyles.sbp> 150 #require <api_winspool.sbp> 151 #require <winver.ab> 142 152 143 153 #endif '_INC_WINDOWS
Note:
See TracChangeset
for help on using the changeset viewer.