Changeset 141
- Timestamp:
- Mar 8, 2007, 10:42:50 AM (18 years ago)
- Location:
- Include
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/api_commctrl.sbp
r7 r141 2 2 #ifndef _INC_COMMCTRL 3 3 #define _INC_COMMCTRL 4 5 #ifdef UNICODE 6 Const _FuncName_CreateStatusWindow = "CreateStatusWindowW" 7 #else 8 Const _FuncName_CreateStatusWindow = "CreateStatusWindowA" 9 #endif 4 10 5 11 … … 28 34 dwICC As DWord 29 35 End Type 30 Declare Function InitCommonControlsEx Lib "comctl32" (ByRef lpInitCtrls As INITCOMMONCONTROLSEX) As BOOL36 Declare Function InitCommonControlsEx Lib "comctl32" (ByRef InitCtrls As INITCOMMONCONTROLSEX) As BOOL 31 37 32 38 Declare Sub InitCommonControls Lib "comctl32" () … … 481 487 Const SBN_SIMPLEMODECHANGE = 880 482 488 483 Declare Function CreateStatusWindow Lib "comctl32" Alias "CreateStatusWindowA" (style As Long, lpszText As LPSTR, hwndParent As HWND, wID As DWord) As HWND489 Declare Function CreateStatusWindow Lib "comctl32" Alias _FuncName_CreateStatusWindow (style As Long, lpszText As LPCTSTR, hwndParent As HWND, wID As DWord) As HWND 484 490 485 491 -
Include/api_commdlg.sbp
r1 r141 3 3 #ifndef _INC_COMMDLG 4 4 #define _INC_COMMDLG 5 6 #ifdef UNICODE 7 Const _FuncName_ChooseColor = "ChooseColorW" 8 Const _FuncName_ChooseFont = "ChooseFontW" 9 Const _FuncName_FindText = "FindTextW" 10 Const _FuncName_GetOpenFileName = "GetOpenFileNameW" 11 Const _FuncName_GetSaveFileName = "GetSaveFileNameW" 12 Const _FuncName_GetFileTitle = "GetFileTitleW" 13 Const _FuncName_PageSetupDlg = "PageSetupDlgW" 14 Const _FuncName_PrintDlg = "PrintDlgW" 15 #else 16 Const _FuncName_ChooseColor = "ChooseColorA" 17 Const _FuncName_ChooseFont = "ChooseFontA" 18 Const _FuncName_FindText = "FindTextA" 19 Const _FuncName_GetOpenFileName = "GetOpenFileNameA" 20 Const _FuncName_GetSaveFileName = "GetSaveFileNameA" 21 Const _FuncName_GetFileTitle = "GetFileTitleA" 22 Const _FuncName_PageSetupDlg = "PageSetupDlgA" 23 Const _FuncName_PrintDlg = "PrintDlgA" 24 #endif 5 25 6 26 TypeDef LPCOMMDLGHOOKPROC = *Function(hdlg As HWND, uiMsg As DWord, wp As WPARAM, lp As LPARAM) As ULONG_PTR … … 66 86 Const CC_ANYCOLOR = &H00000100 67 87 TypeDef LPCCHOOKPROC = LPCOMMDLGHOOKPROC 68 Type CHOOSECOLOR 88 Type CHOOSECOLORW 89 lStructSize As DWord 90 hwndOwner As HWND 91 hInstance As HINSTANCE 92 rgbResult As DWord 93 lpCustColors As *DWord 94 Flags As DWord 95 lCustData As DWord 96 lpfnHook As LPCCHOOKPROC 97 lpTemplateName As LPCWSTR 98 End Type 99 Type CHOOSECOLORA 69 100 lStructSize As DWord 70 101 hwndOwner As HWND … … 77 108 lpTemplateName As LPCSTR 78 109 End Type 79 Declare Function ChooseColor Lib "comdlg32" Alias "ChooseColorA" (ByRef lpcc As CHOOSECOLOR) As BOOL 110 #ifdef UNICODE 111 TypeDef CHOOSECOLOR = CHOOSECOLORW 112 #else 113 TypeDef CHOOSECOLOR = CHOOSECOLORA 114 #endif 115 Declare Function ChooseColor Lib "comdlg32" Alias _FuncName_ChooseColor (ByRef cc As CHOOSECOLOR) As BOOL 80 116 81 117 … … 118 154 Const REGULAR_FONTTYPE = &H0400 119 155 TypeDef LPCFHOOKPROC = LPCOMMDLGHOOKPROC 120 Type CHOOSEFONT 156 Type CHOOSEFONTW 121 157 lStructSize As DWord 122 158 hwndOwner As HWND 123 159 hDC As HDC 124 lpLogFont As *LOGFONT 160 lpLogFont As *LOGFONTW 161 iPointSize As Long 162 Flags As DWord 163 rgbColors As DWord 164 lCustData As LPARAM 165 lpfnHook As LPCFHOOKPROC 166 lpTemplateName As LPCWSTR 167 hInstance As HINSTANCE 168 lpszStyle As LPWSTR 169 nFontType As Word 170 ___MISSING_ALIGNMENT__ As Word 171 nSizeMin As Long 172 nSizeMax As Long 173 End Type 174 Type CHOOSEFONTA 175 lStructSize As DWord 176 hwndOwner As HWND 177 hDC As HDC 178 lpLogFont As *LOGFONTA 125 179 iPointSize As Long 126 180 Flags As DWord … … 136 190 nSizeMax As Long 137 191 End Type 138 Declare Function ChooseFont Lib "comdlg32" Alias "ChooseFontA" (ByRef lpcf As CHOOSEFONT) As BOOL 192 #ifdef UNICODE 193 TypeDef CHOOSEFONT = CHOOSEFONTW 194 #else 195 TypeDef CHOOSEFONT = CHOOSEFONTA 196 #endif 197 Declare Function ChooseFont Lib "comdlg32" Alias _FuncName_ChooseFont (ByRef cf As CHOOSEFONT) As BOOL 139 198 140 199 … … 160 219 Const FR_HIDEWHOLEWORD = &H00010000 161 220 TypeDef LPFRHOOKPROC = LPCOMMDLGHOOKPROC 162 Type FINDREPLACE 221 Type FINDREPLACEW 222 lStructSize As DWord 223 hwndOwner As HWND 224 hInstance As HINSTANCE 225 Flags As DWord 226 lpstrFindWhat As LPWSTR 227 lpstrReplaceWith As LPWSTR 228 wFindWhatLen As Word 229 wReplaceWithLen As Word 230 lCustData As LPARAM 231 lpfnHook As LPFRHOOKPROC 232 lpTemplateName As LPCWSTR 233 End Type 234 Type FINDREPLACEA 163 235 lStructSize As DWord 164 236 hwndOwner As HWND … … 173 245 lpTemplateName As LPCSTR 174 246 End Type 175 Declare Function FindText Lib "comdlg32" Alias "FindTextA" (ByRef lpfr As FINDREPLACE) As BOOL 247 #ifdef UNICODE 248 TypeDef FINDREPLACE = FINDREPLACEW 249 #else 250 TypeDef FINDREPLACE = FINDREPLACEA 251 #endif 252 Declare Function FindText Lib "comdlg32" Alias _FuncName_FindText (ByRef fr As FINDREPLACE) As BOOL 176 253 177 254 … … 204 281 Const OFN_ENABLESIZING = &H00800000 205 282 TypeDef LPOFNHOOKPROC = LPCOMMDLGHOOKPROC 206 Type OPENFILENAME 283 Type OPENFILENAMEW 284 lStructSize As DWord 285 hwndOwner As HWND 286 hInstance As HINSTANCE 287 lpstrFilter As LPCWSTR 288 lpstrCustomFilter As LPWSTR 289 nMaxCustFilter As DWord 290 nFilterIndex As DWord 291 lpstrFile As LPWSTR 292 nMaxFile As DWord 293 lpstrFileTitle As LPWSTR 294 nMaxFileTitle As DWord 295 lpstrInitialDir As LPCWSTR 296 lpstrTitle As LPCWSTR 297 Flags As DWord 298 nFileOffset As Word 299 nFileExtension As Word 300 lpstrDefExt As LPCWSTR 301 lCustData As LPARAM 302 lpfnHook As LPOFNHOOKPROC 303 lpTemplateName As LPCWSTR 304 End Type 305 Type OPENFILENAMEA 207 306 lStructSize As DWord 208 307 hwndOwner As HWND … … 226 325 lpTemplateName As LPCSTR 227 326 End Type 228 Declare Function GetOpenFileName Lib "comdlg32" Alias "GetOpenFileNameA" (ByRef lpofn As OPENFILENAME) As BOOL 229 Declare Function GetSaveFileName Lib "comdlg32" Alias "GetSaveFileNameA" (ByRef lpofn As OPENFILENAME) As BOOL 230 Declare Function GetFileTitle Lib "comdlg32" Alias "GetFileTitleA" (lpszFile As LPCSTR, lpszTitle As LPSTR, cbBuf As Word) As Integer 327 #ifdef UNICODE 328 TypeDef OPENFILENAME = OPENFILENAMEW 329 #else 330 TypeDef OPENFILENAME = OPENFILENAMEA 331 #endif 332 Declare Function GetOpenFileName Lib "comdlg32" Alias _FuncName_GetOpenFileName (ByRef ofn As OPENFILENAME) As BOOL 333 Declare Function GetSaveFileName Lib "comdlg32" Alias _FuncName_GetSaveFileName (ByRef ofn As OPENFILENAME) As BOOL 334 Declare Function GetFileTitle Lib "comdlg32" Alias _FuncName_GetFileTitle (lpszFile As LPCTSTR, lpszTitle As LPTSTR, cbBuf As Word) As Integer 231 335 232 336 … … 255 359 TypeDef LPPAGESETUPHOOK = LPCOMMDLGHOOKPROC 256 360 TypeDef LPPAGEPAINTHOOK = LPCOMMDLGHOOKPROC 257 Type PAGESETUPDLG 361 Type PAGESETUPDLGW 362 lStructSize As DWord 363 hwndOwner As HWND 364 hDevMode As HGLOBAL 365 hDevNames As HGLOBAL 366 Flags As DWord 367 ptPaperSize As POINTAPI 368 rtMinMargin As RECT 369 rtMargin As RECT 370 hInstance As HINSTANCE 371 lCustData As LPARAM 372 lpfnPageSetupHook As LPPAGESETUPHOOK 373 lpfnPagePaintHook As LPPAGEPAINTHOOK 374 lpPageSetupTemplateName As LPCWSTR 375 hPageSetupTemplate As HGLOBAL 376 End Type 377 Type PAGESETUPDLGA 258 378 lStructSize As DWord 259 379 hwndOwner As HWND … … 271 391 hPageSetupTemplate As HGLOBAL 272 392 End Type 273 Declare Function PageSetupDlg Lib "comdlg32" Alias "PageSetupDlgA" (ByRef lppsd As PAGESETUPDLG) As BOOL 393 #ifdef UNICODE 394 TypeDef PAGESETUPDLG = PAGESETUPDLGW 395 #else 396 TypeDef PAGESETUPDLG = PAGESETUPDLGA 397 #endif 398 399 Declare Function PageSetupDlg Lib "comdlg32" Alias _FuncName_PageSetupDlg (ByRef psd As PAGESETUPDLG) As BOOL 274 400 275 401 … … 304 430 TypeDef LPSETUPHOOKPROC = LPCOMMDLGHOOKPROC 305 431 #ifdef _WIN64 306 Type PRINTDLG 307 #else 308 Type Align(1) PRINTDLG 432 Type PRINTDLGW 433 #else 434 Type Align(1) PRINTDLGW 435 #endif 436 lStructSize As DWord 437 hwndOwner As HWND 438 hDevMode As HGLOBAL 439 hDevNames As HGLOBAL 440 hDC As HDC 441 Flags As DWord 442 nFromPage As Word 443 nToPage As Word 444 nMinPage As Word 445 nMaxPage As Word 446 nCopies As Word 447 hInstance As HINSTANCE 448 lCustData As LPARAM 449 lpfnPrintHook As LPPAGEPAINTHOOK 450 lpfnSetupHook As LPSETUPHOOKPROC 451 lpPrintTemplateName As LPCWSTR 452 lpSetupTemplateName As LPCWSTR 453 hPrintTemplate As HGLOBAL 454 hSetupTemplate As HGLOBAL 455 End Type 456 #ifdef _WIN64 457 Type PRINTDLGA 458 #else 459 Type Align(1) PRINTDLGA 309 460 #endif 310 461 lStructSize As DWord … … 328 479 hSetupTemplate As HGLOBAL 329 480 End Type 330 Declare Function PrintDlg Lib "comdlg32" Alias "PrintDlgA" (ByRef lppd As PRINTDLG) As BOOL 481 #ifdef UNICODE 482 TypeDef PRINTDLG = PRINTDLGW 483 #else 484 TypeDef PRINTDLG = PRINTDLGA 485 #endif 486 Declare Function PrintDlg Lib "comdlg32" Alias _FuncName_PrintDlg (ByRef pd As PRINTDLG) As BOOL 331 487 332 488 -
Include/api_console.sbp
r122 r141 98 98 Type CHAR_INFO 99 99 ' Union Char 100 ' UnicodeChar As W ord100 ' UnicodeChar As WCHAR 101 101 AsciiChar[1] As SByte 102 102 ' End Union -
Include/api_gdi.sbp
r137 r141 6 6 7 7 #ifdef UNICODE 8 Const _FuncName_CopyEnhMetaFile = "CopyEnhMetaFileW" 9 Const _FuncName_CopyMetaFile = "CopyMetaFileW" 10 Const _FuncName_CreateDC = "CreateDCW" 11 Const _FuncName_CreateEnhMetaFile = "CreateEnhMetaFileW" 12 Const _FuncName_CreateMetaFile = "CreateMetaFileW" 13 Const _FuncName_CreateFont = "CreateFontW" 8 14 Const _FuncName_CreateFontIndirect = "CreateFontIndirectW" 15 Const _FuncName_GetEnhMetaFile = "GetEnhMetaFileW" 16 Const _FuncName_GetEnhMetaFileDescription = "GetEnhMetaFileDescriptionW" 17 Const _FuncName_GetObject = "GetObjectW" 18 Const _FuncName_GetTextMetrics = "GetTextMetricsW" 19 Const _FuncName_ResetDC = "ResetDCW" 20 Const _FuncName_StartDoc = "StartDocW" 21 Const _FuncName_wglUseFontBitmaps = "wglUseFontBitmapsW" 22 Const _FuncName_wglUseFontOutlines = "wglUseFontOutlinesW" 9 23 #else 24 Const _FuncName_CopyEnhMetaFile = "CopyEnhMetaFileA" 25 Const _FuncName_CopyMetaFile = "CopyMetaFileA" 26 Const _FuncName_CreateDC = "CreateDCA" 27 Const _FuncName_CreateEnhMetaFile = "CreateEnhMetaFileA" 28 Const _FuncName_CreateMetaFile = "CreateMetaFileA" 29 Const _FuncName_CreateFont = "CreateFontA" 10 30 Const _FuncName_CreateFontIndirect = "CreateFontIndirectA" 31 Const _FuncName_GetEnhMetaFile = "GetEnhMetaFileA" 32 Const _FuncName_GetEnhMetaFileDescription = "GetEnhMetaFileDescriptionA" 33 Const _FuncName_GetObject = "GetObjectA" 34 Const _FuncName_GetTextMetrics = "GetTextMetricsA" 35 Const _FuncName_ResetDC = "ResetDCA" 36 Const _FuncName_StartDoc = "StartDocA" 37 Const _FuncName_wglUseFontBitmaps = "wglUseFontBitmapsA" 38 Const _FuncName_wglUseFontOutlines = "wglUseFontOutlinesA" 11 39 #endif 12 40 … … 402 430 Const CCHDEVICENAME = 32 403 431 Const CCHFORMNAME = 32 404 Type _devicemodeA405 dmDeviceName[ELM(CCHDEVICENAME)] As Byte432 Type DEVMODEW 433 dmDeviceName[ELM(CCHDEVICENAME)] As WCHAR 406 434 dmSpecVersion As Word 407 435 dmDriverVersion As Word … … 422 450 dmTTOption As Integer 423 451 dmCollate As Integer 424 dmFormName[ELM(CCHFORMNAME)] As Byte452 dmFormName[ELM(CCHFORMNAME)] As WCHAR 425 453 dmLogPixels As Word 426 454 dmBitsPerPel As DWord … … 438 466 dmPanningHeight As DWord 439 467 End Type 440 TypeDef DEVMODEA = _devicemodeA 468 Type DEVMODEA 469 dmDeviceName[ELM(CCHDEVICENAME)] As SByte 470 dmSpecVersion As Word 471 dmDriverVersion As Word 472 dmSize As Word 473 dmDriverExtra As Word 474 dmFields As DWord 475 dmOrientation As Integer 476 dmPaperSize As Integer 477 dmPaperLength As Integer 478 dmPaperWidth As Integer 479 dmScale As Integer 480 dmCopies As Integer 481 dmDefaultSource As Integer 482 dmPrintQuality As Integer 483 dmColor As Integer 484 dmDuplex As Integer 485 dmYResolution As Integer 486 dmTTOption As Integer 487 dmCollate As Integer 488 dmFormName[ELM(CCHFORMNAME)] As SByte 489 dmLogPixels As Word 490 dmBitsPerPel As DWord 491 dmPelsWidth As DWord 492 dmPelsHeight As DWord 493 dmDisplayFlags As DWord 494 dmDisplayFrequency As DWord 495 dmICMMethod As DWord 496 dmICMIntent As DWord 497 dmMediaType As DWord 498 dmDitherType As DWord 499 dmReserved1 As DWord 500 dmReserved2 As DWord 501 dmPanningWidth As DWord 502 dmPanningHeight As DWord 503 End Type 504 #ifdef UNICODE 505 TypeDef DEVMODE = DEVMODEW 506 #else 441 507 TypeDef DEVMODE = DEVMODEA 442 508 #endif 443 509 444 510 ' Binary raster ops … … 480 546 End Type 481 547 482 Type DOCINFO 548 Type DOCINFOW 549 cbSize As Long 550 lpszDocName As LPCWSTR 551 lpszOutput As LPCWSTR 552 lpszDatatype As LPCWSTR 553 fwType As DWord 554 End Type 555 Type DOCINFOA 483 556 cbSize As Long 484 557 lpszDocName As LPCSTR … … 487 560 fwType As DWord 488 561 End Type 562 #ifdef UNICODE 563 TypeDef DOCINFO = DOCINFOW 564 #else 565 TypeDef DOCINFO = DOCINFOA 566 #endif 489 567 490 568 '------------------- … … 508 586 Const RGN_COPY = 5 509 587 Declare Function CombineRgn Lib "gdi32" (hrgnDest As HRGN, hrgnSrc1 As HRGN, hrgnSrc2 As HRGN, fnCombineMode As Long) As Long 510 Declare Function CopyEnhMetaFile Lib "gdi32" Alias "CopyEnhMetaFileA" (hemfSrc As HENHMETAFILE, pszFile As PCSTR) As HENHMETAFILE511 Declare Function CopyMetaFile Lib "gdi32" Alias "CopyMetaFileA" (hmfSrc As HMETAFILE, pszFile As PCSTR) As HMETAFILE588 Declare Function CopyEnhMetaFile Lib "gdi32" Alias _FuncName_CopyEnhMetaFile (hemfSrc As HENHMETAFILE, pszFile As PCTSTR) As HENHMETAFILE 589 Declare Function CopyMetaFile Lib "gdi32" Alias _FuncName_CopyMetaFile (hmfSrc As HMETAFILE, pszFile As PCTSTR) As HMETAFILE 512 590 Declare Function CreateBitmap Lib "gdi32" (nWidth As Long, nHeight As Long, cPlanes As Long, cBitsPerPel As Long, lpvBits As VoidPtr) As HBITMAP 513 Declare Function CreateBitmapIndirect Lib "gdi32" (ByRef lpbm As BITMAP) As HBITMAP591 Declare Function CreateBitmapIndirect Lib "gdi32" (ByRef bm As BITMAP) As HBITMAP 514 592 515 593 Const BS_SOLID = 0 … … 541 619 Declare Function CreateCompatibleBitmap Lib "gdi32" (hdc As HDC, nWidth As Long, nHeight As Long) As HBITMAP 542 620 Declare Function CreateCompatibleDC Lib "gdi32" (hdc As HDC) As HDC 543 Declare Function CreateDC Lib "gdi32" Alias "CreateDCA" (lpszDriver As PCSTR, lpszDevice As PCSTR, lpszOutput As PCSTR, ByRef lpInitData As DEVMODE) As HDC621 Declare Function CreateDC Lib "gdi32" Alias _FuncName_CreateDC (pszDriver As PCTSTR, pszDevice As PCTSTR, pszOutput As PCTSTR, ByRef InitData As DEVMODE) As HDC 544 622 545 623 Const CBM_INIT = &H04 546 Declare Function CreateDIBitmap Lib "gdi32" (hdc As HDC, ByRef lpbmih As BITMAPINFOHEADER, fdwInit As Long, lpbInit As VoidPtr, ByRef lpbmi As BITMAPINFO, fuUsage As Long) As HBITMAP624 Declare Function CreateDIBitmap Lib "gdi32" (hdc As HDC, ByRef bmih As BITMAPINFOHEADER, fdwInit As Long, lpbInit As VoidPtr, ByRef bmi As BITMAPINFO, fuUsage As Long) As HBITMAP 547 625 548 626 Declare Function CreateDIBPatternBrushPt Lib "gdi32" (lpPackedDIB As VoidPtr, iUsage As Long) As HBRUSH … … 550 628 Declare Function CreateEllipticRgn Lib "gdi32" (nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long) As HRGN 551 629 Declare Function CreateEllipticRgnIndirect Lib "gdi32" (ByRef lpRect As RECT) As HRGN 552 Declare Function CreateEnhMetaFile Lib "gdi32" Alias "CreateEnhMetaFileA" (hdcRef As HDC, pFileName As PCTSTR, ByRef Rect As RECT, pDescription As PCTSTR) As HDC553 Declare Function CreateMetaFile Lib "gdi32" Alias "CreateMetaFileA" (pFileName As PCTSTR) As HDC630 Declare Function CreateEnhMetaFile Lib "gdi32" Alias _FuncName_CreateEnhMetaFile (hdcRef As HDC, pFileName As PCTSTR, ByRef Rect As RECT, pDescription As PCTSTR) As HDC 631 Declare Function CreateMetaFile Lib "gdi32" Alias _FuncName_CreateMetaFile (pFileName As PCTSTR) As HDC 554 632 555 633 Const FW_DONTCARE = 0 … … 625 703 Const FF_SCRIPT = &H00040000 626 704 Const FF_DECORATIVE = &H00050000 627 Declare Function CreateFont Lib "gdi32" Alias "CreateFontA" (nHeight As Long, nWidth As Long, nEscapement As Long, nOrientation As Long, fnWeight As Long, fdwItalic As DWord, fdwUnderline As DWord, fdwStrikeOut As DWord, fdwCharSet As DWord, fdwOutputPrecision As DWord, fdwClipPrecision As DWord, fdwQuality As DWord, fdwPitchAndFamily As DWord, lpszFace As PCSTR) As HFONT705 Declare Function CreateFont Lib "gdi32" Alias _FuncName_CreateFont (nHeight As Long, nWidth As Long, nEscapement As Long, nOrientation As Long, fnWeight As Long, fdwItalic As DWord, fdwUnderline As DWord, fdwStrikeOut As DWord, fdwCharSet As DWord, fdwOutputPrecision As DWord, fdwClipPrecision As DWord, fdwQuality As DWord, fdwPitchAndFamily As DWord, lpszFace As PCTSTR) As HFONT 628 706 629 707 Const LF_FACESIZE = 32 … … 642 720 lfQuality As Byte 643 721 lfPitchAndFamily As Byte 644 lfFaceName[ELM(LF_FACESIZE)] As Byte722 lfFaceName[ELM(LF_FACESIZE)] As SByte 645 723 End Type 646 724 Type LOGFONTW … … 726 804 Declare Function ExtTextOutW Lib "gdi32" (hdc As HDC, x As Long, y As Long, fuOptions As DWord, ByRef rc As RECT, lpString As PCWSTR, cbCount As Long, pDx As *Long) As Long 727 805 #ifdef UNICODE 728 Declare Function ExtTextOut Lib "gdi32" Alias "ExtTextOutW" (hdc As HDC, x As Long, y As Long, fuOptions As DWord, ByRef rc As RECT, lpString As PCTSTR, cbCount As Long, pDx As *Long) As Long806 Declare Function ExtTextOut Lib "gdi32" Alias "ExtTextOutW" (hdc As HDC, x As Long, y As Long, fuOptions As DWord, ByRef rc As RECT, pString As PCWSTR, cbCount As Long, pDx As *Long) As Long 729 807 #else 730 Declare Function ExtTextOut Lib "gdi32" Alias "ExtTextOutA" (hdc As HDC, x As Long, y As Long, fuOptions As DWord, ByRef rc As RECT, lpString As PCTSTR, cbCount As Long, pDx As *Long) As Long808 Declare Function ExtTextOut Lib "gdi32" Alias "ExtTextOutA" (hdc As HDC, x As Long, y As Long, fuOptions As DWord, ByRef rc As RECT, pString As PCSTR, cbCount As Long, pDx As *Long) As Long 731 809 #endif 732 810 Declare Function FillPath Lib "gdi32" (hdc As HDC) As Long … … 738 816 Declare Function GetBkMode Lib "gdi32" (hdc As HDC) As Long 739 817 Declare Function GetBrushOrgEx Lib "gdi32" (hdc As HDC, ByRef lppt As POINTAPI) As Long 740 Declare Function GetCharWidth32 Lib "gdi32" Alias "GetCharWidth32A" (hdc As HDC, iFirstChar As Long, iLastChar As Long, lpBuffer As DWordPtr) As Long 818 ' only WinNT 819 'Declare Function GetCharWidth32 Lib "gdi32" Alias "GetCharWidth32A" (hdc As HDC, iFirstChar As DWord, iLastChar As DWord, pBuffer As *DWord) As Long 741 820 Declare Function GetClipBox Lib "gdi32" (hdc As HDC, ByRef lpRect As RECT) As Long 742 821 Declare Function GetClipRgn Lib "gdi32" (hdc As HDC, hRgn As HRGN) As Long 743 822 Declare Function GetCurrentObject Lib "gdi32" (hdc As HDC, dwObjectType As DWord) As HANDLE 744 Declare Function GetCurrentPositionEx Lib "gdi32" (hdc As HDC, ByRef lpPoint As POINTAPI) As Long823 Declare Function GetCurrentPositionEx Lib "gdi32" (hdc As HDC, ByRef Point As POINTAPI) As Long 745 824 746 825 Const DRIVERVERSION = 0 … … 864 943 865 944 Declare Function GetDIBits Lib "gdi32" (hdc As HDC, hbmp As HBITMAP, uStartScan As DWord, cScanLines As DWord, lpvBits As VoidPtr, ByRef lpbi As BITMAPINFO, uUsage As DWord) As Long 866 Declare Function GetEnhMetaFile Lib "gdi32" Alias "GetEnhMetaFileA" (pszMetaFile As PCSTR) As HENHMETAFILE945 Declare Function GetEnhMetaFile Lib "gdi32" Alias _FuncName_GetEnhMetaFile (pszMetaFile As PCTSTR) As HENHMETAFILE 867 946 Declare Function GetEnhMetaFileBits Lib "gdi32" (hemf As HENHMETAFILE, cbBuffer As DWord, pbBuffer As *Byte) As DWord 868 Declare Function GetEnhMetaFileDescription Lib "gdi32" Alias "GetEnhMetaFileDescriptionA"(hemf As HENHMETAFILE, cbBuffer As DWord, pszDescription As PTSTR) As DWord947 Declare Function GetEnhMetaFileDescription Lib "gdi32" Alias _FuncName_GetEnhMetaFileDescription (hemf As HENHMETAFILE, cbBuffer As DWord, pszDescription As PTSTR) As DWord 869 948 Declare Function GetEnhMetaFileHeader Lib "gdi32" (hemf As HENHMETAFILE, cbBuffer As DWord, ByRef emh As ENHMETAHEADER) As DWord 870 949 Declare Function GetEnhMetaFilePaletteEntries Lib "gdi32" (hemf As HENHMETAFILE, cEntries As DWord, ByRef pe As PALETTEENTRY) As DWord … … 881 960 Declare Function GetMetaFileBitsEx Lib "gdi32" (hmf As HMETAFILE, nSize As DWord, pvData As VoidPtr) As DWord 882 961 Declare Function GetMiterLimit Lib "gdi32" (hdc As HDC, peLimit As SinglePtr) As Long 883 Declare Function GetObject Lib "gdi32" Alias "GetObjectA" (hgdiobj As HANDLE, cbBuffer As Long, ByRef lpvObject As Any) As Long962 Declare Function GetObject Lib "gdi32" Alias _FuncName_GetObject (hgdiobj As HANDLE, cbBuffer As Long, ByRef pvObject As Any) As Long 884 963 Declare Function GetObjectType Lib "gdi32" (hObject As HANDLE) As Long 885 964 … … 931 1010 Declare Function GetTextExtentPoint32W Lib "gdi32" (hdc As HDC, pString As PCWSTR, cbString As Long, ByRef Size As SIZE) As Long 932 1011 #ifdef UNICODE 933 Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32W" (hdc As HDC, pString As PC TSTR, cbString As Long, ByRef Size As SIZE) As Long1012 Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32W" (hdc As HDC, pString As PCWSTR, cbString As Long, ByRef Size As SIZE) As Long 934 1013 #else 935 Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32A" (hdc As HDC, pString As PC TSTR, cbString As Long, ByRef Size As SIZE) As Long1014 Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32A" (hdc As HDC, pString As PCSTR, cbString As Long, ByRef Size As SIZE) As Long 936 1015 #endif 937 1016 … … 940 1019 Const TMPF_DEVICE = &H08 941 1020 Const TMPF_TRUETYPE = &H04 942 Type TEXTMETRIC 1021 Type TEXTMETRICW 943 1022 tmHeight As Long 944 1023 tmAscent As Long … … 952 1031 tmDigitizedAspectX As Long 953 1032 tmDigitizedAspectY As Long 954 tmFirstChar As Byte955 tmLastChar As Byte956 tmDefaultChar As Byte957 tmBreakChar As Byte1033 tmFirstChar As WCHAR 1034 tmLastChar As WCHAR 1035 tmDefaultChar As WCHAR 1036 tmBreakChar As WCHAR 958 1037 tmItalic As Byte 959 1038 tmUnderlined As Byte … … 962 1041 tmCharSet As Byte 963 1042 End Type 964 Declare Function GetTextMetrics Lib "gdi32" Alias "GetTextMetricsA" (hdc As HDC, ByRef lptm As TEXTMETRIC) As Long 1043 Type TEXTMETRICA 1044 tmHeight As Long 1045 tmAscent As Long 1046 tmDescent As Long 1047 tmInternalLeading As Long 1048 tmExternalLeading As Long 1049 tmAveCharWidth As Long 1050 tmMaxCharWidth As Long 1051 tmWeight As Long 1052 tmOverhang As Long 1053 tmDigitizedAspectX As Long 1054 tmDigitizedAspectY As Long 1055 tmFirstChar As SByte 1056 tmLastChar As SByte 1057 tmDefaultChar As SByte 1058 tmBreakChar As SByte 1059 tmItalic As Byte 1060 tmUnderlined As Byte 1061 tmStruckOut As Byte 1062 tmPitchAndFamily As Byte 1063 tmCharSet As Byte 1064 End Type 1065 #ifdef UNICODE 1066 TypeDef TEXTMETRIC = TEXTMETRICW 1067 #else 1068 TypeDef TEXTMETRIC = TEXTMETRICA 1069 #endif 1070 Declare Function GetTextMetrics Lib "gdi32" Alias _FuncName_GetTextMetrics (hdc As HDC, ByRef tm As TEXTMETRIC) As Long 965 1071 966 1072 Declare Function GetViewportExtEx Lib "gdi32" (hdc As HDC, ByRef lpSize As SIZE) As Long … … 998 1104 Declare Function RectInRegion Lib "gdi32" (hRgn As HRGN, ByRef lpRect As RECT) As Long 999 1105 Declare Function RectVisible Lib "gdi32" (hdc As HDC, ByRef lpRect As RECT) As Long 1000 Declare Function ResetDC Lib "gdi32" Alias "ResetDCA" (hdc As HDC, ByRef lpInitData As DEVMODE) As HDC1106 Declare Function ResetDC Lib "gdi32" Alias _FuncName_ResetDC (hdc As HDC, ByRef InitData As DEVMODE) As HDC 1001 1107 Declare Function RestoreDC Lib "gdi32" (hdc As HDC, nSavedDC As Long) As Long 1002 1108 Declare Function RoundRect Lib "gdi32" (hdc As HDC, nLeftRect As Long, nTopRect As Long, nRightRect As Long, nBottomRect As Long, nWidth As Long, nHeight As Long) As Long … … 1042 1148 Declare Function SetWindowOrgEx Lib "gdi32" (hdc As HDC, x As Long, y As Long, ByRef lpPoint As POINTAPI) As Long 1043 1149 Declare Function SetWinMetaFileBits Lib "gdi32" (cbBuffer As DWord, pbBuffer As *Byte, hdcRef As HDC, ByRef mfp As METAFILEPICT) As HENHMETAFILE 1044 Declare Function StartDoc Lib "gdi32" Alias "StartDocA" (hdc As HDC, ByRef ref_di As DOCINFO) As Long1150 Declare Function StartDoc Lib "gdi32" Alias _FuncName_StartDoc (hdc As HDC, ByRef di As DOCINFO) As Long 1045 1151 Declare Function StartPage Lib "gdi32" (hdc As HDC) As Long 1046 1152 Declare Function StretchBlt Lib "gdi32" (hdcDest As HDC, nXOriginDest As Long, nYOriginDest As Long, nWidthDest As Long, nHeightDest As Long, hdcSrc As HDC, nXOriginSrc As Long, nYOriginSrc As Long, nWidthSrc As Long, nHeightSrc As Long, dwRop As DWord) As Long … … 1051 1157 Declare Function TextOutW Lib "gdi32" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCWSTR, cbString As Long) As Long 1052 1158 #ifdef UNICODE 1053 Declare Function TextOut Lib "gdi32" Alias "TextOutW" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PC TSTR, cbString As Long) As Long1159 Declare Function TextOut Lib "gdi32" Alias "TextOutW" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCWSTR, cbString As Long) As Long 1054 1160 #else 1055 Declare Function TextOut Lib "gdi32" Alias "TextOutA" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PC TSTR, cbString As Long) As Long1161 Declare Function TextOut Lib "gdi32" Alias "TextOutA" (hdc As HDC, nXStart As Long, nYStart As Long, pString As PCSTR, cbString As Long) As Long 1056 1162 #endif 1057 1163 … … 1133 1239 Declare Function wglMakeCurrent Lib "opengl32" (hdc As HDC, hglrc As HGLRC) As BOOL 1134 1240 Declare Function wglShareLists Lib "opengl32" (hglrc1 As HGLRC, hglrc2 As HGLRC) As BOOL 1135 Declare Function wglUseFontBitmaps Lib "opengl32" Alias "wglUseFontBitmapsA"(hdc As HDC, first As DWord, count As DWord, listbase As DWord) As BOOL1241 Declare Function wglUseFontBitmaps Lib "opengl32" Alias _FuncName_wglUseFontBitmaps (hdc As HDC, first As DWord, count As DWord, listbase As DWord) As BOOL 1136 1242 Declare Function SwapBuffers Lib "gdi32" (hdc As HDC) As BOOL 1137 1243 … … 1155 1261 Const WGL_FONT_POLYGONS = 1 1156 1262 1157 Declare Function wglUseFontOutlines Lib "opengl32" Alias "wglUseFontOutlinesA"(hdc As HDC, first As DWord, count As DWord, listbase As DWord, deviation As Single, extrusion As Single, format As Long, ByRef lpgmf As GLYPHMETRICSFLOAT) As BOOL1263 Declare Function wglUseFontOutlines Lib "opengl32" Alias _FuncName_wglUseFontOutlines (hdc As HDC, first As DWord, count As DWord, listbase As DWord, deviation As Single, extrusion As Single, format As Long, ByRef lpgmf As GLYPHMETRICSFLOAT) As BOOL 1158 1264 1159 1265 Type LAYERPLANEDESCRIPTOR -
Include/api_mmsys.sbp
r95 r141 6 6 #define _INC_MMSYS 7 7 8 #ifdef UNICODE 9 Const _FuncName_sndPlaySound = "sndPlaySoundW" 10 Const _FuncName_PlaySound = "PlaySoundW" 11 Const _FuncName_waveOutGetDevCaps = "waveOutGetDevCapsW" 12 Const _FuncName_waveOutGetErrorText = "waveOutGetErrorTextW" 13 Const _FuncName_waveInGetDevCaps = "waveInGetDevCapsW" 14 Const _FuncName_waveInGetErrorText = "waveInGetErrorTextW" 15 Const _FuncName_midiOutGetDevCaps = "midiOutGetDevCapsW" 16 Const _FuncName_midiOutGetErrorText = "midiOutGetErrorTextW" 17 Const _FuncName_midiInGetDevCaps = "midiInGetDevCapsW" 18 Const _FuncName_midiInGetErrorText = "midiInGetErrorTextW" 19 Const _FuncName_auxGetDevCaps = "auxGetDevCapsW" 20 Const _FuncName_mixerGetDevCaps = "mixerGetDevCapsW" 21 Const _FuncName_mixerGetLineInfo = "mixerGetLineInfoW" 22 Const _FuncName_mixerGetLineControls = "mixerGetLineControlsW" 23 Const _FuncName_mixerGetControlDetails = "mixerGetControlDetailsW" 24 Const _FuncName_joyGetDevCaps = "joyGetDevCapsW" 25 Const _FuncName_mmioStringToFOURCC = "mmioStringToFOURCCW" 26 Const _FuncName_mmioInstallIOProc = "mmioInstallIOProcW" 27 Const _FuncName_mmioOpen = "mmioOpenW" 28 Const _FuncName_mmioRename = "mmioRenameW" 29 Const _FuncName_mciSendCommand = "mciSendCommandW" 30 Const _FuncName_mciSendString = "mciSendStringW" 31 Const _FuncName_mciGetDeviceID = "mciGetDeviceIDW" 32 Const _FuncName_mciGetErrorString = "mciGetErrorStringW" 33 #else 34 Const _FuncName_sndPlaySound = "sndPlaySoundA" 35 Const _FuncName_PlaySound = "PlaySoundA" 36 Const _FuncName_waveOutGetDevCaps = "waveOutGetDevCapsA" 37 Const _FuncName_waveOutGetErrorText = "waveOutGetErrorTextA" 38 Const _FuncName_waveInGetDevCaps = "waveInGetDevCapsA" 39 Const _FuncName_waveInGetErrorText = "waveInGetErrorTextA" 40 Const _FuncName_midiOutGetDevCaps = "midiOutGetDevCapsA" 41 Const _FuncName_midiOutGetErrorText = "midiOutGetErrorTextA" 42 Const _FuncName_midiInGetDevCaps = "midiInGetDevCapsA" 43 Const _FuncName_midiInGetErrorText = "midiInGetErrorTextA" 44 Const _FuncName_auxGetDevCaps = "auxGetDevCapsA" 45 Const _FuncName_mixerGetDevCaps = "mixerGetDevCapsA" 46 Const _FuncName_mixerGetLineInfo = "mixerGetLineInfoA" 47 Const _FuncName_mixerGetLineControls = "mixerGetLineControlsA" 48 Const _FuncName_mixerGetControlDetails = "mixerGetControlDetailsA" 49 Const _FuncName_joyGetDevCaps = "joyGetDevCapsA" 50 Const _FuncName_mmioStringToFOURCC = "mmioStringToFOURCCA" 51 Const _FuncName_mmioInstallIOProc = "mmioInstallIOProcA" 52 Const _FuncName_mmioOpen = "mmioOpenA" 53 Const _FuncName_mmioRename = "mmioRenameA" 54 Const _FuncName_mciSendCommand = "mciSendCommandA" 55 Const _FuncName_mciSendString = "mciSendStringA" 56 Const _FuncName_mciGetDeviceID = "mciGetDeviceIDA" 57 Const _FuncName_mciGetErrorString = "mciGetErrorStringA" 58 #endif 8 59 9 60 ' general constants … … 261 312 ' Sound support 262 313 263 Declare Function sndPlaySound Lib "winmm" Alias "sndPlaySoundA" (pszSound As PCSTR, fuSound As DWord) As BOOL314 Declare Function sndPlaySound Lib "winmm" Alias _FuncName_sndPlaySound (pszSound As PCTSTR, fuSound As DWord) As BOOL 264 315 265 316 Const SND_SYNC = &H0000 … … 289 340 Const SND_ALIAS_SYSTEMDEFAULT = sndAlias(&H53, &H44) 290 341 291 Declare Function PlaySound Lib "winmm" Alias "PlaySoundA" (pszSound As PCSTR, hmod As HMODULE, fdwSound As DWord) As BOOL342 Declare Function PlaySound Lib "winmm" Alias _FuncName_PlaySound (pszSound As PCTSTR, hmod As HMODULE, fdwSound As DWord) As BOOL 292 343 293 344 … … 353 404 354 405 ' waveform output device capabilities structure 406 Type WAVEOUTCAPSW 407 wMid As Word 408 wPid As Word 409 vDriverVersion As MMVERSION 410 szPname[ELM(MAXPNAMELEN)] As WCHAR 411 dwFormats As DWord 412 wChannels As Word 413 wReserved1 As Word 414 dwSupport As DWord 415 End Type 416 TypeDef PWAVEOUTCAPSW = *WAVEOUTCAPSW 417 TypeDef LPWAVEOUTCAPSW = *WAVEOUTCAPSW 355 418 Type WAVEOUTCAPSA 356 419 wMid As Word 357 420 wPid As Word 358 421 vDriverVersion As MMVERSION 359 szPname[ELM(MAXPNAMELEN)] As Char422 szPname[ELM(MAXPNAMELEN)] As SByte 360 423 dwFormats As DWord 361 424 wChannels As Word … … 365 428 TypeDef PWAVEOUTCAPSA = *WAVEOUTCAPSA 366 429 TypeDef LPWAVEOUTCAPSA = *WAVEOUTCAPSA 367 430 #ifdef UNICODE 431 TypeDef WAVEOUTCAPS = WAVEOUTCAPSW 432 #else 368 433 TypeDef WAVEOUTCAPS = WAVEOUTCAPSA 369 TypeDef PWAVEOUTCAPS = PWAVEOUTCAPSA 370 TypeDef LPWAVEOUTCAPS = LPWAVEOUTCAPSA 434 #endif 435 TypeDef PWAVEOUTCAPS = *WAVEOUTCAPS 436 TypeDef LPWAVEOUTCAPS = *WAVEOUTCAPS 371 437 372 438 ' flags for dwSupport field of WAVEOUTCAPS … … 380 446 381 447 ' waveform input device capabilities structure 448 Type WAVEINCAPSW 449 wMid As Word 450 wPid As Word 451 vDriverVersion As MMVERSION 452 szPname[ELM(MAXPNAMELEN)] As WCHAR 453 dwFormats As DWord 454 wChannels As Word 455 wReserved1 As Word 456 End Type 457 TypeDef PWAVEINCAPSW = *WAVEINCAPSW 458 TypeDef LPWAVEINCAPSW = *WAVEINCAPSW 382 459 Type WAVEINCAPSA 383 460 wMid As Word 384 461 wPid As Word 385 462 vDriverVersion As MMVERSION 386 szPname[ELM(MAXPNAMELEN)] As Char463 szPname[ELM(MAXPNAMELEN)] As SByte 387 464 dwFormats As DWord 388 465 wChannels As Word … … 391 468 TypeDef PWAVEINCAPSA = *WAVEINCAPSA 392 469 TypeDef LPWAVEINCAPSA = *WAVEINCAPSA 393 470 #ifdef UNICODE 471 TypeDef WAVEINCAPS = WAVEINCAPSW 472 #else 394 473 TypeDef WAVEINCAPS = WAVEINCAPSA 395 TypeDef PWAVEINCAPS = PWAVEINCAPSA 396 TypeDef LPWAVEINCAPS = LPWAVEINCAPSA 474 #endif 475 TypeDef PWAVEINCAPS = *WAVEINCAPS 476 TypeDef LPWAVEINCAPS = *WAVEINCAPS 397 477 398 478 ' defines for dwFormat field of WAVEINCAPS and WAVEOUTCAPS 399 479 Const WAVE_INVALIDFORMAT = &H00000000 ' invalid format 400 Const WAVE_FORMAT_1M08 = &H00000001 ' 11.025 kHz, Mono, 8-bit 401 Const WAVE_FORMAT_1S08 = &H00000002 ' 11.025 kHz, Stereo, 8-bit 480 Const WAVE_FORMAT_1M08 = &H00000001 ' 11.025 kHz, Mono, 8-bit 481 Const WAVE_FORMAT_1S08 = &H00000002 ' 11.025 kHz, Stereo, 8-bit 402 482 Const WAVE_FORMAT_1M16 = &H00000004 ' 11.025 kHz, Mono, 16-bit 403 483 Const WAVE_FORMAT_1S16 = &H00000008 ' 11.025 kHz, Stereo, 16-bit 404 Const WAVE_FORMAT_2M08 = &H00000010 ' 22.05 kHz, Mono, 8-bit 405 Const WAVE_FORMAT_2S08 = &H00000020 ' 22.05 kHz, Stereo, 8-bit 484 Const WAVE_FORMAT_2M08 = &H00000010 ' 22.05 kHz, Mono, 8-bit 485 Const WAVE_FORMAT_2S08 = &H00000020 ' 22.05 kHz, Stereo, 8-bit 406 486 Const WAVE_FORMAT_2M16 = &H00000040 ' 22.05 kHz, Mono, 16-bit 407 487 Const WAVE_FORMAT_2S16 = &H00000080 ' 22.05 kHz, Stereo, 16-bit 408 Const WAVE_FORMAT_4M08 = &H00000100 ' 44.1 kHz, Mono, 8-bit 409 Const WAVE_FORMAT_4S08 = &H00000200 ' 44.1 kHz, Stereo, 8-bit 488 Const WAVE_FORMAT_4M08 = &H00000100 ' 44.1 kHz, Mono, 8-bit 489 Const WAVE_FORMAT_4S08 = &H00000200 ' 44.1 kHz, Stereo, 8-bit 410 490 Const WAVE_FORMAT_4M16 = &H00000400 ' 44.1 kHz, Mono, 16-bit 411 491 Const WAVE_FORMAT_4S16 = &H00000800 ' 44.1 kHz, Stereo, 16-bit … … 448 528 ' waveform audio function prototypes 449 529 Declare Function waveOutGetNumDevs Lib "winmm" () As DWord 450 Declare Function waveOutGetDevCaps Lib "winmm" Alias "waveOutGetDevCapsA" (uDeviceID As DWord, ByRef pwoc As WAVEOUTCAPS, cbwoc As DWord) As MMRESULT530 Declare Function waveOutGetDevCaps Lib "winmm" Alias _FuncName_waveOutGetDevCaps (uDeviceID As DWord, ByRef woc As WAVEOUTCAPS, cbwoc As DWord) As MMRESULT 451 531 Declare Function waveOutGetVolume Lib "winmm" (hwo As HWAVEOUT, ByRef pdwVolume As DWord) As MMRESULT 452 532 Declare Function waveOutSetVolume Lib "winmm" (hwo As HWAVEOUT, dwVolume As DWord) As MMRESULT 453 Declare Function waveOutGetErrorText Lib "winmm" Alias "waveOutGetErrorTextA" (mmrError As MMRESULT, pszText As LPSTR, cchText As DWord) As MMRESULT533 Declare Function waveOutGetErrorText Lib "winmm" Alias _FuncName_waveOutGetErrorText (mmrError As MMRESULT, pszText As LPTSTR, cchText As DWord) As MMRESULT 454 534 Declare Function waveOutOpen Lib "winmm" (ByRef phwo As HWAVEOUT, uDeviceID As DWord, ByRef pwfx As WAVEFORMATEX, dwCallback As DWord, dwInstance As DWord, fdwOpen As DWord) As MMRESULT 455 535 Declare Function waveOutClose Lib "winmm" (hwo As HWAVEOUT) As MMRESULT … … 470 550 471 551 Declare Function waveInGetNumDevs Lib "winmm" () As DWord 472 Declare Function waveInGetDevCaps Lib "winmm" Alias "waveInGetDevCapsA"(uDeviceID As DWord, ByRef pwic As WAVEINCAPS, cbwic As DWord) As MMRESULT473 Declare Function waveInGetErrorText Lib "winmm" Alias "waveInGetErrorTextA" (mmrError As MMRESULT, pszText As LPSTR, cchText As DWord) As MMRESULT552 Declare Function waveInGetDevCaps Lib "winmm" Alias _FuncName_waveInGetDevCaps (uDeviceID As DWord, ByRef pwic As WAVEINCAPS, cbwic As DWord) As MMRESULT 553 Declare Function waveInGetErrorText Lib "winmm" Alias _FuncName_waveInGetErrorText (mmrError As MMRESULT, pszText As LPTSTR, cchText As DWord) As MMRESULT 474 554 Declare Function waveInOpen Lib "winmm" (ByRef phwi As HWAVEIN, uDeviceID As DWord, ByRef pwfx As WAVEFORMATEX, dwCallback As DWord, dwInstance As DWord, fdwOpen As DWord) As MMRESULT 475 555 Declare Function waveInClose Lib "winmm" (hwi As HWAVEIN) As MMRESULT … … 544 624 545 625 ' MIDI output device capabilities structure 546 Type MIDIOUTCAPS A626 Type MIDIOUTCAPSW 547 627 wMid As Word 548 628 wPid As Word 549 629 vDriverVersion As MMVERSION 550 szPname[ELM(MAXPNAMELEN)] As Char630 szPname[ELM(MAXPNAMELEN)] As WCHAR 551 631 wTechnology As Word 552 632 wVoices As Word … … 555 635 dwSupport As DWord 556 636 End Type 637 TypeDef PMIDIOUTCAPSW = *MIDIOUTCAPSW 638 TypeDef LPMIDIOUTCAPSW = *MIDIOUTCAPSW 639 Type MIDIOUTCAPSA 640 wMid As Word 641 wPid As Word 642 vDriverVersion As MMVERSION 643 szPname[ELM(MAXPNAMELEN)] As SByte 644 wTechnology As Word 645 wVoices As Word 646 wNotes As Word 647 wChannelMask As Word 648 dwSupport As DWord 649 End Type 557 650 TypeDef PMIDIOUTCAPSA = *MIDIOUTCAPSA 558 651 TypeDef LPMIDIOUTCAPSA = *MIDIOUTCAPSA 559 652 653 #ifdef UNICODE 654 TypeDef MIDIOUTCAPS = MIDIOUTCAPSW 655 #else 560 656 TypeDef MIDIOUTCAPS = MIDIOUTCAPSA 561 TypeDef PMIDIOUTCAPS = PMIDIOUTCAPSA 562 TypeDef LPMIDIOUTCAPS = LPMIDIOUTCAPSA 657 #endif 658 TypeDef PMIDIOUTCAPS = *MIDIOUTCAPS 659 TypeDef LPMIDIOUTCAPS = *MIDIOUTCAPS 563 660 564 661 ' flags for wTechnology field of MIDIOUTCAPS structure … … 576 673 577 674 ' MIDI input device capabilities structure 675 Type MIDIINCAPSW 676 wMid As Word 677 wPid As Word 678 vDriverVersion As MMVERSION 679 szPname[ELM(MAXPNAMELEN)] As WCHAR 680 dwSupport As DWord 681 End Type 682 TypeDef PMIDIINCAPSW = *MIDIINCAPSW 683 TypeDef LPMIDIINCAPSW = *MIDIINCAPSW 578 684 Type MIDIINCAPSA 579 685 wMid As Word 580 686 wPid As Word 581 687 vDriverVersion As MMVERSION 582 szPname[ELM(MAXPNAMELEN)] As Char688 szPname[ELM(MAXPNAMELEN)] As SByte 583 689 dwSupport As DWord 584 690 End Type 585 691 TypeDef PMIDIINCAPSA = *MIDIINCAPSA 586 692 TypeDef LPMIDIINCAPSA = *MIDIINCAPSA 587 693 #ifdef UNICODE 694 TypeDef MIDIINCAPS = MIDIINCAPSW 695 #else 588 696 TypeDef MIDIINCAPS = MIDIINCAPSA 589 TypeDef PMIDIINCAPS = PMIDIINCAPSA 590 TypeDef LPMIDIINCAPS = LPMIDIINCAPSA 697 #endif 698 TypeDef PMIDIINCAPS = *MIDIINCAPS 699 TypeDef LPMIDIINCAPS = *MIDIINCAPS 591 700 592 701 ' MIDI data block header … … 670 779 Declare Function midiConnect Lib "winmm" (hmi As HMIDI, hmo As HMIDIOUT, pReserved As VoidPtr) As MMRESULT 671 780 Declare Function midiDisconnect Lib "winmm" (hmi As HMIDI, hmo As HMIDIOUT, pReserved As VoidPtr) As MMRESULT 672 Declare Function midiOutGetDevCaps Lib "winmm" Alias "midiOutGetDevCapsA" (uDeviceID As DWord, ByRef pmocAs MIDIOUTCAPS, cbmoc As DWord) As MMRESULT781 Declare Function midiOutGetDevCaps Lib "winmm" Alias _FuncName_midiOutGetDevCaps (uDeviceID As DWord, ByRef moc As MIDIOUTCAPS, cbmoc As DWord) As MMRESULT 673 782 Declare Function midiOutGetVolume Lib "winmm" (hmo As HMIDIOUT, ByRef pdwVolume As DWord) As MMRESULT 674 783 Declare Function midiOutSetVolume Lib "winmm" (hmo As HMIDIOUT, dwVolume As DWord) As MMRESULT 675 Declare Function midiOutGetErrorText Lib "winmm" Alias "midiOutGetErrorTextA" (mmrError As MMRESULT, pszText As LPSTR, cchText As DWord) As MMRESULT784 Declare Function midiOutGetErrorText Lib "winmm" Alias _FuncName_midiOutGetErrorText (mmrError As MMRESULT, pszText As LPTSTR, cchText As DWord) As MMRESULT 676 785 Declare Function midiOutOpen Lib "winmm" (ByRef phmo As HMIDIOUT, uDeviceID As DWord, dwCallback As DWord, dwInstance As DWord, fdwOpen As DWord) As MMRESULT 677 786 Declare Function midiOutClose Lib "winmm" (hmo As HMIDIOUT) As MMRESULT … … 687 796 688 797 Declare Function midiInGetNumDevs Lib "winmm" () As DWord 689 Declare Function midiInGetDevCaps Lib "winmm" Alias "midiInGetDevCapsA"(uDeviceID As DWord, ByRef pmic As MIDIINCAPS, cbmic As DWord) As MMRESULT690 Declare Function midiInGetErrorText Lib "winmm" Alias "midiInGetErrorTextA" (mmrError As MMRESULT, pszText As LPSTR, cchText As DWord) As MMRESULT798 Declare Function midiInGetDevCaps Lib "winmm" Alias _FuncName_midiInGetDevCaps (uDeviceID As DWord, ByRef pmic As MIDIINCAPS, cbmic As DWord) As MMRESULT 799 Declare Function midiInGetErrorText Lib "winmm" Alias _FuncName_midiInGetErrorText (mmrError As MMRESULT, pszText As LPCTSTR, cchText As DWord) As MMRESULT 691 800 Declare Function midiInOpen Lib "winmm" (ByRef phmi As HMIDIIN, uDeviceID As DWord, dwCallback As DWord, dwInstance As DWord, fdwOpen As DWord) As MMRESULT 692 801 Declare Function midiInClose Lib "winmm" (hmi As HMIDIIN) As MMRESULT … … 708 817 709 818 ' Auxiliary audio device capabilities structure 819 Type AUXCAPSW 820 wMid As Word 821 wPid As Word 822 vDriverVersion As MMVERSION 823 szPname[ELM(MAXPNAMELEN)] As WCHAR 824 wTechnology As Word 825 wReserved1 As Word 826 dwSupport As DWord 827 End Type 828 TypeDef PAUXCAPSW = *AUXCAPSW 829 TypeDef NPAUXCAPSW = *AUXCAPSW 830 TypeDef LPAUXCAPSW = *AUXCAPSW 710 831 Type AUXCAPSA 711 832 wMid As Word 712 833 wPid As Word 713 834 vDriverVersion As MMVERSION 714 szPname[ELM(MAXPNAMELEN)] As Char835 szPname[ELM(MAXPNAMELEN)] As SByte 715 836 wTechnology As Word 716 837 wReserved1 As Word … … 720 841 TypeDef NPAUXCAPSA = *AUXCAPSA 721 842 TypeDef LPAUXCAPSA = *AUXCAPSA 722 843 #ifdef UNICODE 723 844 TypeDef AUXCAPS = AUXCAPSA 724 TypeDef PAUXCAPS = PAUXCAPSA 725 TypeDef NPAUXCAPS = NPAUXCAPSA 726 TypeDef LPAUXCAPS = LPAUXCAPSA 845 #else 846 TypeDef AUXCAPS = AUXCAPSA 847 #endif 848 TypeDef PAUXCAPS = *AUXCAPS 849 TypeDef NPAUXCAPS = *AUXCAPS 850 TypeDef LPAUXCAPS = *AUXCAPS 727 851 728 852 Const AUXCAPS_CDAUDIO = 1 … … 734 858 ' auxiliary audio function prototypes 735 859 Declare Function auxGetNumDevs Lib "winmm" () As DWord 736 Declare Function auxGetDevCaps Lib "winmm" Alias "auxGetDevCapsA"(uDeviceID As DWord, pac As *AUXCAPS, cbac As DWord) As MMRESULT860 Declare Function auxGetDevCaps Lib "winmm" Alias _FuncName_auxGetDevCaps (uDeviceID As DWord, pac As *AUXCAPS, cbac As DWord) As MMRESULT 737 861 Declare Function auxSetVolume Lib "winmm" (uDeviceID As DWord, dwVolume As DWord) As MMRESULT 738 862 Declare Function auxGetVolume Lib "winmm" (uDeviceID As DWord, pdwVolume As *DWord) As MMRESULT … … 771 895 Declare Function mixerGetNumDevs Lib "winmm" () As DWord 772 896 897 Type MIXERCAPSW 898 wMid As Word 899 wPid As Word 900 vDriverVersion As MMVERSION 901 szPname[ELM(MAXPNAMELEN)] As WCHAR 902 fdwSupport As DWord 903 cDestinations As DWord 904 End Type 905 TypeDef PMIXERCAPSW = *MIXERCAPSW 906 TypeDef LPMIXERCAPSW = *MIXERCAPSW 773 907 Type MIXERCAPSA 774 908 wMid As Word … … 781 915 TypeDef PMIXERCAPSA = *MIXERCAPSA 782 916 TypeDef LPMIXERCAPSA = *MIXERCAPSA 783 917 #ifdef UNICODE 918 TypeDef MIXERCAPS = MIXERCAPSW 919 #else 784 920 TypeDef MIXERCAPS = MIXERCAPSA 785 TypeDef PMIXERCAPS = PMIXERCAPSA 786 TypeDef LPMIXERCAPS = LPMIXERCAPSA 787 788 Declare Function mixerGetDevCaps Lib "winmm" Alias "mixerGetDevCapsA" (uMxId As DWord, pmxcaps As *MIXERCAPS, cbmxcaps As DWord) As MMRESULT 921 #endif 922 TypeDef PMIXERCAPS = *MIXERCAPS 923 TypeDef LPMIXERCAPS = *MIXERCAPS 924 925 Declare Function mixerGetDevCaps Lib "winmm" Alias _FuncName_mixerGetDevCaps (uMxId As DWord, pmxcaps As *MIXERCAPS, cbmxcaps As DWord) As MMRESULT 789 926 Declare Function mixerOpen Lib "winmm" (phmx As *HMIXER, uMxId As DWord, dwCallback As DWord, dwInstance As DWord, fdwOpen As DWord) As MMRESULT 790 927 Declare Function mixerClose Lib "winmm" (hmx As HMIXER) As MMRESULT 791 928 Declare Function mixerMessage Lib "winmm" (hmx As HMIXER, uMsg As DWord, dwParam1 As DWord, dwParam2 As DWord) As DWord 792 929 793 Type TARGET930 Type _MMSYSTEM_TARGETW 794 931 dwType As DWord 795 932 dwDeviceID As DWord … … 797 934 wPid As Word 798 935 vDriverVersion As MMVERSION 799 szPname[ELM(MAXPNAMELEN)] As Char 936 szPname[ELM(MAXPNAMELEN)] As WCHAR 937 End Type 938 939 Type MIXERLINEW 940 cbStruct As DWord 941 dwDestination As DWord 942 dwSource As DWord 943 dwLineID As DWord 944 fdwLine As DWord 945 dwUser As DWord 946 dwComponentType As DWord 947 cChannels As DWord 948 cConnections As DWord 949 cControls As DWord 950 szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As WCHAR 951 szName[ELM(MIXER_LONG_NAME_CHARS)] As WCHAR 952 Target As _MMSYSTEM_TARGETW 953 End Type 954 TypeDef PMIXERLINEW = *MIXERLINEW 955 TypeDef LPMIXERLINEW = *MIXERLINEW 956 957 Type _MMSYSTEM_TARGETA 958 dwType As DWord 959 dwDeviceID As DWord 960 wMid As Word 961 wPid As Word 962 vDriverVersion As MMVERSION 963 szPname[ELM(MAXPNAMELEN)] As SByte 800 964 End Type 801 965 … … 811 975 cConnections As DWord 812 976 cControls As DWord 813 szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As Char814 szName[ELM(MIXER_LONG_NAME_CHARS)] As Char815 Target As TARGET977 szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As SByte 978 szName[ELM(MIXER_LONG_NAME_CHARS)] As SByte 979 Target As _MMSYSTEM_TARGETA 816 980 End Type 817 981 TypeDef PMIXERLINEA = *MIXERLINEA 818 982 TypeDef LPMIXERLINEA = *MIXERLINEA 819 983 #ifdef UNICODE 984 TypeDef MIXERLINE = MIXERLINEW 985 #else 820 986 TypeDef MIXERLINE = MIXERLINEA 821 TypeDef PMIXERLINE = PMIXERLINEA 822 TypeDef LPMIXERLINE = LPMIXERLINEA 987 #endif 988 TypeDef PMIXERLINE = *MIXERLINE 989 TypeDef LPMIXERLINE = *MIXERLINE 823 990 824 991 ' MIXERLINE.fdwLine … … 862 1029 Const MIXERLINE_TARGETTYPE_AUX = 5 863 1030 864 Declare Function mixerGetLineInfo Lib "winmm" Alias "mixerGetLineInfoA"(hmxobj As HMIXEROBJ, pmxl As *MIXERLINE, fdwInfo As DWord) As MMRESULT1031 Declare Function mixerGetLineInfo Lib "winmm" Alias _FuncName_mixerGetLineInfo (hmxobj As HMIXEROBJ, pmxl As *MIXERLINE, fdwInfo As DWord) As MMRESULT 865 1032 866 1033 Const MIXER_GETLINEINFOF_DESTINATION = &H00000000 … … 873 1040 Declare Function mixerGetID Lib "winmm" (hmxobj As HMIXEROBJ, puMxId As *DWord, fdwId As DWord) As MMRESULT 874 1041 1042 Type MIXERCONTROLW 1043 cbStruct As DWord 1044 dwControlID As DWord 1045 dwControlType As DWord 1046 fdwControl As DWord 1047 cMultipleItems As DWord 1048 szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As WCHAR 1049 szName[ELM(MIXER_LONG_NAME_CHARS)] As WCHAR 1050 Bounds[ELM(6)] As DWord 1051 Metrics[ELM(6)] As DWord 1052 End Type 1053 TypeDef PMIXERCONTROLW = *MIXERCONTROLW 1054 TypeDef LPMIXERCONTROLW = *MIXERCONTROLW 875 1055 Type MIXERCONTROLA 876 1056 cbStruct As DWord … … 879 1059 fdwControl As DWord 880 1060 cMultipleItems As DWord 881 szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As Char882 szName[ELM(MIXER_LONG_NAME_CHARS)] As Char1061 szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As SByte 1062 szName[ELM(MIXER_LONG_NAME_CHARS)] As SByte 883 1063 Bounds[ELM(6)] As DWord 884 1064 Metrics[ELM(6)] As DWord … … 886 1066 TypeDef PMIXERCONTROLA = *MIXERCONTROLA 887 1067 TypeDef LPMIXERCONTROLA = *MIXERCONTROLA 888 1068 #ifdef UNICODE 1069 TypeDef MIXERCONTROL = MIXERCONTROLW 1070 #else 889 1071 TypeDef MIXERCONTROL = MIXERCONTROLA 890 TypeDef PMIXERCONTROL = PMIXERCONTROLA 891 TypeDef LPMIXERCONTROL = LPMIXERCONTROLA 1072 #endif 1073 TypeDef PMIXERCONTROL = *MIXERCONTROL 1074 TypeDef LPMIXERCONTROL = *MIXERCONTROL 892 1075 893 1076 ' MIXERCONTROL.fdwControl … … 954 1137 Const MIXERCONTROL_CONTROLTYPE_MILLITIME = (MIXERCONTROL_CT_CLASS_TIME OR MIXERCONTROL_CT_SC_TIME_MILLISECS OR MIXERCONTROL_CT_UNITS_UNSIGNED) 955 1138 1139 Type MIXERLINECONTROLSW 1140 cbStruct As DWord 1141 dwLineID As DWord 1142 dwControl_ID_Type As DWord 1143 cControls As DWord 1144 cbmxctrl As DWord 1145 pamxctrl As *MIXERCONTROLW 1146 End Type 1147 TypeDef PMIXERLINECONTROLSW = *MIXERLINECONTROLSW 1148 TypeDef LPMIXERLINECONTROLSW = *MIXERLINECONTROLSW 956 1149 Type MIXERLINECONTROLSA 957 1150 cbStruct As DWord … … 960 1153 cControls As DWord 961 1154 cbmxctrl As DWord 962 pamxctrl As *MIXERCONTROL 1155 pamxctrl As *MIXERCONTROLA 963 1156 End Type 964 1157 TypeDef PMIXERLINECONTROLSA = *MIXERLINECONTROLSA 965 1158 TypeDef LPMIXERLINECONTROLSA = *MIXERLINECONTROLSA 966 1159 #ifdef UNICODE 967 1160 TypeDef MIXERLINECONTROLS = MIXERLINECONTROLSA 968 TypeDef PMIXERLINECONTROLS = PMIXERLINECONTROLSA 969 TypeDef LPMIXERLINECONTROLS = LPMIXERLINECONTROLSA 970 971 Declare Function mixerGetLineControls Lib "winmm" Alias "mixerGetLineControlsA" (hmxobj As HMIXEROBJ, pmxlc As *MIXERLINECONTROLS, fdwControls As DWord) As MMRESULT 1161 #else 1162 TypeDef MIXERLINECONTROLS = MIXERLINECONTROLSA 1163 #endif 1164 TypeDef PMIXERLINECONTROLS = *MIXERLINECONTROLS 1165 TypeDef LPMIXERLINECONTROLS = *MIXERLINECONTROLS 1166 1167 Declare Function mixerGetLineControls Lib "winmm" Alias _FuncName_mixerGetLineControls (hmxobj As HMIXEROBJ, pmxlc As *MIXERLINECONTROLS, fdwControls As DWord) As MMRESULT 972 1168 973 1169 Const MIXER_GETLINECONTROLSF_ALL = &H00000000 … … 987 1183 TypeDef LPMIXERCONTROLDETAILS = *MIXERCONTROLDETAILS 988 1184 1185 Type MIXERCONTROLDETAILS_LISTTEXTW 1186 dwParam1 As DWord 1187 dwParam2 As DWord 1188 szName[ELM(MIXER_LONG_NAME_CHARS)] As WCHAR 1189 End Type 1190 TypeDef PMIXERCONTROLDETAILS_LISTTEXTW = *MIXERCONTROLDETAILS_LISTTEXTW 1191 TypeDef LPMIXERCONTROLDETAILS_LISTTEXTW = *MIXERCONTROLDETAILS_LISTTEXTW 989 1192 Type MIXERCONTROLDETAILS_LISTTEXTA 990 1193 dwParam1 As DWord 991 1194 dwParam2 As DWord 992 szName[ELM(MIXER_LONG_NAME_CHARS)] As Char1195 szName[ELM(MIXER_LONG_NAME_CHARS)] As SByte 993 1196 End Type 994 1197 TypeDef PMIXERCONTROLDETAILS_LISTTEXTA = *MIXERCONTROLDETAILS_LISTTEXTA 995 1198 TypeDef LPMIXERCONTROLDETAILS_LISTTEXTA = *MIXERCONTROLDETAILS_LISTTEXTA 996 1199 #ifdef UNICODE 1200 TypeDef MIXERCONTROLDETAILS_LISTTEXT = MIXERCONTROLDETAILS_LISTTEXTW 1201 #else 997 1202 TypeDef MIXERCONTROLDETAILS_LISTTEXT = MIXERCONTROLDETAILS_LISTTEXTA 998 TypeDef PMIXERCONTROLDETAILS_LISTTEXT = PMIXERCONTROLDETAILS_LISTTEXTA 999 TypeDef LPMIXERCONTROLDETAILS_LISTTEXT = LPMIXERCONTROLDETAILS_LISTTEXTA 1203 #endif 1204 TypeDef PMIXERCONTROLDETAILS_LISTTEXT = *MIXERCONTROLDETAILS_LISTTEXT 1205 TypeDef LPMIXERCONTROLDETAILS_LISTTEXT = *MIXERCONTROLDETAILS_LISTTEXT 1000 1206 1001 1207 Type MIXERCONTROLDETAILS_BOOLEAN … … 1019 1225 Declare Function mixerGetControlDetailsA Lib "winmm" (hmxobj As HMIXEROBJ, pmxcd As *MIXERCONTROLDETAILS, fdwDetails As DWord) As MMRESULT 1020 1226 Declare Function mixerGetControlDetailsW Lib "winmm" (hmxobj As HMIXEROBJ, pmxcd As *MIXERCONTROLDETAILS, fdwDetails As DWord) As MMRESULT 1021 Declare Function mixerGetControlDetails Lib "winmm" Alias "mixerGetControlDetailsA"(hmxobj As HMIXEROBJ, pmxcd As *MIXERCONTROLDETAILS, fdwDetails As DWord) As MMRESULT1227 Declare Function mixerGetControlDetails Lib "winmm" Alias _FuncName_mixerGetControlDetails (hmxobj As HMIXEROBJ, pmxcd As *MIXERCONTROLDETAILS, fdwDetails As DWord) As MMRESULT 1022 1228 1023 1229 Const MIXER_GETCONTROLDETAILSF_VALUE = &H00000000 … … 1163 1369 Const JOYCAPS_POVCTS = &H0040 1164 1370 1165 Type JOYCAPS A1371 Type JOYCAPSW 1166 1372 wMid As Word 1167 1373 wPid As Word 1168 szPname[ELM(MAXPNAMELEN)] As Char1374 szPname[ELM(MAXPNAMELEN)] As WCHAR 1169 1375 wXmin As DWord 1170 1376 wXmax As DWord … … 1186 1392 wNumAxes As DWord 1187 1393 wMaxButtons As DWord 1188 szRegKey[ELM(MAXPNAMELEN)] As Char 1189 szOEMVxD[ELM(MAX_JOYSTICKOEMVXDNAME)] As Char 1394 szRegKey[ELM(MAXPNAMELEN)] As WCHAR 1395 szOEMVxD[ELM(MAX_JOYSTICKOEMVXDNAME)] As WCHAR 1396 End Type 1397 TypeDef PJOYCAPSW = *JOYCAPSW 1398 TypeDef NPJOYCAPSW = *JOYCAPSW 1399 TypeDef LPJOYCAPSW = *JOYCAPSW 1400 Type JOYCAPSA 1401 wMid As Word 1402 wPid As Word 1403 szPname[ELM(MAXPNAMELEN)] As SByte 1404 wXmin As DWord 1405 wXmax As DWord 1406 wYmin As DWord 1407 wYmax As DWord 1408 wZmin As DWord 1409 wZmax As DWord 1410 wNumButtons As DWord 1411 wPeriodMin As DWord 1412 wPeriodMax As DWord 1413 wRmin As DWord 1414 wRmax As DWord 1415 wUmin As DWord 1416 wUmax As DWord 1417 wVmin As DWord 1418 wVmax As DWord 1419 wCaps As DWord 1420 wMaxAxes As DWord 1421 wNumAxes As DWord 1422 wMaxButtons As DWord 1423 szRegKey[ELM(MAXPNAMELEN)] As SByte 1424 szOEMVxD[ELM(MAX_JOYSTICKOEMVXDNAME)] As SByte 1190 1425 End Type 1191 1426 TypeDef PJOYCAPSA = *JOYCAPSA 1192 1427 TypeDef NPJOYCAPSA = *JOYCAPSA 1193 1428 TypeDef LPJOYCAPSA = *JOYCAPSA 1194 1429 #ifdef UNICODE 1430 TypeDef JOYCAPS = JOYCAPSW 1431 #else 1195 1432 TypeDef JOYCAPS = JOYCAPSA 1433 #endif 1196 1434 TypeDef PJOYCAPS = PJOYCAPSA 1197 1435 TypeDef NPJOYCAPS = NPJOYCAPSA … … 1229 1467 ' joystick function prototypes 1230 1468 Declare Function joyGetNumDevs Lib "winmm" () As DWord 1231 Declare Function joyGetDevCaps Lib "winmm" Alias "joyGetDevCapsA"(uJoyID As DWord, pjc As *JOYCAPS, cbjc As DWord) As MMRESULT1469 Declare Function joyGetDevCaps Lib "winmm" Alias _FuncName_joyGetDevCaps (uJoyID As DWord, pjc As *JOYCAPS, cbjc As DWord) As MMRESULT 1232 1470 Declare Function joyGetPos Lib "winmm" (uJoyID As DWord, pji As *JOYINFO) As MMRESULT 1233 1471 Declare Function joyGetPosEx Lib "winmm" (uJoyID As DWord, pji As *JOYINFOEX) As MMRESULT … … 1359 1597 1360 1598 ' MMIO function prototypes 1361 Declare Function mmioStringToFOURCC Lib "winmm" Alias "mmioStringToFOURCCA" (sz As LPSTR, uFlags As DWord) As FOURCC1362 Declare Function mmioInstallIOProc Lib "winmm" Alias "mmioInstallIOProcA"(fccIOProc As FOURCC, pIOProc As LPMMIOPROC, dwFlags As DWord) As LPMMIOPROC1363 Declare Function mmioOpen Lib "winmm" Alias "mmioOpenA" (pszFileName As LPSTR, pmmioinfo As *MMIOINFO, fdwOpen As DWord) As HMMIO1364 Declare Function mmioRename Lib "winmm" Alias "mmioRenameA" (pszFileName As LPSTR, pszNewFileName As LPSTR, pmmioinfo As *MMIOINFO, fdwRename As DWord) As MMRESULT1599 Declare Function mmioStringToFOURCC Lib "winmm" Alias _FuncName_mmioStringToFOURCC (sz As LPCTSTR, uFlags As DWord) As FOURCC 1600 Declare Function mmioInstallIOProc Lib "winmm" Alias _FuncName_mmioInstallIOProc (fccIOProc As FOURCC, pIOProc As LPMMIOPROC, dwFlags As DWord) As LPMMIOPROC 1601 Declare Function mmioOpen Lib "winmm" Alias _FuncName_mmioOpen (pszFileName As LPTSTR, pmmioinfo As *MMIOINFO, fdwOpen As DWord) As HMMIO 1602 Declare Function mmioRename Lib "winmm" Alias _FuncName_mmioRename (pszFileName As LPCTSTR, pszNewFileName As LPCTSTR, pmmioinfo As *MMIOINFO, fdwRename As DWord) As MMRESULT 1365 1603 Declare Function mmioClose Lib "winmm" (hmmio As HMMIO, fuClose As DWord) As MMRESULT 1366 1604 Declare Function mmioRead Lib "winmm" (hmmio As HMMIO, pch As HPSTR, cch As Long) As Long … … 1386 1624 1387 1625 ' MCI Functions 1388 Declare Function mciSendCommand Lib "winmm" Alias "mciSendCommandA" (mciId As MCIDEVICEID, uMsg As DWord, dwParam1 As DWord, ByRef dwParam2 As Any) As MCIERROR1389 Declare Function mciSendString Lib "winmm" Alias "mciSendStringA" (lpstrCommand As LPSTR, lpstrReturnString As LPSTR, uReturnLength As DWord, hwndCallback As HWND) As MCIERROR1390 Declare Function mciGetDeviceID Lib "winmm" Alias "mciGetDeviceIDA" (pszDevice As LPSTR) As MCIDEVICEID1391 1392 Declare Function mciGetErrorString Lib "winmm" Alias "mciGetErrorStringA"(mcierr As MCIERROR, pszText As LPSTR, cchText As DWord) As BOOL1626 Declare Function mciSendCommand Lib "winmm" Alias _FuncName_mciSendCommand (mciId As MCIDEVICEID, uMsg As DWord, dwParam1 As ULONG_PTR, ByRef dwParam2 As Any) As MCIERROR 1627 Declare Function mciSendString Lib "winmm" Alias _FuncName_mciSendString (lpstrCommand As LPTSTR, lpstrReturnString As LPTSTR, uReturnLength As DWord, hwndCallback As HWND) As MCIERROR 1628 Declare Function mciGetDeviceID Lib "winmm" Alias _FuncName_mciGetDeviceID (pszDevice As LPCTSTR) As MCIDEVICEID 1629 1630 Declare Function mciGetErrorString Lib "winmm" Alias _FuncName_mciGetErrorString (mcierr As MCIERROR, pszText As LPSTR, cchText As DWord) As BOOL 1393 1631 Declare Function mciSetYieldProc Lib "winmm" (mciId As MCIDEVICEID, fpYieldProc As YIELDPROC, dwYieldData As DWord) As BOOL 1394 1632 Declare Function mciGetCreatorTask Lib "winmm" (mciId As MCIDEVICEID) As HTASK … … 1704 1942 TypeDef LPMCI_GENERIC_PARMS = *MCI_GENERIC_PARMS 1705 1943 1706 Type MCI_OPEN_PARMS 1944 Type MCI_OPEN_PARMSW 1707 1945 dwCallback As DWord 1708 1946 wDeviceID As DWord 1709 lpstrDeviceType As LPSTR 1710 lpstrElementName As LPSTR 1711 lpstrAlias As LPSTR 1712 End Type 1947 lpstrDeviceType As LPCWSTR 1948 lpstrElementName As LPCWSTR 1949 lpstrAlias As LPCWSTR 1950 End Type 1951 TypeDef PMCI_OPEN_PARMSW = *MCI_OPEN_PARMSW 1952 TypeDef LPMCI_OPEN_PARMSW = *MCI_OPEN_PARMSW 1953 Type MCI_OPEN_PARMSA 1954 dwCallback As DWord 1955 wDeviceID As DWord 1956 lpstrDeviceType As LPCSTR 1957 lpstrElementName As LPCSTR 1958 lpstrAlias As LPCSTR 1959 End Type 1960 TypeDef PMCI_OPEN_PARMSA = *MCI_OPEN_PARMSA 1961 TypeDef LPMCI_OPEN_PARMSA = *MCI_OPEN_PARMSA 1962 #ifdef UNICODE 1963 TypeDef MCI_OPEN_PARMS = MCI_OPEN_PARMSW 1964 #else 1965 TypeDef MCI_OPEN_PARMS = MCI_OPEN_PARMSA 1966 #endif 1713 1967 TypeDef PMCI_OPEN_PARMS = *MCI_OPEN_PARMS 1714 1968 TypeDef LPMCI_OPEN_PARMS = *MCI_OPEN_PARMS … … 1738 1992 TypeDef LPMCI_STATUS_PARMS = *MCI_STATUS_PARMS 1739 1993 1994 Type MCI_INFO_PARMSW 1995 dwCallback As DWord 1996 lpstrReturn As LPWSTR 1997 dwRetSize As DWord 1998 End Type 1999 TypeDef PMCI_INFO_PARMSW = *MCI_INFO_PARMSW 2000 TypeDef LPMCI_INFO_PARMSW = *MCI_INFO_PARMSW 1740 2001 Type MCI_INFO_PARMSA 1741 2002 dwCallback As DWord … … 1745 2006 TypeDef PMCI_INFO_PARMSA = *MCI_INFO_PARMSA 1746 2007 TypeDef LPMCI_INFO_PARMSA = *MCI_INFO_PARMSA 2008 #ifdef UNICODE 2009 TypeDef MCI_INFO_PARMS = MCI_INFO_PARMSW 2010 #else 1747 2011 TypeDef MCI_INFO_PARMS = MCI_INFO_PARMSA 1748 TypeDef PMCI_INFO_PARMS = PMCI_INFO_PARMSA 1749 TypeDef LPMCI_INFO_PARMS = LPMCI_INFO_PARMSA 2012 #endif 2013 TypeDef PMCI_INFO_PARMS = *MCI_INFO_PARMS 2014 TypeDef LPMCI_INFO_PARMS = *MCI_INFO_PARMS 1750 2015 1751 2016 Type MCI_GETDEVCAPS_PARMS … … 1757 2022 TypeDef LPMCI_GETDEVCAPS_PARMS = *MCI_GETDEVCAPS_PARMS 1758 2023 2024 Type MCI_SYSINFO_PARMSW 2025 dwCallback As DWord 2026 lpstrReturn As LPWSTR 2027 dwRetSize As DWord 2028 dwNumber As DWord 2029 wDeviceType As DWord 2030 End Type 2031 TypeDef PMCI_SYSINFO_PARMSW = *MCI_SYSINFO_PARMSW 2032 TypeDef LPMCI_SYSINFO_PARMSW = *MCI_SYSINFO_PARMSW 1759 2033 Type MCI_SYSINFO_PARMSA 1760 2034 dwCallback As DWord … … 1766 2040 TypeDef PMCI_SYSINFO_PARMSA = *MCI_SYSINFO_PARMSA 1767 2041 TypeDef LPMCI_SYSINFO_PARMSA = *MCI_SYSINFO_PARMSA 2042 #ifdef UNICODE 1768 2043 TypeDef MCI_SYSINFO_PARMS = MCI_SYSINFO_PARMSA 1769 TypeDef PMCI_SYSINFO_PARMS = PMCI_SYSINFO_PARMSA 1770 TypeDef LPMCI_SYSINFO_PARMS = LPMCI_SYSINFO_PARMSA 2044 #else 2045 TypeDef MCI_SYSINFO_PARMS = MCI_SYSINFO_PARMSW 2046 #endif 2047 TypeDef PMCI_SYSINFO_PARMS = *MCI_SYSINFO_PARMS 2048 TypeDef LPMCI_SYSINFO_PARMS = *MCI_SYSINFO_PARMS 1771 2049 1772 2050 Type MCI_SET_PARMS … … 1786 2064 TypeDef LPMCI_BREAK_PARMS = *MCI_BREAK_PARMS 1787 2065 2066 Type MCI_SAVE_PARMSW 2067 dwCallback As DWord 2068 lpfilename As LPCWSTR 2069 End Type 2070 TypeDef PMCI_SAVE_PARMSW = *MCI_SAVE_PARMSW 2071 TypeDef LPMCI_SAVE_PARMSW = *MCI_SAVE_PARMSW 1788 2072 Type MCI_SAVE_PARMSA 1789 2073 dwCallback As DWord 1790 lpfilename As LP STR2074 lpfilename As LPCSTR 1791 2075 End Type 1792 2076 TypeDef PMCI_SAVE_PARMSA = *MCI_SAVE_PARMSA 1793 2077 TypeDef LPMCI_SAVE_PARMSA = *MCI_SAVE_PARMSA 2078 #ifdef UNICODE 2079 TypeDef MCI_SAVE_PARMS = MCI_SAVE_PARMSW 2080 #else 1794 2081 TypeDef MCI_SAVE_PARMS = MCI_SAVE_PARMSA 1795 TypeDef PMCI_SAVE_PARMS = PMCI_SAVE_PARMSA 1796 TypeDef LPMCI_SAVE_PARMS = LPMCI_SAVE_PARMSA 1797 2082 #endif 2083 TypeDef PMCI_SAVE_PARMS = *MCI_SAVE_PARMS 2084 TypeDef LPMCI_SAVE_PARMS = *MCI_SAVE_PARMS 2085 2086 Type MCI_LOAD_PARMSW 2087 dwCallback As DWord 2088 lpfilename As LPCWSTR 2089 End Type 2090 TypeDef PMCI_LOAD_PARMSW = *MCI_LOAD_PARMSW 2091 TypeDef LPMCI_LOAD_PARMSW = *MCI_LOAD_PARMSW 1798 2092 Type MCI_LOAD_PARMSA 1799 2093 dwCallback As DWord 1800 lpfilename As LP STR2094 lpfilename As LPCSTR 1801 2095 End Type 1802 2096 TypeDef PMCI_LOAD_PARMSA = *MCI_LOAD_PARMSA 1803 2097 TypeDef LPMCI_LOAD_PARMSA = *MCI_LOAD_PARMSA 2098 #ifdef UNICODE 2099 TypeDef MCI_LOAD_PARMS = MCI_LOAD_PARMSW 2100 #else 1804 2101 TypeDef MCI_LOAD_PARMS = MCI_LOAD_PARMSA 1805 TypeDef PMCI_LOAD_PARMS = PMCI_LOAD_PARMSA 1806 TypeDef LPMCI_LOAD_PARMS = LPMCI_LOAD_PARMSA 2102 #endif 2103 TypeDef PMCI_LOAD_PARMS = *MCI_LOAD_PARMS 2104 TypeDef LPMCI_LOAD_PARMS = *MCI_LOAD_PARMS 1807 2105 1808 2106 Type MCI_RECORD_PARMS … … 1859 2157 TypeDef LPMCI_VD_STEP_PARMS = *MCI_VD_STEP_PARMS 1860 2158 2159 Type MCI_VD_ESCAPE_PARMSW 2160 dwCallback As DWord 2161 lpstrCommand As LPCWSTR 2162 End Type 2163 TypeDef PMCI_VD_ESCAPE_PARMSW = *MCI_VD_ESCAPE_PARMSW 2164 TypeDef LPMCI_VD_ESCAPE_PARMSW = *MCI_VD_ESCAPE_PARMSW 1861 2165 Type MCI_VD_ESCAPE_PARMSA 1862 2166 dwCallback As DWord 1863 lpstrCommand As LP STR2167 lpstrCommand As LPCSTR 1864 2168 End Type 1865 2169 TypeDef PMCI_VD_ESCAPE_PARMSA = *MCI_VD_ESCAPE_PARMSA 1866 2170 TypeDef LPMCI_VD_ESCAPE_PARMSA = *MCI_VD_ESCAPE_PARMSA 2171 #ifdef UNICODE 2172 TypeDef MCI_VD_ESCAPE_PARMS = MCI_VD_ESCAPE_PARMSW 2173 #else 1867 2174 TypeDef MCI_VD_ESCAPE_PARMS = MCI_VD_ESCAPE_PARMSA 1868 TypeDef PMCI_VD_ESCAPE_PARMS = PMCI_VD_ESCAPE_PARMSA 1869 TypeDef LPMCI_VD_ESCAPE_PARMS = LPMCI_VD_ESCAPE_PARMSA 2175 #endif 2176 TypeDef PMCI_VD_ESCAPE_PARMS = *MCI_VD_ESCAPE_PARMS 2177 TypeDef LPMCI_VD_ESCAPE_PARMS = *MCI_VD_ESCAPE_PARMS 1870 2178 1871 2179 ' MCI extensions for CD audio devices … … 1898 2206 Const MCI_WAVE_GETDEVCAPS_OUTPUTS = &H00004002 1899 2207 2208 Type MCI_WAVE_OPEN_PARMSW 2209 dwCallback As DWord 2210 wDeviceID As MCIDEVICEID 2211 lpstrDeviceType As LPCWSTR 2212 lpstrElementName As LPCWSTR 2213 lpstrAlias As LPCWSTR 2214 dwBufferSeconds As DWord 2215 End Type 2216 TypeDef PMCI_WAVE_OPEN_PARMSW = *MCI_WAVE_OPEN_PARMSW 2217 TypeDef LPMCI_WAVE_OPEN_PARMSW = *MCI_WAVE_OPEN_PARMSW 1900 2218 Type MCI_WAVE_OPEN_PARMSA 1901 2219 dwCallback As DWord 1902 2220 wDeviceID As MCIDEVICEID 1903 lpstrDeviceType As LP STR1904 lpstrElementName As LP STR1905 lpstrAlias As LP STR2221 lpstrDeviceType As LPCSTR 2222 lpstrElementName As LPCSTR 2223 lpstrAlias As LPCSTR 1906 2224 dwBufferSeconds As DWord 1907 2225 End Type 1908 2226 TypeDef PMCI_WAVE_OPEN_PARMSA = *MCI_WAVE_OPEN_PARMSA 1909 2227 TypeDef LPMCI_WAVE_OPEN_PARMSA = *MCI_WAVE_OPEN_PARMSA 2228 #ifdef UNICODE 2229 TypeDef MCI_WAVE_OPEN_PARMS = MCI_WAVE_OPEN_PARMSW 2230 #else 1910 2231 TypeDef MCI_WAVE_OPEN_PARMS = MCI_WAVE_OPEN_PARMSA 1911 TypeDef PMCI_WAVE_OPEN_PARMS = PMCI_WAVE_OPEN_PARMSA 1912 TypeDef LPMCI_WAVE_OPEN_PARMS = LPMCI_WAVE_OPEN_PARMSA 2232 #endif 2233 TypeDef PMCI_WAVE_OPEN_PARMS = *MCI_WAVE_OPEN_PARMS 2234 TypeDef LPMCI_WAVE_OPEN_PARMS = *MCI_WAVE_OPEN_PARMS 1913 2235 1914 2236 Type MCI_WAVE_DELETE_PARMS … … 2018 2340 Const MCI_ANIM_UPDATE_HDC = &H00020000 2019 2341 2020 Type MCI_ANIM_OPEN_PARMS A2342 Type MCI_ANIM_OPEN_PARMSW 2021 2343 dwCallback As DWord 2022 2344 wDeviceID As MCIDEVICEID 2023 lpstrDeviceType As LP STR2024 lpstrElementName As LP STR2025 lpstrAlias As LP STR2345 lpstrDeviceType As LPCWSTR 2346 lpstrElementName As LPCWSTR 2347 lpstrAlias As LPCWSTR 2026 2348 dwStyle As DWord 2027 2349 hWndParent As HWND 2028 2350 End Type 2351 TypeDef PMCI_ANIM_OPEN_PARMSW = *MCI_ANIM_OPEN_PARMSW 2352 TypeDef LPMCI_ANIM_OPEN_PARMSW = *MCI_ANIM_OPEN_PARMSW 2353 Type MCI_ANIM_OPEN_PARMSA 2354 dwCallback As DWord 2355 wDeviceID As MCIDEVICEID 2356 lpstrDeviceType As LPCSTR 2357 lpstrElementName As LPCSTR 2358 lpstrAlias As LPCSTR 2359 dwStyle As DWord 2360 hWndParent As HWND 2361 End Type 2029 2362 TypeDef PMCI_ANIM_OPEN_PARMSA = *MCI_ANIM_OPEN_PARMSA 2030 2363 TypeDef LPMCI_ANIM_OPEN_PARMSA = *MCI_ANIM_OPEN_PARMSA 2364 #ifdef UNICODE 2365 TypeDef MCI_ANIM_OPEN_PARMS = MCI_ANIM_OPEN_PARMSW 2366 #else 2031 2367 TypeDef MCI_ANIM_OPEN_PARMS = MCI_ANIM_OPEN_PARMSA 2032 TypeDef PMCI_ANIM_OPEN_PARMS = PMCI_ANIM_OPEN_PARMSA 2033 TypeDef LPMCI_ANIM_OPEN_PARMS = LPMCI_ANIM_OPEN_PARMSA 2368 #endif 2369 TypeDef PMCI_ANIM_OPEN_PARMS = *MCI_ANIM_OPEN_PARMS 2370 TypeDef LPMCI_ANIM_OPEN_PARMS = *MCI_ANIM_OPEN_PARMS 2034 2371 2035 2372 Type MCI_ANIM_PLAY_PARMS … … 2049 2386 TypeDef LPMCI_ANIM_STEP_PARMS = *MCI_ANIM_STEP_PARMS 2050 2387 2051 Type MCI_ANIM_WINDOW_PARMS A2388 Type MCI_ANIM_WINDOW_PARMSW 2052 2389 dwCallback As DWord 2053 2390 hWnd As HWND 2054 2391 nCmdShow As DWord 2055 lpstrText As LPSTR 2392 lpstrText As LPCWSTR 2393 End Type 2394 TypeDef PMCI_ANIM_WINDOW_PARMSW = *MCI_ANIM_WINDOW_PARMSW 2395 TypeDef LPMCI_ANIM_WINDOW_PARMSW = *MCI_ANIM_WINDOW_PARMSW 2396 Type MCI_ANIM_WINDOW_PARMSA 2397 dwCallback As DWord 2398 hWnd As HWND 2399 nCmdShow As DWord 2400 lpstrText As LPCSTR 2056 2401 End Type 2057 2402 TypeDef PMCI_ANIM_WINDOW_PARMSA = *MCI_ANIM_WINDOW_PARMSA 2058 2403 TypeDef LPMCI_ANIM_WINDOW_PARMSA = *MCI_ANIM_WINDOW_PARMSA 2404 #ifdef UNICODE 2405 TypeDef MCI_ANIM_WINDOW_PARMS = MCI_ANIM_WINDOW_PARMSW 2406 #else 2059 2407 TypeDef MCI_ANIM_WINDOW_PARMS = MCI_ANIM_WINDOW_PARMSA 2060 TypeDef PMCI_ANIM_WINDOW_PARMS = PMCI_ANIM_WINDOW_PARMSA 2061 TypeDef LPMCI_ANIM_WINDOW_PARMS = LPMCI_ANIM_WINDOW_PARMSA 2408 #endif 2409 TypeDef PMCI_ANIM_WINDOW_PARMS = *MCI_ANIM_WINDOW_PARMS 2410 TypeDef LPMCI_ANIM_WINDOW_PARMS = *MCI_ANIM_WINDOW_PARMS 2062 2411 2063 2412 Type MCI_ANIM_RECT_PARMS … … 2101 2450 Const MCI_OVLY_WHERE_VIDEO = &H00100000 2102 2451 2103 Type MCI_OVLY_OPEN_PARMSA 2452 Type MCI_OVLY_OPEN_PARMSAW 2104 2453 dwCallback As DWord 2105 2454 wDeviceID As MCIDEVICEID 2106 lpstrDeviceType As LP STR2107 lpstrElementName As LP STR2108 lpstrAlias As LP STR2455 lpstrDeviceType As LPCWSTR 2456 lpstrElementName As LPCWSTR 2457 lpstrAlias As LPCWSTR 2109 2458 dwStyle As DWord 2110 2459 hWndParent As HWND 2111 2460 End Type 2461 TypeDef PMCI_OVLY_OPEN_PARMSW = *MCI_OVLY_OPEN_PARMSW 2462 TypeDef LPMCI_OVLY_OPEN_PARMSW = *MCI_OVLY_OPEN_PARMSW 2463 Type MCI_OVLY_OPEN_PARMSA 2464 dwCallback As DWord 2465 wDeviceID As MCIDEVICEID 2466 lpstrDeviceType As LPCSTR 2467 lpstrElementName As LPCSTR 2468 lpstrAlias As LPCSTR 2469 dwStyle As DWord 2470 hWndParent As HWND 2471 End Type 2112 2472 TypeDef PMCI_OVLY_OPEN_PARMSA = *MCI_OVLY_OPEN_PARMSA 2113 2473 TypeDef LPMCI_OVLY_OPEN_PARMSA = *MCI_OVLY_OPEN_PARMSA 2474 #ifdef UNICODE 2475 TypeDef MCI_OVLY_OPEN_PARMS = MCI_OVLY_OPEN_PARMSW 2476 #else 2114 2477 TypeDef MCI_OVLY_OPEN_PARMS = MCI_OVLY_OPEN_PARMSA 2115 TypeDef PMCI_OVLY_OPEN_PARMS = PMCI_OVLY_OPEN_PARMSA 2116 TypeDef LPMCI_OVLY_OPEN_PARMS = LPMCI_OVLY_OPEN_PARMSA 2117 2118 Type MCI_OVLY_WINDOW_PARMSA 2478 #endif 2479 TypeDef PMCI_OVLY_OPEN_PARMS = *MCI_OVLY_OPEN_PARMS 2480 TypeDef LPMCI_OVLY_OPEN_PARMS = *MCI_OVLY_OPEN_PARMS 2481 2482 Type MCI_OVLY_WINDOW_PARMSW 2119 2483 dwCallback As DWord 2120 2484 hWnd As HWND 2121 2485 nCmdShow As DWord 2122 lpstrText As LPSTR 2486 lpstrText As LPCWSTR 2487 End Type 2488 TypeDef PMCI_OVLY_WINDOW_PARMSW = *MCI_OVLY_WINDOW_PARMSW 2489 TypeDef LPMCI_OVLY_WINDOW_PARMSW = *MCI_OVLY_WINDOW_PARMSW 2490 Type MCI_OVLY_WINDOW_PARMSA 2491 dwCallback As DWord 2492 hWnd As HWND 2493 nCmdShow As DWord 2494 lpstrText As LPCSTR 2123 2495 End Type 2124 2496 TypeDef PMCI_OVLY_WINDOW_PARMSA = *MCI_OVLY_WINDOW_PARMSA 2125 2497 TypeDef LPMCI_OVLY_WINDOW_PARMSA = *MCI_OVLY_WINDOW_PARMSA 2498 #ifdef UNICODE 2499 TypeDef MCI_OVLY_WINDOW_PARMS = MCI_OVLY_WINDOW_PARMSW 2500 #else 2126 2501 TypeDef MCI_OVLY_WINDOW_PARMS = MCI_OVLY_WINDOW_PARMSA 2127 TypeDef PMCI_OVLY_WINDOW_PARMS = PMCI_OVLY_WINDOW_PARMSA 2128 TypeDef LPMCI_OVLY_WINDOW_PARMS = LPMCI_OVLY_WINDOW_PARMSA 2502 #endif 2503 TypeDef PMCI_OVLY_WINDOW_PARMS = *MCI_OVLY_WINDOW_PARMS 2504 TypeDef LPMCI_OVLY_WINDOW_PARMS = *MCI_OVLY_WINDOW_PARMS 2129 2505 2130 2506 Type MCI_OVLY_RECT_PARMS … … 2135 2511 TypeDef LPMCI_OVLY_RECT_PARMS = *MCI_OVLY_RECT_PARMS 2136 2512 2513 Type MCI_OVLY_SAVE_PARMSW 2514 dwCallback As DWord 2515 lpfilename As LPCWSTR 2516 rc As RECT 2517 End Type 2518 TypeDef PMCI_OVLY_SAVE_PARMSW = *MCI_OVLY_SAVE_PARMSW 2519 TypeDef LPMCI_OVLY_SAVE_PARMSW = *MCI_OVLY_SAVE_PARMSW 2137 2520 Type MCI_OVLY_SAVE_PARMSA 2138 2521 dwCallback As DWord 2139 lpfilename As LP STR2522 lpfilename As LPCSTR 2140 2523 rc As RECT 2141 2524 End Type 2142 2525 TypeDef PMCI_OVLY_SAVE_PARMSA = *MCI_OVLY_SAVE_PARMSA 2143 2526 TypeDef LPMCI_OVLY_SAVE_PARMSA = *MCI_OVLY_SAVE_PARMSA 2527 #ifdef UNICODE 2528 TypeDef MCI_OVLY_SAVE_PARMS = MCI_OVLY_SAVE_PARMSW 2529 #else 2144 2530 TypeDef MCI_OVLY_SAVE_PARMS = MCI_OVLY_SAVE_PARMSA 2145 TypeDef PMCI_OVLY_SAVE_PARMS = PMCI_OVLY_SAVE_PARMSA 2146 TypeDef LPMCI_OVLY_SAVE_PARMS = LPMCI_OVLY_SAVE_PARMSA 2531 #endif 2532 TypeDef PMCI_OVLY_SAVE_PARMS = *MCI_OVLY_SAVE_PARMS 2533 TypeDef LPMCI_OVLY_SAVE_PARMS = *MCI_OVLY_SAVE_PARMS 2147 2534 2148 2535 Type MCI_OVLY_LOAD_PARMSA … … 2163 2550 ' DIB Driver extensions 2164 2551 Const SELECTDIB = 41 2165 Const DIBINDEX(n) = MAKELONG(n, &H10FF)2552 Const DIBINDEX(n) = MAKELONG(n, &H10FF) 2166 2553 2167 2554 #endif '_INC_MMSYS -
Include/api_msg.sbp
r120 r141 612 612 PowerSetting As GUID 613 613 DataLength As DWord 614 Data[ 1] As Byte614 Data[ELM(1)] As Byte 615 615 End Type 616 616 '#endif -
Include/api_psapi.sbp
r96 r141 1 ' api_psapi.sbp 2 1 3 #ifndef _INC_PSAPI_ 2 4 #define _INC_PSAPI_ 3 5 6 #ifdef UNICODE 7 Const _FuncName_GetModuleBaseName = "GetModuleBaseNameW" 8 Const _FuncName_GetModuleFileNameEx = "GetModuleFileNameExW" 9 Const _FuncName_GetMappedFileName = "GetMappedFileNameW" 10 Const _FuncName_GetDeviceDriverBaseName = "GetDeviceDriverBaseNameW" 11 Const _FuncName_GetDeviceDriverFileName = "GetDeviceDriverFileNameW" 12 Const _FuncName_GetProcessImageFileName = "GetProcessImageFileNameW" 13 Const _FuncName_EnumPageFiles = "EnumPageFilesW" 14 #else 15 Const _FuncName_GetModuleBaseName = "GetModuleBaseNameA" 16 Const _FuncName_GetModuleFileNameEx = "GetModuleFileNameExA" 17 Const _FuncName_GetMappedFileName = "GetMappedFileNameA" 18 Const _FuncName_GetDeviceDriverBaseName = "GetDeviceDriverBaseNameA" 19 Const _FuncName_GetDeviceDriverFileName = "GetDeviceDriverFileNameA" 20 Const _FuncName_GetProcessImageFileName = "GetProcessImageFileNameA" 21 Const _FuncName_EnumPageFiles = "EnumPageFilesA" 22 #endif 23 4 24 Declare Function EnumProcesses Lib "psapi" (lpidProcess As *DWord, cb As DWord, ByRef cbNeeded As DWord) As BOOL 5 25 Declare Function EnumProcessModules Lib "psapi" (hProcess As HANDLE, lphModule As *HANDLE, cb As DWord, ByRef lpcbNeeded As DWord) As BOOL 6 Declare Function GetModuleBaseName Lib "psapi" Alias "GetModuleBaseNameA" (hProcess As HANDLE, hModule As HANDLE, lpBaseName As LPSTR, nSize As DWord) As DWORD7 Declare Function GetModuleFileNameEx Lib "psapi" Alias "GetModuleFileNameExA" (hProcess As HANDLE, hModule As HANDLE, lpFilename As LPSTR, nSize As DWord) As DWORD26 Declare Function GetModuleBaseName Lib "psapi" Alias _FuncName_GetModuleBaseName (hProcess As HANDLE, hModule As HANDLE, lpBaseName As LPTSTR, nSize As DWord) As DWORD 27 Declare Function GetModuleFileNameEx Lib "psapi" Alias _FuncName_GetModuleFileNameEx (hProcess As HANDLE, hModule As HANDLE, lpFilename As LPTSTR, nSize As DWord) As DWORD 8 28 9 29 Type MODULEINFO … … 27 47 28 48 Declare Function GetWsChanges Lib "psapi" (hProcess As HANDLE, lpWatchInfo As PPSAPI_WS_WATCH_INFORMATION, cb As DWord) As BOOL 29 Declare Function GetMappedFileName Lib "psapi" Alias "GetMappedFileNameA" (hProcess As HANDLE, lpv As VoidPtr, lpFilename As LPSTR, nSize As DWord) As DWORD49 Declare Function GetMappedFileName Lib "psapi" Alias _FuncName_GetMappedFileName (hProcess As HANDLE, lpv As VoidPtr, lpFilename As LPTSTR, nSize As DWord) As DWORD 30 50 Declare Function EnumDeviceDrivers Lib "psapi" (ByRef lpImageBase As VoidPtr, cb As DWord, ByRef lpcbNeeded As DWord) As BOOL 31 Declare Function GetDeviceDriverBaseName Lib "psapi" Alias "GetDeviceDriverBaseNameA" (ImageBase As VoidPtr, lpBaseName As LPSTR, nSize As DWord) As DWORD32 Declare Function GetDeviceDriverFileName Lib "psapi" Alias "GetDeviceDriverFileNamA" (ImageBase As VoidPtr, lpFilename As LPSTR, nSize As DWord) As DWORD51 Declare Function GetDeviceDriverBaseName Lib "psapi" Alias _FuncName_GetDeviceDriverBaseName (ImageBase As VoidPtr, lpBaseName As LPTSTR, nSize As DWord) As DWORD 52 Declare Function GetDeviceDriverFileName Lib "psapi" Alias _FuncName_GetDeviceDriverFileName (ImageBase As VoidPtr, lpFilename As LPTSTR, nSize As DWord) As DWORD 33 53 34 54 ' Structure for GetProcessMemoryInfo() … … 100 120 TypeDef PENUM_PAGE_FILE_CALLBACKW = *Function(pContext As VoidPtr, pPageFileInfo As PENUM_PAGE_FILE_INFORMATION, lpFilename As LPCWSTR) As BOOL 101 121 TypeDef PENUM_PAGE_FILE_CALLBACKA = *Function(pContext As VoidPtr, pPageFileInfo As PENUM_PAGE_FILE_INFORMATION, lpFilename As LPCSTR) As BOOL 122 #ifdef UNICODE 123 TypeDef PENUM_PAGE_FILE_CALLBACK = PENUM_PAGE_FILE_CALLBACKW 124 #else 125 TypeDef PENUM_PAGE_FILE_CALLBACK = PENUM_PAGE_FILE_CALLBACKA 126 #endif 102 127 103 Declare Function EnumPageFiles Lib "psapi" Alias "EnumPageFilesA" (pCallBackRoutine As PENUM_PAGE_FILE_CALLBACKA, pContext As VoidPtr) As BOOL104 Declare Function GetProcessImageFileName Lib "psapi" Alias "GetProcessImageFileNameA" (hProcess As HANDLE, lpImageFileName As LPSTR, nSize As DWord) As DWORD128 Declare Function EnumPageFiles Lib "psapi" Alias _FuncName_EnumPageFiles (pCallBackRoutine As PENUM_PAGE_FILE_CALLBACK, pContext As VoidPtr) As BOOL 129 Declare Function GetProcessImageFileName Lib "psapi" Alias _FuncName_GetProcessImageFileName (hProcess As HANDLE, lpImageFileName As LPTSTR, nSize As DWord) As DWORD 105 130 106 131 #endif '_INC_PSAPI -
Include/api_reg.sbp
r35 r141 5 5 #ifndef _INC_REG 6 6 #define _INC_REG 7 8 #ifdef UNICODE 9 Const _FuncName_RegConnectRegistry = "RegConnectRegistryW" 10 Const _FuncName_RegCreateKeyEx = "RegCreateKeyExW" 11 Const _FuncName_RegDeleteKey = "RegDeleteKeyW" 12 Const _FuncName_RegDeleteValue = "RegDeleteValueW" 13 Const _FuncName_RegEnumKeyEx = "RegEnumKeyExW" 14 Const _FuncName_RegEnumValue = "RegEnumValueW" 15 Const _FuncName_RegLoadKey = "RegLoadKeyW" 16 Const _FuncName_RegOpenKeyEx = "RegOpenKeyExW" 17 Const _FuncName_RegQueryInfoKey = "RegQueryInfoKeyW" 18 Const _FuncName_RegQueryMultipleValues = "RegQueryMultipleValuesW" 19 Const _FuncName_RegQueryValueEx = "RegQueryValueExW" 20 Const _FuncName_RegSaveKey = "RegSaveKeyW" 21 Const _FuncName_RegSetValueEx = "RegSetValueExW" 22 Const _FuncName_RegUnLoadKey = "RegUnLoadKeyW" 23 #else 24 Const _FuncName_RegConnectRegistry = "RegConnectRegistryA" 25 Const _FuncName_RegCreateKeyEx = "RegCreateKeyExA" 26 Const _FuncName_RegDeleteKey = "RegDeleteKeyA" 27 Const _FuncName_RegDeleteValue = "RegDeleteValueA" 28 Const _FuncName_RegEnumKeyEx = "RegEnumKeyExA" 29 Const _FuncName_RegEnumValue = "RegEnumValueA" 30 Const _FuncName_RegLoadKey = "RegLoadKeyA" 31 Const _FuncName_RegOpenKeyEx = "RegOpenKeyExA" 32 Const _FuncName_RegQueryInfoKey = "RegQueryInfoKeyA" 33 Const _FuncName_RegQueryMultipleValues = "RegQueryMultipleValuesA" 34 Const _FuncName_RegQueryValueEx = "RegQueryValueExA" 35 Const _FuncName_RegSaveKey = "RegSaveKeyA" 36 Const _FuncName_RegSetValueEx = "RegSetValueExA" 37 Const _FuncName_RegUnLoadKey = "RegUnLoadKeyA" 38 #endif 7 39 8 40 … … 57 89 Const REG_RESOURCE_LIST = 8 58 90 91 Type VALENTW 92 ve_valuename As PWSTR 93 ve_valuelen As DWord 94 ve_valueptr As ULONG_PTR 95 ve_type As DWord 96 End Type 97 Type VALENTA 98 ve_valuename As PSTR 99 ve_valuelen As DWord 100 ve_valueptr As ULONG_PTR 101 ve_type As DWord 102 End Type 103 104 #ifdef UNICODE 105 TypeDef VALENT = VALENTW 106 #else 107 TypeDef VALENT = VALENTA 108 #endif 59 109 60 110 '------------------------ … … 62 112 63 113 Declare Function RegCloseKey Lib "advapi32" (hKey As HKEY) As Long 64 Declare Function RegConnectRegistry Lib "advapi32" Alias "RegConnectRegistryA" (pMachineName As PCSTR, hKey As HKEY, ByRef hkResult As HKEY) As Long65 Declare Function RegCreateKeyEx Lib "advapi32" Alias "RegCreateKeyExA" (hKey As HKEY, lpSubKey As PCSTR, Reserved As DWord, lpClass As PSTR, dwOptions As DWord, samDesired As Long, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES, ByRef phkResult As HKEY, lpdwDisposition As *DWord) As Long66 Declare Function RegDeleteKey Lib "advapi32" Alias "RegDeleteKeyA" (hKey As HKEY, lpSubKey As PCSTR) As Long67 Declare Function RegDeleteValue Lib "advapi32" Alias "RegDeleteValueA" (hKey As HKEY, lpValueName As PCSTR) As Long68 Declare Function RegEnumKeyEx Lib "advapi32" Alias "RegEnumKeyExA" (hKey As HKEY, dwIndex As DWord, pName As PSTR, ByRef cName As DWord, pReserved As *DWord, pClass As PSTR, ByRef cClass As DWord, pftLastWriteTime As *FILETIME) As Long69 Declare Function RegEnumValue Lib "advapi32" Alias "RegEnumValueA" (hKey As HKEY, dwIndex As DWord, pValueName As PSTR, ByRef cValueName As DWord, pReserved As *DWord, pType As *DWord, pData As *Byte, pcbData As *DWord) As Long114 Declare Function RegConnectRegistry Lib "advapi32" Alias _FuncName_RegConnectRegistry (pMachineName As PCTSTR, hKey As HKEY, ByRef hkResult As HKEY) As Long 115 Declare Function RegCreateKeyEx Lib "advapi32" Alias _FuncName_RegCreateKeyEx (hKey As HKEY, lpSubKey As PCTSTR, Reserved As DWord, lpClass As PTSTR, dwOptions As DWord, samDesired As Long, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES, ByRef phkResult As HKEY, lpdwDisposition As *DWord) As Long 116 Declare Function RegDeleteKey Lib "advapi32" Alias _FuncName_RegDeleteKey (hKey As HKEY, lpSubKey As PCTSTR) As Long 117 Declare Function RegDeleteValue Lib "advapi32" Alias _FuncName_RegDeleteValue (hKey As HKEY, lpValueName As PCTSTR) As Long 118 Declare Function RegEnumKeyEx Lib "advapi32" Alias _FuncName_RegEnumKeyEx (hKey As HKEY, dwIndex As DWord, pName As PTSTR, ByRef cName As DWord, pReserved As *DWord, pClass As PTSTR, ByRef cClass As DWord, pftLastWriteTime As *FILETIME) As Long 119 Declare Function RegEnumValue Lib "advapi32" Alias _FuncName_RegEnumValue (hKey As HKEY, dwIndex As DWord, pValueName As PTSTR, ByRef cValueName As DWord, pReserved As *DWord, pType As *DWord, pData As *Byte, pcbData As *DWord) As Long 70 120 Declare Function RegFlushKey Lib "advapi32"(hKey As HKEY) As Long 71 Declare Function RegLoadKey Lib "advapi32" Alias "RegLoadKeyA" (hKey As HKEY, pSubKey As PCSTR, pFile As PCSTR) As Long 72 Declare Function RegOpenKeyEx Lib "advapi32" Alias "RegOpenKeyExA" (hKey As HKEY, lpSubKey As PCSTR, ulOptions As DWord, samDesired As Long, ByRef phkResult As HKEY) As Long 73 Declare Function RegQueryInfoKey Lib "advapi32" Alias "RegQueryInfoKeyA" (hKey As HKEY, pClass As PSTR, pcClass As *DWord, pReserved As *DWord, pcSubKeys As *DWord, pcMaxSubKeyLen As *DWord, pcMaxClassLen As *DWord, pcValues As *DWord, pcMaxValueNameLen As *DWord, pcMaxValueLen As *DWord, pcbSecurityDescriptor As *DWord, pftLastWriteTime As *FILETIME) As Long 74 Declare Function RegQueryMultipleValues Lib "advapi32" Alias "RegQueryMultipleValuesA" (hKey As HKEY, val_list As *VALENT, num_vals As DWord, pValueBuf As PSTR, ByRef dwTotsize As DWord) As Long 75 Declare Function RegQueryValueEx Lib "advapi32" Alias "RegQueryValueExA" (hKey As HKEY, lpValueName As PCSTR, lpReserved As DWord, lpType As *DWord, lpData As VoidPtr, lpcbData As *DWord) As Long 76 Declare Function RegSaveKey Lib "advapi32" Alias "RegSaveKeyA" (hKey As HKEY, pFile As PCSTR, pSecurityAttributes As *SECURITY_ATTRIBUTES) As Long 77 Declare Function RegSetValueEx Lib "advapi32" Alias "RegSetValueExA" (hKey As HKEY, lpValueName As PCSTR, Reserved As DWord, dwType As DWord, lpData As VoidPtr, cbData As DWord) As Long 78 Declare Function RegUnLoadKey Lib "advapi32" Alias "RegUnLoadKeyA" (hKey As HKEY, pSubKey As PCSTR) As Long 79 80 Type VALENT 81 ve_valuename As PSTR 82 ve_valuelen As DWord 83 ve_valueptr As ULONG_PTR 84 ve_type As DWord 85 End Type 86 #endif '_INC_REG 121 /* 122 Declare Function RegLoadKey Lib "advapi32" Alias _FuncName_RegLoadKey (hKey As HKEY, pSubKey As PCTSTR, pFile As PCTSTR) As Long 123 Declare Function RegOpenKeyEx Lib "advapi32" Alias _FuncName_RegOpenKeyEx (hKey As HKEY, lpSubKey As PCTSTR, ulOptions As DWord, samDesired As Long, ByRef phkResult As HKEY) As Long 124 Declare Function RegQueryInfoKey Lib "advapi32" Alias _FuncName_RegQueryInfoKey (hKey As HKEY, pClass As PTSTR, pcClass As *DWord, pReserved As *DWord, pcSubKeys As *DWord, pcMaxSubKeyLen As *DWord, pcMaxClassLen As *DWord, pcValues As *DWord, pcMaxValueNameLen As *DWord, pcMaxValueLen As *DWord, pcbSecurityDescriptor As *DWord, pftLastWriteTime As *FILETIME) As Long 125 Declare Function RegQueryMultipleValues Lib "advapi32" Alias _FuncName_RegQueryMultipleValues (hKey As HKEY, val_list As *VALENT, num_vals As DWord, pValueBuf As PTSTR, ByRef dwTotsize As DWord) As Long 126 Declare Function RegQueryValueEx Lib "advapi32" Alias _FuncName_RegQueryValueEx (hKey As HKEY, lpValueName As PCTSTR, lpReserved As DWord, lpType As *DWord, lpData As VoidPtr, lpcbData As *DWord) As Long 127 Declare Function RegSaveKey Lib "advapi32" Alias _FuncName_RegSaveKey (hKey As HKEY, pFile As PCTSTR, pSecurityAttributes As *SECURITY_ATTRIBUTES) As Long 128 Declare Function RegSetValueEx Lib "advapi32" Alias _FuncName_RegSetValueEx (hKey As HKEY, lpValueName As PCTSTR, Reserved As DWord, dwType As DWord, lpData As VoidPtr, cbData As DWord) As Long 129 Declare Function RegUnLoadKey Lib "advapi32" Alias _FuncName_RegUnLoadKey (hKey As HKEY, pSubKey As PCTSTR) As Long 130 */ 131 '_INC_REG -
Include/api_richedit.sbp
r1 r141 30 30 Const CFE_AUTOCOLOR = &H40000000 31 31 32 Type CHARFORMAT 32 Type CHARFORMATW 33 33 cbSize As DWord 34 34 dwMask As DWord … … 36 36 yHeight As Long 37 37 yOffset As Long 38 crTextColor As DWord38 crTextColor As COLORREF 39 39 bCharSet As Byte 40 40 bPitchAndFamily As Byte 41 szFaceName[ELM(LF_FACESIZE)] As Byte 42 End Type 43 41 szFaceName[ELM(LF_FACESIZE)] As WCHAR 42 End Type 43 Type CHARFORMATA 44 cbSize As DWord 45 dwMask As DWord 46 dwEffects As DWord 47 yHeight As Long 48 yOffset As Long 49 crTextColor As COLORREF 50 bCharSet As Byte 51 bPitchAndFamily As Byte 52 szFaceName[ELM(LF_FACESIZE)] As SByte 53 End Type 54 #ifdef UNICODE 55 TypeDef CHARFORMAT = CHARFORMATW 56 #else 57 TypeDef CHARFORMAT = CHARFORMATA 58 #endif 44 59 45 60 'CHARFORMAT2 struct … … 85 100 Const CFU_UNDERLINENONE = 0 86 101 87 Type CHARFORMAT2 102 Type CHARFORMAT2W 88 103 cbSize As DWord 89 104 dwMask As DWord … … 94 109 bCharSet As Byte 95 110 bPitchAndFamily As Byte 96 szFaceName[ELM(LF_FACESIZE)] As Byte111 szFaceName[ELM(LF_FACESIZE)] As WCHAR 97 112 wWeight As Word 98 113 sSpacing As Integer … … 107 122 bReserved1 As Byte 108 123 End Type 124 Type CHARFORMAT2A 125 cbSize As DWord 126 dwMask As DWord 127 dwEffects As DWord 128 yHeight As Long 129 yOffset As Long 130 crTextColor As DWord 131 bCharSet As Byte 132 bPitchAndFamily As Byte 133 szFaceName[ELM(LF_FACESIZE)] As SByte 134 wWeight As Word 135 sSpacing As Integer 136 crBackColor As DWord 137 lcid As DWord 138 dwReserved As DWord 139 sStyle As Integer 140 wKerning As Word 141 bUnderlineType As Byte 142 bAnimation As Byte 143 bRevAuthor As Byte 144 bReserved1 As Byte 145 End Type 146 #ifdef UNICODE 147 TypeDef CHARFORMAT2 = CHARFORMAT2W 148 #else 149 TypeDef CHARFORMAT2 = CHARFORMAT2A 150 #endif 109 151 110 152 -
Include/api_shell.sbp
r35 r141 5 5 #define _INC_SHELL 6 6 7 #ifdef UNICODE 8 Const _FuncName_DoEnvironmentSubst = "DoEnvironmentSubstW" 9 Const _FuncName_DragQueryFile = "DragQueryFileW" 10 Const _FuncName_ExtractAssociatedIcon = "ExtractAssociatedIconW" 11 Const _FuncName_ExtractIcon = "ExtractIconW" 12 Const _FuncName_ExtractIconEx = "ExtractIconExW" 13 Const _FuncName_FindExecutable = "FindExecutableW" 14 Const _FuncName_GUIDFromString = "GUIDFromStringW" 15 Const _FuncName_SHBrowseForFolder = "SHBrowseForFolderW" 16 Const _FuncName_ShellAbout = "ShellAboutW" 17 Const _FuncName_ShellExecute = "ShellExecuteW" 18 Const _FuncName_SHFileOperation = "SHFileOperationW" 19 Const _FuncName_SHGetPathFromIDList = "SHGetPathFromIDListW" 20 #else 21 Const _FuncName_DoEnvironmentSubst = "DoEnvironmentSubstA" 22 Const _FuncName_DragQueryFile = "DragQueryFileA" 23 Const _FuncName_ExtractAssociatedIcon = "ExtractAssociatedIconA" 24 Const _FuncName_ExtractIcon = "ExtractIconA" 25 Const _FuncName_ExtractIconEx = "ExtractIconExA" 26 Const _FuncName_FindExecutable = "FindExecutableA" 27 Const _FuncName_GUIDFromString = "GUIDFromStringA" 28 Const _FuncName_SHBrowseForFolder = "SHBrowseForFolderA" 29 Const _FuncName_ShellAbout = "ShellAboutA" 30 Const _FuncName_ShellExecute = "ShellExecuteA" 31 Const _FuncName_SHFileOperation = "SHFileOperationA" 32 Const _FuncName_SHGetPathFromIDList = "SHGetPathFromIDListA" 33 #endif 7 34 8 35 '----------- 9 36 ' Shell API 10 37 11 Declare Function DoEnvironmentSubst Lib "shell32" Alias "DoEnvironmentSubstA"(38 Declare Function DoEnvironmentSubst Lib "shell32" Alias _FuncName_DoEnvironmentSubst ( 12 39 pszString As PSTR, 13 40 cchString As DWord … … 16 43 Declare Sub DragAcceptFiles Lib "shell32" (hWnd As HWND, bAccept As BOOL) 17 44 Declare Sub DragFinish Lib "shell32" (hDrop As HDROP) 18 Declare Function DragQueryFile Lib "shell32" Alias "DragQueryFileA" (hDrop As HDROP, iFile As Long, lpszFile As PSTR, cch As DWord) As DWord45 Declare Function DragQueryFile Lib "shell32" Alias _FuncName_DragQueryFile (hDrop As HDROP, iFile As Long, lpszFile As LPTSTR, cch As DWord) As DWord 19 46 Declare Function DragQueryPoint Lib "shell32" (hDrop As HDROP, ByRef lpPoint As POINTAPI) As Long 20 Declare Function ExtractAssociatedIcon Lib "shell32" Alias "ExtractAssociatedIconA" (hInst As HINSTANCE, lpIconPath As PSTR, lpiIcon As *Word) As HICON21 Declare Function ExtractIcon Lib "shell32" Alias "ExtractIconA" (hInst As HINSTANCE, lpszExeFileName As PCSTR, nIconIndex As Long) As HICON22 Declare Function ExtractIconEx Lib "shell32" Alias "ExtractIconExA"(lpszFile As PCSTR, nIconIndex As Long, phiconLarge As *DWord, phiconSmall As *DWord, nIcons As Long) As HICON23 24 Declare Function FindExecutable Lib "shell32" Alias "FindExecutableA"(25 pFile As PC STR,26 pDirectory As PC STR,27 pResult As PC STR47 Declare Function ExtractAssociatedIcon Lib "shell32" Alias _FuncName_ExtractAssociatedIcon (hInst As HINSTANCE, lpIconPath As LPTSTR, lpiIcon As *Word) As HICON 48 Declare Function ExtractIcon Lib "shell32" Alias _FuncName_ExtractIcon (hInst As HINSTANCE, lpszExeFileName As LPCTSTR, nIconIndex As Long) As HICON 49 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 51 Declare Function FindExecutable Lib "shell32" Alias _FuncName_FindExecutable ( 52 pFile As PCTSTR, 53 pDirectory As PCTSTR, 54 pResult As PCTSTR 28 55 ) As Long 29 56 30 Declare Function GUIDFromString Lib "shell32" Alias "GUIDFromStringA"(31 ByVal psz As PC STR,57 Declare Function GUIDFromString Lib "shell32" Alias _FuncName_GUIDFromString ( 58 ByVal psz As PCTSTR, 32 59 ByRef guid As GUID 33 60 ) As BOOL … … 38 65 Declare Function MIMEAssociationDialog Lib "url" ( 39 66 hwndParent As HWND, 40 41 pcszFile As PCSTR,42 pcszMIMEContentType As PCSTR,43 pszAppBuf As PSTR,44 67 dwInFlags As DWord, 68 pcszFile As PCTSTR, 69 pcszMIMEContentType As PCTSTR, 70 pszAppBuf As PTSTR, 71 ucAppBufLen As DWord 45 72 ) As HRESULT 46 73 … … 95 122 Typedef BFFCALLBACK = *Function(hwnd As HWND, uMsg As DWord, lParam As LPARAM, lpData As LPARAM) As Long 96 123 97 Type BROWSEINFO 124 Type BROWSEINFOW 98 125 hwndOwner As HWND 99 126 pidlRoot As VoidPtr 100 pszDisplayName As PSTR101 lpszTitle As PCSTR127 pszDisplayName As LPWSTR 128 lpszTitle As LPCWSTR 102 129 ulFlags As DWord 103 130 lpfn As BFFCALLBACK … … 105 132 iImage As Long 106 133 End Type 134 Type BROWSEINFOA 135 hwndOwner As HWND 136 pidlRoot As VoidPtr 137 pszDisplayName As LPSTR 138 lpszTitle As LPCSTR 139 ulFlags As DWord 140 lpfn As BFFCALLBACK 141 lParam As LPARAM 142 iImage As Long 143 End Type 144 #ifdef UNICODE 145 TypeDef BROWSEINFO = BROWSEINFOW 146 #else 147 TypeDef BROWSEINFO = BROWSEINFOA 148 #endif 107 149 108 150 Type SHITEMID … … 114 156 mkid As SHITEMID 115 157 End Type 116 Declare Function SHBrowseForFolder Lib "shell32" Alias "SHBrowseForFolderA" (ByRef lpbi As BROWSEINFO) As *ITEMIDLIST158 Declare Function SHBrowseForFolder Lib "shell32" Alias _FuncName_SHBrowseForFolder (ByRef bi As BROWSEINFO) As *ITEMIDLIST 117 159 118 160 Const SHCNE_RENAMEITEM = &h00000001 … … 175 217 176 218 ' ShellApi.h 177 Declare Function ShellAbout Lib "shell32" Alias "ShellAboutA" (hWnd As HWND, szApp As PCSTR, szOtherStuff As PCSTR, hIcon As HICON) As Long219 Declare Function ShellAbout Lib "shell32" Alias _FuncName_ShellAbout (hWnd As HWND, szApp As PCTSTR, szOtherStuff As PCTSTR, hIcon As HICON) As Long 178 220 179 221 Const SE_ERR_FNF = 2 … … 189 231 Const SE_ERR_NOASSOC = 31 190 232 ' ShellApi.h 191 Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" (hWnd As HWND, lpOperation As PCSTR, lpFile As PCSTR, lpParameters As PCSTR, lpDirectory As PCSTR, nShowCmd As Long) As HINSTANCE233 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 192 234 193 235 Const FO_MOVE = &H0001 … … 207 249 Const FOF_NOERRORUI = &H0400 208 250 Const FOF_NOCOPYSECURITYATTRIBS = &H0800 209 Type SHFILEOPSTRUCT 251 Type SHFILEOPSTRUCTW 252 hWnd As HWND 253 wFunc As DWord 254 pFrom As PCWSTR 255 pTo As PCWSTR 256 fFlags As Word 257 fAnyOperationsAborted As BOOL 258 hNameMappings As VoidPtr 259 lpszProgressTitle As LPCWSTR 260 End Type 261 Type SHFILEOPSTRUCTA 210 262 hWnd As HWND 211 263 wFunc As DWord … … 215 267 fAnyOperationsAborted As BOOL 216 268 hNameMappings As VoidPtr 217 lpszProgressTitle As PCSTR 218 End Type 219 ' ShellApi.h 220 Declare Function SHFileOperation Lib "shell32" Alias "SHFileOperationA" (ByRef lpFileOp As SHFILEOPSTRUCT) As Long 269 lpszProgressTitle As LPCSTR 270 End Type 271 #ifdef UNICODE 272 TypeDef SHFILEOPSTRUCT = SHFILEOPSTRUCTW 273 #else 274 TypeDef SHFILEOPSTRUCT = SHFILEOPSTRUCTA 275 #endif 276 277 ' ShellApi.h 278 Declare Function SHFileOperation Lib "shell32" Alias _FuncName_SHFileOperation (ByRef FileOp As SHFILEOPSTRUCT) As Long 221 279 222 280 ' ShellApi.h … … 225 283 'SHGetDataFromIDList 226 284 227 Declare Function SHGetPathFromIDList Lib "shell32" Alias "SHGetPathFromIDListA" (pidl As *ITEMIDLIST, pszPath As PSTR) As Long285 Declare Function SHGetPathFromIDList Lib "shell32" Alias _FuncName_SHGetPathFromIDList (pidl As *ITEMIDLIST, pszPath As PTSTR) As Long 228 286 229 287 #endif '_INC_SHELL -
Include/api_shlwapi.sbp
r15 r141 6 6 7 7 8 Declare Function PathGetArgs Lib "shlwapi" Alias "PathGetArgsA" (pszPath As LPSTR) As LPSTR 9 Declare Function StrFormatByteSize64 Lib "shlwapi" Alias "StrFormatByteSize64A" (ll As Int64, pszBuf As *Byte, BufSize As DWord) As *Byte 8 Declare Function PathGetArgsA Lib "shlwapi" Alias (pszPath As LPCWSTR) As LPWSTR 9 Declare Function PathGetArgsW Lib "shlwapi" Alias (pszPath As LPCSTR) As LPSTR 10 #ifdef UNICODE 11 Declare Function PathGetArgs Lib "shlwapi" Alias "PathGetArgsW" (pszPath As LPCWSTR) As LPWSTR 12 #else 13 Declare Function PathGetArgs Lib "shlwapi" Alias "PathGetArgsA" (pszPath As LPCSTR) As LPSTR 14 #endif 15 16 Declare Function StrFormatByteSize64 Lib "shlwapi" Alias (ll As Int64, pszBuf As PWSTR, BufSize As DWord) As PWSTR 17 Declare Function StrFormatByteSize64 Lib "shlwapi" Alias (ll As Int64, pszBuf As PSTR, BufSize As DWord) As PSTR 18 #ifdef UNICODE 19 Declare Function StrFormatByteSize64 Lib "shlwapi" Alias "StrFormatByteSize64W" (ll As Int64, pszBuf As PWSTR, BufSize As DWord) As PWSTR 20 #else 21 Declare Function StrFormatByteSize64 Lib "shlwapi" Alias "StrFormatByteSize64A" (ll As Int64, pszBuf As PSTR, BufSize As DWord) As PSTR 22 #endif 10 23 11 24 #endif '_INC_SHLWAPI -
Include/api_system.sbp
r137 r141 5 5 6 6 #ifdef UNICODE 7 Const _FuncName_CompareString = "CompareStringW" 8 Const _FuncName_CopyFile = "CopyFileW" 9 Const _FuncName_CreateDirectory = "CreateDirectoryW" 10 Const _FuncName_CreateEvent = "CreateEventW" 11 Const _FuncName_CreateMutex = "CreateMutexW" 12 Const _FuncName_CreateSemaphore = "CreateSemaphoreW" 13 Const _FuncName_CreateWaitableTimer = "CreateWaitableTimerW" 14 Const _FuncName_CreateFile = "CreateFileW" 15 Const _FuncName_CreateFileMapping = "CreateFileMappingW" 16 Const _FuncName_OpenFileMapping = "OpenFileMappingW" 17 Const _FuncName_CreateMailslot = "CreateMailslotW" 18 Const _FuncName_CreateProcess = "CreateProcessW" 19 Const _FuncName_DeleteFile = "DeleteFileW" 20 Const _FuncName_FatalAppExit = "FatalAppExitW" 21 Const _FuncName_FindFirstChangeNotification = "FindFirstChangeNotificationW" 22 Const _FuncName_FindFirstFile = "FindFirstFileW" 23 Const _FuncName_FindNextFile = "FindNextFileW" 24 Const _FuncName_FormatMessage = "FormatMessageW" 25 Const _FuncName_FreeEnvironmentStrings = "FreeEnvironmentStringsW" 26 Const _FuncName_GetCompressedFileSize = "GetCompressedFileSizeW" 27 Const _FuncName_GetComputerName = "GetComputerNameW" 28 Const _FuncName_GetCurrentDirectory = "GetCurrentDirectoryW" 29 Const _FuncName_GetDateFormat = "GetDateFormatW" 30 Const _FuncName_GetDiskFreeSpace = "GetDiskFreeSpaceW" 31 Const _FuncName_GetDiskFreeSpaceEx = "GetDiskFreeSpaceExW" 32 Const _FuncName_GetVolumeInformation = "GetVolumeInformationW" 33 Const _FuncName_GetDriveType = "GetDriveTypeW" 34 Const _FuncName_GetEnvironmentVariable = "GetEnvironmentVariableW" 35 Const _FuncName_GetEnvironmentStrings = "GetEnvironmentStringsW" 36 Const _FuncName_GetFileAttributes = "GetFileAttributesW" 37 Const _FuncName_GetFullPathName = "GetFullPathNameW" 38 Const _FuncName_GetLogicalDriveStrings = "GetLogicalDriveStringsW" 39 Const _FuncName_GetModuleFileName = "GetModuleFileNameW" 40 Const _FuncName_GetModuleHandle = "GetModuleHandleW" 41 Const _FuncName_GetShortPathName = "GetShortPathNameW" 42 Const _FuncName_GetStartupInfo = "GetStartupInfoW" 43 Const _FuncName_GetSystemDirectory = "GetSystemDirectoryW" 44 Const _FuncName_GetTempFileName = "GetTempFileNameW" 45 Const _FuncName_GetTempPath = "GetTempPathW" 46 Const _FuncName_GetTimeFormat = "GetTimeFormatW" 47 Const _FuncName_GetUserName = "GetUserNameW" 48 Const _FuncName_GetVersionEx = "GetVersionExW" 49 Const _FuncName_GetWindowsDirectory = "GetWindowsDirectoryW" 50 Const _FuncName_LCMapString = "LCMapStringW" 51 Const _FuncName_LoadLibrary = "LoadLibraryW" 52 Const _FuncName_LoadLibraryEx = "LoadLibraryExW" 53 Const _FuncName_lstrcat = "lstrcatW" 54 Const _FuncName_lstrcmp = "lstrcmpW" 55 Const _FuncName_lstrcmpi = "lstrcmpiW" 7 56 Const _FuncName_lstrcpy = "lstrcpyW" 57 Const _FuncName_MoveFile = "MoveFileW" 58 Const _FuncName_OpenEvent = "OpenEventW" 59 Const _FuncName_OpenMutex = "OpenMutexW" 60 Const _FuncName_OpenSemaphore = "OpenSemaphoreW" 61 Const _FuncName_OpenWaitableTimer = "OpenWaitableTimerW" 62 Const _FuncName_RemoveDirectory = "RemoveDirectoryW" 63 Const _FuncName_SetComputerName = "SetComputerNameW" 64 Const _FuncName_SetCurrentDirectory = "SetCurrentDirectoryW" 65 Const _FuncName_SearchPath = "SearchPathW" 66 Const _FuncName_SetEnvironmentVariable = "SetEnvironmentVariableW" 67 Const _FuncName_SetFileAttributes = "SetFileAttributesW" 8 68 #else 69 Const _FuncName_CompareString = "CompareStringA" 70 Const _FuncName_CopyFile = "CopyFileA" 71 Const _FuncName_CreateDirectory = "CreateDirectoryA" 72 Const _FuncName_CreateEvent = "CreateEventA" 73 Const _FuncName_CreateMutex = "CreateMutexA" 74 Const _FuncName_CreateSemaphore = "CreateSemaphoreA" 75 Const _FuncName_CreateWaitableTimer = "CreateWaitableTimerA" 76 Const _FuncName_CreateFile = "CreateFileA" 77 Const _FuncName_CreateFileMapping = "CreateFileMappingA" 78 Const _FuncName_OpenFileMapping = "OpenFileMappingA" 79 Const _FuncName_CreateMailslot = "CreateMailslotA" 80 Const _FuncName_CreateProcess = "CreateProcessA" 81 Const _FuncName_DeleteFile = "DeleteFileA" 82 Const _FuncName_FatalAppExit = "FatalAppExitA" 83 Const _FuncName_FindFirstChangeNotification = "FindFirstChangeNotificationA" 84 Const _FuncName_FindFirstFile = "FindFirstFileA" 85 Const _FuncName_FindNextFile = "FindNextFileA" 86 Const _FuncName_FormatMessage = "FormatMessageA" 87 Const _FuncName_FreeEnvironmentStrings = "FreeEnvironmentStringsA" 88 Const _FuncName_GetCompressedFileSize = "GetCompressedFileSizeA" 89 Const _FuncName_GetComputerName = "GetComputerNameA" 90 Const _FuncName_GetCurrentDirectory = "GetCurrentDirectoryA" 91 Const _FuncName_GetDateFormat = "GetDateFormatA" 92 Const _FuncName_GetDiskFreeSpace = "GetDiskFreeSpaceA" 93 Const _FuncName_GetDiskFreeSpaceEx = "GetDiskFreeSpaceExA" 94 Const _FuncName_GetVolumeInformation = "GetVolumeInformationA" 95 Const _FuncName_GetDriveType = "GetDriveTypeA" 96 Const _FuncName_GetEnvironmentVariable = "GetEnvironmentVariableA" 97 Const _FuncName_GetEnvironmentStrings = "GetEnvironmentStringsA" 98 Const _FuncName_GetFileAttributes = "GetFileAttributesA" 99 Const _FuncName_GetFullPathName = "GetFullPathNameA" 100 Const _FuncName_GetLogicalDriveStrings = "GetLogicalDriveStringsA" 101 Const _FuncName_GetModuleFileName = "GetModuleFileNameA" 102 Const _FuncName_GetModuleHandle = "GetModuleHandleA" 103 Const _FuncName_GetShortPathName = "GetShortPathNameA" 104 Const _FuncName_GetStartupInfo = "GetStartupInfoA" 105 Const _FuncName_GetSystemDirectory = "GetSystemDirectoryA" 106 Const _FuncName_GetTempFileName = "GetTempFileNameA" 107 Const _FuncName_GetTempPath = "GetTempPathA" 108 Const _FuncName_GetTimeFormat = "GetTimeFormatA" 109 Const _FuncName_GetUserName = "GetUserNameA" 110 Const _FuncName_GetVersionEx = "GetVersionExA" 111 Const _FuncName_GetWindowsDirectory = "GetWindowsDirectoryA" 112 Const _FuncName_LCMapString = "LCMapStringA" 113 Const _FuncName_LoadLibrary = "LoadLibraryA" 114 Const _FuncName_LoadLibraryEx = "LoadLibraryExA" 115 Const _FuncName_lstrcat = "lstrcatA" 116 Const _FuncName_lstrcmp = "lstrcmpA" 117 Const _FuncName_lstrcmpi = "lstrcmpiA" 9 118 Const _FuncName_lstrcpy = "lstrcpyA" 119 Const _FuncName_MoveFile = "MoveFileA" 120 Const _FuncName_OpenEvent = "OpenEventA" 121 Const _FuncName_OpenMutex = "OpenMutexA" 122 Const _FuncName_OpenSemaphore = "OpenSemaphoreA" 123 Const _FuncName_OpenWaitableTimer = "OpenWaitableTimerA" 124 Const _FuncName_RemoveDirectory = "RemoveDirectoryA" 125 Const _FuncName_SetComputerName = "SetComputerNameA" 126 Const _FuncName_SetCurrentDirectory = "SetCurrentDirectoryA" 127 Const _FuncName_SearchPath = "SearchPathA" 128 Const _FuncName_SetEnvironmentVariable = "SetEnvironmentVariableA" 129 Const _FuncName_SetFileAttributes = "SetFileAttributesA" 10 130 #endif 11 131 … … 357 477 Const CSTR_EQUAL = 2 358 478 Const CSTR_GREATER_THAN = 3 359 Declare Function CompareString Lib "kernel32" Alias "CompareStringA" (Locale As LCID, dwCmpFlags As DWord, pString1 As PCSTR, cchCount1 As Long, pString2 As PCSTR, cchCount2 As Long) As Long360 361 Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (lpExistingFileName As LPCSTR, lpNewFileName As LPCSTR, bFailIfExists As BOOL) As BOOL362 Declare Function CreateDirectory Lib "kernel32" Alias "CreateDirectoryA" (lpPathName As LPCSTR, lpSecurityAttributes As *SECURITY_ATTRIBUTES) As BOOL363 Declare Function CreateEvent Lib "kernel32" Alias "CreateEventA" (pEventAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, bInitialState As BOOL, pName As PCSTR) As HANDLE364 Declare Function CreateMutex Lib "kernel32" Alias "CreateMutexA" (lpMutexAttributes As *SECURITY_ATTRIBUTES, bInitialOwner As BOOL, lpName As PCSTR) As HANDLE365 Declare Function CreateSemaphore Lib "kernel32" Alias "CreateSemaphoreA" (lpSemaphoreAttributes As *SECURITY_ATTRIBUTES, lInitialCount As Long, lMaximumCount As Long, lpName As LPSTR) As HANDLE479 Declare Function CompareString Lib "kernel32" Alias _FuncName_CompareString (Locale As LCID, dwCmpFlags As DWord, pString1 As PCTSTR, cchCount1 As Long, pString2 As PCTSTR, cchCount2 As Long) As Long 480 481 Declare Function CopyFile Lib "kernel32" Alias _FuncName_CopyFile (pExistingFileName As PCTSTR, pNewFileName As PCTSTR, bFailIfExists As BOOL) As BOOL 482 Declare Function CreateDirectory Lib "kernel32" Alias _FuncName_CreateDirectory (pPathName As PCTSTR, pSecurityAttributes As *SECURITY_ATTRIBUTES) As BOOL 483 Declare Function CreateEvent Lib "kernel32" Alias _FuncName_CreateEvent (pEventAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, bInitialState As BOOL, pName As PCTSTR) As HANDLE 484 Declare Function CreateMutex Lib "kernel32" Alias _FuncName_CreateMutex (lpMutexAttributes As *SECURITY_ATTRIBUTES, bInitialOwner As BOOL, lpName As PCTSTR) As HANDLE 485 Declare Function CreateSemaphore Lib "kernel32" Alias _FuncName_CreateSemaphore (pSemaphoreAttributes As *SECURITY_ATTRIBUTES, lInitialCount As Long, lMaximumCount As Long, pName As PCTSTR) As HANDLE 366 486 367 487 TypeDef PTIMERAPCROUTINE = *Sub(lpArgToCompletionRoutine As VoidPtr, dwTimerLowValue As DWord, dwTimerHighValue As DWord) 368 Declare Function CreateWaitableTimer Lib "kernel32" Alias "CreateWaitableTimerA" (lpTimerAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, lpTimerName As LPSTR) As HANDLE369 Declare Function OpenWaitableTimer Lib "kernel32" Alias "OpenWaitableTimerA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpTimerName As LPSTR) As HANDLE370 Declare Function SetWaitableTimer Lib "kernel32" (hTimer As HANDLE, lpDueTime As *LARGE_INTEGER, lPeriod As Long, pfnCompletionRoutine As PTIMERAPCROUTINE, lpArgToCompletionRoutine As VoidPtr, fResume As BOOL) As BOOL488 Declare Function CreateWaitableTimer Lib "kernel32" Alias _FuncName_CreateWaitableTimer (pTimerAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, pTimerName As PCTSTR) As HANDLE 489 Declare Function OpenWaitableTimer Lib "kernel32" Alias _FuncName_OpenWaitableTimer (dwDesiredAccess As DWord, bInheritHandle As BOOL, pTimerName As PCTSTR) As HANDLE 490 Declare Function SetWaitableTimer Lib "kernel32" (hTimer As HANDLE, pDueTime As *LARGE_INTEGER, lPeriod As Long, pfnCompletionRoutine As PTIMERAPCROUTINE, pArgToCompletionRoutine As VoidPtr, fResume As BOOL) As BOOL 371 491 Declare Function CancelWaitableTimer Lib "kernel32" (hTimer As HANDLE) As BOOL 372 492 … … 403 523 Const FILE_FLAG_OPEN_REPARSE_POINT = &H00200000 404 524 Const FILE_FLAG_OPEN_NO_RECALL = &H00100000 405 Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (lpFileName As *Byte, dwDesiredAccess As DWord, dwShareMode As DWord, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES, dwCreationDisposition As DWord, dwFlagsAndAttributes As DWord, hTemplateFile As HANDLE) As HANDLE525 Declare Function CreateFile Lib "kernel32" Alias _FuncName_CreateFile (pFileName As PCTSTR, dwDesiredAccess As DWord, dwShareMode As DWord, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES, dwCreationDisposition As DWord, dwFlagsAndAttributes As DWord, hTemplateFile As HANDLE) As HANDLE 406 526 407 527 Const SECTION_QUERY = &H0001 … … 416 536 Const FILE_MAP_READ = SECTION_MAP_READ 417 537 Const FILE_MAP_ALL_ACCESS = SECTION_ALL_ACCESS 418 Declare Function CreateFileMapping Lib "kernel32" Alias "CreateFileMappingA" (hFile As HANDLE, lpFileMappingAttributes As *SECURITY_ATTRIBUTES, flProtect As DWord, dwMaximumSizeHigh As DWord, dwMaximumSizeLow As DWord, lpName As LPSTR) As HANDLE419 Declare Function OpenFileMapping Lib "kernel32" Alias "OpenFileMappingA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE538 Declare Function CreateFileMapping Lib "kernel32" Alias _FuncName_CreateFileMapping (hFile As HANDLE, pFileMappingAttributes As *SECURITY_ATTRIBUTES, flProtect As DWord, dwMaximumSizeHigh As DWord, dwMaximumSizeLow As DWord, pName As PCSTR) As HANDLE 539 Declare Function OpenFileMapping Lib "kernel32" Alias _FuncName_OpenFileMapping (dwDesiredAccess As DWord, bInheritHandle As BOOL, pName As PCSTR) As HANDLE 420 540 Declare Function MapViewOfFile Lib "kernel32" (hFileMappingObject As HANDLE, dwDesiredAccess As DWord, dwFileOffsetHigh As DWord, dwFileOffsetLow As DWord, dwNumberOfBytesToMap As DWord) As VoidPtr 421 541 Declare Function MapViewOfFileEx Lib "kernel32" (hFileMappingObject As HANDLE, dwDesiredAccess As DWord, dwFileOffsetHigh As DWord, dwFileOffsetLow As DWord, dwNumberOfBytesToMap As DWord, lpBaseAddress As VoidPtr) As VoidPtr … … 424 544 425 545 Const MAILSLOT_WAIT_FOREVER = &HFFFFFFFF 426 Declare Function CreateMailslot Lib "kernel32" Alias "CreateMailslotA" (lpName As *Byte, nMaxMessageSize As DWord, lReadTimeout As DWord, ByRef lpSecurityAttributes AsSECURITY_ATTRIBUTES) As HANDLE546 Declare Function CreateMailslot Lib "kernel32" Alias _FuncName_CreateMailslot (pName As PCTSTR, nMaxMessageSize As DWord, lReadTimeout As DWord, pSecurityAttributes As *SECURITY_ATTRIBUTES) As HANDLE 427 547 428 548 Const DEBUG_PROCESS = &H00000001 … … 456 576 Const STARTF_USESTDHANDLES = &H00000100 457 577 Const STARTF_USEHOTKEY = &H00000200 458 Type STARTUPINFO 578 Type STARTUPINFOW 459 579 cb As DWord 460 lpReserved As *Byte461 lpDesktop As *Byte462 lpTitle As *Byte580 lpReserved As LPWSTR 581 lpDesktop As LPWSTR 582 lpTitle As LPWSTR 463 583 dwX As DWord 464 584 dwY As DWord … … 476 596 hStdError As HANDLE 477 597 End Type 598 Type STARTUPINFOA 599 cb As DWord 600 lpReserved As LPSTR 601 lpDesktop As LPSTR 602 lpTitle As LPSTR 603 dwX As DWord 604 dwY As DWord 605 dwXSize As DWord 606 dwYSize As DWord 607 dwXCountChars As DWord 608 dwYCountChars As DWord 609 dwFillAttribute As DWord 610 dwFlags As DWord 611 wShowWindow As Word 612 cbReserved2 As Word 613 lpReserved2 As *Byte 614 hStdInput As HANDLE 615 hStdOutput As HANDLE 616 hStdError As HANDLE 617 End Type 618 #ifdef UNICODE 619 TypeDef STARTUPINFO = STARTUPINFOW 620 #else 621 TypeDef STARTUPINFO = STARTUPINFOA 622 #endif 478 623 Type PROCESS_INFORMATION 479 624 hProcess As HANDLE … … 482 627 dwThreadId As DWord 483 628 End Type 484 Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (lpApplicationName As BytePtr, lpCommandLine As BytePtr, ByRef lpProcessAttributes As SECURITY_ATTRIBUTES, ByRef lpThreadAttributes As SECURITY_ATTRIBUTES, bInheritHandles As BOOL, dwCreationFlags As DWord, lpEnvironment As VoidPtr, lpCurrentDirectory As BytePtr, ByRef lpStartupInfo As STARTUPINFO, ByRef lpProcessInformation As PROCESS_INFORMATION) As BOOL629 Declare Function CreateProcess Lib "kernel32" Alias _FuncName_CreateProcess (pApplicationName As PCTSTR, pCommandLine As PTSTR, ByRef ProcessAttributes As SECURITY_ATTRIBUTES, ByRef ThreadAttributes As SECURITY_ATTRIBUTES, bInheritHandles As BOOL, dwCreationFlags As DWord, lpEnvironment As VoidPtr, pCurrentDirectory As PCTSTR, ByRef lpStartupInfo As STARTUPINFO, ByRef lpProcessInformation As PROCESS_INFORMATION) As BOOL 485 630 486 631 TypeDef LPTHREAD_START_ROUTINE = *Function(lpThreadParameter As VoidPtr) As DWord 487 Declare Function CreateThread Lib "kernel32" Alias "CreateThread" (lpThreadAttributes As *SECURITY_ATTRIBUTES, dwStackSize As DWord, lpStartAddress As LPTHREAD_START_ROUTINE, lpParameter As VoidPtr, dwCreationFlags As DWord, ByRef lpThreadId As DWord) As HANDLE632 Declare Function CreateThread Lib "kernel32" (lpThreadAttributes As *SECURITY_ATTRIBUTES, dwStackSize As DWord, lpStartAddress As LPTHREAD_START_ROUTINE, pParameter As VoidPtr, dwCreationFlags As DWord, ByRef ThreadId As DWord) As HANDLE 488 633 489 634 Declare Sub DebugBreak Lib "kernel32" () 490 Declare Sub DeleteCriticalSection Lib "kernel32" (ByRef lpCriticalSection As CRITICAL_SECTION)491 Declare Function DeleteFile Lib "kernel32" Alias "DeleteFileA" (pFileName As PCSTR) As BOOL635 Declare Sub DeleteCriticalSection Lib "kernel32" (ByRef CriticalSection As CRITICAL_SECTION) 636 Declare Function DeleteFile Lib "kernel32" Alias _FuncName_DeleteFile (pFileName As PCTSTR) As BOOL 492 637 Declare Function DeviceIoControl Lib "Kernel32" ( 493 638 hDevice As HANDLE, … … 510 655 Declare Sub ExitProcess Lib "kernel32" (dwExitCode As DWord) 511 656 Declare Sub ExitThread Lib "kernel32" (dwExitCode As DWord) 512 Declare Sub FatalAppExit Lib "kernel32" Alias "FatalAppExitA" (Action As DWord, pMessageText As PCSTR)657 Declare Sub FatalAppExit Lib "kernel32" Alias _FuncName_FatalAppExit (Action As DWord, pMessageText As PCTSTR) 513 658 Declare Function FileTimeToDosDateTime Lib "kernel32" (ByRef lpFileTime As FILETIME, ByRef lpFatDate As Word, ByRef lpFatTime As Word) As BOOL 514 659 Declare Function FileTimeToLocalFileTime Lib "kernel32" (ByRef lpFileTime As FILETIME, ByRef lpLocalFileTime As FILETIME) As BOOL … … 517 662 Declare Function FindClose Lib "kernel32" (hFindFile As HANDLE) As BOOL 518 663 Declare Function FindCloseChangeNotification Lib "kernel32" (hChangeHandle As HANDLE) As BOOL 519 Declare Function FindFirstChangeNotification Lib "kernel32" Alias "FindFirstChangeNotificationA"(520 pPathName As PC STR,664 Declare Function FindFirstChangeNotification Lib "kernel32" Alias _FuncName_FindFirstChangeNotification ( 665 pPathName As PCTSTR, 521 666 bWatchSubtree As BOOL, 522 667 dwNotifyFilter As DWord 523 668 ) As HANDLE 524 669 525 Type WIN32_FIND_DATA 670 Type WIN32_FIND_DATAW 526 671 dwFileAttributes As DWord 527 672 ftCreationTime As FILETIME … … 532 677 dwReserved0 As DWord 533 678 dwReserved1 As DWord 534 cFileName[ELM(MAX_PATH)] As Byte 535 cAlternateFileName[13] As Byte 536 End Type 679 cFileName[ELM(MAX_PATH)] As WCHAR 680 cAlternateFileName[13] As WCHAR 681 End Type 682 Type WIN32_FIND_DATAA 683 dwFileAttributes As DWord 684 ftCreationTime As FILETIME 685 ftLastAccessTime As FILETIME 686 ftLastWriteTime As FILETIME 687 nFileSizeHigh As DWord 688 nFileSizeLow As DWord 689 dwReserved0 As DWord 690 dwReserved1 As DWord 691 cFileName[ELM(MAX_PATH)] As SByte 692 cAlternateFileName[13] As SByte 693 End Type 694 #ifdef UNICODE 695 TypeDef WIN32_FIND_DATA = WIN32_FIND_DATAW 696 #else 697 TypeDef WIN32_FIND_DATA = WIN32_FIND_DATAA 698 #endif 537 699 TypeDef LPWIN32_FIND_DATA = *WIN32_FIND_DATA 538 Declare Function FindFirstFile Lib "kernel32" Alias "FindFirstFileA" (lpFileName As BytePtr, ByRef lpFindFildData As WIN32_FIND_DATA) As HANDLE700 Declare Function FindFirstFile Lib "kernel32" Alias _FuncName_FindFirstFile (pFileName As PCTSTR, ByRef FindFildData As WIN32_FIND_DATA) As HANDLE 539 701 Declare Function FindNextChangeNotification Lib "kernel32" (hChangeHandle As HANDLE) As BOOL 540 Declare Function FindNextFile Lib "kernel32" Alias "FindNextFileA" (hFindFile As HANDLE, ByRef lpFindFildData As WIN32_FIND_DATA) As BOOL702 Declare Function FindNextFile Lib "kernel32" Alias _FuncName_FindNextFile (hFindFile As HANDLE, ByRef FindFildData As WIN32_FIND_DATA) As BOOL 541 703 Declare Function FlushFileBuffers Lib "kernel32" (hFile As HANDLE) As BOOL 542 704 Declare Function FlushInstructionCache Lib "kernel32"(hProcess As HANDLE, pBaseAddress As VoidPtr, Size As SIZE_T) As BOOL … … 548 710 Const FORMAT_MESSAGE_FROM_SYSTEM = &H00001000 549 711 Const FORMAT_MESSAGE_ARGUMENT_ARRAY = &H00002000 550 Declare Function FormatMessage Lib "kernel32" Alias "FormatMessageA" (dwFlags As DWord, lpSource As VoidPtr, dwMessageId As DWord, dwLanguageId As DWord, lpBuffer As BytePtr, nSize As DWord, Arguments As DWordPtr) As DWord551 Declare Function FreeEnvironmentStrings Lib "kernel32" Alias "FreeEnvironmentStringsA" (pszEnvironmentBlock As PCSTR) As BOOL712 Declare Function FormatMessage Lib "kernel32" Alias _FuncName_FormatMessage (dwFlags As DWord, lpSource As VoidPtr, dwMessageId As DWord, dwLanguageId As DWord, pBuffer As PTSTR, nSize As DWord, Arguments As *DWord) As DWord 713 Declare Function FreeEnvironmentStrings Lib "kernel32" Alias _FuncName_FreeEnvironmentStrings (pszEnvironmentBlock As PCTSTR) As BOOL 552 714 Declare Function FreeLibrary Lib "kernel32" (hLibModule As HINSTANCE) As BOOL 553 715 Declare Sub FreeLibraryAndExitThread Lib "kernel32" (hModule As HANDLE, dwExitCode As DWord) … … 559 721 Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As PCSTR 560 722 #endif 561 Declare Function GetCompressedFileSize Lib "kernel32" Alias "GetCompressedFileSizeA" (lpFileName As BytePtr, ByRef lpFileSizeHigh As DWord) As DWord562 563 Const MAX_COMPUTERNAME_LENGTH =15564 Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (lpBuffer As BytePtr, ByRef nSize As Long) As Long565 566 Declare Function GetCurrentDirectory Lib "kernel32" Alias "GetCurrentDirectoryA" (nBufferLength As DWord, lpBuffer As BytePtr) As DWord723 Declare Function GetCompressedFileSize Lib "kernel32" Alias _FuncName_GetCompressedFileSize (pFileName As PCTSTR, ByRef FileSizeHigh As DWord) As DWord 724 725 Const MAX_COMPUTERNAME_LENGTH = 15 726 Declare Function GetComputerName Lib "kernel32" Alias _FuncName_GetComputerName (pBuffer As PTSTR, ByRef nSize As Long) As Long 727 728 Declare Function GetCurrentDirectory Lib "kernel32" Alias _FuncName_GetCurrentDirectory (nBufferLength As DWord, pBuffer As PTSTR) As DWord 567 729 Declare Function GetCurrentProcess Lib "kernel32" () As HANDLE 568 730 Declare Function GetCurrentProcessId Lib "kernel32" () As DWord … … 573 735 Const DATE_LONGDATE = &H00000002 574 736 Const DATE_USE_ALT_CALENDAR = &H00000004 575 Declare Function GetDateFormat Lib "kernel32" Alias "GetDateFormatA" (Locale As LCID, dwFlags As DWord, ByRef lpDate As SYSTEMTIME, lpFormat As BytePtr, lpDateStr As BytePtr, cchDate As Long) As Long576 577 Declare Function GetDiskFreeSpace Lib "kernel32" Alias "GetDiskFreeSpaceA" (lpRootPathName As BytePtr, lpSectorsPerCluster As *DWord, lpBytesPerSector As *DWord, lpNumberOfFreeClusters As *DWord, lpTotalNumberOfClusters As *DWord) As BOOL578 Declare Function GetDiskFreeSpaceEx Lib "kernel32" Alias "GetDiskFreeSpaceExA" (lpDirectoryName As BytePtr, ByRef lpFreeBytesAvailableToCaller As ULARGE_INTEGER, ByRef lpTotalNumberOfBytes As ULARGE_INTEGER, ByRef lpTotalNumberOfFreeBytes As ULARGE_INTEGER) As BOOL737 Declare Function GetDateFormat Lib "kernel32" Alias _FuncName_GetDateFormat (Locale As LCID, dwFlags As DWord, ByRef Date As SYSTEMTIME, pFormat As PCTSTR, pDateStr As PTSTR, cchDate As Long) As Long 738 739 Declare Function GetDiskFreeSpace Lib "kernel32" Alias _FuncName_GetDiskFreeSpace (pRootPathName As PCTSTR, lpSectorsPerCluster As *DWord, pBytesPerSector As *DWord, pNumberOfFreeClusters As *DWord, pTotalNumberOfClusters As *DWord) As BOOL 740 Declare Function GetDiskFreeSpaceEx Lib "kernel32" Alias _FuncName_GetDiskFreeSpaceEx (pDirectoryName As PCTSTR, ByRef lpFreeBytesAvailableToCaller As ULARGE_INTEGER, ByRef TotalNumberOfBytes As ULARGE_INTEGER, ByRef TotalNumberOfFreeBytes As ULARGE_INTEGER) As BOOL 579 741 580 742 Const DRIVE_UNKNOWN = 0 … … 585 747 Const DRIVE_CDROM = 5 586 748 Const DRIVE_RAMDISK = 6 587 Declare Function GetVolumeInformation Lib "kernel32" Alias "GetVolumeInformationA" (lpRootPathName As LPCSTR, lpVolumeNameBuffer As LPSTR, nVolumeNameSize As DWord, lpVolumeSerialNumber As *Word, lpMaximumComponentLength As *Word, lpFileSystemFlags As *Word, lpFileSystemNameBuffer As LPSTR, nFileSystemNameSize As DWord) As BOOL588 Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (lpRootPathName As BytePtr) As DWord589 590 Declare Function GetEnvironmentVariable Lib "kernel32" Alias "GetEnvironmentVariableA" (lpName As BytePtr, lpBuffer As BytePtr, nSize As DWord) As DWord591 Declare Function GetEnvironmentStrings Lib "kernel32" Alias "GetEnvironmentStringsA"() As VoidPtr749 Declare Function GetVolumeInformation Lib "kernel32" Alias _FuncName_GetVolumeInformation (pRootPathName As PCTSTR, pVolumeNameBuffer As PTSTR, nVolumeNameSize As DWord, lpVolumeSerialNumber As *Word, lpMaximumComponentLength As *Word, lpFileSystemFlags As *Word, pFileSystemNameBuffer As PTSTR, nFileSystemNameSize As DWord) As BOOL 750 Declare Function GetDriveType Lib "kernel32" Alias _FuncName_GetDriveType (lpRootPathName As PCTSTR) As DWord 751 752 Declare Function GetEnvironmentVariable Lib "kernel32" Alias _FuncName_GetEnvironmentVariable (lpName As PCTSTR, lpBuffer As PTSTR, nSize As DWord) As DWord 753 Declare Function GetEnvironmentStrings Lib "kernel32" Alias _FuncName_GetEnvironmentStrings () As VoidPtr 592 754 Const STILL_ACTIVE = &H00000103 593 755 Declare Function GetExitCodeProcess Lib "kernel32" (hProcess As HANDLE, ByRef lpExitCode As DWord) As BOOL 594 756 Declare Function GetExitCodeThread Lib "kernel32" (hThread As HANDLE, ByRef lpExitCode As DWord) As BOOL 595 757 596 Declare Function GetFileAttributes Lib "kernel32" Alias "GetFileAttributesA" (lpFileName As BytePtr) As DWord758 Declare Function GetFileAttributes Lib "kernel32" Alias _FuncName_GetFileAttributes (lpFileName As PCTSTR) As DWord 597 759 Type BY_HANDLE_FILE_INFORMATION 598 760 dwFileAttributes As DWord … … 621 783 Declare Function GetFileType Lib "kernel32" (hFile As HANDLE) As DWord 622 784 623 Declare Function GetFullPathName Lib "kernel32" Alias "GetFullPathNameA"(lpFileName As PCSTR, nBufferLength As DWord, pBuffer As PSTR, lpFilePart As *DWord) As DWord785 Declare Function GetFullPathName Lib "kernel32" Alias _FuncName_GetFullPathName (lpFileName As PCSTR, nBufferLength As DWord, pBuffer As PSTR, lpFilePart As *DWord) As DWord 624 786 Declare Function GetLastError Lib "kernel32" () As DWord 625 787 Declare Sub GetLocalTime Lib "kernel32" (ByRef lpSystemTime As SYSTEMTIME) 626 788 Declare Function GetLogicalDrives Lib "kernel32" () As DWord 627 Declare Function GetLogicalDriveStrings Lib "kernel32" Alias "GetLogicalDriveStringsA" (nBufferLength As DWord, pBuffer As PSTR) As DWord628 Declare Function GetModuleFileName Lib "kernel32" Alias "GetModuleFileNameA" (hModule As HINSTANCE, lpFileName As BytePtr, nSize As DWord) As DWord629 Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (lpModuleName As BytePtr) As HINSTANCE789 Declare Function GetLogicalDriveStrings Lib "kernel32" Alias _FuncName_GetLogicalDriveStrings (nBufferLength As DWord, pBuffer As PTSTR) As DWord 790 Declare Function GetModuleFileName Lib "kernel32" Alias _FuncName_GetModuleFileName (hModule As HINSTANCE, lpFileName As PTSTR, nSize As DWord) As DWord 791 Declare Function GetModuleHandle Lib "kernel32" Alias _FuncName_GetModuleHandle (lpModuleName As PTSTR) As HINSTANCE 630 792 Declare Function GetOverlappedResult Lib "kernel32" ( 631 793 hFile As HANDLE, … … 642 804 ) As BOOL 643 805 Declare Function GetProcessHeap Lib "kernel32" () As HANDLE 644 Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA"(645 pszLongPath As PC STR,646 pszShortPath As P STR,806 Declare Function GetShortPathName Lib "kernel32" Alias _FuncName_GetShortPathName ( 807 pszLongPath As PCTSTR, 808 pszShortPath As PTSTR, 647 809 cchBuffer As DWord 648 810 ) As DWord 649 811 650 Declare Sub GetStartupInfo Lib "kernel32" Alias "GetStartupInfoA"(ByRef StartupInfo As STARTUPINFO)812 Declare Sub GetStartupInfo Lib "kernel32" Alias _FuncName_GetStartupInfo (ByRef StartupInfo As STARTUPINFO) 651 813 652 814 Const STD_INPUT_HANDLE = -10 … … 655 817 Declare Function GetStdHandle Lib "kernel32" (nStdHandle As DWord) As HANDLE 656 818 657 Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (pBuffer As PSTR, uSize As DWord) As DWord819 Declare Function GetSystemDirectory Lib "kernel32" Alias _FuncName_GetSystemDirectory (pBuffer As PTSTR, uSize As DWord) As DWord 658 820 659 821 Type SYSTEM_INFO … … 674 836 Declare Sub GetSystemTimeAsFileTime Lib "kernel32" (ByRef SystemTimeAsFileTime As FILETIME) 675 837 676 Declare Function GetTempFileName Lib "kernel32" Alias "GetTempFileNameA"(677 pPathName As PC STR,678 pPrefixString As PC STR,838 Declare Function GetTempFileName Lib "kernel32" Alias _FuncName_GetTempFileName ( 839 pPathName As PCTSTR, 840 pPrefixString As PCTSTR, 679 841 uUnique As DWord, 680 pTempFileName As P STR842 pTempFileName As PTSTR 681 843 ) As DWord 682 Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (nBufferLength As DWord, lpBuffer As PSTR) As DWord844 Declare Function GetTempPath Lib "kernel32" Alias _FuncName_GetTempPath (nBufferLength As DWord, lpBuffer As PTSTR) As DWord 683 845 Declare Function GetThreadContext Lib "kernel32" (hThread As HANDLE, ByRef Context As CONTEXT) As BOOL 684 846 … … 705 867 Const TIME_NOTIMEMARKER = &H00000004 706 868 Const TIME_FORCE24HOURFORMAT = &H00000008 707 Declare Function GetTimeFormat Lib "kernel32" Alias "GetTimeFormatA" (Locale As LCID, dwFlags As DWord, ByRef Time As SYSTEMTIME, lpFormat As BytePtr, lpTimeStr As BytePtr, cchTime As DWord) As BOOL869 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 708 870 709 871 Declare Function GetUserDefaultLCID Lib "kernel32" () As LCID 710 Declare Function GetUserName Lib "advapi32" Alias "GetUserNameA" (pBuffer As PSTR, ByRef nSize As DWord) As BOOL872 Declare Function GetUserName Lib "advapi32" Alias _FuncName_GetUserName (pBuffer As PTSTR, ByRef nSize As DWord) As BOOL 711 873 712 874 Const VER_PLATFORM_WIN32s = 0 713 875 Const VER_PLATFORM_WIN32_WINDOWS = 1 714 876 Const VER_PLATFORM_WIN32_NT = 2 715 Type OSVERSIONINFO 877 Type OSVERSIONINFOW 716 878 dwOSVersionInfoSize As DWord 717 879 dwMajorVersion As DWord … … 719 881 dwBuildNumber As DWord 720 882 dwPlatformId As DWord 721 szCSDVersion[127] As Byte 722 End Type 723 Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (ByRef VersionInformation As OSVERSIONINFO) As BOOL 724 725 Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (pBuffer As PSTR, uSize As DWord) As DWord 883 szCSDVersion[ELM(128)] As WCHAR 884 End Type 885 Type OSVERSIONINFOA 886 dwOSVersionInfoSize As DWord 887 dwMajorVersion As DWord 888 dwMinorVersion As DWord 889 dwBuildNumber As DWord 890 dwPlatformId As DWord 891 szCSDVersion[ELM(128)] As SByte 892 End Type 893 #ifdef UNICODE 894 TypeDef OSVERSIONINFO = OSVERSIONINFOW 895 #else 896 TypeDef OSVERSIONINFO = OSVERSIONINFOA 897 #endif 898 Declare Function GetVersionEx Lib "kernel32" Alias _FuncName_GetVersionEx (ByRef VersionInformation As OSVERSIONINFO) As BOOL 899 900 Declare Function GetWindowsDirectory Lib "kernel32" Alias _FuncName_GetWindowsDirectory (pBuffer As PTSTR, uSize As DWord) As DWord 726 901 Declare Function GlobalAlloc Lib "kernel32" (uFlags As DWord, dwBytes As SIZE_T) As HGLOBAL 727 902 Declare Function GlobalFrags Lib "kernel32" (hMem As HGLOBAL) As DWord … … 771 946 Const LCMAP_SIMPLIFIED_CHINESE = &H02000000 ' map traditional chinese to simplified chinese 772 947 Const LCMAP_TRADITIONAL_CHINESE = &H04000000 ' map simplified chinese to traditional chinese 773 Declare Function LCMapString Lib "kernel32" Alias "LCMapStringA" (Locale As LCID, dwMapFlags As DWord, lpSrcStr As LPCSTR, cchSrc As Long, lpDestStr As LPSTR, cchDest As Long) As Long948 Declare Function LCMapString Lib "kernel32" Alias _FuncName_LCMapString (Locale As LCID, dwMapFlags As DWord, lpSrcStr As LPCTSTR, cchSrc As Long, lpDestStr As LPTSTR, cchDest As Long) As Long 774 949 775 950 Declare Sub LeaveCriticalSection Lib "kernel32" (ByRef lpCriticalSection As CRITICAL_SECTION) … … 783 958 Declare Function LocalUnlock Lib "kernel32" (hMem As HLOCAL) As BOOL 784 959 Declare Function LockFile Lib "kernel32" (hFile As DWord, dwFileOffsetLow As DWord, dwFileOffsetHigh As DWord, nNumberOfBytesToLockLow As DWord, nNumberOfBytesToLockHigh As DWord) As BOOL 785 Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (pLibFileName As PCSTR) As HINSTANCE960 Declare Function LoadLibrary Lib "kernel32" Alias _FuncName_LoadLibrary (pLibFileName As PCTSTR) As HINSTANCE 786 961 787 962 Const DONT_RESOLVE_DLL_REFERENCES = &h00000001 … … 789 964 Const LOAD_WITH_ALTERED_SEARCH_PATH = &h00000008 790 965 Const LOAD_IGNORE_CODE_AUTHZ_LEVEL = &h00000010 791 Declare Function LoadLibraryEx Lib "kernel32" Alias "LoadLibraryExA" (pLibFileName As PCSTR, hFile As HANDLE, dwFlags As DWord) As HINSTANCE792 793 Declare Function lstrcat Lib "kernel32" Alias "lstrcatA" (pString1 As PSTR, pString2 As PCSTR) As PSTR794 Declare Function lstrcmp Lib "kernel32" Alias "lstrcmpA" (pString1 As PCSTR, pString2 As PCSTR) As Long795 Declare Function lstrcmpi Lib "kernel32" Alias "lstrcmpiA" (pString1 As PCSTR, pString2 As PCSTR) As Long966 Declare Function LoadLibraryEx Lib "kernel32" Alias _FuncName_LoadLibraryEx (pLibFileName As PCTSTR, hFile As HANDLE, dwFlags As DWord) As HINSTANCE 967 968 Declare Function lstrcat Lib "kernel32" Alias _FuncName_lstrcat (pString1 As PTSTR, pString2 As PCTSTR) As PSTR 969 Declare Function lstrcmp Lib "kernel32" Alias _FuncName_lstrcmp (pString1 As PCTSTR, pString2 As PCTSTR) As Long 970 Declare Function lstrcmpi Lib "kernel32" Alias _FuncName_lstrcmpi (pString1 As PCTSTR, pString2 As PCTSTR) As Long 796 971 Declare Function lstrcpy Lib "kernel32" Alias _FuncName_lstrcpy (pString1 As PTSTR, pString2 As PCTSTR) As PSTR 797 972 Declare Function lstrlenA Lib "kernel32" (pString As PCSTR) As Long 798 973 Declare Function lstrlenW Lib "kernel32" (pString As PCWSTR) As Long 799 974 #ifdef UNICODE 800 Declare Function lstrlen Lib "kernel32" Alias "lstrlenW" (pString As PC TSTR) As Long975 Declare Function lstrlen Lib "kernel32" Alias "lstrlenW" (pString As PCWSTR) As Long 801 976 #else 802 Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (pString As PC TSTR) As Long977 Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (pString As PCSTR) As Long 803 978 #endif 804 979 Declare Sub memcpy Lib "kernel32" Alias "RtlMoveMemory" (pDest As VoidPtr, pSrc As VoidPtr, length As SIZE_T) 805 Declare Function MoveFile Lib "kernel32" Alias "MoveFileA" (lpExistingFileName As BytePtr, lpNewFileName As BytePtr) As BOOL980 Declare Function MoveFile Lib "kernel32" Alias _FuncName_MoveFile (lpExistingFileName As LPCTSTR, lpNewFileName As LPCTSTR) As BOOL 806 981 Declare Sub MoveMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As VoidPtr, pSrc As VoidPtr, length As SIZE_T) 807 982 … … 822 997 Declare Function MultiByteToWideChar Lib "kernel32" (CodePage As DWord, dwFlags As DWord, pMultiByteStr As PCSTR, cchMultiByte As Long, pWideCharStr As PWSTR, cchWideChar As Long) As Long 823 998 824 Declare Function OpenEvent Lib "kernel32" Alias "OpenEventA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, pName As PCSTR) As HANDLE825 Declare Function OpenMutex Lib "kernel32" Alias "OpenMutexA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE826 Declare Function OpenSemaphore Lib "kernel32" Alias "OpenSemaphoreA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE999 Declare Function OpenEvent Lib "kernel32" Alias _FuncName_OpenEvent (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPCTSTR) As HANDLE 1000 Declare Function OpenMutex Lib "kernel32" Alias _FuncName_OpenMutex (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPCTSTR) As HANDLE 1001 Declare Function OpenSemaphore Lib "kernel32" Alias _FuncName_OpenSemaphore (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPCTSTR) As HANDLE 827 1002 828 1003 Const PROCESS_TERMINATE = &H0001 … … 843 1018 Declare Sub OutputDebugStringW Lib "kernel32" (pOutputString As PCWSTR) 844 1019 #ifdef UNICODE 845 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringW" (pOutputString As PC TSTR)1020 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringW" (pOutputString As PCWSTR) 846 1021 #else 847 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (pOutputString As PC TSTR)1022 Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (pOutputString As PCSTR) 848 1023 #endif 849 1024 Declare Function PulseEvent Lib "kernel32" (hEvent As HANDLE) As BOOL … … 856 1031 Declare Function ReleaseMutex Lib "kernel32" (hMutex As HANDLE) As BOOL 857 1032 Declare Function ReleaseSemaphore Lib "kernel32" (hSemaphore As HANDLE, lReleaseCount As Long, ByRef lpPreviousCount As Long) As BOOL 858 Declare Function RemoveDirectory Lib "kernel32" Alias "RemoveDirectoryA" (lpPathName As BytePtr) As BOOL1033 Declare Function RemoveDirectory Lib "kernel32" Alias _FuncName_RemoveDirectory (lpPathName As LPCTSTR) As BOOL 859 1034 Declare Function ResetEvent Lib "kernel32" (hEvent As HANDLE) As BOOL 860 1035 Declare Function ResumeThread Lib "kernel32" (hThread As HANDLE) As DWord 861 Declare Function SetComputerName Lib "kernel32" Alias "SetComputerNameA" (lpComputerName As BytePtr) As BOOL862 Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (lpPathName As BytePtr) As BOOL863 Declare Function SearchPath Lib "kernel32" Alias "SearchPathA" (pPath As PCSTR, pFileName As PCSTR, pExtension As PCSTR, BufferLength As DWord, pBuffer As PSTR, ByRef pFilePart As PSTR) As DWord1036 Declare Function SetComputerName Lib "kernel32" Alias _FuncName_SetComputerName (lpComputerName As LPCTSTR) As BOOL 1037 Declare Function SetCurrentDirectory Lib "kernel32" Alias _FuncName_SetCurrentDirectory (lpPathName As LPCTSTR) As BOOL 1038 Declare Function SearchPath Lib "kernel32" Alias _FuncName_SearchPath (pPath As PCSTR, pFileName As PCTSTR, pExtension As PCTSTR, BufferLength As DWord, pBuffer As PTSTR, ByRef pFilePart As PTSTR) As DWord 864 1039 Declare Function SetEndOfFile Lib "kernel32" (hFile As HANDLE) As BOOL 865 Declare Function SetEnvironmentVariable Lib "kernel32" Alias "SetEnvironmentVariableA" (lpName As BytePtr, lpValue As BytePtr) As BOOL1040 Declare Function SetEnvironmentVariable Lib "kernel32" Alias _FuncName_SetEnvironmentVariable (lpName As LPCTSTR, lpValue As LPTSTR) As BOOL 866 1041 867 1042 Const SEM_FAILCRITICALERRORS = &h0001 … … 871 1046 Declare Function SetErrorMode Lib "kernel32" (uMode As DWord) As DWord 872 1047 Declare Function SetEvent Lib "kernel32" (hEvent As HANDLE) As BOOL 873 Declare Function SetFileAttributes Lib "kernel32" Alias "SetFileAttributesA" (lpFileName As BytePtr, dwFileAttributes As DWord) As BOOL1048 Declare Function SetFileAttributes Lib "kernel32" Alias _FuncName_SetFileAttributes (lpFileName As LPCTSTR, dwFileAttributes As DWord) As BOOL 874 1049 875 1050 Const FILE_BEGIN = 0 -
Include/api_window.sbp
r137 r141 5 5 #define _INC_WINDOW 6 6 7 '------------- 8 ' Window API Function Names 7 9 #ifdef UNICODE 8 10 Const _FuncName_CreateWindowEx = "CreateWindowExW" 11 Const _FuncName_CallWindowProc = "CallWindowProcW" 12 Const _FuncName_CharLower = "CharLowerW" 13 Const _FuncName_CharUpper = "CharUpperW" 14 Const _FuncName_DefWindowProc = "DefWindowProcW" 15 Const _FuncName_DispatchMessage = "DispatchMessageW" 16 Const _FuncName_DrawText = "DrawTextW" 17 Const _FuncName_DrawTextEx = "DrawTextExW" 18 Const _FuncName_FindWindow = "FindWindowW" 19 Const _FuncName_FindWindowEx = "FindWindowExW" 20 Const _FuncName_GetClassInfoEx = "GetClassInfoExW" 21 Const _FuncName_GetClassLong = "GetClassLongW" 22 Const _FuncName_GetClassLongPtr = "GetClassLongPtrW" 23 Const _FuncName_GetClassName = "GetClassNameW" 24 Const _FuncName_GetClipboardFormatName = "GetClipboardFormatNameW" 25 Const _FuncName_GetDlgItemText = "GetDlgItemTextW" 26 Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoW" 27 Const _FuncName_GetMessage = "GetMessageW" 28 Const _FuncName_GetProp = "GetPropW" 29 Const _FuncName_GetWindowLong = "GetWindowLongW" 30 Const _FuncName_GetWindowLongPtr = "GetWindowLongPtrW" 31 Const _FuncName_GetWindowText = "GetWindowTextW" 32 Const _FuncName_GetWindowTextLength = "GetWindowTextLengthW" 33 Const _FuncName_InsertMenuItem = "InsertMenuItemW" 34 Const _FuncName_IsCharAlpha = "IsCharAlphaW" 35 Const _FuncName_IsCharAlphaNumeric = "IsCharAlphaNumericW" 36 Const _FuncName_IsCharLower = "IsCharLowerW" 37 Const _FuncName_IsCharUpper = "IsCharUpperW" 38 Const _FuncName_IsDialogMessage = "IsDialogMessageW" 39 Const _FuncName_LoadBitmap = "LoadBitmapW" 40 Const _FuncName_LoadCursor = "LoadCursorW" 41 Const _FuncName_LoadCursorFromFile = "LoadCursorFromFileW" 42 Const _FuncName_LoadIcon = "LoadIconW" 43 Const _FuncName_LoadImage = "LoadImageW" 44 Const _FuncName_PeekMessage = "PeekMessageW" 45 Const _FuncName_PostMessage = "PostMessageW" 46 Const _FuncName_PostThreadMessage = "PostThreadMessageW" 9 47 Const _FuncName_RegisterClassEx = "RegisterClassExW" 48 Const _FuncName_RegisterClipboardFormat = "RegisterClipboardFormatW" 49 Const _FuncName_RegisterWindowMessage = "RegisterWindowMessageW" 50 Const _FuncName_RemoveProp = "RemovePropW" 51 Const _FuncName_SendDlgItemMessage = "SendDlgItemMessageW" 52 Const _FuncName_SendMessage = "SendMessageW" 53 Const _FuncName_SendNotifyMessage = "SendNotifyMessageW" 54 Const _FuncName_SetDlgItemText = "SetDlgItemTextW" 55 Const _FuncName_SetClassLong = "SetClassLongW" 56 Const _FuncName_SetClassLong = "SetClassLongW" 57 Const _FuncName_SetMenuItemInfo = "SetMenuItemInfoW" 58 Const _FuncName_SetProp = "SetPropW" 59 Const _FuncName_SetWindowLong = "SetWindowLongW" 60 Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrW" 61 Const _FuncName_SetWindowText = "SetWindowTextW" 62 Const _FuncName_SystemParametersInfo = "SystemParametersInfoW" 63 Const _FuncName_UnregisterClass = "UnregisterClassW" 64 Const _FuncName_wsprintf = "wsprintfW" 65 Const _FuncName_wvsprintf = "wvsprintfW" 10 66 #else 11 67 Const _FuncName_CreateWindowEx = "CreateWindowExA" 68 Const _FuncName_CallWindowProc = "CallWindowProcA" 69 Const _FuncName_CharLower = "CharLowerA" 70 Const _FuncName_CharUpper = "CharUpperA" 71 Const _FuncName_DefWindowProc = "DefWindowProcA" 72 Const _FuncName_DispatchMessage = "DispatchMessageA" 73 Const _FuncName_DrawText = "DrawTextA" 74 Const _FuncName_DrawTextEx = "DrawTextExA" 75 Const _FuncName_FindWindow = "FindWindowA" 76 Const _FuncName_FindWindowEx = "FindWindowExA" 77 Const _FuncName_GetClassInfoEx = "GetClassInfoExA" 78 Const _FuncName_GetClassLong = "GetClassLongA" 79 Const _FuncName_GetClassLongPtr = "GetClassLongPtrA" 80 Const _FuncName_GetClassName = "GetClassNameA" 81 Const _FuncName_GetClipboardFormatName = "GetClipboardFormatNameA" 82 Const _FuncName_GetDlgItemText = "GetDlgItemTextA" 83 Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoA" 84 Const _FuncName_GetMessage = "GetMessageA" 85 Const _FuncName_GetProp = "GetPropA" 86 Const _FuncName_GetWindowLong = "GetWindowLongA" 87 Const _FuncName_GetWindowLongPtr = "GetWindowLongPtrA" 88 Const _FuncName_GetWindowText = "GetWindowTextA" 89 Const _FuncName_GetWindowTextLength = "GetWindowTextLengthA" 90 Const _FuncName_InsertMenuItem = "InsertMenuItemA" 91 Const _FuncName_IsCharAlpha = "IsCharAlphaA" 92 Const _FuncName_IsCharAlphaNumeric = "IsCharAlphaNumericA" 93 Const _FuncName_IsCharLower = "IsCharLowerA" 94 Const _FuncName_IsCharUpper = "IsCharUpperA" 95 Const _FuncName_IsDialogMessage = "IsDialogMessageA" 96 Const _FuncName_LoadBitmap = "LoadBitmapA" 97 Const _FuncName_LoadCursor = "LoadCursorA" 98 Const _FuncName_LoadCursorFromFile = "LoadCursorFromFileA" 99 Const _FuncName_LoadIcon = "LoadIconA" 100 Const _FuncName_LoadImage = "LoadImageA" 101 Const _FuncName_PeekMessage = "PeekMessageA" 102 Const _FuncName_PostMessage = "PostMessageA" 103 Const _FuncName_PostThreadMessage = "PostThreadMessageA" 12 104 Const _FuncName_RegisterClassEx = "RegisterClassExA" 105 Const _FuncName_RegisterClipboardFormat = "RegisterClipboardFormatA" 106 Const _FuncName_RegisterWindowMessage = "RegisterWindowMessageA" 107 Const _FuncName_RemoveProp = "RemovePropA" 108 Const _FuncName_SendDlgItemMessage = "SendDlgItemMessageA" 109 Const _FuncName_SendMessage = "SendMessageA" 110 Const _FuncName_SendNotifyMessage = "SendNotifyMessageA" 111 Const _FuncName_SetDlgItemText = "SetDlgItemTextA" 112 Const _FuncName_SetClassLong = "SetClassLongA" 113 Const _FuncName_SetClassLongPtr = "SetClassLongPtrA" 114 Const _FuncName_SetMenuItemInfo = "SetMenuItemInfoA" 115 Const _FuncName_SetProp = "SetPropA" 116 Const _FuncName_SetWindowLong = "SetWindowLongA" 117 Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrA" 118 Const _FuncName_SetWindowText = "SetWindowTextA" 119 Const _FuncName_SystemParametersInfo = "SystemParametersInfoA" 120 Const _FuncName_UnregisterClass = "UnregisterClassA" 121 Const _FuncName_wsprintf = "wsprintfA" 122 Const _FuncName_wvsprintf = "wvsprintfA" 13 123 #endif 14 124 … … 26 136 27 137 28 Const MAKEINTRESOURCE(i) = i As PCSTR 138 Const MAKEINTRESOURCEW(i) = i As PCWSTR 139 Const MAKEINTRESOURCEA(i) = i As PCSTR 140 Const MAKEINTRESOURCE(i) = i As PCTSTR 29 141 30 142 TypeDef WNDENUMPROC = *Function(ByVal hwnd As HWND, ByVal lParam As LPARAM) As BOOL … … 152 264 Const MFT_RIGHTJUSTIFY = MF_RIGHTJUSTIFY 153 265 154 Type MENUITEMINFO 266 Type MENUITEMINFOW 267 cbSize As DWord 268 fMask As DWord 269 fType As DWord 270 fState As DWord 271 wID As DWord 272 hSubMenu As HMENU 273 hbmpChecked As HBITMAP 274 hbmpUnchecked As HBITMAP 275 dwItemData As ULONG_PTR 276 dwTypeData As LPWSTR 277 cch As DWord 278 End Type 279 Type MENUITEMINFOA 155 280 cbSize As DWord 156 281 fMask As DWord … … 165 290 cch As DWord 166 291 End Type 167 292 #ifdef UNICODE 293 TypeDef MENUITEMINFO = MENUITEMINFOW 294 #else 295 TypeDef MENUITEMINFO = MENUITEMINFOA 296 #endif 168 297 169 298 '------------ … … 226 355 227 356 '------------- 228 ' Window API Function Names229 230 /*231 CreateWindowEx232 CallWindowProc233 DefWindowProc234 DispatchMessage235 DrawText236 DrawTextEx237 FindWindow238 FindWindowEx239 GetClassInfoEx240 GetClassLong241 GetClassLongPtr242 GetClassName243 GetClipboardFormatName244 GetDlgItemText245 GetMenuItemInfo246 GetMessage247 GetWindowLong248 GetWindowLongPtr249 GetWindowText250 GetWindowTextLength251 InsertMenuItem252 IsCharAlpha253 IsCharAlphaNumeric254 IsDialogMessage255 LoadBitmap256 LoadCursor257 LoadCursorFromFile258 LoadIcon259 LoadImage260 PeekMessage261 PostMessage262 PostThreadMessage263 RegisterClassEx264 RegisterClipboardFormat265 RegisterWindowMessage266 RemoveProp267 SendDlgItemMessage268 SendMessage269 SendNotifyMessage270 SetDlgItemText271 SetClassLong272 SetClassLong273 SetMenuItemInfo274 SetWindowLong275 SetWindowLongPtr276 SetWindowText277 SystemParametersInfo278 UnregisterClass279 wsprintf280 wvsprintf281 */282 283 '-------------284 357 ' Window API 285 358 … … 295 368 fRestore As BOOL 296 369 fIncUpdate As BOOL 297 rgbReserved (31)As Byte370 rgbReserved[ELM(32)] As Byte 298 371 End Type 299 372 Declare Function BeginPaint Lib "user32" (hWnd As HWND, ByRef Paint As PAINTSTRUCT) As HDC 300 373 301 374 Declare Function BringWindowToTop Lib "user32" (hWnd As HWND) As Long 302 Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA"(lpPrevWndFunc As WNDPROC, hWnd As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT303 Declare Function CharLower Lib "user32" Alias "CharLowerA" (lpsz As BytePtr) As DWord304 Declare Function CharUpper Lib "user32" Alias "CharUpperA" (lpsz As BytePtr) As DWord375 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 376 Declare Function CharLower Lib "user32" Alias _FuncName_CharLower (psz As PTSTR) As DWord 377 Declare Function CharUpper Lib "user32" Alias _FuncName_CharUpper (psz As PTSTR) As DWord 305 378 Declare Function CheckMenuItem Lib "user32" (hMenu As HMENU, uIDCheckItem As DWord, uCheck As DWord) As DWord 306 379 Declare Function CheckMenuRadioItem Lib "user32" (hMenu As HMENU, idFirst As DWord, idLast As DWord, idCheck As DWord, uFlags As DWord) As BOOL … … 338 411 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 339 412 340 Declare Function DefWindowProc Lib "user32" Alias "DefWindowProcA"(hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT413 Declare Function DefWindowProc Lib "user32" Alias _FuncName_DefWindowProc (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 341 414 Declare Function DeleteMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL 342 415 Declare Function DestroyCaret Lib "user32" () As BOOL … … 345 418 Declare Function DestroyMenu Lib "user32" (hMenu As HMENU) As BOOL 346 419 Declare Function DestroyWindow Lib "user32" (hWnd As HWND) As BOOL 347 Declare Function DispatchMessage Lib "user32" Alias "DispatchMessageA" (ByRef lpMsg As MSG) As LRESULT420 Declare Function DispatchMessage Lib "user32" Alias _FuncName_DispatchMessage (ByRef Msg As MSG) As LRESULT 348 421 349 422 Const BDR_RAISEDOUTER = &H0001 … … 447 520 Const DT_RTLREADING = &H00020000 448 521 Const DT_WORD_ELLIPSIS = &H00040000 449 Declare Function DrawText Lib "user32" Alias "DrawTextA" (hdc As HDC, lpStr As PCSTR, nCount As Long, ByRef lpRect As RECT, dwFormat As DWord) As BOOL522 Declare Function DrawText Lib "user32" Alias _FuncName_DrawText (hdc As HDC, lpStr As PCTSTR, nCount As Long, ByRef Rect As RECT, dwFormat As DWord) As BOOL 450 523 451 524 Type DRAWTEXTPARAMS … … 456 529 uiLengthDrawn As DWord 457 530 End Type 458 Declare Function DrawTextEx Lib "user32" Alias "DrawTextExA" (hdc As HDC, lpchText As PCSTR, cchText As Long, ByRef lpRect As RECT, dwDTFormat As DWord, ByRef lpDTParams As DRAWTEXTPARAMS) As BOOL531 Declare Function DrawTextEx Lib "user32" Alias _FuncName_DrawTextEx (hdc As HDC, pchText As PCTSTR, cchText As Long, ByRef Rect As RECT, dwDTFormat As DWord, ByRef DTParams As DRAWTEXTPARAMS) As BOOL 459 532 460 533 Declare Function EmptyClipboard Lib "user32" () As BOOL … … 478 551 Declare Function EnumWindows Lib "user32" (pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL 479 552 Declare Function FillRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As BOOL 480 Declare Function FindWindow Lib "user32" Alias "FindWindowA" (lpClassName As PCSTR, lpWindowName As PCSTR) As HWND481 Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (hwndParent As HWND, hwndChildAfter As HWND, pszClass As PCSTR, pszWindow As PCSTR) As HWND553 Declare Function FindWindow Lib "user32" Alias _FuncName_FindWindow (pClassName As PCTSTR, lpWindowName As PCTSTR) As HWND 554 Declare Function FindWindowEx Lib "user32" Alias _FuncName_FindWindowEx (hwndParent As HWND, hwndChildAfter As HWND, pszClass As PCTSTR, pszWindow As PCTSTR) As HWND 482 555 Declare Function FlashWindow Lib "user32" (hWnd As HWND, bInvert As BOOL) As BOOL 483 556 Declare Function FrameRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As Long … … 486 559 Declare Function GetCapture Lib "user32" () As HWND 487 560 Declare Function GetCaretPos Lib "user32" (ByRef lpPoint As POINTAPI) As BOOL 488 Declare Function GetClassInfoEx Lib "user32" Alias "GetClassInfoExA" (hInst As HINSTANCE, lpszClass As PCSTR, ByRef lpwcx As WNDCLASSEX) As BOOL561 Declare Function GetClassInfoEx Lib "user32" Alias _FuncName_GetClassInfoEx (hInst As HINSTANCE, pszClass As PCTSTR, ByRef lpwcx As WNDCLASSEX) As BOOL 489 562 490 563 Const GCL_MENUNAME = -8 … … 500 573 Const GCL_HICONSM = -34 501 574 #ifdef _WIN64 502 Declare Function GetClassLong Lib "user32" Alias "GetClassLongPtrA"(hWnd As HWND, nIndex As Long) As LONG_PTR503 Declare Function GetClassLongPtr Lib "user32" Alias "GetClassLongPtrA"(hWnd As HWND, nIndex As Long) As LONG_PTR575 Declare Function GetClassLong Lib "user32" Alias _FuncName_GetClassLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR 576 Declare Function GetClassLongPtr Lib "user32" Alias _FuncName_GetClassLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR 504 577 #else 505 Declare Function GetClassLong Lib "user32" Alias "GetClassLongA"(hWnd As HWND, nIndex As Long) As LONG_PTR506 Declare Function GetClassLongPtr Lib "user32" Alias "GetClassLongA"(hWnd As HWND, nIndex As Long) As LONG_PTR578 Declare Function GetClassLong Lib "user32" Alias _FuncName_GetClassLong (hWnd As HWND, nIndex As Long) As LONG_PTR 579 Declare Function GetClassLongPtr Lib "user32" Alias _FuncName_GetClassLong (hWnd As HWND, nIndex As Long) As LONG_PTR 507 580 #endif 508 581 509 Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (hWnd As HWND, lpClassName As PSTR, nMaxCount As Long) As Long582 Declare Function GetClassName Lib "user32" Alias _FuncName_GetClassName (hWnd As HWND, lpClassName As PTSTR, nMaxCount As Long) As Long 510 583 Declare Function GetClientRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL 511 584 Declare Function GetClipboardData Lib "user32" (uFormat As DWord) As HANDLE 512 Declare Function GetClipboardFormatName Lib "user32" Alias "GetClipboardFormatNameA" (uFormat As DWord, lpszFormatName As BytePtr, cchMaxCount As Long) As BOOL585 Declare Function GetClipboardFormatName Lib "user32" Alias _FuncName_GetClipboardFormatName (uFormat As DWord, pszFormatName As PTSTR, cchMaxCount As Long) As BOOL 513 586 Declare Function GetClipCursor Lib "user32" (ByRef lpRect As RECT) As BOOL 514 587 Declare Function GetCursor Lib "user32" () As HCURSOR … … 533 606 Declare Function GetDlgCtrlID Lib "user32" (hWnd As HWND) As Long 534 607 Declare Function GetDlgItem Lib "user32" (hDlg As HWND, nIDDlgItem As Long) As HWND 535 Declare Function GetDlgItemText Lib "user32" Alias "GetDlgItemTextA" (hDlg As HWND, nIDDlgItem As Long, lpString As PSTR, nMaxCount As Long) As Long608 Declare Function GetDlgItemText Lib "user32" Alias _FuncName_GetDlgItemText (hDlg As HWND, nIDDlgItem As Long, pString As PTSTR, nMaxCount As Long) As Long 536 609 Declare Function GetDoubleClickTime Lib "user32" () As DWord 537 610 Declare Function GetFocus Lib "user32" () As HWND … … 549 622 Declare Function GetMenuItemID Lib "user32" (hMenu As HMENU, nPos As Long) As DWord 550 623 Declare Function GetMenuItemCount Lib "user32" (hMenu As HMENU) As Long 551 Declare Function GetMenuItemInfo Lib "user32" Alias "GetMenuItemInfoA" (hMenu As HMENU, uItem As DWord, fByPosition As DWord, ByRef lpmii As MENUITEMINFO) As BOOL552 Declare Function GetMessage Lib "user32" Alias "GetMessageA" (ByRef lpMsg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord) As Long624 Declare Function GetMenuItemInfo Lib "user32" Alias _FuncName_GetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As DWord, ByRef mii As MENUITEMINFO) As BOOL 625 Declare Function GetMessage Lib "user32" Alias _FuncName_GetMessage (ByRef Msg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord) As Long 553 626 Declare Function GetParent Lib "user32" (hWnd As HWND) As HWND 554 Declare Function GetProp Lib "user32" Alias "GetPropA" (hWnd As HWND, pString As PCSTR) As HANDLE627 Declare Function GetProp Lib "user32" Alias _FuncName_GetProp (hWnd As HWND, pString As PCTSTR) As HANDLE 555 628 Declare Function GetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO) As BOOL 556 629 Declare Function GetSubMenu Lib "user32" (hMenu As HMENU, nPos As Long) As HMENU … … 708 781 709 782 #ifdef _WIN64 710 Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongPtrA"(hWnd As HWND, nIndex As Long) As LONG_PTR711 Declare Function GetWindowLongPtr Lib "user32" Alias "GetWindowLongPtrA"(hWnd As HWND, nIndex As Long) As LONG_PTR783 Declare Function GetWindowLong Lib "user32" Alias _FuncName_GetWindowLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR 784 Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR 712 785 #else 713 Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA"(hWnd As HWND, nIndex As Long) As LONG_PTR714 Declare Function GetWindowLongPtr Lib "user32" Alias "GetWindowLongA"(hWnd As HWND, nIndex As Long) As LONG_PTR786 Declare Function GetWindowLong Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR 787 Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR 715 788 #endif 716 789 … … 729 802 Declare Function GetWindowRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL 730 803 Declare Function GetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN) As Long 731 Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (hWnd As HWND, lpString As PSTR, nMaxCount As Long) As Long732 Declare Function GetWindowTextLength Lib "user32" Alias "GetWindowTextLengthA"(hWnd As HWND) As Long733 Declare Function GetWindowThreadProcessId Lib "user32" (hWnd As HWND, lpdwProcessId As DWordPtr) As DWord804 Declare Function GetWindowText Lib "user32" Alias _FuncName_GetWindowText (hWnd As HWND, lpString As PTSTR, nMaxCount As Long) As Long 805 Declare Function GetWindowTextLength Lib "user32" Alias _FuncName_GetWindowTextLength (hWnd As HWND) As Long 806 Declare Function GetWindowThreadProcessId Lib "user32" (hWnd As HWND, pdwProcessId As *DWord) As DWord 734 807 Declare Function HideCaret Lib "user32" (hWnd As HWND) As BOOL 735 Declare Function InsertMenuItem Lib "user32" Alias "InsertMenuItemA" (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef lpmii As MENUITEMINFO) As BOOL736 Declare Function InvalidateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT, bErase As BOOL) As BOOL808 Declare Function InsertMenuItem Lib "user32" Alias _FuncName_InsertMenuItem (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef mii As MENUITEMINFO) As BOOL 809 Declare Function InvalidateRect Lib "user32" (hWnd As HWND, ByRef Rect As RECT, bErase As BOOL) As BOOL 737 810 Declare Function InvalidateRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bErase As BOOL) As BOOL 738 811 Declare Function InvertRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT) As BOOL 739 Declare Function IsCharAlpha Lib "user32" Alias "IsCharAlphaA" (ch As Byte) As BOOL740 Declare Function IsCharAlphaNumeric Lib "user32" Alias "IsCharAlphaNumericA" (ch As Byte) As BOOL741 Declare Function IsCharLower Lib "user32" Alias "IsCharLowerA" (ch As Byte) As BOOL742 Declare Function IsCharUpper Lib "user32" Alias "IsCharUpperA" (ch As Byte) As BOOL812 Declare Function IsCharAlpha Lib "user32" Alias _FuncName_IsCharAlpha (ch As TCHAR) As BOOL 813 Declare Function IsCharAlphaNumeric Lib "user32" Alias _FuncName_IsCharAlphaNumeric (ch As TCHAR) As BOOL 814 Declare Function IsCharLower Lib "user32" Alias _FuncName_IsCharLower (ch As TCHAR) As BOOL 815 Declare Function IsCharUpper Lib "user32" Alias _FuncName_IsCharUpper (ch As TCHAR) As BOOL 743 816 Declare Function IsChild Lib "user32" (hWndParent As HWND, hWnd As HWND) As BOOL 744 Declare Function IsDialogMessage Lib "user32" Alias "IsDialogMessageA" (hDlg As HWND, ByRef ref_msg As MSG) As BOOL817 Declare Function IsDialogMessage Lib "user32" Alias _FuncName_IsDialogMessage (hDlg As HWND, ByRef msg As MSG) As BOOL 745 818 Declare Function IsIconic Lib "user32" (hWnd As HWND) As BOOL 746 819 Declare Function IsWindow Lib "user32" (hWnd As HWND) As BOOL … … 755 828 756 829 Declare Function KillTimer Lib "user32" (hWnd As HWND, nIDEvent As ULONG_PTR) As BOOL 757 Declare Function LoadBitmap Lib "user32" Alias "LoadBitmapA" (hInst As HINSTANCE, lpBitmapName As PCSTR) As HBITMAP830 Declare Function LoadBitmap Lib "user32" Alias _FuncName_LoadBitmap (hInst As HINSTANCE, pBitmapName As PCTSTR) As HBITMAP 758 831 759 832 Const IDC_ARROW = 32512 … … 773 846 Const IDC_APPSTARTING = 32650 774 847 Const IDC_HELP = 32651 775 Declare Function LoadCursor Lib "user32" Alias "LoadCursorA" (hInst As HINSTANCE, lpCursorName As PCSTR) As HCURSOR776 777 Declare Function LoadCursorFromFile Lib "user32" Alias "LoadCursorFromFileA" (lpFileName As PCSTR) As HCURSOR848 Declare Function LoadCursor Lib "user32" Alias _FuncName_LoadCursor (hInst As HINSTANCE, pCursorName As PCTSTR) As HCURSOR 849 850 Declare Function LoadCursorFromFile Lib "user32" Alias _FuncName_LoadCursorFromFile (pFileName As PCTSTR) As HCURSOR 778 851 779 852 Const IDI_APPLICATION = 32512 … … 783 856 Const IDI_ASTERISK = 32516 784 857 Const IDI_WINLOGO = 32517 785 Declare Function LoadIcon Lib "user32" Alias "LoadIconA" (hInst As HINSTANCE, lpIconName As PCSTR) As HICON858 Declare Function LoadIcon Lib "user32" Alias _FuncName_LoadIcon (hInst As HINSTANCE, pIconName As PCTSTR) As HICON 786 859 787 860 Const IMAGE_BITMAP = 0 … … 802 875 Const LR_COPYFROMRESOURCE = &H4000 803 876 Const LR_SHARED = &H8000 804 Declare Function LoadImage Lib "user32" Alias "LoadImageA" (hInst As HINSTANCE, lpszName As PCSTR, dwImageType As DWord, cxDesired As Long, cyDesired As Long, dwFlags As DWord) As HANDLE877 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 805 878 806 879 Declare Function LockWindowUpdate Lib "user32" (hWnd As HWND) As BOOL … … 842 915 Const MB_RTLREADING = &H00100000 843 916 #ifdef UNICODE 844 Declare Function MessageBox Lib "user32" Alias "MessageBoxW" (h Wnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long917 Declare Function MessageBox Lib "user32" Alias "MessageBoxW" (hwnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long 845 918 #else 846 Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (h Wnd As HWND, pText As PCSTR, pCaption As PCSTR, uType As DWord) As Long919 Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (hwnd As HWND, pText As PCSTR, pCaption As PCSTR, uType As DWord) As Long 847 920 #endif 848 921 Declare Function MessageBoxW Lib "user32" (hWnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long … … 865 938 Const PM_NOREMOVE = &H0000 866 939 Const PM_REMOVE = &H0001 867 Declare Function PeekMessage Lib "user32" Alias "PeekMessageA" (ByRef lpMsg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord, wRemoveMsg As DWord) As BOOL940 Declare Function PeekMessage Lib "user32" Alias _FuncName_PeekMessage (ByRef Msg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord, wRemoveMsg As DWord) As BOOL 868 941 869 942 Const HWND_BROADCAST = &HFFFF 870 Declare Function PostMessage Lib "user32" Alias "PostMessageA"(hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL943 Declare Function PostMessage Lib "user32" Alias _FuncName_PostMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL 871 944 872 945 Declare Sub PostQuitMessage Lib "user32" (nExitCode As Long) 873 Declare Function PostThreadMessage Lib "user32" Alias "PostThreadMessageA"(idThread As DWord, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL946 Declare Function PostThreadMessage Lib "user32" Alias _FuncName_PostThreadMessage (idThread As DWord, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL 874 947 875 948 Const RDW_INVALIDATE = &H0001 … … 888 961 889 962 Declare Function RegisterClassEx Lib "user32" Alias _FuncName_RegisterClassEx (ByRef wcx As WNDCLASSEX) As ATOM 890 Declare Function RegisterClipboardFormat Lib "user32" Alias "RegisterClipboardFormatA" (lpszFormat As PCSTR) As DWord891 Declare Function RegisterWindowMessage Lib "user32" Alias "RegisterWindowMessageA" (lpString As PCSTR) As DWord963 Declare Function RegisterClipboardFormat Lib "user32" Alias _FuncName_RegisterClipboardFormat (pszFormat As PCTSTR) As DWord 964 Declare Function RegisterWindowMessage Lib "user32" Alias _FuncName_RegisterWindowMessage (pString As PCTSTR) As DWord 892 965 Declare Function ReleaseCapture Lib "user32" () As BOOL 893 966 Declare Function ReleaseDC Lib "user32" (hWnd As HWND, hdc As HDC) As BOOL 894 967 Declare Function RemoveMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL 895 Declare Function RemoveProp Lib "user32" Alias "RemovePropA" (hWnd As HWND, lpString As PCSTR) As HANDLE968 Declare Function RemoveProp Lib "user32" Alias _FuncName_RemoveProp (hWnd As HWND, pString As PCTSTR) As HANDLE 896 969 Declare Function TranslateMessage Lib "user32" (ByRef lpMsg As MSG) As Long 897 970 Declare Function ScreenToClient Lib "user32" (hWnd As HWND, ByRef lpPoint As POINTAPI) As BOOL … … 903 976 Declare Function ScrollWindowEx Lib "user32" (hWnd As HWND, dx As Long, dy As Long, ByRef rcScroll As RECT, ByRef rcClip As RECT, hrgnUpdate As HRGN, ByRef rcUpdate As RECT, flags As DWord) As BOOL 904 977 905 Declare Function SendDlgItemMessage Lib "user32" Alias "SendDlgItemMessageA"(hDlg As HWND, nIDDlgItem As Long, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT906 Declare Function SendMessage Lib "user32" Alias "SendMessageA"(hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT907 Declare Function SendNotifyMessage Lib "user32" Alias "SendNotifyMessageA"(hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT978 Declare Function SendDlgItemMessage Lib "user32" Alias _FuncName_SendDlgItemMessage (hDlg As HWND, nIDDlgItem As Long, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 979 Declare Function SendMessage Lib "user32" Alias _FuncName_SendMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 980 Declare Function SendNotifyMessage Lib "user32" Alias _FuncName_SendNotifyMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 908 981 Declare Function SetActiveWindow Lib "user32" (hWnd As HWND) As HWND 909 Declare Function SetDlgItemText Lib "user32" Alias "SetDlgItemTextA" (hDlg As HWND, nIDDlgItem As Long, lpString As PCSTR) As BOOL982 Declare Function SetDlgItemText Lib "user32" Alias _FuncName_SetDlgItemText (hDlg As HWND, nIDDlgItem As Long, lpString As PCTSTR) As BOOL 910 983 Declare Function SetCapture Lib "user32" (hWnd As HWND) As HWND 911 984 Declare Function SetCaretPos Lib "user32" (x As Long, y As Long) As BOOL 912 985 913 986 #ifdef _WIN64 914 Declare Function SetClassLong Lib "user32" Alias "SetClassLongPtrA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR915 Declare Function SetClassLongPtr Lib "user32" Alias "SetClassLongPtrA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR987 Declare Function SetClassLong Lib "user32" Alias _FuncName_SetClassLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 988 Declare Function SetClassLongPtr Lib "user32" Alias _FuncName_SetClassLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 916 989 #else 917 Declare Function SetClassLong Lib "user32" Alias "SetClassLongA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR918 Declare Function SetClassLongPtr Lib "user32" Alias "SetClassLongA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR990 Declare Function SetClassLong Lib "user32" Alias _FuncName_SetClassLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 991 Declare Function SetClassLongPtr Lib "user32" Alias _FuncName_SetClassLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 919 992 #endif 920 993 … … 929 1002 Declare Function SetMenuContextHelpId Lib "user32" (hmenu As HMENU, dwContextHelpId As DWord) As BOOL 930 1003 Declare Function SetMenuDefaultItem Lib "user32" (hMenu As HMENU, uItem As DWord, fByPos As DWord) As BOOL 931 Declare Function SetMenuItemInfo Lib "user32" Alias "SetMenuItemInfoA" (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef lpmii As MENUITEMINFO) As BOOL1004 Declare Function SetMenuItemInfo Lib "user32" Alias _FuncName_SetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef mii As MENUITEMINFO) As BOOL 932 1005 Declare Function SetParent Lib "user32" (hWndChild As HWND, hWndNewParent As HWND) As HWND 933 Declare Function SetProp Lib "user32" Alias "SetPropA" (hWnd As HWND, pString As PCSTR, hData As HANDLE) As BOOL1006 Declare Function SetProp Lib "user32" Alias _FuncName_SetProp (hWnd As HWND, pString As PCTSTR, hData As HANDLE) As BOOL 934 1007 Declare Function SetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO, bRedraw As Long) As BOOL 935 1008 Declare Function SetSysColors Lib "user32" (cElements As Long, lpaElements As *DWord, lpaRgbValues As *DWord) As BOOL … … 941 1014 942 1015 #ifdef _WIN64 943 Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongPtrA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR944 Declare Function SetWindowLongPtr Lib "user32" Alias "SetWindowLongPtrA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR1016 Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 1017 Declare Function SetWindowLongPtr Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 945 1018 #else 946 Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR947 Declare Function SetWindowLongPtr Lib "user32" Alias "SetWindowLongA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR1019 Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 1020 Declare Function SetWindowLongPtr Lib "user32" Alias _FuncName_SetWindowLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 948 1021 #endif 949 1022 … … 972 1045 973 1046 Declare Function SetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bRedraw As BOOL) As BOOL 974 Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (hWnd As HWND, pString As PCSTR) As BOOL1047 Declare Function SetWindowText Lib "user32" Alias _FuncName_SetWindowText (hWnd As HWND, pString As PCTSTR) As BOOL 975 1048 Declare Function ShowCaret Lib "user32" (hWnd As HWND) As BOOL 976 1049 Declare Function ShowCursor Lib "user32" (bShow As Long) As BOOL … … 995 1068 Declare Function ShowWindowAsync Lib "user32" (hWnd As HWND, nCmdShow As Long) As BOOL 996 1069 997 Type NONCLIENTMETRICS 1070 Type NONCLIENTMETRICSW 998 1071 cbSize As DWord 999 1072 iBorderWidth As Long … … 1002 1075 iCaptionWidth As Long 1003 1076 iCaptionHeight As Long 1004 lfCaptionFont As LOGFONT 1077 lfCaptionFont As LOGFONTW 1005 1078 iSmCaptionWidth As Long 1006 1079 iSmCaptionHeight As Long 1007 lfSmCaptionFont As LOGFONT 1080 lfSmCaptionFont As LOGFONTW 1008 1081 iMenuWidth As Long 1009 1082 iMenuHeight As Long 1010 lfMenuFont As LOGFONT 1011 lfStatusFont As LOGFONT 1012 lfMessageFont As LOGFONT 1083 lfMenuFont As LOGFONTW 1084 lfStatusFont As LOGFONTW 1085 lfMessageFont As LOGFONTW 1013 1086 End Type 1087 Type NONCLIENTMETRICSA 1088 cbSize As DWord 1089 iBorderWidth As Long 1090 iScrollWidth As Long 1091 iScrollHeight As Long 1092 iCaptionWidth As Long 1093 iCaptionHeight As Long 1094 lfCaptionFont As LOGFONTA 1095 iSmCaptionWidth As Long 1096 iSmCaptionHeight As Long 1097 lfSmCaptionFont As LOGFONTA 1098 iMenuWidth As Long 1099 iMenuHeight As Long 1100 lfMenuFont As LOGFONTA 1101 lfStatusFont As LOGFONTA 1102 lfMessageFont As LOGFONTA 1103 End Type 1104 #ifdef 1105 TypeDef NONCLIENTMETRICS = NONCLIENTMETRICSW 1106 #else 1107 TypeDef NONCLIENTMETRICS = NONCLIENTMETRICSA 1108 #endif 1014 1109 Const SPI_GETBEEP = 1 1015 1110 Const SPI_SETBEEP = 2 … … 1141 1236 Const SPIF_SENDWININICHANGE = &H0002 1142 1237 Const SPIF_SENDCHANGE = SPIF_SENDWININICHANGE 1143 Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA"(uiAction As DWord, uiParam As DWord, pvParam As VoidPtr, fWinIni As DWord) As BOOL1238 Declare Function SystemParametersInfo Lib "user32" Alias _FuncName_SystemParametersInfo (uiAction As DWord, uiParam As DWord, pvParam As VoidPtr, fWinIni As DWord) As BOOL 1144 1239 1145 1240 Const TME_HOVER = &H00000001 … … 1172 1267 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 1173 1268 1174 Declare Function UnregisterClass Lib "user32" Alias "UnregisterClassA" (lpClassName As BytePtr, hInst As HINSTANCE) As BOOL1269 Declare Function UnregisterClass Lib "user32" Alias _FuncName_UnregisterClass (pClassName As PCTSTR, hinst As HINSTANCE) As BOOL 1175 1270 Declare Function UpdateWindow Lib "user32" (hWnd As HWND) As BOOL 1176 1271 Declare Function ValidateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL … … 1181 1276 Declare Function WindowFromDC Lib "user32" (hDC As HDC) As HWND 1182 1277 Declare Function WindowFromPoint Lib "user32" (ptX As Long, ptY As Long) As HWND 1183 Declare Function wsprintf cdecl Lib "user32" Alias "wsprintfA" (pText As PSTR, pFormat As PCSTR, ...) As Long1184 Declare Function wvsprintf Lib "user32" Alias "wvsprintfA" (pOutput As PSTR, pFormat As PCSTR, arglist As DWordPtr) As Long1278 Declare Function wsprintf cdecl Lib "user32" Alias _FuncName_wsprintf (pText As PTSTR, pFormat As PCTSTR, ...) As Long 1279 Declare Function wvsprintf Lib "user32" Alias _FuncName_wvsprintf (pOutput As PTSTR, pFormat As PCTSTR, arglist As DWordPtr) As Long 1185 1280 1186 1281 -
Include/api_wininet.sbp
r1 r141 5 5 #define _INC_WININET 6 6 7 #ifdef UNICODE 8 Const _FuncName_InternetOpen = "InternetOpenW" 9 Const _FuncName_InternetConnect = "InternetConnectW" 10 Const _FuncName_FtpGetFile = "FtpGetFileW" 11 Const _FuncName_FtpGetCurrentDirectory = "FtpGetCurrentDirectoryW" 12 Const _FuncName_FtpSetCurrentDirectory = "FtpSetCurrentDirectoryW" 13 Const _FuncName_FtpFindFirstFile = "FtpFindFirstFileW" 14 Const _FuncName_InternetFindNextFile = "InternetFindNextFileW" 15 #else 16 Const _FuncName_InternetOpen = "InternetOpenA" 17 Const _FuncName_InternetConnect = "InternetConnectA" 18 Const _FuncName_FtpGetFile = "FtpGetFileA" 19 Const _FuncName_FtpGetCurrentDirectory = "FtpGetCurrentDirectoryA" 20 Const _FuncName_FtpSetCurrentDirectory = "FtpSetCurrentDirectoryA" 21 Const _FuncName_FtpFindFirstFile = "FtpFindFirstFileA" 22 Const _FuncName_InternetFindNextFile = "InternetFindNextFileA" 23 #endif 7 24 8 25 TypeDef HINTERNET = VoidPtr … … 24 41 Const INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4 'prevent using java/script/INS 25 42 26 Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA"(27 lpszAgent As LPC STR,43 Declare Function InternetOpen Lib "wininet.dll" Alias _FuncName_InternetOpen ( 44 lpszAgent As LPCTSTR, 28 45 dwAccessType As DWord, 29 lpszProxy As LPC STR,30 lpszProxyBypass As LPC STR,46 lpszProxy As LPCTSTR, 47 lpszProxyBypass As LPCTSTR, 31 48 dwFlags As DWord) As HINTERNET 32 49 … … 44 61 Const INTERNET_DEFAULT_SOCKS_PORT = 1080 'default for SOCKS firewall servers. 45 62 46 Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA"(63 Declare Function InternetConnect Lib "wininet.dll" Alias _FuncName_InternetConnect ( 47 64 hInternet As HINTERNET, 48 lpszServerName As LPC STR,65 lpszServerName As LPCTSTR, 49 66 nServerPort As INTERNET_PORT, 50 lpszUserName As LPC STR,51 lpszPassword As LPC STR,67 lpszUserName As LPCTSTR, 68 lpszPassword As LPCTSTR, 52 69 dwService As DWord, 53 70 dwFlags As DWord, … … 62 79 '---------------- 63 80 64 Declare Function FtpGetFile Lib "wininet.dll" Alias "FtpGetFileA"(81 Declare Function FtpGetFile Lib "wininet.dll" Alias _FuncName_FtpGetFile ( 65 82 hConnect As HINTERNET, 66 lpszRemoteFile As LPC STR,67 lpszNewFile As LPC STR,83 lpszRemoteFile As LPCTSTR, 84 lpszNewFile As LPCTSTR, 68 85 fFailIfExists As BOOL, 69 86 dwFlagsAndAttributes As DWord, … … 71 88 dwContext As DWORD_PTR) As BOOL 72 89 73 Declare Function FtpGetCurrentDirectory Lib "wininet.dll" Alias "FtpGetCurrentDirectoryA"(90 Declare Function FtpGetCurrentDirectory Lib "wininet.dll" Alias _FuncName_FtpGetCurrentDirectory ( 74 91 hConnect As HINTERNET, 75 lpszCurrentDirectory As LP STR,92 lpszCurrentDirectory As LPTSTR, 76 93 lpdwCurrentDirectory As DWord) As BOOL 77 94 78 Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA"(95 Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias _FuncName_FtpSetCurrentDirectory ( 79 96 hConnect As HINTERNET, 80 lpszDirectory As LPC STR) As BOOL97 lpszDirectory As LPCTSTR) As BOOL 81 98 82 Declare Function FtpFindFirstFile Lib "wininet.dll" Alias "FtpFindFirstFileA"(99 Declare Function FtpFindFirstFile Lib "wininet.dll" Alias _FuncName_FtpFindFirstFile ( 83 100 hConnect As HINTERNET, 84 lpszSearchFile As LPC STR,85 lpFindFileData As LPWIN32_FIND_DATA,101 lpszSearchFile As LPCTSTR, 102 ByRef FindFileData As WIN32_FIND_DATA, 86 103 dwFlags As DWord, 87 104 dwContext As DWORD_PTR) As HINTERNET 88 105 89 Declare Function InternetFindNextFile Lib "wininet.dll" Alias "InternetFindNextFileA"(106 Declare Function InternetFindNextFile Lib "wininet.dll" Alias _FuncName_InternetFindNextFile ( 90 107 hFind As HINTERNET, 91 lpvFindData As VoidPtr) As BOOL108 ByREf vFindData As Any) As BOOL 92 109 93 110 -
Include/api_winspool.sbp
r1 r141 5 5 #define _INC_WINSPOOL 6 6 7 #ifdef UNICODE 8 Const _FuncName_EnumPrinters = "EnumPrintersW" 9 #else 10 Const _FuncName_EnumPrinters = "EnumPrintersA" 11 #endif 7 12 8 Type PRINTER_INFO_5 13 Type PRINTER_INFO_5W 14 pPrinterName As LPWSTR 15 pPortName As LPWSTR 16 Attributes As DWord 17 DeviceNotSelectedTimeout As DWord 18 TransmissionRetryTimeout As DWord 19 End Type 20 21 Type PRINTER_INFO_5A 9 22 pPrinterName As LPSTR 10 23 pPortName As LPSTR … … 14 27 End Type 15 28 29 #ifdef UNICODE 30 TypeDef PRINTER_INFO_5 = PRINTER_INFO_5W 31 #else 32 TypeDef PRINTER_INFO_5 = PRINTER_INFO_5A 33 #endif 16 34 17 Declare Function EnumPrinters Lib "winspool.drv" Alias "EnumPrintersA" (Flags As DWord, Name As LPSTR, Level As DWord, pPrinterEnum As *Byte, cbBuf As DWord, ByRef rer_cbNeeded As DWord, ByRef ref_cReturned As DWord) As BOOL35 Declare Function EnumPrinters Lib "winspool.drv" Alias _FuncName_EnumPrinters (Flags As DWord, Name As LPTSTR, Level As DWord, pPrinterEnum As *Byte, cbBuf As DWord, ByRef cbNeeded As DWord, ByRef cReturned As DWord) As BOOL 18 36 19 37 Const PRINTER_ENUM_DEFAULT = &H00000001
Note:
See TracChangeset
for help on using the changeset viewer.