Changeset 160 for Include/api_window.sbp


Ignore:
Timestamp:
Mar 13, 2007, 1:13:06 AM (17 years ago)
Author:
イグトランス (egtra)
Message:

API宣言の追加(主にフォーラムに投稿されたものより)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/api_window.sbp

    r141 r160  
    88' Window API Function Names
    99#ifdef UNICODE
    10 Const _FuncName_CreateWindowEx = "CreateWindowExW"
    1110Const _FuncName_CallWindowProc = "CallWindowProcW"
    1211Const _FuncName_CharLower = "CharLowerW"
     12Const _FuncName_CharNext = "CharNextW"
     13Const _FuncName_CharPrev = "CharPrevW"
    1314Const _FuncName_CharUpper = "CharUpperW"
     15Const _FuncName_CreateAcceleratorTable = "CreateAcceleratorTableW"
     16Const _FuncName_CreateWindowEx = "CreateWindowExW"
     17Const _FuncName_DefDlgProc = "DefDlgProcW"
    1418Const _FuncName_DefWindowProc = "DefWindowProcW"
     19Const _FuncName_DialogBoxIndirectParam = "DialogBoxIndirectParamW"
    1520Const _FuncName_DispatchMessage = "DispatchMessageW"
     21Const _FuncName_DlgDirList = "DlgDirListW"
     22Const _FuncName_DlgDirListComboBox = "DlgDirListComboBoxW"
     23Const _FuncName_DlgDirSelectComboBoxEx = "DlgDirSelectComboBoxExW"
     24Const _FuncName_DlgDirSelectEx = "DlgDirSelectExW"
    1625Const _FuncName_DrawText = "DrawTextW"
    1726Const _FuncName_DrawTextEx = "DrawTextExW"
     
    2433Const _FuncName_GetClipboardFormatName = "GetClipboardFormatNameW"
    2534Const _FuncName_GetDlgItemText = "GetDlgItemTextW"
     35Const _FuncName_GetMonitorInfo = "GetMonitorInfoW"
    2636Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoW"
    2737Const _FuncName_GetMessage = "GetMessageW"
     
    3141Const _FuncName_GetWindowText = "GetWindowTextW"
    3242Const _FuncName_GetWindowTextLength = "GetWindowTextLengthW"
     43Const _FuncName_GetWindowModuleFileName = "GetWindowModuleFileNameW"
    3344Const _FuncName_InsertMenuItem = "InsertMenuItemW"
    3445Const _FuncName_IsCharAlpha = "IsCharAlphaW"
     
    4253Const _FuncName_LoadIcon = "LoadIconW"
    4354Const _FuncName_LoadImage = "LoadImageW"
     55Const _FuncName_LoadString = "LoadStringW"
     56Const _FuncName_MapVirtualKey = "MapVirtualKeyW"
    4457Const _FuncName_PeekMessage = "PeekMessageW"
    4558Const _FuncName_PostMessage = "PostMessageW"
     
    5467Const _FuncName_SetDlgItemText = "SetDlgItemTextW"
    5568Const _FuncName_SetClassLong = "SetClassLongW"
    56 Const _FuncName_SetClassLong = "SetClassLongW"
     69Const _FuncName_SetClassLongPtr = "SetClassLongPtrW"
    5770Const _FuncName_SetMenuItemInfo = "SetMenuItemInfoW"
    5871Const _FuncName_SetProp = "SetPropW"
     
    6073Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrW"
    6174Const _FuncName_SetWindowText = "SetWindowTextW"
     75Const _FuncName_SetWindowsHookEx = "SetWindowsHookExW"
    6276Const _FuncName_SystemParametersInfo = "SystemParametersInfoW"
     77Const _FuncName_TranslateAccelerator = "TranslateAcceleratorW"
    6378Const _FuncName_UnregisterClass = "UnregisterClassW"
    6479Const _FuncName_wsprintf = "wsprintfW"
    6580Const _FuncName_wvsprintf = "wvsprintfW"
    6681#else
    67 Const _FuncName_CreateWindowEx = "CreateWindowExA"
    6882Const _FuncName_CallWindowProc = "CallWindowProcA"
    6983Const _FuncName_CharLower = "CharLowerA"
     84Const _FuncName_CharNext = "CharNextA"
     85Const _FuncName_CharPrev = "CharPrevA"
    7086Const _FuncName_CharUpper = "CharUpperA"
     87Const _FuncName_CreateAcceleratorTable = "CreateAcceleratorTableA"
     88Const _FuncName_CreateWindowEx = "CreateWindowExA"
     89Const _FuncName_DefDlgProc = "DefDlgProcA"
    7190Const _FuncName_DefWindowProc = "DefWindowProcA"
     91Const _FuncName_DialogBoxIndirectParam = "DialogBoxIndirectParamA"
    7292Const _FuncName_DispatchMessage = "DispatchMessageA"
     93Const _FuncName_DlgDirList = "DlgDirListA"
     94Const _FuncName_DlgDirListComboBox = "DlgDirListComboBoxA"
     95Const _FuncName_DlgDirSelectComboBoxEx = "DlgDirSelectComboBoxExA"
     96Const _FuncName_DlgDirSelectEx = "DlgDirSelectExA"
    7397Const _FuncName_DrawText = "DrawTextA"
    7498Const _FuncName_DrawTextEx = "DrawTextExA"
     
    83107Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoA"
    84108Const _FuncName_GetMessage = "GetMessageA"
     109Const _FuncName_GetMonitorInfo = "GetMonitorInfoA"
    85110Const _FuncName_GetProp = "GetPropA"
    86111Const _FuncName_GetWindowLong = "GetWindowLongA"
     
    88113Const _FuncName_GetWindowText = "GetWindowTextA"
    89114Const _FuncName_GetWindowTextLength = "GetWindowTextLengthA"
     115Const _FuncName_GetWindowModuleFileName = "GetWindowModuleFileNameA"
    90116Const _FuncName_InsertMenuItem = "InsertMenuItemA"
    91117Const _FuncName_IsCharAlpha = "IsCharAlphaA"
     
    99125Const _FuncName_LoadIcon = "LoadIconA"
    100126Const _FuncName_LoadImage = "LoadImageA"
     127Const _FuncName_LoadString = "LoadStringA"
     128Const _FuncName_MapVirtualKey = "MapVirtualKeyA"
    101129Const _FuncName_PeekMessage = "PeekMessageA"
    102130Const _FuncName_PostMessage = "PostMessageA"
     
    116144Const _FuncName_SetWindowLong = "SetWindowLongA"
    117145Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrA"
     146Const _FuncName_SetWindowsHookEx = "SetWindowsHookExA"
    118147Const _FuncName_SetWindowText = "SetWindowTextA"
    119148Const _FuncName_SystemParametersInfo = "SystemParametersInfoA"
     149Const _FuncName_TranslateAccelerator = "TranslateAcceleratorA"
    120150Const _FuncName_UnregisterClass = "UnregisterClassA"
    121151Const _FuncName_wsprintf = "wsprintfA"
     
    123153#endif
    124154
    125 Const CREATEPROCESS_MANIFEST_RESOURCE_ID = 1
    126 
     155Type _System_DeclareHandle_HDWP:unused As DWord:End Type
     156TypeDef HDWP = *_System_DeclareHandle_HDWP
    127157
    128158Type MSG
     
    135165End Type
    136166
    137 
    138 Const MAKEINTRESOURCEW(i) = i As PCWSTR
    139 Const MAKEINTRESOURCEA(i) = i As PCSTR
    140 Const MAKEINTRESOURCE(i) = i As PCTSTR
    141 
    142 TypeDef WNDENUMPROC = *Function(ByVal hwnd As HWND, ByVal lParam As LPARAM) As BOOL
     167Const IS_INTRESOURCE(_r) = ((((_r) As ULONG_PTR) >> 16) = 0)
     168Const MAKEINTRESOURCEW(i) = ((((i) As Word) As ULONG_PTR) As PCWSTR)
     169Const MAKEINTRESOURCEA(i) = ((((i) As Word) As ULONG_PTR) As PCSTR)
     170Const MAKEINTRESOURCE(i) = ((((i) As Word) As ULONG_PTR) As PCTSTR)
     171
     172Const RT_CURSOR = MAKEINTRESOURCE(1)
     173Const RT_BITMAP = MAKEINTRESOURCE(2)
     174Const RT_ICON = MAKEINTRESOURCE(3)
     175Const RT_MENU = MAKEINTRESOURCE(4)
     176Const RT_DIALOG = MAKEINTRESOURCE(5)
     177Const RT_STRING = MAKEINTRESOURCE(6)
     178Const RT_FONTDIR = MAKEINTRESOURCE(7)
     179Const RT_FONT = MAKEINTRESOURCE(8)
     180Const RT_ACCELERATOR = MAKEINTRESOURCE(9)
     181Const RT_RCDATA = MAKEINTRESOURCE(10)
     182Const RT_MESSAGETABLE = MAKEINTRESOURCE(11)
     183
     184Const DIFFERENCE = 11
     185Const RT_GROUP_CURSOR = MAKEINTRESOURCE((RT_CURSOR) As ULONG_PTR + DIFFERENCE)
     186Const RT_GROUP_ICON = MAKEINTRESOURCE((RT_ICON) As ULONG_PTR + DIFFERENCE)
     187Const RT_VERSION = MAKEINTRESOURCE(16)
     188Const RT_DLGINCLUDE = MAKEINTRESOURCE(17)
     189Const RT_PLUGPLAY = MAKEINTRESOURCE(19)
     190Const RT_VXD = MAKEINTRESOURCE(20)
     191Const RT_ANICURSOR = MAKEINTRESOURCE(21)
     192Const RT_ANIICON = MAKEINTRESOURCE(22)
     193Const RT_HTML = MAKEINTRESOURCE(23)
     194Const RT_MANIFEST = MAKEINTRESOURCE(24)
     195Const CREATEPROCESS_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(1)
     196Const ISOLATIONAWARE_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(2)
     197Const ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(3)
     198Const MINIMUM_RESERVED_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(1)
     199Const MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(16)
     200
     201TypeDef WNDENUMPROC = *Function(hwnd As HWND, lParam As LPARAM) As BOOL
     202TypeDef HOOKPROC = *Function(code As Long, wParam As WPARAM, lParam As LPARAM) As LRESULT
     203TypeDef MONITORENUMPROC = *Function(hm As HMONITOR, hdc As HDC, ByRef rc As RECT, dwData As LPARAM) As BOOL
    143204
    144205Const CS_VREDRAW =         &H0001
     
    373434
    374435Declare Function BringWindowToTop Lib "user32" (hWnd As HWND) As Long
     436Declare Function CallNextHookEx Lib "user32" (hHook As HHOOK, nCode As Long, wParam As WPARAM, lParam As LPARAM) As LRESULT
    375437Declare Function CallWindowProc Lib "user32" Alias _FuncName_CallWindowProc (lpPrevWndFunc As WNDPROC, hWnd As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
     438Declare Function ChangeClipboardChain Lib "user32" (hwndRemove As HWND, hwndNewNext As HWND) As BOOL
    376439Declare Function CharLower Lib "user32" Alias _FuncName_CharLower (psz As PTSTR) As DWord
     440Declare Function CharNext Lib "user32" Alias _FuncName_CharNext (lpszCurrent As LPCTSTR) As LPTSTR
     441Declare Function CharNextExA Lib "user32" (CodePage As Word, lpCurrentChar As LPCSTR, dwFlags As DWord) As LPSTR
     442Declare Function CharPrev Lib "user32" Alias _FuncName_CharPrev (lpszStart As LPCTSTR, lpszCurrent As LPCTSTR) As LPTSTR
     443Declare Function CharPrevExA Lib "user32" (CodePage As Word, lpStart As LPCSTR, lpCurrentChar As LPCSTR, dwFlags As DWord) As LPSTR
    377444Declare Function CharUpper Lib "user32" Alias _FuncName_CharUpper (psz As PTSTR) As DWord
    378445Declare Function CheckMenuItem Lib "user32" (hMenu As HMENU, uIDCheckItem As DWord, uCheck As DWord) As DWord
    379446Declare Function CheckMenuRadioItem Lib "user32" (hMenu As HMENU, idFirst As DWord, idLast As DWord, idCheck As DWord, uFlags As DWord) As BOOL
     447Declare Function CheckDlgButton Lib "user32" (hDlg As HWND, nIDButton As Long, uCheck As DWord) As BOOL
     448Declare Function CheckRadioButton Lib "user32" (hDlg As HWND, nIDFirstButton As Long, nIDLastButton As Long, nIDCheckButton As Long) As BOOL
    380449Declare Function ChildWindowFromPoint Lib "user32" (hWndParent As HWND, x As Long, y As Long) As HWND
    381 
    382450Const CWP_ALL =             &H0000
    383451Const CWP_SKIPINVISIBLE =   &H0001
     
    392460Declare Function CopyImage Lib "user32" (hImage As HANDLE, uType As DWord, cxDesired As Long, cyDesired As Long, fuFlags As DWord) As HANDLE
    393461Declare Function CountClipboardFormats Lib "user32" () As Long
     462Const FVIRTKEY = &H01
     463Const FNOINVERT = &H02
     464Const FSHIFT = &H04
     465Const FCONTROL = &H08
     466Const FALT = &H10
     467Type ACCEL
     468    fVirt As Byte
     469    key As Word
     470    cmd As Word
     471End Type
     472Declare Function CreateAcceleratorTable Lib "user32" Alias _FuncName_CreateAcceleratorTable (ByRef acl As ACCEL, i As Long) As HACCEL
    394473Declare Function CreateCaret Lib "user32" (hWnd As HWND, hBitmap As HBITMAP, nWidth As Long, nHeight As Long) As BOOL
    395474Declare Function CreateCursor Lib "user32" (hInst As HINSTANCE, xHotSpot As Long, yHotSpot As Long, nWidth As Long, nHeight As Long, pvANDPlane As VoidPtr, pvXORPlane As VoidPtr) As HCURSOR
     
    411490Declare 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
    412491
     492Declare Function DefDlgProc Lib "user32" Alias _FuncName_DefWindowProc (hDlg As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
    413493Declare Function DefWindowProc Lib "user32" Alias _FuncName_DefWindowProc (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
    414494Declare Function DeleteMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL
     495Declare Function DestroyAcceleratorTable Lib "user32" (hAccel As HACCEL) As BOOL
    415496Declare Function DestroyCaret Lib "user32" () As BOOL
    416497Declare Function DestroyCursor Lib "user32" (hCursor As HCURSOR) As BOOL
     
    418499Declare Function DestroyMenu Lib "user32" (hMenu As HMENU) As BOOL
    419500Declare Function DestroyWindow Lib "user32" (hWnd As HWND) As BOOL
     501Type DLGITEMTEMPLATE
     502    style As DWord
     503    dwExtendedStyle As DWord
     504    x As Integer
     505    y As Integer
     506    cx As Integer
     507    cy As Integer
     508    id As Word
     509End Type
     510Type DLGTEMPLATE
     511    style As DWord
     512    dwExtendedStyle As DWord
     513    cdit As Word
     514    x As Integer
     515    y As Integer
     516    cx As Integer
     517    cy As Integer
     518End Type
     519Declare Function DialogBoxIndirectParam Lib "user32" Alias _FuncName_DialogBoxIndirectParam (hInstance As HINSTANCE, DialogTemplate As *DLGTEMPLATE, hwndParent As HWND, pDialogFunc As DLGPROC, InitParam As LPARAM) As LONG_PTR
    420520Declare Function DispatchMessage Lib "user32" Alias _FuncName_DispatchMessage (ByRef Msg As MSG) As LRESULT
    421 
     521Declare Function DlgDirList Lib "user32" Alias _FuncName_DlgDirList (hDlg As HWND, lpPathSpec As LPTSTR, nIDListBox As Long, nIDStaticPath As Long, uFileType As DWord) As Long
     522Declare Function DlgDirListComboBox Lib "user32" Alias _FuncName_DlgDirListComboBox (hDlg As HWND, lpPathSpec As LPTSTR, nIDComboBox As Long, nIDStaticPath As Long,uFileType As DWord) As Long
     523Declare Function DlgDirSelectComboBoxEx Lib "user32" Alias _FuncName_DlgDirSelectComboBoxEx (hDlg As HWND, lpString As LPTSTR, nCount As Long, nIDComboBox As Long) As BOOL
     524Declare Function DlgDirSelectEx Lib "user32" Alias _FuncName_DlgDirSelectEx (hDlg As HWND, lpString As LPTSTR, nCount As Long, nIDListBox As Long) As BOOL
    422525Const BDR_RAISEDOUTER = &H0001
    423526Const BDR_SUNKENOUTER = &H0002
     
    545648
    546649Declare Function EnableWindow Lib "user32" (hWnd As HWND, bEnable As BOOL) As BOOL
     650Declare Function EndDialogAPI Lib "user32" Alias "EndDialog" (hwndDlg As HWND, nRet As Long) As BOOL
    547651Declare Function EndPaint Lib "user32" (hWnd As HWND, ByRef lpPaint As PAINTSTRUCT) As BOOL
    548652Declare Function EnumClipboardFormats Lib "user32" (uFormat As DWord) As DWord
    549653Declare Function EnumChildWindows Lib "user32" (hwndParent As HWND, pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
     654Declare Function EnumDisplayMonitors Lib "user32.dll" (ByVal hdc As HDC, lprcClip As *RECT, ByVal lpfnEnum As MONITORENUMPROC, dwData As LPARAM) As BOOL
    550655Declare Function EnumThreadWindows Lib "user32" (dwThreadId As DWord, pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
    551656Declare Function EnumWindows Lib "user32" (pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
     657Declare Function ExitWindowsEx Lib "user32" (uFlags As DWord, dwReserved As DWord) As BOOL
    552658Declare Function FillRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As BOOL
    553659Declare Function FindWindow Lib "user32" Alias _FuncName_FindWindow (pClassName As PCTSTR, lpWindowName As PCTSTR) As HWND
    554660Declare Function FindWindowEx Lib "user32" Alias _FuncName_FindWindowEx (hwndParent As HWND, hwndChildAfter As HWND, pszClass As PCTSTR, pszWindow As PCTSTR) As HWND
    555661Declare Function FlashWindow Lib "user32" (hWnd As HWND, bInvert As BOOL) As BOOL
     662Const FLASHW_STOP = 0
     663Const FLASHW_CAPTION = 1
     664Const FLASHW_TRAY = 2
     665Const FLASHW_ALL = (FLASHW_CAPTION Or FLASHW_TRAY)
     666Const FLASHW_TIMER = 4
     667Const FLASHW_TIMERNOFG = 12
     668Type FLASHWINFO
     669    cbSize As DWord
     670    hWnd As HWND
     671    dwFlags As DWord
     672    uCount As DWord
     673    dwTimeout As DWord
     674End Type
     675Declare Function FlashWindowEx Lib "user32" (ByRef fwi As FLASHWINFO) As Long
    556676Declare Function FrameRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As Long
    557677Declare Function GetActiveWindow Lib "user32" () As HWND
     
    584704Declare Function GetClipboardData Lib "user32" (uFormat As DWord) As HANDLE
    585705Declare Function GetClipboardFormatName Lib "user32" Alias _FuncName_GetClipboardFormatName (uFormat As DWord, pszFormatName As PTSTR, cchMaxCount As Long) As BOOL
     706Declare Function GetClipboardOwner Lib "user32" () As HWND
     707Declare Function GetClipboardViewer Lib "user32" () As HWND
    586708Declare Function GetClipCursor Lib "user32" (ByRef lpRect As RECT) As BOOL
    587709Declare Function GetCursor Lib "user32" () As HCURSOR
     
    604726
    605727Declare Function GetDesktopWindow Lib "user32" () As HWND
     728Declare Function GetDialogBaseUnits Lib "user32" () As Long
    606729Declare Function GetDlgCtrlID Lib "user32" (hWnd As HWND) As Long
    607730Declare Function GetDlgItem Lib "user32" (hDlg As HWND, nIDDlgItem As Long) As HWND
     731Declare Function GetDlgItemInt Lib "user32" (hDlg As HWND, nIDDlgItem As Long, lpTranslated As *BOOL, bSigned As BOOL) As DWord
    608732Declare Function GetDlgItemText Lib "user32" Alias _FuncName_GetDlgItemText (hDlg As HWND, nIDDlgItem As Long, pString As PTSTR, nMaxCount As Long) As Long
    609733Declare Function GetDoubleClickTime Lib "user32" () As DWord
     
    613737Declare Function GetKeyboardState Lib "user32" (lpKeyState As *Byte) As BOOL
    614738Declare Function GetKeyState Lib "user32" (nVirtKey As Long) As Integer
     739Declare Function GetListBoxInfo Lib "user32" (ByVal hwnd As HWND) As DWord
    615740Declare Function GetMenu Lib "user32" (hWnd As HWND) As HMENU
    616741
     
    624749Declare Function GetMenuItemInfo Lib "user32" Alias _FuncName_GetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As DWord, ByRef mii As MENUITEMINFO) As BOOL
    625750Declare Function GetMessage Lib "user32" Alias _FuncName_GetMessage (ByRef Msg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord) As Long
     751Const CCHDEVICENAME = 32
     752Type MONITORINFO
     753    cbSize As DWord
     754    rcMonitor As RECT
     755    rcWork As RECT
     756    dwFlags As DWord
     757End Type
     758Type MONITORINFOEXA
     759    cbSize As DWord
     760    rcMonitor As RECT
     761    rcWork As RECT
     762    dwFlags As DWord
     763    szDevice[ELM(CCHDEVICENAME)] As SByte
     764End Type
     765Type MONITORINFOEXW
     766    cbSize As DWord
     767    rcMonitor As RECT
     768    rcWork As RECT
     769    dwFlags As DWord
     770    szDevice[ELM(CCHDEVICENAME)] As WCHAR
     771End Type
     772Declare Function GetMonitorInfo Lib "user32.dll" Alias _FuncName_GetMonitorInfo (hMonitor As HMONITOR, ByRef mi As Any /*MONITORINFO*/) As BOOL
     773Declare Function GetNextDlgGroupItem Lib "user32" (hDlg As HWND, hCtl As HWND, bPrevious As BOOL) As HWND
     774Declare Function GetNextDlgTabItem Lib "user32" (hDlg As HWND, hCtl As HWND, bPrevious As BOOL) As HWND
     775Declare Function GetOpenClipboardWindow Lib "user32" () As HWND
    626776Declare Function GetParent Lib "user32" (hWnd As HWND) As HWND
     777Declare Function GetPriorityClipboardFormat Lib "user32" (lpFormatList As *DWord, FormatNum As Long) As Long
    627778Declare Function GetProp Lib "user32" Alias _FuncName_GetProp (hWnd As HWND, pString As PCTSTR) As HANDLE
    628779Declare Function GetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO) As BOOL
     
    787938Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR
    788939#endif
     940Declare Function GetWindowModuleFileName Lib "user32" Alias _FuncName_GetWindowModuleFileName (hwnd As HWND, pszFileName As LPTSTR, cchFileNameMax As DWord) As DWord
    789941
    790942Const WPF_SETMINPOSITION =     &H0001
     
    815967Declare Function IsCharUpper Lib "user32" Alias _FuncName_IsCharUpper (ch As TCHAR) As BOOL
    816968Declare Function IsChild Lib "user32" (hWndParent As HWND, hWnd As HWND) As BOOL
     969Declare Function IsClipboardFormatAvailable Lib "user32" (ByVal wFormat As DWord) As BOOL
    817970Declare Function IsDialogMessage Lib "user32" Alias _FuncName_IsDialogMessage (hDlg As HWND, ByRef msg As MSG) As BOOL
     971Declare Function IsDlgButtonChecked Lib "user32" (hDlg As HWND, nIDButton As Long) As DWord
    818972Declare Function IsIconic Lib "user32" (hWnd As HWND) As BOOL
    819973Declare Function IsWindow Lib "user32" (hWnd As HWND) As BOOL
     
    8761030Const LR_SHARED =           &H8000
    8771031Declare Function LoadImage Lib "user32" Alias _FuncName_LoadImage (hinst As HINSTANCE, pszName As PCTSTR, dwImageType As DWord, cxDesired As Long, cyDesired As Long, dwFlags As DWord) As HANDLE
    878 
     1032Declare Function LoadString Lib "user32" Alias _FuncName_LoadString (hInstance As HINSTANCE, uID As DWord, lpBuffer As LPTSTR, nBufferMax As Long) As Long
    8791033Declare Function LockWindowUpdate Lib "user32" (hWnd As HWND) As BOOL
     1034Declare Function MapVirtualKey Lib "user32" Alias _FuncName_MapVirtualKey (wCode As DWord, wMapType As DWord) As DWord
    8801035Declare Function MapWindowPoints Lib "user32" (
    8811036    hWndFrom As HWND,
     
    9451100Declare Sub PostQuitMessage Lib "user32" (nExitCode As Long)
    9461101Declare Function PostThreadMessage Lib "user32" Alias _FuncName_PostThreadMessage (idThread As DWord, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL
     1102Declare Function RealChildWindowFromPoint Lib "user32" (hwndParent As HWND, xPoint As Long, yPoint As Long) As HWND
    9471103
    9481104Const RDW_INVALIDATE =        &H0001
     
    9621118Declare Function RegisterClassEx Lib "user32" Alias _FuncName_RegisterClassEx (ByRef wcx As WNDCLASSEX) As ATOM
    9631119Declare Function RegisterClipboardFormat Lib "user32" Alias _FuncName_RegisterClipboardFormat (pszFormat As PCTSTR) As DWord
     1120Declare Function RegisterHotKey lib "user32.dll" (hwnd As HWND, id As Long, dwModufuers As DWord, vk As DWord) As BOOL
    9641121Declare Function RegisterWindowMessage Lib "user32" Alias _FuncName_RegisterWindowMessage (pString As PCTSTR) As DWord
    9651122Declare Function ReleaseCapture Lib "user32" () As BOOL
     
    9671124Declare Function RemoveMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL
    9681125Declare Function RemoveProp Lib "user32" Alias _FuncName_RemoveProp (hWnd As HWND, pString As PCTSTR) As HANDLE
    969 Declare Function TranslateMessage Lib "user32" (ByRef lpMsg As MSG) As Long
    970 Declare Function ScreenToClient Lib "user32" (hWnd As HWND, ByRef lpPoint As POINTAPI) As BOOL
     1126Declare Function TranslateAccelerator Lib "user32" Alias _FuncName_TranslateAccelerator (hwnd As HWND, hAccTable As HACCEL, ByRef msg As MSG) As Long
     1127Declare Function TranslateMessage Lib "user32" (ByRef msg As MSG) As Long
     1128Declare Function ScreenToClient Lib "user32" (hWnd As HWND, ByRef Point As POINTAPI) As BOOL
    9711129Declare Function ScrollDC Lib "user32" (hdc As HDC, dx As Long, dy As Long, ByRef rcScroll As RECT, ByRef rcClip As RECT, hrgnUpdate As HRGN, ByRef rcUpdate As RECT) As BOOL
    9721130
     
    9801138Declare Function SendNotifyMessage Lib "user32" Alias _FuncName_SendNotifyMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
    9811139Declare Function SetActiveWindow Lib "user32" (hWnd As HWND) As HWND
     1140Declare Function SetDlgItemInt Lib "user32" (hDlg As HWND, nIDDlgItem As Long, uValue As DWord, bSigned As BOOL) As BOOL
    9821141Declare Function SetDlgItemText Lib "user32" Alias _FuncName_SetDlgItemText (hDlg As HWND, nIDDlgItem As Long, lpString As PCTSTR) As BOOL
    9831142Declare Function SetCapture Lib "user32" (hWnd As HWND) As HWND
     
    9931152
    9941153Declare Function SetClipboardData Lib "user32" (uFormat As DWord, hMem As HANDLE) As HANDLE
     1154Declare Function SetClipboardViewer Lib "user32" (ByVal hWndNewViewer As HWND) As HWND
    9951155Declare Function SetCursor Lib "user32" (hCursor As HCURSOR) As HCURSOR
    9961156Declare Function SetCursorPos Lib "user32" (x As Long, y As Long) As BOOL
     
    10051165Declare Function SetParent Lib "user32" (hWndChild As HWND, hWndNewParent As HWND) As HWND
    10061166Declare Function SetProp Lib "user32" Alias _FuncName_SetProp (hWnd As HWND, pString As PCTSTR, hData As HANDLE) As BOOL
     1167Declare Function SetRect Lib "User32" (ByRef rc As RECT, xLeft As Long, yTop As Long, xRight As Long, yBottom As Long) As Long
    10071168Declare Function SetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO, bRedraw As Long) As BOOL
    10081169Declare Function SetSysColors Lib "user32" (cElements As Long, lpaElements As *DWord, lpaRgbValues As *DWord) As BOOL
     
    10121173
    10131174Declare Function SetWindowContextHelpId Lib "user32"(hwnd As HWND, dwContextHelpId As DWord) As BOOL
    1014 
    10151175#ifdef _WIN64
    10161176Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
     
    10451205
    10461206Declare Function SetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bRedraw As BOOL) As BOOL
     1207Declare Function SetWindowsHookEx Lib "user32" Alias _FuncName_SetWindowsHookEx (idHook As Long, lpfn As HOOKPROC, hMod As HINSTANCE, dwThreadId As DWord) As HHOOK
    10471208Declare Function SetWindowText Lib "user32" Alias _FuncName_SetWindowText (hWnd As HWND, pString As PCTSTR) As BOOL
    10481209Declare Function ShowCaret Lib "user32" (hWnd As HWND) As BOOL
     
    12671428Declare 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
    12681429
     1430declare function UnhookWindowsHookEx lib "user32" (ByVal hhk As HHOOK) As BOOL
    12691431Declare Function UnregisterClass Lib "user32" Alias _FuncName_UnregisterClass (pClassName As PCTSTR, hinst As HINSTANCE) As BOOL
     1432Declare Function UnregisterHotKey Lib "user32" (hwnd As HWND, id As Long) As BOOL
    12701433Declare Function UpdateWindow Lib "user32" (hWnd As HWND) As BOOL
    12711434Declare Function ValidateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL
Note: See TracChangeset for help on using the changeset viewer.