Practical Visual Basic http://www.geocities.com/practicalvb/ Win32 - 32-bit Windows API declarations (ANSI) Version 0.5 New declarations in this version are marked with an asterisk (*). Procedure Name Alias DLL Name -------------- ----- -------- CommDlgExtendedError CommDlgExtendedError COMDLG32.DLL GetFileTitle GetFileTitleA COMDLG32.DLL GetOpenFileName GetOpenFileNameA COMDLG32.DLL GetSaveFileName GetSaveFileNameA COMDLG32.DLL Arc Arc GDI32.DLL BitBlt BitBlt GDI32.DLL CreateBitmap CreateBitmap GDI32.DLL CreateBrushIndirect CreateBrushIndirect GDI32.DLL CreateCompatibleBitmap CreateCompatibleBitmap GDI32.DLL CreateCompatibleDC CreateCompatibleDC GDI32.DLL CreateFontIndirect CreateFontIndirectA GDI32.DLL CreateHatchBrush CreateHatchBrush GDI32.DLL CreatePatternBrush CreatePatternBrush GDI32.DLL CreatePen CreatePen GDI32.DLL CreateSolidBrush CreateSolidBrush GDI32.DLL DeleteDC DeleteDC GDI32.DLL DeleteObject DeleteObject GDI32.DLL Ellipse Ellipse GDI32.DLL EnumFontFamiliesEx EnumFontFamiliesExA GDI32.DLL GetDeviceCaps GetDeviceCaps GDI32.DLL GetGlyphOutline GetGlyphOutlineA GDI32.DLL GetPixel GetPixel GDI32.DLL GetStockObject GetStockObject GDI32.DLL GetTextMetrics GetTextMetricsA GDI32.DLL GetWindowDC GetWindowDC GDI32.DLL LineTo LineTo GDI32.DLL MoveTo MoveToEx GDI32.DLL MoveToEx MoveToEx GDI32.DLL PatBlt PatBlt GDI32.DLL Polygon Polygon GDI32.DLL Rectangle Rectangle GDI32.DLL SelectObject SelectObject GDI32.DLL SetBkColor SetBkColor GDI32.DLL SetBkMode SetBkMode GDI32.DLL SetPixel SetPixel GDI32.DLL SetPixelV SetPixelV GDI32.DLL SetTextAlign SetTextAlign GDI32.DLL SetStretchBltMode SetStretchBltMode GDI32.DLL SetTextColor SetTextColor GDI32.DLL StretchBlt StretchBlt GDI32.DLL TextOut TextOutW GDI32.DLL CloseHandle CloseHandle KERNEL32.DLL CopyMemory RtlMoveMemory KERNEL32.DLL CopyMemoryToString RtlMoveMemory KERNEL32.DLL CreateFile CreateFileA KERNEL32.DLL DebugBreak DebugBreak KERNEL32.DLL FileTimeToLocalFileTime FileTimeToLocalFileTime KERNEL32.DLL FindClose FindClose KERNEL32.DLL FindFirstFile FindFirstFileA KERNEL32.DLL FindNextFile FindNextFileA KERNEL32.DLL GetCommandLine GetCommandLineA KERNEL32.DLL GetComputerName GetComputerNameA KERNEL32.DLL GetCurrentThreadId GetCurrentThreadId KERNEL32.DLL GetDriveType GetDriveTypeA KERNEL32.DLL GetFileAttributes GetFileAttributesA KERNEL32.DLL GetFileTime GetFileTime KERNEL32.DLL GetProcessHeap GetProcessHeap KERNEL32.DLL GetSystemDirectory GetSystemDirectoryA KERNEL32.DLL GetTempPath GetTempPathA KERNEL32.DLL GetTickCount GetTickCount KERNEL32.DLL GetWindowsDirectory GetWindowsDirectoryA KERNEL32.DLL GlobalAlloc GlobalAlloc KERNEL32.DLL GlobalFree GlobalFree KERNEL32.DLL GlobalLock GlobalLock KERNEL32.DLL GlobalReAlloc GlobalReAlloc KERNEL32.DLL GlobalSize GlobalSize KERNEL32.DLL GlobalUnlock GlobalUnlock KERNEL32.DLL HeapAlloc HeapAlloc KERNEL32.DLL HeapFree HeapFree KERNEL32.DLL HeapReAlloc HeapReAlloc KERNEL32.DLL HeapSize HeapSize KERNEL32.DLL LocalFileTimeToFileTime LocalFileTimeToFileTime KERNEL32.DLL lstrcat lstrcatA KERNEL32.DLL lstrlenPtr lstrlenA KERNEL32.DLL MulDiv MulDiv KERNEL32.DLL QueryPerformanceCounter QueryPerformanceCounter KERNEL32.DLL QueryPerformanceFrequency QueryPerformanceFrequency KERNEL32.DLL SetFileTime SetFileTime KERNEL32.DLL Sleep Sleep KERNEL32.DLL CoTaskMemFree CoTaskMemFree OLE32.DLL OleTranslateColor OleTranslateColor OLEPRO32.DLL RegCloseKey RegCloseKey ADVAPI32.DLL RegCreateKeyEx RegCreateKeyExA ADVAPI32.DLL *RegOpenKeyEx RegOpenKeyExA ADVAPI32.DLL RegQueryLongValue RegQueryValueExA ADVAPI32.DLL RegQueryStringValue RegQueryValueExA ADVAPI32.DLL RegSetLongValue RegSetValueExA ADVAPI32.DLL RegSetStringValue RegSetValueExA ADVAPI32.DLL SHBrowseForFolder SHBrowseForFolder SHELL32.DLL ShellExecute ShellExecuteA SHELL32.DLL SHGetPathFromIDList SHGetPathFromIDList SHELL32.DLL AppendMenu AppendMenuA USER32.DLL CallNextHookEx CallNextHookEx USER32.DLL CallWindowProc CallWindowProcA USER32.DLL CheckMenuItem CheckMenuItem USER32.DLL CheckMenuRadioItem CheckMenuRadioItem USER32.DLL ClientToScreen ClientToScreen USER32.DLL CloseClipboard CloseClipboard USER32.DLL CreateCaret CreateCaret USER32.DLL CreateMenu CreateMenu USER32.DLL CreatePopupMenu CreatePopupMenu USER32.DLL DefWindowProc DefWindowProcA USER32.DLL DeleteMenu DeleteMenu USER32.DLL DestroyCaret DestroyCaret USER32.DLL DestroyMenu DestroyMenu USER32.DLL DrawEdge DrawEdge USER32.DLL DrawFocusRect DrawFocusRect USER32.DLL DrawFrameControl DrawFrameControl USER32.DLL DrawMenuBar DrawMenuBar USER32.DLL DrawState DrawStateA USER32.DLL DrawText DrawTextA USER32.DLL EmptyClipboard EmptyClipboard USER32.DLL EnableMenuItem EnableMenuItem USER32.DLL FillRect FillRect USER32.DLL FindWindow FindWindowA USER32.DLL FindWindowEx FindWindowExA USER32.DLL GetActiveWindow GetActiveWindow USER32.DLL GetAsyncKeyState GetAsyncKeyState USER32.DLL GetCapture GetCapture USER32.DLL GetCaretPos GetCaretPos USER32.DLL GetClassName GetClassNameA USER32.DLL GetClientRect GetClientRect USER32.DLL GetCursorPos GetCursorPos USER32.DLL GetDC GetDC USER32.DLL GetDialogBaseUnits GetDialogBaseUnits USER32.DLL GetDlgCtrlID GetDlgCtrlID USER32.DLL GetDlgItem GetDlgItem USER32.DLL GetDlgItemText GetDlgItemTextA USER32.DLL GetFocus GetFocus USER32.DLL GetForegroundWindow GetForegroundWindow USER32.DLL GetKeyState GetKeyState USER32.DLL GetMenu GetMenu USER32.DLL GetMenuItemCount GetMenuItemCount USER32.DLL GetMenuItemID GetMenuItemID USER32.DLL GetParent GetParent USER32.DLL GetProp GetPropA USER32.DLL GetSubMenu GetSubMenu USER32.DLL GetSystemMenu GetSystemMenu USER32.DLL GetWindowLong GetWindowLongA USER32.DLL GetWindowPlacement GetWindowPlacement USER32.DLL GetWindowRect GetWindowRect USER32.DLL GetWindowText GetWindowTextA USER32.DLL GetWindowTextLength GetWindowTextLengthA USER32.DLL HideCaret HideCaret USER32.DLL InsertMenu InsertMenuA USER32.DLL InvalidateRect InvalidateRect USER32.DLL InvalidateRectPtr InvalidateRect USER32.DLL InvertRect InvertRect USER32.DLL LoadIcon LoadIconA USER32.DLL LockWindowUpdate LockWindowUpdate USER32.DLL MessageBeep MessageBeep USER32.DLL OpenClipboard OpenClipboard USER32.DLL PostMessage PostMessageA USER32.DLL PostMessageAsAny PostMessageA USER32.DLL PtInRect PtInRect USER32.DLL RegisterWindowMessage RegisterWindowMessageA USER32.DLL ReleaseCapture ReleaseCapture USER32.DLL ReleaseDC ReleaseDC USER32.DLL RemoveProp RemovePropA USER32.DLL SendMessage SendMessageA USER32.DLL SendMessageAsAny SendMessageA USER32.DLL SendMessageAsString SendMessageA USER32.DLL SetCapture SetCapture USER32.DLL SetCaretPos SetCaretPos USER32.DLL SetClipboardData SetClipboardData USER32.DLL SetCursorPos SetCursorPos USER32.DLL SetFocusAPI SetFocus USER32.DLL SetMenu SetMenu USER32.DLL SetMenuDefaultItem SetMenuDefaultItem USER32.DLL SetParent SetParent USER32.DLL SetProp SetPropA USER32.DLL SetWindowLong SetWindowLongA USER32.DLL SetWindowPlacement SetWindowPlacement USER32.DLL SetWindowPos SetWindowPos USER32.DLL SetWindowsHookEx SetWindowsHookExA USER32.DLL ShowCaret ShowCaret USER32.DLL ShowWindow ShowWindow USER32.DLL SystemParametersInfo SystemParametersInfoA USER32.DLL TrackMouseEventAPI TrackMouseEvent USER32.DLL TrackPopupMenu TrackPopupMenu USER32.DLL UnhookWindowsHookEx UnhookWindowsHookEx USER32.DLL WindowFromPoint WindowFromPoint USER32.DLL Types ----- BITMAPFILEHEADER BITMAPINFOHEADER BROWSEINFO FIXED GLYPHMETRICS LOGBRUSH LOGFONT MAT2 MINMAXINFO NMHDR OFNOTIFY OPENFILENAME PALETTEENTRY POINTAPI RECT RGBQUAD TEXTMETRIC TRACKMOUSEEVENT WIN32_FIND_DATA WINDOWPLACEMENT Constants --------- ANSI_CHARSET APIFALSE APITRUE BALTIC_CHARSET BDR_RAISEDINNER BDR_RAISEDOUTER BDR_SUNKENINNER BDR_SUNKENOUTER BF_ADJUST BF_BOTTOM BF_BOTTOMLEFT BF_BOTTOMRIGHT BF_DIAGONAL BF_DIAGONAL_ENDBOTTOMLEFT BF_DIAGONAL_ENDBOTTOMRIGHT BF_DIAGONAL_ENDTOPLEFT BF_DIAGONAL_ENDTOPRIGHT BF_FLAT BF_LEFT BF_MIDDLE BF_MONO BF_RECT BF_RIGHT BF_SOFT BF_TOP BF_TOPLEFT BF_TOPRIGHT BIF_BROWSEFORCOMPUTER BIF_BROWSEFORPRINTER BIF_BROWSEINCLUDEFILES BIF_DONTGOBELOWDOMAIN BIF_RETURNFSANCESTORS BIF_RETURNONLYFSDIRS BIF_STATUSTEXT BS_DIBPATTERN BS_DIBPATTERNPT BS_HATCHED BS_HOLLOW BS_PATTERN BS_SOLID CBN_CLOSEUP CBN_SELENDOK CB_ADDSTRING CB_ERR CB_FINDSTRING CB_FINDSTRINGEXACT CB_GETDROPPEDSTATE CB_LIMITTEXT CB_SELECTSTRING CB_SETCURSEL CB_SETDROPPEDWIDTH CB_SETEDITSEL CB_SHOWDROPDOWN CDM_GETFILEPATH CDM_GETFOLDERIDLIST CDM_GETFOLDERPATH CDM_GETSPEC CDM_HIDECONTROL CDM_SETCONTROLTEXT CDM_SETDEFEXT CDN_FILEOK CDN_FOLDERCHANGE CDN_HELP CDN_INITDONE CDN_SELCHANGE CDN_SHAREVIOLATION CDN_TYPECHANGE CREATE_ALWAYS CREATE_NEW DEFAULT_CHARSET DEVICE_FONTTYPE DRIVE_CDROM DRIVE_FIXED DRIVE_NO_ROOT_DIR DRIVE_RAMDISK DRIVE_REMOTE DRIVE_REMOVABLE DRIVE_UNKNOWN DSS_DISABLED DSS_MONO DSS_NORMAL DSS_RIGHT DSS_UNION DST_BITMAP DST_COMPLEX DST_ICON DST_PREFIXTEXT DST_TEXT DT_CENTER DT_SINGLELINE DT_VCENTER DWL_DLGPROC DWL_MSGRESULT DWL_USER EDGE_BUMP EDGE_ETCHED EDGE_RAISED EDGE_SUNKEN EM_CANUNDO EM_EMPTYUNDOBUFFER EM_LINEINDEX EM_SETSEL EM_SETTABSTOPS EM_SETTARGETDEVICE EM_UNDO ERROR_SUCCESS FILE_ATTRIBUTE_ARCHIVE FILE_ATTRIBUTE_COMPRESSED FILE_ATTRIBUTE_DIRECTORY FILE_ATTRIBUTE_ENCRYPTED FILE_ATTRIBUTE_HIDDEN FILE_ATTRIBUTE_NORMAL FILE_ATTRIBUTE_NOT_CONTENT_INDEXED FILE_ATTRIBUTE_OFFLINE FILE_ATTRIBUTE_READONLY FILE_ATTRIBUTE_REPARSE_POINT FILE_ATTRIBUTE_SPARSE_FILE FILE_ATTRIBUTE_SYSTEM FILE_ATTRIBUTE_TEMPORARY FILE_SHARE_DELETE FILE_SHARE_READ FILE_SHARE_WRITE GDI_ERROR GENERIC_ALL GENERIC_EXECUTE GENERIC_READ GENERIC_WRITE GGO_BEZIER GGO_BITMAP GGO_GRAY2_BITMAP GGO_GRAY4_BITMAP GGO_GRAY8_BITMAP GGO_METRICS GGO_NATIVE GREEK_CHARSET GWL_EXSTYLE GWL_HINSTANCE GWL_HWNDPARENT GWL_ID GWL_STYLE GWL_USERDATA GWL_WNDPROC HC_ACTION HC_GETNEXT HC_NOREMOVE HC_SKIP HC_SYSMODALOFF HC_SYSMODALON HKEY_CLASSES_ROOT HKEY_CURRENT_CONFIG HKEY_CURRENT_USER HKEY_DYN_DATA HKEY_LOCAL_MACHINE HKEY_PERFORMANCE_DATA HKEY_USERS HOVER_DEFAULT HS_BDIAGONAL HS_CROSS HS_DIAGCROSS HS_FDIAGONAL HS_HORIZONTAL HS_VERTICAL HTCAPTION HWND_BOTTOM HWND_NOTOPMOST HWND_TOP HWND_TOPMOST INVALID_HANDLE_VALUE *KEY_ALL_ACCESS KEY_CREATE_LINK KEY_CREATE_SUB_KEY KEY_ENUMERATE_SUB_KEYS *KEY_EXECUTE KEY_NOTIFY KEY_QUERY_VALUE *KEY_READ KEY_SET_VALUE *KEY_WRITE LB_ADDSTRING LB_ERR LB_FINDSTRING LB_FINDSTRINGEXACT LB_SETCURSEL MAX_PATH MF_BITMAP MF_BYCOMMAND MF_BYPOSITION MF_CHECKED MF_DEFAULT MF_DISABLED MF_ENABLED MF_GRAYED MF_HELP MF_HILITE MF_MENUBARBREAK MF_MENUBREAK MF_MOUSESELECT MF_OWNERDRAW MF_POPUP MF_RIGHTJUSTIFY MF_SEPARATOR MF_STRING MF_SYSMENU MF_UNCHECKED MF_UNHILITE MF_USECHECKBITMAPS OEM_CHARSET OFN_ALLOWMULTISELECT OFN_CREATEPROMPT OFN_ENABLEHOOK OFN_ENABLEINCLUDENOTIFY OFN_ENABLESIZING OFN_ENABLETEMPLATE OFN_ENABLETEMPLATEHANDLE OFN_EXPLORER OFN_EXTENSIONDIFFERENT OFN_FILEMUSTEXIST OFN_HIDEREADONLY OFN_LONGNAMES OFN_NOCHANGEDIR OFN_NODEREFERENCELINKS OFN_NOLONGNAMES OFN_NONETWORKBUTTON OFN_NOREADONLYRETURN OFN_NOTESTFILECREATE OFN_NOVALIDATE OFN_OVERWRITEPROMPT OFN_PATHMUSTEXIST OFN_READONLY OFN_SHAREAWARE OFN_SHOWHELP OPEN_ALWAYS OPEN_EXISTING PS_DASH PS_DASHDOT PS_DASHDOTDOT PS_DOT PS_INSIDEFRAME PS_NULL PS_SOLID RASTER_FONTTYPE REG_BINARY REG_DWORD REG_DWORD_BIG_ENDIAN REG_DWORD_LITTLE_ENDIAN REG_EXPAND_SZ REG_FULL_RESOURCE_DESCRIPTOR REG_LEGAL_OPTION REG_LINK REG_MULTI_SZ REG_NONE REG_OPTION_BACKUP_RESTORE REG_OPTION_CREATE_LINK REG_OPTION_NON_VOLATILE REG_OPTION_OPEN_LINK REG_OPTION_RESERVED REG_OPTION_VOLATILE REG_RESOURCE_LIST REG_RESOURCE_REQUIREMENTS_LIST REG_SZ SC_ARRANGE SC_CLOSE SC_CONTEXTHELP SC_DEFAULT SC_HOTKEY SC_HSCROLL SC_KEYMENU SC_MAXIMIZE SC_MINIMIZE SC_MONITORPOWER SC_MOUSEMENU SC_MOVE SC_NEXTWINDOW SC_PREVWINDOW SC_RESTORE SC_SCREENSAVE SC_SEPARATOR SC_SIZE SC_TASKLIST SC_VSCROLL SPI_GETWORKAREA SWP_ASYNCWINDOWPOS SWP_DEFERERASE SWP_FRAMECHANGED SWP_HIDEWINDOW SWP_NOACTIVATE SWP_NOCOPYBITS SWP_NOMOVE SWP_NOOWNERZORDER SWP_NOREDRAW SWP_NOSENDCHANGING SWP_NOSIZE SWP_NOZORDER SWP_SHOWWINDOW SW_FORCEMINIMIZE SW_HIDE SW_MAXIMIZE SW_MINIMIZE SW_NORMAL SW_RESTORE SW_SHOW SW_SHOWDEFAULT SW_SHOWMAXIMIZED SW_SHOWMINIMIZED SW_SHOWMINNOACTIVE SW_SHOWNA SW_SHOWNOACTIVATE SW_SHOWNORMAL SYMBOL_CHARSET TA_BASELINE TA_BOTTOM TA_CENTER TA_LEFT TA_NOUPDATECP TA_RIGHT TA_RTLREADING TA_TOP TA_UPDATECP TME_CANCEL TME_HOVER TME_LEAVE TME_QUERY TRUETYPE_FONTTYPE TRUNCATE_EXISTING TURKISH_CHARSET UnicodeTypeLibrary VK_CANCEL VK_LBUTTON VK_MBUTTON VK_RBUTTON VTA_BASELINE VTA_CENTER WA_ACTIVE WA_CLICKACTIVE WA_INACTIVE WHITE_BRUSH WH_GETMESSAGE WH_JOURNALPLAYBACK WH_JOURNALRECORD WH_KEYBOARD WH_MOUSE WH_MSGFILTER WH_SHELL WH_SYSMSGFILTER WM_ACTIVATE WM_ACTIVATEAPP WM_CANCELMODE WM_CAPTURECHANGED WM_CHILDACTIVATE WM_CLEAR WM_CLOSE WM_COMMAND WM_COPY WM_CREATE WM_CUT WM_DESTROY WM_DEVMODECHANGE WM_ENABLE WM_ENDSESSION WM_ERASEBKGND WM_FONTCHANGE WM_GETMINMAXINFO WM_GETTEXT WM_GETTEXTLENGTH WM_HSCROLL WM_INITDIALOG WM_INITMENU WM_INITMENUPOPUP WM_KILLFOCUS WM_MENUSELECT WM_MOUSEACTIVATE WM_MOUSEHOVER WM_MOUSELEAVE WM_MOVE WM_MOVING WM_NCCALCSIZE WM_NCCREATE WM_NCDESTROY WM_NCHITTEST WM_NCLBUTTONDOWN WM_NOTIFY WM_PAINT WM_PASTE WM_QUERYENDSESSION WM_QUERYOPEN WM_QUEUESYNC WM_QUIT WM_SETCURSOR WM_SETFOCUS WM_SETREDRAW WM_SETTEXT WM_SETTINGCHANGE WM_SHOWWINDOW WM_SIZE WM_SIZING WM_SYSCOLORCHANGE WM_SYSCOMMAND WM_TIMECHANGE WM_TIMER WM_UNDO WM_USER WM_VSCROLL WM_WINDOWPOSCHANGED WM_WINDOWPOSCHANGING WPF_RESTORETOMAXIMIZED WPF_SETMINPOSITION WS_BORDER WS_CAPTION WS_DLGFRAME WS_EX_APPWINDOW WS_EX_CLIENTEDGE WS_EX_STATICEDGE WS_EX_WINDOWEDGE WS_HSCROLL WS_OVERLAPPED WS_SYSMENU WS_THICKFRAME WS_VSCROLL sBackslash sColon sCr sCrLf sCrLfCrLf sDoubleQuote sEmpty sLf sLfLf sPeriod sPipe sSlash sSpace vbErrFileNotFound vbErrInvalidFileFormat vbErrInvalidProcedureCall vbErrInvalidPropertyArrayIndex vbErrInvalidPropertyValue vbErrOverflow vbErrSubscriptOutOfRange vbErrTypeMismatch END.