WindowsAPI: Konstanten und Types

Übersicht BlitzBasic DLLs und Userlibs

Neue Antwort erstellen

Nicdel

Betreff: WindowsAPI: Konstanten und Types

BeitragMi, Sep 09, 2009 12:43
Antworten mit Zitat
Benutzer-Profile anzeigen
Ich hab mir mal die Mühe gemacht den Inhalt der winuser.h nach BlitzBasic zu übersetzen. In der winuser.h stehen die meisten Konstanten der WindowsAPI und einige zugehörige Types. Viel Spaß damit!

Die Decls:
Code: [AUSKLAPPEN]
.lib "user32.dll"


ActivateKeyboardLayout% (HKL%, flags%) : "ActivateKeyboardLayout"
AdjustWindowRect% (lpRect*, dwStyle%, bMenu%) : "AdjustWindowRect"
AdjustWindowRectEx% (lpRect*, dsStyle%, bMenu%, dwEsStyle%) : "AdjustWindowRectEx"
AnimateWindow%(hwnd%, time%, ani%) : "AnimateWindow"
AnyPopup% () : "AnyPopup"
AppendMenu% (hMenu%, wFlags%, wIDNewItem%, lpNewItem*) : "AppendMenuA"
ArrangeIconicWindows% (hwnd%) : "ArrangeIconicWindows"
AttachThreadInput% (idAttach%, idAttachTo%, fAttach%) : "AttachThreadInput"
BeginDeferWindowPos% (nNumWindows%) : "BeginDeferWindowPos"
BeginPaint% (hwnd%, lpPaint*) : "BeginPaint"
BringWindowToTop% (hwnd%) : "BringWindowToTop"
BroadcastSystemMessage% (dw%, pdw%, un%, wParam%, lParam%) : "BroadcastSystemMessage"
CallMsgFilter% (lpMsg*, ncode%) : "CallMsgFilterA"
CallNextHookEx% (hHook%, ncode%, wParam%, lParam*) : "CallNextHookEx"
CallWindowProc% (lpPrevWndFunc%, hWnd%, Msg%, wParam%, lParam%) : "CallWindowProcA"
CascadeWindows% (hwndParent%, wHow%, lpRect*, cKids%, lpkids%) : "CascadeWindows"
ChangeClipboardChain% (hwnd%, hWndNext%) : "ChangeClipboardChain"
ChangeMenu% (hMenu%, cmd%, lpszNewItem$, cmdInsert%, flags%) : "ChangeMenuA"
CharLower$ (lpsz$) : "CharLowerA"
CharLowerBuff% (lpsz$, cchLength%) : "CharLowerBuffA"
CharNext$ (lpsz$) : "CharNextA"
CharPrev$ (lpszStart$, lpszCurrent$) : "CharPrevA"
CharToOem% (lpszSrc$, lpszDst$) : "CharToOemA"
CharToOemBuff% (lpszSrc$, lpszDst$, cchDstLength%) : "CharToOemBuffA"
CharUpper$ (lpsz$) : "CharUpperA"
CharUpperBuff% (lpsz$, cchLength%) : "CharUpperBuffA"
CheckDlgButton% (hDlg%, nIDButton%, wCheck%) : "CheckDLGButtonA"
CheckMenuItem% (hMenu%, wIDCheckItem%, wCheck%) : "CheckMenuItem"
CheckMenuRadioItem% (hMenu%, un1%, un2%, un3%, un4%) : "CheckMenuRadioItem"
CheckRadioButton% (hDlg%, nIDFirstButton%, nIDLastButton%, nIDCheckButton%) : "CheckRadioButtonA"
ChildWindowFromPoint% (hWnd%, xPoint%, yPoint%) : "ChildWindowFromPoint"
ChildWindowFromPointEx% (hWnd%, pt*, un%) : "ChildWindowFromPointEx"
ClientToScreen% (hwnd%, lpPoint*) : "ClientToScreen"
ClipCursor% (lpRect*) : "ClipCursor"
CloseClipboard% () : "CloseClipboard"
CloseDesktop% (hDesktop%) : "CloseDesktop"
CloseWindow% (hwnd%) : "CloseWindow"
CloseWindowStation% (hWinSta%) : "CloseWindowStation"
CopyAcceleratorTable% (hAccelSrc%, lpAccelDst*, cAccelEntries%) : "CopyAcceleratorTableA"
CopyCursor% (hcur%) : "CopyCursor"
CopyIcon% (hIcon%) : "CopyIcon"
CopyImage% (handle%, un1%, n1%, n2%, un2%) : "CopyImage"
CopyRect% (lpDestRect*, lpSourceRect*) : "CopyRect"
CountClipboardFormats% () : "CountClipboardFormats"
CreateAcceleratorTable% (lpaccl*, cEntries%) : "CreateAcceleratorTableA"
CreateCaret% (hwnd%, hBitmap%, nWidth%, nHeight%) : "CreateCaret"
CreateCursor% (hInstance%, nXhotspot%, nYhotspot%, nWidth%, nHeight%, lpANDbitPlane*, lpXORbitPlane*) : "CreateCursor"
CreateDesktop% (lpszDesktop$, lpszDevice$, pDevmode*, dwFlags%, dwDesiredAccess%, lpsa*) : "CreateDesktopA"
CreateDialogIndirectParam% (hInstance%, lpTemplate*, hWndParent%, lpDialogFunc%, dwInitParam%) : "CreateDialogIndirectParamA"
CreateDialogParam% (hInstance%, lpName$, hWndParent%, lpDialogFunc%, lParamInit%) : "CreateDialogParamA"
CreateIcon% (hInstance%, nWidth%, nHeight%, nPlanes%, nBitsPixel%, lpANDbits%, lpXORbits%) : "CreateIcon"
CreateIconFromResource% (presbits%, dwResSize%, fIcon%, dwVer%) : "CreateIconFromResource"
CreateIconIndirect% (piconinfo*) : "CreateIconIndirect"
CreateMDIWindow% (lpClassName$, lpWindowName$, dwStyle%, x%, y%, nWidth%, nHeight%, hWndParent%, hInstance%, lParam%) : "CreateMDIWindowA"
CreateMenu% () : "CreateMenu"
CreatePopupMenu% () : "CreatePopupMenu"
CreateWindowEx% (dwExStyle%, lpClassName$, lpWindowName$, dwStyle%, x%, y%, nWidth%, nHeight%, hWndParent%, hMenu%, hInstance%, lpParam*) : "CreateWindowExA"
DdeAbandonTransaction% (idInst%, hConv%, idTransaction%) : "DdeAbandonTransaction"
DdeAccessData% (hData%, pcbDataSize%) : "DdeAccessDataA"
DdeAddData% (hData%, pSrc%, cb%, cbOff%) : "DdeAddDataA"
DdeClientTransaction% (pData%, cbData%, hConv%, hszItem%, wFmt%, wType%, dwTimeout%, pdwResult%) : "DdeClientTransaction"
DdeCmpStringHandles% (hsz1%, hsz2%) : "DdeCmpStringHandles"
DdeConnect% (idInst%, hszService%, hszTopic%, pCC*) : "DdeConnect"
DdeConnectList% (idInst%, hszService%, hszTopic%, hConvList%, pCC*) : "DdeConnectList"
DdeCreateDataHandle% (idInst%, pSrc%, cb%, cbOff%, hszItem%, wFmt%, afCmd%) : "DdeCreateDataHandle"
DdeCreateStringHandle% (idInst%, psz$, iCodePage%) : "DdeCreateStringHandleA"
DdeDisconnect% (hConv%) : "DdeDisconnect"
DdeDisconnectList% (hConvList%) : "DdeDisconnectList"
DdeEnableCallback% (idInst%, hConv%, wCmd%) : "DdeEnableCallback"
DdeFreeDataHandle% (hData%) : "DdeFreeDataHandle"
DdeFreeStringHandle% (idInst%, hsz%) : "DdeFreeStringHandle"
DdeGetData% (hData%, pDst%, cbMax%, cbOff%) : "DdeGetDataA"
DdeGetLastError% (idInst%) : "DdeGetLastError"
DdeImpersonateClient% (hConv%) : "DdeImpersonateClient"
DdeInitialize% (pidInst%, pfnCallback%, afCmd%, ulRes%) : "DdeInitializeA"
DdeKeepStringHandle% (idInst%, hsz%) : "DdeKeepStringHandle"
DdeNameService% (idInst%, hsz1%, hsz2%, afCmd%) : "DdeNameService"
DdePostAdvise% (idInst%, hszTopic%, hszItem%) : "DdePostAdvise"
DdeQueryConvInfo% (hConv%, idTransaction%, pConvInfo*) : "DdeQueryConvInfo"
DdeQueryNextServer% (hConvList%, hConvPrev%) : "DdeQueryNextServer"
DdeQueryString% (idInst%, hsz%, psz$, cchMax%, iCodePage%) : "DdeQueryStringA"
DdeReconnect% (hConv%) : "DdeReconnect"
DdeSetQualityOfService% (hWndClient%, pqosNew*, pqosPrev*) : "DdeSetQualityOfService"
DdeSetUserHandle% (hConv%, id%, hUser%) : "DdeSetUserHandle"
DdeUnaccessData% (hData%) : "DdeUnaccessDataA"
DdeUninitialize% (idInst%) : "DdeUninitialize"
DefDlgProc% (hDlg%, wMsg%, wParam%, lParam%) : "DefDlgProcA"
DeferWindowPos% (hWinPosInfo%, hwnd%, hWndInsertAfter%, x%, y%, cx%, cy%, wFlags%) : "DeferWindowPos"
DefFrameProc% (hwnd%, hWndMDIClient%, wMsg%, wParam%, lParam%) : "DefFrameProcA"
DefMDIChildProc% (hwnd%, wMsg%, wParam%, lParam%) : "DefMDIChildProcA"
DefWindowProc% (hwnd%, wMsg%, wParam%, lParam%) : "DefWindowProcA"
DeleteMenu% (hMenu%, nPosition%, wFlags%) : "DeleteMenu"
DestroyAcceleratorTable% (haccel%) : "DestroyAcceleratorTable"
DestroyCaret% () : "DestroyCaret"
DestroyCursor% (hCursor%) : "DestroyCursor"
DestroyIcon% (hIcon%) : "DestroyIcon"
DestroyMenu% (hMenu%) : "DestroyMenu"
DestroyWindow% (hwnd%) : "DestroyWindow"
DialogBoxIndirectParam% (hInstance%, hDialogTemplate*, hWndParent%, lpDialogFunc%, dwInitParam%) : "DialogBoxIndirectParamA"
DispatchMessage% (lpMsg*) : "DispatchMessageA"
DlgDirList% (hDlg%, lpPathSpec$, nIDListBox%, nIDStaticPath%, wFileType%) : "DlgDirListA"
DlgDirListComboBox% (hDlg%, lpPathSpec$, nIDComboBox%, nIDStaticPath%, wFileType%) : "DlgDirListComboBoxA"
DlgDirSelectComboBoxEx% (hWndDlg%, lpszPath$, cbPath%, idComboBox%) : "DlgDirSelectComboBoxExA"
DlgDirSelectEx% (hWndDlg%, lpszPath$, cbPath%, idListBox%) : "DlgDirSelectExA"
DragDetect% (hWnd%, pt*) : "DragDetect"
DragObject% (hWnd1%, hWnd2%, un%, dw%, hCursor%) : "DragObject"
DrawAnimatedRects% (hwnd%, idAni%, lprcFrom*, lprcTo*) : "DrawAnimatedRects"
DrawCaption% (hWnd%, hDC%, pcRect*, un%) : "DrawCaption"
DrawEdge% (hdc%, qrc*, edge%, grfFlags%) : "DrawEdge"
DrawFocusRect% (hdc%, lpRect*) : "DrawFocusRect"
DrawFrameControl% (hDC%, lpRect*, un1%, un2%) : "DrawFrameControl"
DrawIcon% (hdc%, x%, y%, hIcon%) : "DrawIcon"
DrawIconEx% (hdc%, xLeft%, yTop%, hIcon%, cxWidth%, cyWidth%, istepIfAniCur%, hbrFlickerFreeDraw%, diFlags%) : "DrawIconEx"
DrawMenuBar% (hwnd%) : "DrawMenuBar"
DrawState% (hDC%, hBrush%, lpDrawStateProc%, lParam%, wParam%, n1%, n2%, n3%, n4%, un%) : "DrawStateA"
DrawText% (hdc%, lpStr$, nCount%, lpRect*, wFormat%) : "DrawTextA"
DrawTextEx% (hDC%, lpsz$, n%, lpRect*, un%, lpDrawTextParams*) : "DrawTextExA"
EmptyClipboard% () : "EmptyClipboard"
EnableMenuItem% (hMenu%, wIDEnableItem%, wEnable%) : "EnableMenuItem"
EnableScrollBar% (hwnd%, wSBflags%, wArrows%) : "EnableScrollBar"
EnableWindow% (hwnd%, fEnable%) : "EnableWindow"
EndDeferWindowPos% (hWinPosInfo%) : "EndDeferWindowPos"
EndDialog% (hDlg%, nResult%) : "EndDialog"
EndPaint% (hwnd%, lpPaint*) : "EndPaint"
EnumChildWindows% (hWndParent%, lpEnumFunc%, lParam%) : "EnumChildWindows"
EnumClipboardFormats% (wFormat%) : "EnumClipboardFormats"
EnumDesktops% (hwinsta%, lpEnumFunc%, lParam%) : "EnumDesktopsA"
EnumDesktopWindows% (hDesktop%, lpfn%, lParam%) : "EnumDesktopWindows"
EnumProps% (hWnd%, lpEnumFunc%) : "EnumPropsA"
EnumPropsEx% (hWnd%, lpEnumFunc%, lParam%) : "EnumPropsExA"
EnumThreadWindows% (dwThreadId%, lpfn%, lParam%) : "EnumThreadWindows"
EnumWindowStations% (lpEnumFunc%, lParam%) : "EnumWindowStationsA"
EqualRect% (lpRect1*, lpRect2*) : "EqualRect"
ExcludeUpdateRgn% (hdc%, hwnd%) : "ExcludeUpdateRgn"
ExitWindows% (dwReserved%, uReturnCode%) : "ExitWindows"
ExitWindowsEx% (uFlags%, dwReserved%) : "ExitWindowsEx"
ExamineClipboard%(text%) : "ExamineClipboard"
FillRect% (hdc%, lpRect*, hBrush%) : "FillRect"
FindWindow% (lpClassName$, lpWindowName$) : "FindWindowA"
FindWindowEx% (hWnd1%, hWnd2%, lpsz1$, lpsz2$) : "FindWindowExA"
FlashWindow% (hwnd%, bInvert%) : "FlashWindow"
FrameRect% (hdc%, lpRect*, hBrush%) : "FrameRect"
FreeDDElParam% (msg%, lParam%) : "FreeDDElParam"
GetActiveWindow% () : "GetActiveWindow"
GetAsyncKeyState% (vKey%) : "GetAsyncKeyState"
GetCapture% () : "GetCapture"
GetCaretBlinkTime% () : "GetCaretBlinkTime"
GetCaretPos% (lpPoint*) : "GetCaretPos"
GetClassInfo% (hInstance%, lpClassName$, lpWndClass*) : "GetClassInfoA"
GetClassLong% (hwnd%, nIndex%) : "GetClassLongA"
GetClassName% (hwnd%, lpClassName$, nMaxCount%) : "GetClassNameA"
GetClassWord% (hwnd%, nIndex%) : "GetClassWord"
GetClientRect% (hwnd%, lpRect*) : "GetClientRect"
GetClipboardData$ (wFormat%) : "GetClipboardDataA"
GetClipboardFormatName% (wFormat%, lpString$, nMaxCount%) : "GetClipboardFormatNameA"
GetClipboardOwner% () : "GetClipboardOwner"
GetClipboardViewer% () : "GetClipboardViewer"
GetClipCursor% (lprc*) : "GetClipCursor"
GetCursor% () : "GetCursor"
GetCursorPos% (lpPoint*) : "GetCursorPos"
GetDC% (hwnd%) : "GetDC"
GetDCEx% (hwnd%, hrgnclip%, fdwOptions%) : "GetDCEx"
GetDesktopWindow% () : "GetDesktopWindow"
GetDialogBaseUnits% () : "GetDialogBaseUnits"
GetDlgCtrlID% (hwnd%) : "GetDlgCtrlID"
GetDlgItem% (hDlg%, nIDDlgItem%) : "GetDlgItem"
GetDlgItemInt% (hDlg%, nIDDlgItem%, lpTranslated%, bSigned%) : "GetDlgItemInt"
GetDlgItemText% (hDlg%, nIDDlgItem%, lpString$, nMaxCount%) : "GetDlgItemTextA"
GetDoubleClickTime% () : "GetDoubleClickTime"
GetFocus% () : "GetFocus"
GetForegroundWindow% () : "GetForegroundWindow"
GetIconInfo% (hIcon%, piconinfo*) : "GetIconInfo"
GetInputState% () : "GetInputState"
GetKBCodePage% () : "GetKBCodePage"
GetKeyboardLayout% (dwLayout%) : "GetKeyboardLayout"
GetKeyboardLayoutList% (nBuff%, lpList%) : "GetKeyboardLayoutList"
GetKeyboardLayoutName% (pwszKLID$) : "GetKeyboardLayoutNameA"
GetKeyboardState% (pbKeyState%) : "GetKeyboardState"
GetKeyboardType% (nTypeFlag%) : "GetKeyboardType"
GetKeyNameText% (lParam%, lpBuffer$, nSize%) : "GetKeyNameTextA"
GetKeyState% (nVirtKey%) : "GetKeyState"
GetLastActivePopup% (hwndOwnder%) : "GetLastActivePopup"
GetMenu% (hwnd%) : "GetMenu"
GetMenuCheckMarkDimensions% () : "GetMenuCheckMarkDimensions"
GetMenuContextHelpId% (hMenu%) : "GetMenuContextHelpId"
GetMenuDefaultItem% (hMenu%, fByPos%, gmdiFlags%) : "GetMenuDefaultItem"
GetMenuItemCount% (hMenu%) : "GetMenuItemCount"
GetMenuItemID% (hMenu%, nPos%) : "GetMenuItemID"
GetMenuItemInfo% (hMenu%, un%, b%, lpMenuItemInfo*) : "GetMenuItemInfoA"
GetMenuItemRect% (hWnd%, hMenu%, uItem%, lprcItem*) : "GetMenuItemRect"
GetMenuState% (hMenu%, wID%, wFlags%) : "GetMenuState"
GetMenuString% (hMenu%, wIDItem%, lpString$, nMaxCount%, wFlag%) : "GetMenuStringA"
GetMessage% (lpMsg*, hwnd%, wMsgFilterMin%, wMsgFilterMax%) : "GetMessageA"
GetMessageExtraInfo% () : "GetMessageExtraInfo"
GetMessagePos% () : "GetMessagePos"
GetMessageTime% () : "GetMessageTime"
GetNextDlgGroupItem% (hDlg%, hCtl%, bPrevious%) : "GetNextDlgGroupItem"
GetNextDlgTabItem% (hDlg%, hCtl%, bPrevious%) : "GetNextDlgTabItem"
GetNextWindow% (hwnd%, wFlag%) : "GetWindow"
GetOpenClipboardWindow% () : "GetOpenClipboardWindow"
GetParent% (hwnd%) : "GetParent"
GetPriorityClipboardFormat% (lpPriorityList%, nCount%) : "GetPriorityClipboardFormat"
GetProcessWindowStation% () : "GetProcessWindowStation"
GetProp% (hwnd%, lpString$) : "GetPropA"
GetQueueStatus% (fuFlags%) : "GetQueueStatus"
GetScrollInfo% (hWnd%, n%, lpScrollInfo*) : "GetScrollInfo"
GetScrollPos% (hwnd%, nBar%) : "GetScrollPos"
GetScrollRange% (hwnd%, nBar%, lpMinPos%, lpMaxPos%) : "GetScrollRange"
GetSubMenu% (hMenu%, nPos%) : "GetSubMenu"
GetSysColor% (nIndex%) : "GetSysColor"
GetSysColorBrush% (nIndex%) : "GetSysColorBrush"
GetSystemMenu% (hwnd%, bRevert%) : "GetSystemMenu"
GetSystemMetrics% (nIndex%) : "GetSystemMetrics"
GetTabbedTextExtent% (hdc%, lpString$, nCount%, nTabPositions%, lpnTabStopPositions%) : "GetTabbedTextExtentA"
GetThreadDesktop% (dwThread%) : "GetThreadDesktop"
GetTopWindow% (hwnd%) : "GetTopWindow"
GetUpdateRect% (hwnd%, lpRect*, bErase%) : "GetUpdateRect"
GetUpdateRgn% (hwnd%, hRgn%, fErase%) : "GetUpdateRgn"
GetUserObjectInformation% (hObj%, nIndex%, pvInfo*, nLength%, lpnLengthNeeded%) : "GetUserObjectInformationA"
GetUserObjectSecurity% (hObj%, pSIRequested%, pSd*, nLength%, lpnLengthNeeded%) : "GetUserObjectSecurity"
GetWindow% (hwnd%, wCmd%) : "GetWindow"
GetWindowContextHelpId% (hWnd%) : "GetWindowContextHelpId"
GetWindowDC% (hwnd%) : "GetWindowDC"
GetWindowInfo% (hwnd%, pwi*) : "GetWindowInfo"
GetWindowLong% (hwnd%, nIndex%) : "GetWindowLongA"
GetWindowPlacement% (hwnd%, lpwndpl*) : "GetWindowPlacement"
GetWindowRect% (hwnd%, lpRect*) : "GetWindowRect"
GetWindowRgn% (hWnd%, hRgn%) : "GetWindowRgn"
GetWindowText% (hwnd%, lpString$, cch%) : "GetWindowTextA"
GetWindowTextLength% (hwnd%) : "GetWindowTextLengthA"
GetWindowThreadProcessId% (hwnd%, lpdwProcessId%) : "GetWindowThreadProcessId"
GetWindowWord% (hwnd%, nIndex%) : "GetWindowWord"
GrayString% (hDC%, hBrush%, lpOutputFunc%, lpData%, nCount%, X%, Y%, nWidth%, nHeight%) : "GrayStringA"
HideCaret% (hwnd%) : "HideCaret"
HiliteMenuItem% (hwnd%, hMenu%, wIDHiliteItem%, wHilite%) : "HiliteMenuItem"
ImpersonateDdeClientWindow% (hWndClient%, hWndServer%) : "ImpersonateDdeClientWindow"
InflateRect% (lpRect*, x%, y%) : "InflateRect"
InSendMessage% () : "InSendMessage"
InsertMenu% (hMenu%, nPosition%, wFlags%, wIDNewItem%, lpNewItem*) : "InsertMenuA"
InsertMenuItem% (hMenu%, un%, bool%, lpcMenuItemInfo*) : "InsertMenuItemA"
IntersectRect% (lpDestRect*, lpSrc1Rect*, lpSrc2Rect*) : "IntersectRect"
InvalidateRect% (hwnd%, lpRect*, bErase%) : "InvalidateRect"
InvalidateRgn% (hwnd%, hRgn%, bErase%) : "InvalidateRgn"
InvertRect% (hdc%, lpRect*) : "InvertRect"
IsCharAlpha% (cChar%) : "IsCharAlphaA"
IsCharAlphaNumeric% (cChar%) : "IsCharAlphaNumericA"
IsCharLower% (cChar%) : "IsCharLowerA"
IsCharUpper% (cChar%) : "IsCharUpperA"
IsChild% (hWndParent%, hwnd%) : "IsChild"
IsClipboardFormatAvailable% (wFormat%) : "IsClipboardFormatAvailable"
IsDialogMessage% (hDlg%, lpMsg*) : "IsDialogMessageA"
IsDlgButtonChecked% (hDlg%, nIDButton%) : "IsDlgButtonChecked"
IsIconic% (hwnd%) : "IsIconic"
IsMenu% (hMenu%) : "IsMenu"
IsRectEmpty% (lpRect*) : "IsRectEmpty"
IsWindow% (hwnd%) : "IsWindow"
IsWindowEnabled% (hwnd%) : "IsWindowEnabled"
IsWindowUnicode% (hwnd%) : "IsWindowUnicode"
IsWindowVisible% (hwnd%) : "IsWindowVisible"
IsZoomed% (hwnd%) : "IsZoomed"
keybd_event (bVk%, bScan%, dwFlags%, dwExtraInfo%) : "keybd_event"
KillTimer% (hwnd%, nIDEvent%) : "KillTimer"
LoadAccelerators% (hInstance%, lpTableName$) : "LoadAcceleratorsA"
LoadBitmap% (hInstance%, lpBitmapName$) : "LoadBitmapA"
LoadCursor% (hInstance%, lpCursorName$) : "LoadCursorA"
LoadCursorFromFile% (lpFileName$) : "LoadCursorFromFileA"
LoadIcon% (hInstance%, lpIconName$) : "LoadIconA"
LoadImage% (hInst%, lpsz$, un1%, n1%, n2%, un2%) : "LoadImageA"
LoadKeyboardLayout% (pwszKLID$, flags%) : "LoadKeyboardLayoutA"
LoadMenu% (hInstance%, lpString$) : "LoadMenuA"
LoadMenuIndirect% (lpMenuTemplate%) : "LoadMenuIndirectA"
LoadString% (hInstance%, wID%, lpBuffer$, nBufferMax%) : "LoadStringA"
LockWindowUpdate% (hwndLock%) : "LockWindowUpdate"
LookupIconIdFromDirectory% (presbits%, fIcon%) : "LookupIconIdFromDirectory"
LookupIconIdFromDirectoryEx% (presbits%, fIcon%, cxDesired%, cyDesired%, Flags%) : "LookupIconIdFromDirectoryEx"
MapDialogRect% (hDlg%, lpRect*) : "MapDialogRect"
MapVirtualKey% (wCode%, wMapType%) : "MapVirtualKeyA"
MapVirtualKeyEx% (uCode%, uMapType%, dwhkl%) : "MapVirtualKeyExA"
MapWindowPoints% (hwndFrom%, hwndTo%, lppt*, cPoints%) : "MapWindowPoints"
MenuItemFromPoint% (hWnd%, hMenu%, ptScreen*) : "MenuItemFromPoint"
MessageBeep% (wType%) : "MessageBeep"
MessageBox% (hwnd%, lpText$, lpCaption$, wType%) : "MessageBoxA"
MessageBoxEx% (hwnd%, lpText$, lpCaption$, uType%, wLanguageId%) : "MessageBoxExA"
MessageBoxIndirect% (lpMsgBoxParams*) : "MessageBoxIndirectA"
ModifyMenu% (hMenu%, nPosition%, wFlags%, wIDNewItem%, lpString*) : "ModifyMenuA"
mouse_event (dwFlags%, dx%, dy%, cButtons%, dwExtraInfo%) : "mouse_event"
MoveWindow% (hwnd%, x%, y%, nWidth%, nHeight%, bRepaint%) : "MoveWindow"
MsgWaitForMultipleObjects% (nCount%, pHandles%, fWaitAll%, dwMilliseconds%, dwWakeMask%) : "MsgWaitForMultipleObjects"
OemKeyScan% (wOemChar%) : "OemKeyScan"
OemToChar% (lpszSrc$, lpszDst$) : "OemToCharA"
OemToCharBuff% (lpszSrc$, lpszDst$, cchDstLength%) : "OemToCharBuffA"
OffsetRect% (lpRect*, x%, y%) : "OffsetRect"
OpenClipboard% (hwnd%) : "OpenClipboard"
OpenDesktop% (lpszDesktop$, dwFlags%, fInherit%, dwDesiredAccess%) : "OpenDesktopA"
OpenIcon% (hwnd%) : "OpenIcon"
OpenInputDesktop% (dwFlags%, fInherit%, dwDesiredAccess%) : "OpenInputDesktop"
OpenWindowStation% (lpszWinSta$, fInherit%, dwDesiredAccess%) : "OpenWindowStationA"
PackDDElParam% (msg%, uiLo%, uiHi%) : "PackDDElParam"
PaintDesktop% (hdc%) : "PaintDesktop"
PeekMessage% (lpMsg*, hwnd%, wMsgFilterMin%, wMsgFilterMax%, wRemoveMsg%) : "PeekMessageA"
PostMessage% (hwnd%, wMsg%, wParam%, lParam%) : "PostMessageA"
PostQuitMessage (nExitCode%) : "PostQuitMessage"
PostThreadMessage% (idThread%, msg%, wParam%, lParam%) : "PostThreadMessageA"
PtInRect% (lpRect*, pt*) : "PtInRect"
RedrawWindow% (hwnd%, lprcUpdate*, hrgnUpdate%, fuRedraw%) : "RedrawWindow"
RegisterClass% (Class*) : "RegisterClass"
RegisterClassEx% (pcWndClassEx*) : "RegisterClassExA"
RegisterClipboardFormat% (lpString$) : "RegisterClipboardFormatA"
RegisterHotKey% (hwnd%, id%, fsModifiers%, vk%) : "RegisterHotKey"
RegisterWindowMessage% (lpString$) : "RegisterWindowMessageA"
ReleaseCapture% () : "ReleaseCapture"
ReleaseDC% (hwnd%, hdc%) : "ReleaseDC"
RemoveMenu% (hMenu%, nPosition%, wFlags%) : "RemoveMenu"
RemoveProp% (hwnd%, lpString$) : "RemovePropA"
ReplyMessage% (lReply%) : "ReplyMessage"
ReuseDDElParam% (lParam%, msgIn%, msgOut%, uiLo%, uiHi%) : "ReuseDDElParam"
ScreenToClient% (hwnd%, lpPoint*) : "ScreenToClient"
ScrollDC% (hdc%, dx%, dy%, lprcScroll*, lprcClip*, hrgnUpdate%, lprcUpdate*) : "ScrollDC"
ScrollWindow% (hWnd%, XAmount%, YAmount%, lpRect*, lpClipRect*) : "ScrollWindow"
ScrollWindowEx% (hwnd%, dx%, dy%, lprcScroll*, lprcClip*, hrgnUpdate%, lprcUpdate*, fuScroll%) : "ScrollWindowEx"
SendDlgItemMessage% (hDlg%, nIDDlgItem%, wMsg%, wParam%, lParam%) : "SendDlgItemMessageA"
SendMessage% (hwnd%, wMsg%, wParam%, lParam*) : "SendMessageA"
SendMessageCallback% (hwnd%, msg%, wParam%, lParam%, lpResultCallBack%, dwData%) : "SendMessageCallbackA"
SendMessageTimeout% (hwnd%, msg%, wParam%, lParam%, fuFlags%, uTimeout%, lpdwResult%) : "SendMessageTimeoutA"
SendNotifyMessage% (hwnd%, msg%, wParam%, lParam%) : "SendNotifyMessageA"
SetActiveWindow% (hwnd%) : "SetActiveWindow"
SetCapture% (hwnd%) : "SetCapture"
SetCaretBlinkTime% (wMSeconds%) : "SetCaretBlinkTime"
SetCaretPos% (x%, y%) : "SetCaretPos"
SetClassLong% (hwnd%, nIndex%, dwNewLong%) : "SetClassLongA"
SetClassWord% (hwnd%, nIndex%, wNewWord%) : "SetClassWord"
SetClipboardData% (wFormat%, hMem%) : "SetClipboardDataA"
SetClipboardViewer% (hwnd%) : "SetClipboardViewer"
SetCursor% (hCursor%) : "SetCursor"
SetCursorPos% (x%, y%) : "SetCursorPos"
SetDebugErrorLevel (dwLevel%) : "SetDebugErrorLevel"
SetDlgItemInt% (hDlg%, nIDDlgItem%, wValue%, bSigned%) : "SetDlgItemInt"
SetDlgItemText% (hDlg%, nIDDlgItem%, lpString$) : "SetDlgItemTextA"
SetDoubleClickTime% (wCount%) : "SetDoubleClickTime"
SetFocus% (hwnd%) : "SetFocus"
SetForegroundWindow% (hwnd%) : "SetForegroundWindow"
SetKeyboardState% (lppbKeyState%) : "SetKeyboardState"
SetLastErrorEx (dwErrCode%, dwType%) : "SetLastErrorEx"
SetMenu% (hwnd%, hMenu%) : "SetMenu"
SetMenuContextHelpId% (hMenu%, dw%) : "SetMenuContextHelpId"
SetMenuDefaultItem% (hMenu%, uItem%, fByPos%) : "SetMenuDefaultItem"
SetMenuItemBitmaps% (hMenu%, nPosition%, wFlags%, hBitmapUnchecked%, hBitmapChecked%) : "SetMenuItemBitmaps"
SetMenuItemInfo% (hMenu%, un%, bool%, lpcMenuItemInfo*) : "SetMenuItemInfoA"
SetMessageExtraInfo% (lParam%) : "SetMessageExtraInfo"
SetMessageQueue% (cMessagesMax%) : "SetMessageQueue"
SetParent% (hWndChild%, hWndNewParent%) : "SetParent"
SetProcessWindowStation% (hWinSta%) : "SetProcessWindowStation"
SetProp% (hwnd%, lpString$, hData%) : "SetPropA"
SetRect% (lpRect*, X1%, Y1%, X2%, Y2%) : "SetRect"
SetRectEmpty% (lpRect*) : "SetRectEmpty"
SetScrollInfo% (hWnd%, n%, lpcScrollInfo*, bool%) : "SetScrollInfo"
SetScrollPos% (hwnd%, nBar%, nPos%, bRedraw%) : "SetScrollPos"
SetScrollRange% (hwnd%, nBar%, nMinPos%, nMaxPos%, bRedraw%) : "SetScrollRange"
SetSysColors% (nChanges%, lpSysColor%, lpColorValues%) : "SetSysColors"
SetSystemCursor% (hcur%, id%) : "SetSystemCursor"
SetThreadDesktop% (hDesktop%) : "SetThreadDesktop"
SetTimer% (hWnd%, nIDEvent%, uElapse%, lpTimerFunc%) : "SetTimer"
SetUserObjectInformation% (hObj%, nIndex%, pvInfo*, nLength%) : "SetUserObjectInformationA"
SetUserObjectSecurity% (hObj%, pSIRequested%, pSd*) : "SetUserObjectSecurity"
SetWindowContextHelpId% (hWnd%, dw%) : "SetWindowContextHelpId"
SetWindowLong% (hwnd%, nIndex%, dwNewLong%) : "SetWindowLongA"
SetLayeredWindowAttributes (hWnd%, crKey%, bAlpha%, dwFlags%) : "SetLayeredWindowAttributes"
SetWindowPlacement% (hwnd%, lpwndpl*) : "SetWindowPlacement"
SetWindowPos% (hwnd%, hWndInsertAfter%, x%, y%, cx%, cy%, wFlags%) : "SetWindowPos"
SetWindowRgn% (hWnd%, hRgn%, bRedraw%) : "SetWindowRgn"
SetWindowsHook% (nFilterType%, pfnFilterProc%) : "SetWindowsHookA"
SetWindowsHookEx% (idHook%, lpfn%, hmod%, dwThreadId%) : "SetWindowsHookExA"
SetWindowText% (hwnd%, lpString$) : "SetWindowTextA"
SetWindowWord% (hwnd%, nIndex%, wNewWord%) : "SetWindowWord"
ShowCaret% (hwnd%) : "ShowCaret"
ShowCursor% (bShow%) : "ShowCursor"
ShowOwnedPopups% (hwnd%, fShow%) : "ShowOwnedPopups"
ShowScrollBar% (hwnd%, wBar%, bShow%) : "ShowScrollBar"
ShowWindow% (hwnd%, nCmdShow%) : "ShowWindow"
ShowWindowAsync% (hWnd%, nCmdShow%) : "ShowWindowAsync"
SubtractRect% (lprcDst*, lprcSrc1*, lprcSrc2*) : "SubtractRect"
SwapMouseButton% (bSwap%) : "SwapMouseButton"
SwitchDesktop% (hDesktop%) : "SwitchDesktop"
SystemParametersInfo% (uAction%, uParam%, lpvParam*, fuWinIni%) : "SystemParametersInfoA"
TabbedTextOut% (hdc%, x%, y%, lpString$, nCount%, nTabPositions%, lpnTabStopPositions%, nTabOrigin%) : "TabbedTextOutA"
TileWindows% (hwndParent%, wHow%, lpRect*, cKids%, lpKids%) : "TileWindows"
ToAscii% (uVirtKey%, uScanCode%, lpbKeyState%, lpwTransKey%, fuState%) : "ToAscii"
ToAsciiEx% (uVirtKey%, uScanCode%, lpKeyState%, lpChar%, uFlags%, dwhkl%) : "ToAsciiEx"
ToUnicode% (wVirtKey%, wScanCode%, lpKeyState%, pwszBuff$, cchBuff%, wFlags%) : "ToUnicode"
TrackPopupMenu% (hMenu%, wFlags%, x%, y%, nReserved%, hwnd%, lprc*) : "TrackPopupMenu"
TrackPopupMenuEx% (hMenu%, un%, n1%, n2%, hWnd%, lpTPMParams*) : "TrackPopupMenuEx"
TranslateAccelerator% (hwnd%, hAccTable%, lpMsg*) : "TranslateAcceleratorA"
TranslateMDISysAccel% (hWndClient%, lpMsg*) : "TranslateMDISysAccel"
TranslateMessage% (lpMsg*) : "TranslateMessage"
UnhookWindowsHook% (nCode%, pfnFilterProc%) : "UnhookWindowsHook"
UnhookWindowsHookEx% (hHook%) : "UnhookWindowsHookEx"
UnionRect% (lpDestRect*, lpSrc1Rect*, lpSrc2Rect*) : "UnionRect"
UnloadKeyboardLayout% (HKL%) : "UnloadKeyboardLayout"
UnpackDDElParam% (msg%, lParam%, puiLo%, puiHi%) : "UnpackDDElParam"
UnregisterClass% (lpClassName$, hInstance%) : "UnregisterClassA"
UnregisterHotKey% (hwnd%, id%) : "UnregisterHotKey"
UpdateWindow% (hwnd%) : "UpdateWindow"
ValidateRect% (hwnd%, lpRect*) : "ValidateRect"
ValidateRgn% (hwnd%, hRgn%) : "ValidateRgn"
VkKeyScan% (cChar%) : "VkKeyScanA"
VkKeyScanEx% (ch%, dwhkl%) : "VkKeyScanExA"
WaitForInputIdle% (hProcess%, dwMilliseconds%) : "WaitForInputIdle"
WaitMessage% () : "WaitMessage"
WindowFromDC% (hdc%) : "WindowFromDC"
WindowFromPoint% (xPoint%, yPoint%) : "WindowFromPoint"
WinHelp% (hwnd%, lpHelpFile$, wCommand%, dwData%) : "WinHelpA"


Konstanten und Types:
www.mcrs.eu/files/other/WinAPI.bb (Zu viel zum direkt anzeigen)

Beispiel:
BlitzBasic: [AUSKLAPPEN]
Include "WinAPI.bb"

Graphics 400,300,32,3

AppHWND = SystemProperty("AppHWND")

SetWindowPos(AppHWND,0,0,0,500,400,SWP_NOMOVE)

rc.Rect = New Rect

GetWindowRect(AppHWND,rc)

Print "Breite des Fensters: "+(rc\Right-rc\Left)

Print "Höhe des Fensters: "+(rc\bottom-rc\top)

SetCursorPos(200,200)

pt.POINT = New POINT

GetCursorPos(pt)

Print "MouseX: "+ pt\x

Print "MouseY: "+ pt\y

WaitKey

ShowWindow(AppHWND, SW_SHOWMINIMIZED)

ShowWindow(AppHWND, SW_RESTORE)

WaitKey

wininfo.WINDOWINFO = New WINDOWINFO

GetWindowInfo(AppHWND, wininfo)

Print "extended window style des Fensters: "+wininfo\dwExStyle

WaitKey

End
Desktop: Intel Pentium 4 2650 Mhz, 2 GB RAM, ATI Radeon HD 3850 512 MB, Windows XP
Notebook: Intel Core i7 720 QM 1.6 Ghz, 4 GB DDR3 RAM, nVidia 230M GT, Windows 7
  • Zuletzt bearbeitet von Nicdel am Do, Okt 15, 2009 15:31, insgesamt einmal bearbeitet

ozzi789

BeitragMi, Sep 09, 2009 17:50
Antworten mit Zitat
Benutzer-Profile anzeigen
Sicher praktisch für b3d user, kommt gleich in meinen userlibs ordner Wink

mfg
0x2B || ! 0x2B
C# | C++13 | Java 7 | PHP 5

Eingeproggt

BeitragMi, Sep 09, 2009 18:54
Antworten mit Zitat
Benutzer-Profile anzeigen
Und wieder einmal hätte die Forensuche viel Arbeit erspart und hätte obendrein noch wesentlich mehr WinApi-Zugriff gebracht (Nicht nur user32)

https://www.blitzforum.de/foru...ght=winapi

mfG, Christoph.
Gewinner des BCC 18, 33 und 65 sowie MiniBCC 9

Nicdel

BeitragMi, Sep 09, 2009 18:55
Antworten mit Zitat
Benutzer-Profile anzeigen
Und die Konstanten? Die hätte man sich trotzdem raussuchen müssen. Und um die geht es hier.
Desktop: Intel Pentium 4 2650 Mhz, 2 GB RAM, ATI Radeon HD 3850 512 MB, Windows XP
Notebook: Intel Core i7 720 QM 1.6 Ghz, 4 GB DDR3 RAM, nVidia 230M GT, Windows 7

Eingeproggt

BeitragMi, Sep 09, 2009 18:57
Antworten mit Zitat
Benutzer-Profile anzeigen
Sorry, auf die achtete ich gar nicht, dachte das wäre ein Link zu MSDN Embarassed
Ja also da steckt schon ne Menge Arbeit drin... Aber da keine Kommentare vorhanden sind muss man sich ja doch erstmal reinlesen in die ganze Sache oder gut geraten haben damit man weiter kommt.
Gewinner des BCC 18, 33 und 65 sowie MiniBCC 9

Nicdel

BeitragMi, Sep 09, 2009 18:58
Antworten mit Zitat
Benutzer-Profile anzeigen
Wenn man dann auf die MSDN-Seite geht und dort nach einem Befehl sucht, stehen die Erklärungen der benötigten Konstanten dabei. Vielleicht dokumentier ich auch noch ein paar.
Desktop: Intel Pentium 4 2650 Mhz, 2 GB RAM, ATI Radeon HD 3850 512 MB, Windows XP
Notebook: Intel Core i7 720 QM 1.6 Ghz, 4 GB DDR3 RAM, nVidia 230M GT, Windows 7

Neue Antwort erstellen


Übersicht BlitzBasic DLLs und Userlibs

Gehe zu:

Powered by phpBB © 2001 - 2006, phpBB Group