El Camino Real - Windows API for Visual Basic

Name: Windows
GUID 598ECD1F-942A-40E2-AB75-F1B982F7FC2
Version 1.1

Module VB

Types

CLSID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4 As Fixed Array

Functions

VarPtr
Function VarPtr (ByRef Ptr As Any) As Long
VarPtrArray
Function VarPtrArray (ByRef Ptr As Array) As Long

Module WinKernel

Enums

WinError
ERROR_SUCCESS = &H0 Windows : The operation completed successfully
ERROR_PATH_NOT_FOUND = &H3 Windows : The system cannot find the path specified
ERROR_ACCESS_DENIED = &H5 Windows : Access is denied
ERROR_INVALID_HANDLE = &H6 Windows : The handle is invalid
ERROR_BUFFER_OVERFLOW = &H6F Windows : The file name is too long
ERROR_INSUFFICIENT_BUFFER = &H7A Windows : The data area passed to a system call is too small
ERROR_MORE_DATA = &HEA Windows : More data is available
ERROR_NO_MORE_ITEMS = &H103 Windows : No more data is available
WAIT_TIMEOUT = &H102 Windows : The service database is locked
ERROR_SERVICE_DATABASE_LOCKED = &H41F Windows : The wait operation timed out
ERROR_SERVICE_DISABLED = &H422 Windows : The service cannot be started, either because it is disabled or because it has no enabled devices associated with it
ERROR_SERVICE_ALREADY_RUNNING = &H420 Windows : An instance of the service is already running
ERROR_SERVICE_DEPENDENCY_FAIL = &H42C Windows : The dependency service or group failed to start
ERROR_SERVICE_DEPENDENCY_DELETED = &H433 Windows : The dependency service does not exist or has been marked for deletion
E_NOTIMPL = &H80004001 OLE : No such interface supported
E_NOINTERFACE = &H80004002 OLE : Not implemented
E_POINTER = &H80004003 OLE : Invalid pointer
E_ABORT = &H80004004 OLE : Operation aborted
E_FAIL = &H80004005 OLE : Ran out of memory
E_ACCESSDENIED = &H80070005 OLE : General access denied error
E_HANDLE = &H80070006 OLE : Invalid handle
E_OUTOFMEMORY = &H8007000E OLE : Ran out of memory
E_INVALIDARG = &H80070057 OLE : One or more arguments are invalid
E_UNEXPECTED = &H8000FFFF OLE : Not implemented
WM Standard Windows Messages
ALL_MESSAGES = &HFFFFFFFF
WM_NULL = &H0
WM_CREATE = &H1
WM_DESTROY = &H2
WM_MOVE = &H3
WM_SIZE = &H5
WM_ACTIVATE = &H6
WM_SETFOCUS = &H7
WM_KILLFOCUS = &H8
WM_ENABLE = &HA
WM_SETREDRAW = &HB
WM_SETTEXT = &HC
WM_GETTEXT = &HD
WM_GETTEXTLENGTH = &HE
WM_PAINT = &HF
WM_CLOSE = &H10
WM_QUERYENDSESSION = &H11
WM_QUIT = &H12
WM_QUERYOPEN = &H13
WM_ERASEBKGND = &H14
WM_SYSCOLORCHANGE = &H15
WM_ENDSESSION = &H16
WM_SHOWWINDOW = &H18
WM_WININICHANGE = &H1A
WM_SETTINGCHANGE = &H1A
WM_DEVMODECHANGE = &H1B
WM_ACTIVATEAPP = &H1C
WM_FONTCHANGE = &H1D
WM_TIMECHANGE = &H1E
WM_CANCELMODE = &H1F
WM_SETCURSOR = &H20
WM_MOUSEACTIVATE = &H21
WM_CHILDACTIVATE = &H22
WM_QUEUESYNC = &H23
WM_GETMINMAXINFO = &H24
WM_PAINTICON = &H26
WM_ICONERASEBKGND = &H27
WM_NEXTDLGCTL = &H28
WM_SPOOLERSTATUS = &H2A
WM_DRAWITEM = &H2B
WM_MEASUREITEM = &H2C
WM_DELETEITEM = &H2D
WM_VKEYTOITEM = &H2E
WM_CHARTOITEM = &H2F
WM_SETFONT = &H30
WM_GETFONT = &H31
WM_SETHOTKEY = &H32
WM_GETHOTKEY = &H33
WM_QUERYDRAGICON = &H37
WM_COMPAREITEM = &H39
WM_GETOBJECT = &H3D
WM_COMPACTING = &H41
WM_WINDOWPOSCHANGING = &H46
WM_WINDOWPOSCHANGED = &H47
WM_POWER = &H48
WM_COPYDATA = &H4A
WM_CANCELJOURNAL = &H4B
WM_NOTIFY = &H4E
WM_INPUTLANGCHANGEREQUEST = &H50
WM_INPUTLANGCHANGE = &H51
WM_TCARD = &H52
WM_HELP = &H53
WM_USERCHANGED = &H54
WM_NOTIFYFORMAT = &H55
WM_CONTEXTMENU = &H7B
WM_STYLECHANGING = &H7C
WM_STYLECHANGED = &H7D
WM_DISPLAYCHANGE = &H7E
WM_GETICON = &H7F
WM_SETICON = &H80
WM_NCCREATE = &H81
WM_NCDESTROY = &H82
WM_NCCALCSIZE = &H83
WM_NCHITTEST = &H84
WM_NCPAINT = &H85
WM_NCACTIVATE = &H86
WM_GETDLGCODE = &H87
WM_SYNCPAINT = &H88
WM_NCMOUSEMOVE = &HA0
WM_NCLBUTTONDOWN = &HA1
WM_NCLBUTTONUP = &HA2
WM_NCLBUTTONDBLCLK = &HA3
WM_NCRBUTTONDOWN = &HA4
WM_NCRBUTTONUP = &HA5
WM_NCRBUTTONDBLCLK = &HA6
WM_NCMBUTTONDOWN = &HA7
WM_NCMBUTTONUP = &HA8
WM_NCMBUTTONDBLCLK = &HA9
WM_KEYFIRST = &H100
WM_KEYDOWN = &H100
WM_KEYUP = &H101
WM_CHAR = &H102
WM_DEADCHAR = &H103
WM_SYSKEYDOWN = &H104
WM_SYSKEYUP = &H105
WM_SYSCHAR = &H106
WM_SYSDEADCHAR = &H107
WM_KEYLAST = &H108
WM_IME_STARTCOMPOSITION = &H10D
WM_IME_ENDCOMPOSITION = &H10E
WM_IME_COMPOSITION = &H10F
WM_IME_KEYLAST = &H10F
WM_INITDIALOG = &H110
WM_COMMAND = &H111
WM_SYSCOMMAND = &H112
WM_TIMER = &H113
WM_HSCROLL = &H114
WM_VSCROLL = &H115
WM_INITMENU = &H116
WM_INITMENUPOPUP = &H117
WM_MENUSELECT = &H11F
WM_MENUCHAR = &H120
WM_ENTERIDLE = &H121
WM_MENURBUTTONUP = &H122
WM_MENUDRAG = &H123
WM_MENUGETOBJECT = &H124
WM_UNINITMENUPOPUP = &H125
WM_MENUCOMMAND = &H126
WM_CTLCOLORMSGBOX = &H132
WM_CTLCOLOREDIT = &H133
WM_CTLCOLORLISTBOX = &H134
WM_CTLCOLORBTN = &H135
WM_CTLCOLORDLG = &H136
WM_CTLCOLORSCROLLBAR = &H137
WM_CTLCOLORSTATIC = &H138
WM_MOUSEFIRST = &H200
WM_MOUSEMOVE = &H200
WM_LBUTTONDOWN = &H201
WM_LBUTTONUP = &H202
WM_LBUTTONDBLCLK = &H203
WM_RBUTTONDOWN = &H204
WM_RBUTTONUP = &H205
WM_RBUTTONDBLCLK = &H206
WM_MBUTTONDOWN = &H207
WM_MBUTTONUP = &H208
WM_MBUTTONDBLCLK = &H209
WM_MOUSEWHEEL = &H20A
WM_PARENTNOTIFY = &H210
WM_ENTERMENULOOP = &H211
WM_EXITMENULOOP = &H212
WM_NEXTMENU = &H213
WM_SIZING = &H214
WM_CAPTURECHANGED = &H215
WM_MOVING = &H216
WM_DEVICECHANGE = &H219
WM_MDICREATE = &H220
WM_MDIDESTROY = &H221
WM_MDIACTIVATE = &H222
WM_MDIRESTORE = &H223
WM_MDINEXT = &H224
WM_MDIMAXIMIZE = &H225
WM_MDITILE = &H226
WM_MDICASCADE = &H227
WM_MDIICONARRANGE = &H228
WM_MDIGETACTIVE = &H229
WM_MDISETMENU = &H230
WM_ENTERSIZEMOVE = &H231
WM_EXITSIZEMOVE = &H232
WM_DROPFILES = &H233
WM_MDIREFRESHMENU = &H234
WM_IME_SETCONTEXT = &H281
WM_IME_NOTIFY = &H282
WM_IME_CONTROL = &H283
WM_IME_COMPOSITIONFULL = &H284
WM_IME_SELECT = &H285
WM_IME_CHAR = &H286
WM_IME_REQUEST = &H288
WM_IME_KEYDOWN = &H290
WM_IME_KEYUP = &H291
WM_MOUSEHOVER = &H2A1
WM_MOUSELEAVE = &H2A3
WM_CUT = &H300
WM_COPY = &H301
WM_PASTE = &H302
WM_CLEAR = &H303
WM_UNDO = &H304
WM_RENDERFORMAT = &H305
WM_RENDERALLFORMATS = &H306
WM_DESTROYCLIPBOARD = &H307
WM_DRAWCLIPBOARD = &H308
WM_PAINTCLIPBOARD = &H309
WM_VSCROLLCLIPBOARD = &H30A
WM_SIZECLIPBOARD = &H30B
WM_ASKCBFORMATNAME = &H30C
WM_CHANGECBCHAIN = &H30D
WM_HSCROLLCLIPBOARD = &H30E
WM_QUERYNEWPALETTE = &H30F
WM_PALETTEISCHANGING = &H310
WM_PALETTECHANGED = &H311
WM_HOTKEY = &H312
WM_PRINT = &H317
WM_PRINTCLIENT = &H318
WM_THEMECHANGED = &H31A
WM_HANDHELDFIRST = &H358
WM_HANDHELDLAST = &H35F
WM_AFXFIRST = &H360
WM_AFXLAST = &H37F
WM_PENWINFIRST = &H380
WM_PENWINLAST = &H38F
WM_USER = &H400
WM_APP = &H8000
MA WM_MOUSEACTIVATE Return Codes
MA_ACTIVATE = &H1 Activates the window, and does not discard the mouse message
MA_ACTIVATEANDEAT = &H2 Activates the window, and does not discard the mouse message
MA_NOACTIVATE = &H3 Does not activate the window, and does not discard the mouse message
MA_NOACTIVATEANDEAT = &H4 Does not activate the window, but discards the mouse message
WS Standard Windows Styles
WS_OVERLAPPED = &H0 Window style: overlapped
WS_POPUP = &H80000000 Window style: popup
WS_CHILD = &H40000000 Window style: child
WS_MINIMIZE = &H20000000 Window style: minimized
WS_VISIBLE = &H10000000 Window style: visible
WS_DISABLED = &H8000000 Window style: disabled
WS_CLIPSIBLINGS = &H4000000 Window style: clip sibblings
WS_CLIPCHILDREN = &H2000000 Window style: clip children
WS_MAXIMIZE = &H1000000 Window style: maximized
WS_CAPTION = &HC00000 Window style: has caption
WS_BORDER = &H800000 Window style: has border
WS_DLGFRAME = &H400000 Window style: has dialog frame
WS_VSCROLL = &H200000 Window style: has vertical scroll bar
WS_HSCROLL = &H100000 Window style: has horizontal scroll bar
WS_SYSMENU = &H80000 Window style: has system menu
WS_THICKFRAME = &H40000 Window style: has thick frame
WS_GROUP = &H20000 Window style: part of group
WS_TABSTOP = &H10000 Window style: has tabstop
WS_MINIMIZEBOX = &H20000 Window style: has minimize box
WS_MAXIMIZEBOX = &H10000 Window style: has maximize box
WS_TILED = &H0 Window style: overlapped
WS_ICONIC = &H20000000 Window style: minimized
WS_SIZEBOX = &H40000 Window style: has thick frame
WS_TILEDWINDOW = &HCF0000 Window style: overlapped window (WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX)
WS_OVERLAPPEDWINDOW = &HCF0000 Window style: overlapped window (WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX)
WS_POPUPWINDOW = &H80880000 Window style: popup window (WS_POPUP, WS_BORDER, and WS_SYSMENU)
WS_CHILDWINDOW = &H40000000 Window style: child window (WS_CHILD)
WS_EX Extended Windows Styles
WS_EX_DLGMODALFRAME = &H1 Extended window style: dialog modal frame
WS_EX_NOPARENTNOTIFY = &H4 Extended window style: don't notify parent
WS_EX_TOPMOST = &H8 Extended window style: keep topmost
WS_EX_ACCEPTFILES = &H10 Extended window style: accept dragged files
WS_EX_TRANSPARENT = &H20 Extended window style: transparent
WS_EX_MDICHILD = &H40 Extended window style: MDI child
WS_EX_TOOLWINDOW = &H80 Extended window style: floating toolbar
WS_EX_WINDOWEDGE = &H100 Extended window style: raised edge
WS_EX_CLIENTEDGE = &H200 Extended window style: 3D border
WS_EX_CONTEXTHELP = &H400 Extended window style: question mark icon in title bar
WS_EX_RIGHT = &H1000 Extended window style: generic right-aligned properties
WS_EX_LEFT = &H0 Extended window style: generic left-aligned properties
WS_EX_RTLREADING = &H2000 Extended window style: right-to-left reading order properties
WS_EX_LTRREADING = &H0 Extended window style: left-to-right reading order properties
WS_EX_LEFTSCROLLBAR = &H4000 Extended window style: left vertical scroll bar
WS_EX_RIGHTSCROLLBAR = &H0 Extended window style: right vertical scroll bar
WS_EX_CONTROLPARENT = &H10000 Extended window style: uses tab to navigate
WS_EX_STATICEDGE = &H20000 Extended window style: no user input 3D border
WS_EX_APPWINDOW = &H40000 Extended window style: forces window on toolbar
WS_EX_OVERLAPPEDWINDOW = &H300 Extended window style: 3D raised edge
WS_EX_PALETTEWINDOW = &H188 Extended window style:
WS_EX_LAYERED = &H80000
WS_EX_NOINHERITLAYOUT = &H100000 Extended window style: disable inheritence of mirroring by children
WS_EX_LAYOUTRTL = &H400000 Extended window style: right to left mirroring
WS_EX_COMPOSITED = &H2000000
WS_EX_NOACTIVATE = &H8000000
SW ShowWindow/WinExec constants
SW_HIDE = &H0 WinExec/ShowWindow: Hide window and activate next window
SW_SHOWNORMAL = &H1 WinExec/ShowWindow: Activate window in its current state
SW_NORMAL = &H1 WinExec/ShowWindow: Activate window in its current state
SW_SHOWMINIMIZED = &H2 WinExec/ShowWindow: Activate and minimize window
SW_SHOWMAXIMIZED = &H3 WinExec/ShowWindow: Activate and maximize window
SW_MAXIMIZE = &H3 WinExec/ShowWindow: Activate and maximize window
SW_SHOWNOACTIVATE = &H4 WinExec/ShowWindow: Show window in current state, but don't change active window
SW_SHOW = &H5 WinExec/ShowWindow: Show window in current or startup state
SW_MINIMIZE = &H6 WinExec/ShowWindow: Minimize window and make next window active
SW_SHOWMINNOACTIVE = &H7 WinExec/ShowWindow: Minimize window, but don't change active window
SW_SHOWNA = &H8 WinExec/ShowWindow: Show window in current state, but don't change active window
SW_RESTORE = &H9 WinExec/ShowWindow: Make window active, and restore from miminized or maximized state
SW_SHOWDEFAULT = &HA ShowWindow: Show window in startup state
SW_MAX = &HA ShowWindow: Show window in startup state
SC System Menu Command Values
SC_SIZE = &HF000
SC_MOVE = &HF010
SC_MINIMIZE = &HF020
SC_MAXIMIZE = &HF030
SC_NEXTWINDOW = &HF040
SC_PREVWINDOW = &HF050
SC_CLOSE = &HF060
SC_VSCROLL = &HF070
SC_HSCROLL = &HF080
SC_MOUSEMENU = &HF090
SC_KEYMENU = &HF100
SC_ARRANGE = &HF110
SC_RESTORE = &HF120
SC_TASKLIST = &HF130
SC_SCREENSAVE = &HF140
SC_HOTKEY = &HF150
SC_DEFAULT = &HF160
SC_MONITORPOWER = &HF170
SC_CONTEXTHELP = &HF180
SC_SEPARATOR = &HF00F
PAGE Memory protection options
PAGE_NOACCESS = &H1 Disables all access to the committed region of pages
PAGE_READONLY = &H2 Enables read access to the committed region of pages
PAGE_READWRITE = &H4 Enables both read and write access to the committed region of pages
PAGE_WRITECOPY = &H8 Gives copy-on-write access to the committed region of pages
PAGE_EXECUTE = &H10 Enables execute access to the committed region of pages
PAGE_EXECUTE_READ = &H20 Enables execute and read access to the committed region of pages
PAGE_EXECUTE_READWRITE = &H40 Enables execute, read, and write access to the committed region of pages
PAGE_EXECUTE_WRITECOPY = &H80 Enables execute, read, and write access to the committed region of pages
PAGE_GUARD = &H100 Pages in the region become guard pages
PAGE_NOCACHE = &H200 Allows no caching of the committed regions of pages
VER_PLATFORM Identifies the operating system platform
VER_PLATFORM_WIN32s = &H0 Win32s on Windows 3.1
VER_PLATFORM_WIN32_WINDOWS = &H1 Win32 on Windows 95 or Windows 98
VER_PLATFORM_WIN32_NT = &H2 Win32 on Windows NT
STARTF Startup Information Flags
STARTF_USESHOWWINDOW = &H1
STARTF_USESIZE = &H2
STARTF_USEPOSITION = &H4
STARTF_USECOUNTCHARS = &H8
STARTF_USEFILLATTRIBUTE = &H10
STARTF_RUNFULLSCREEN = &H20
STARTF_FORCEONFEEDBACK = &H40
STARTF_FORCEOFFFEEDBACK = &H80
STARTF_USESTDHANDLES = &H100
PROCESSF Process creation flags are used by the CreateProcess and CreateProcessAsUser functions.
DEBUG_PROCESS = &H1
DEBUG_ONLY_THIS_PROCESS = &H2
CREATE_SUSPENDED = &H4
DETACHED_PROCESS = &H8
CREATE_NEW_CONSOLE = &H10
NORMAL_PRIORITY_CLASS = &H20
IDLE_PRIORITY_CLASS = &H40
HIGH_PRIORITY_CLASS = &H80
REALTIME_PRIORITY_CLASS = &H100
CREATE_NEW_PROCESS_GROUP = &H200
CREATE_UNICODE_ENVIRONMENT = &H400
CREATE_SEPARATE_WOW_VDM = &H800
CREATE_SHARED_WOW_VDM = &H1000
CREATE_FORCEDOS = &H2000
BELOW_NORMAL_PRIORITY_CLASS = &H4000
ABOVE_NORMAL_PRIORITY_CLASS = &H8000
STACK_SIZE_PARAM_IS_A_RESERVATION = &H10000
CREATE_BREAKAWAY_FROM_JOB = &H1000000
CREATE_PRESERVE_CODE_AUTHZ_LEVEL = &H2000000
CREATE_DEFAULT_ERROR_MODE = &H4000000
CREATE_NO_WINDOW = &H8000000
PROFILE_USER = &H10000000
PROFILE_KERNEL = &H20000000
PROFILE_SERVER = &H40000000
CREATE_IGNORE_SYSTEM_DEFAULT = &H80000000
FILE_ACCESS Access rights that are specific to files and directories
GENERIC_READ = &H80000000
GENERIC_WRITE = &H40000000
GENERIC_EXECUTE = &H20000000
GENERIC_ALL = &H10000000
CREATION_DISPOSITION Action to take on files that exist, and which action to take when files do not exist
CREATE_NEW = &H1
CREATE_ALWAYS = &H2
OPEN_EXISTING = &H3
OPEN_ALWAYS = &H4
TRUNCATE_EXISTING = &H5
WinFileShareMode
FILE_SHARE_READ = &H1
FILE_SHARE_WRITE = &H2
WinFileAttribute
FILE_ATTRIBUTE_READONLY = &H1
FILE_ATTRIBUTE_HIDDEN = &H2
FILE_ATTRIBUTE_SYSTEM = &H4
FILE_ATTRIBUTE_DIRECTORY = &H10
FILE_ATTRIBUTE_ARCHIVE = &H20
FILE_ATTRIBUTE_NORMAL = &H80
FILE_ATTRIBUTE_TEMPORARY = &H100
FILE_ATTRIBUTE_COMPRESSED = &H800
WinOpenFile
OF_READ = &H0
OF_WRITE = &H1
OF_READWRITE = &H2
OF_SHARE_COMPAT = &H0
OF_SHARE_EXCLUSIVE = &H10
OF_SHARE_DENY_WRITE = &H20
OF_SHARE_DENY_READ = &H30
OF_SHARE_DENY_NONE = &H40
OF_PARSE = &H100
OF_DELETE = &H200
OF_VERIFY = &H400
OF_SEARCH = &H400
OF_CANCEL = &H800
OF_CREATE = &H1000
OF_PROMPT = &H2000
OF_EXIST = &H4000
OF_REOPEN = &H8000
WinFileFlag
FILE_FLAG_WRITE_THROUGH = &H80000000
FILE_FLAG_OVERLAPPED = &H40000000
FILE_FLAG_NO_BUFFERING = &H20000000
FILE_FLAG_RANDOM_ACCESS = &H10000000
FILE_FLAG_SEQUENTIAL_SCAN = &H8000000
FILE_FLAG_DELETE_ON_CLOSE = &H4000000
FILE_FLAG_BACKUP_SEMANTICS = &H2000000
FILE_FLAG_POSIX_SEMANTICS = &H1000000
FORMAT_MESSAGE
FORMAT_MESSAGE_MAX_WIDTH_MASK = &HFF
FORMAT_MESSAGE_ALLOCATE_BUFFER = &H100
FORMAT_MESSAGE_IGNORE_INSERTS = &H200
FORMAT_MESSAGE_FROM_STRING = &H400
FORMAT_MESSAGE_FROM_HMODULE = &H800
FORMAT_MESSAGE_FROM_SYSTEM = &H1000
FORMAT_MESSAGE_ARGUMENT_ARRAY = &H2000

Types

POINT Defines the x- and y- coordinates of a point.
x As Long
y As Long
POINTS
x As Integer
y As Integer
RECT Defines the upper-left corner, width, and height of a rectangle.
left As Long
top As Long
right As Long
bottom As Long
OSVERSIONINFO Operating system version information
dwOSVersionInfoSize As Long OSVERSIONINFO : size, in bytes, of this data structure
dwMajorVersion As Long OSVERSIONINFO : major version
dwMinorVersion As Long OSVERSIONINFO : minor version
dwBuildNumber As Long
dwPlatformId As Long OSVERSIONINFO : Identifies the operating system platform
szCSDVersion As Fixed Array
PROCESS_INFORMATION
hProcess As Long Handle to the newly created process
hThread As Long
dwProcessId As Long
dwThreadId As Long
STARTUPINFO Used with the CreateProcess, CreateProcessAsUser, and CreateProcessWithLogonW functions to specify the window station, desktop, standard handles, and appearance of the main window for the new process
cb As Long Size of the structure, in bytes
lpReserved As Long Reserved
lpDesktop As Long Pointer to a null-terminated string that specifies either the name of the desktop, or the name of both the desktop and window station for this process.
lpTitle As Long For console processes, this is the title displayed in the title bar if a new console window is created.
dwX As Long If dwFlags specifies STARTF_USEPOSITION, this member is the x offset of the upper left corner of a window if a new window is created, in pixels.
dwY As Long If dwFlags specifies STARTF_USEPOSITION, this member is the y offset of the upper left corner of a window if a new window is created, in pixels. Otherwise, this member is ignored.
dwXSize As Long If dwFlags specifies STARTF_USESIZE, this member is the width of the window if a new window is created, in pixels. Otherwise, this member is ignored.
dwYSize As Long If dwFlags specifies STARTF_USESIZE, this member is the height of the window if a new window is created, in pixels. Otherwise, this member is ignored.
dwXCountChars As Long If dwFlags specifies STARTF_USECOUNTCHARS, if a new console window is created in a console process, this member specifies the screen buffer width, in character columns. Otherwise, this member is ignored.
dwYCountChars As Long If dwFlags specifies STARTF_USECOUNTCHARS, if a new console window is created in a console process, this member specifies the screen buffer height, in character rows. Otherwise, this member is ignored.
dwFillAttribute As Long If dwFlags specifies STARTF_USEFILLATTRIBUTE, this member is the initial text and background colors if a new console window is created in a console application. Otherwise, this member is ignored.
dwFlags As Long Bit field that determines whether certain STARTUPINFO members are used when the process creates a window. This member can be one or more of the following values.
wShowWindow As Integer
cbReserved2 As Integer
lpReserved2 As Long
hStdInput As Long
hStdOutput As Long
hStdError As Long
FILETIME
dwLowDateTime As Long
dwHighDateTime As Long
SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
SECURITY_ATTRIBUTES
nLength As Long
lpSecurityDescriptor As Long
bInheritHandle As Long
WIN32_FIND_DATA
dwFileAttributes As Long
ftCreationTime As FILETIME
ftLastAccessTime As FILETIME
ftLastWriteTime As FILETIME
nFileSizeHigh As Long
nFileSizeLow As Long
dwReserved0 As Long
dwReserved1 As Long
cFileName As Fixed Array
cAlternateFileName As Fixed Array

Functions

CopyMemory Moves memory either forward or backward, aligned or unaligned, in 4-byte blocks, followed by any remaining bytes
Sub CopyMemory (ByRef hpvDest As Any, ByRef hpvSource As Any, ByVal cbCopy As Long) As Any
IsBadReadPtr Verifies that the calling process has read access to the specified range of memory
Function IsBadReadPtr (ByRef lp As Any, ByVal ucb As Long) As Long
IsBadWritePtr Verifies that the calling process has read access to the specified range of memory
Function IsBadWritePtr (ByRef lp As Any, ByVal ucb As Long) As Long
IsBadCodePtr Verifies that the calling process has read access to the specified range of memory
Function IsBadCodePtr (ByVal lpfn As Long) As Long
ZeroMemory The ZeroMemory function fills a block of memory with zeros
Function ZeroMemory (ByRef Destination As Any, ByVal Length As Long) As Any
GetProcessHeap Obtains a handle to the heap of the calling process
Function GetProcessHeap () As Long
HeapAlloc Allocates a block of memory from a heap. The allocated memory is not movable
Function HeapAlloc (ByVal hHeap As Long, ByVal dwFlags As Long, ByVal dwBytes As Long) As Long
HeapFree Frees a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function
Function HeapFree (ByVal hHeap As Long, ByVal dwFlags As Long, ByRef lpMem As Any) As Long
GlobalHandle Retrieves the handle associated with the specified pointer to a global memory block
Function GlobalHandle (ByRef pMem As Any) As Long
GlobalAlloc Allocates the specified number of bytes from the heap. Win32 memory management does not provide a separate local heap and global heap
Function GlobalAlloc (ByVal uFlags As Long, ByVal dwBytes As Long) As Long
GlobalLock Locks a global memory object and returns a pointer to the first byte of the object's memory block
Function GlobalLock (ByVal hMem As Long) As Long
GlobalUnlock Decrements the lock count associated with a memory object that was allocated with the GMEM_MOVEABLE flag. This function has no effect on memory objects allocated with the GMEM_FIXED flag
Function GlobalUnlock (ByVal hMem As Long) As Long
GlobalFree Frees the specified global memory object and invalidates its handle
Function GlobalFree (ByVal hMem As Long) As Long
LocalAlloc Allocates the specified number of bytes from the heap
Function LocalAlloc (ByVal uFlags As Long, ByVal uBytes As Long) As Long
LocalFree Frees the specified local memory object and invalidates its handle
Function LocalFree (ByVal hMem As Long) As Long
VirtualProtect Changes the access protection on a region of committed pages in the virtual address space of the calling process
Function VirtualProtect (ByRef lpAddress As Any, ByVal dwSize As Long, ByVal flNewProtect As Long, ByRef lpflOldProtect As Long) As Long
FreeLibrary Decrements the reference count of the loaded dynamic-link library (DLL). When the reference count reaches zero, the module is unmapped from the address space of the calling process and the handle is no longer valid.
Function FreeLibrary (ByVal hLibModule As Long) As Long
GetModuleHandle Retrieves a module handle for the specified module if the file has been mapped into the address space of the calling process.
Function GetModuleHandle (ByVal lpModuleName As String) As Long
GetProcAddress Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).
Function GetProcAddress (ByVal hModule As Long, ByVal lpProcName As String) As Long
GetTickCount Retrieves the number of milliseconds that have elapsed since the system was started. It is limited to the resolution of the system timer. To obtain the system timer resolution, use the GetSystemTimeAdjustment function.
Function GetTickCount () As Long
GetVersion Returns the current version number of the operating system.
Function GetVersion () As Long
GetVersionEx Obtains extended information about the version of the operating system that is currently running.
Function GetVersionEx (ByRef pVersionInformation As Any) As Long
LoadLibrary Maps the specified executable module into the address space of the calling process.
Function LoadLibrary (ByVal lpLibFileName As String) As Long
FindResource Determines the location of a resource with the specified type and name in the specified module.
Function FindResource (ByVal hModule As Long, ByVal lpName As String, ByVal lpType As String) As Long
lstrlenA Returns the length in bytes (ANSI version) of the specified string (not including the terminating null character)
Function lstrlenA (ByRef lpString As Any) As Long
lstrlenW Returns the length in characters (Unicode version) of the specified string (not including the terminating null character)
Function lstrlenW (ByRef lpString As Any) As Long
lstrcpy Copies a string to a buffer
Function lstrcpy (ByVal lpString1 As Long, ByVal lpString2 As Long) As Long
lstrcpyA Copies a string to a buffer
Function lstrcpyA (ByVal lpString1 As String, ByVal lpString2 As String) As Long
GetLastError Returns the calling thread's last-error code value
Function GetLastError () As Long
FormatMessage Formats a message string
Function FormatMessage (ByVal dwFlags As Long, ByRef lpSource As Any, ByVal dwMessageId As Long, ByVal dwLanguageId As Long, ByVal lpBuffer As String, ByVal nSize As Long, ByRef Arguments As Long) As Long
GetVolumeInformation Returns information about a file system and volume whose root directory is specified
Function GetVolumeInformation (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As String, ByVal nVolumeNameSize As Long, ByRef lpVolumeSerialNumber As Long, ByRef lpMaximumComponentLength As Long, ByRef lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long
CopyFile Copies an existing file to a new file
Function CopyFile (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As Long) As Long
CreateDirectory Creates a new directory
Function CreateDirectory (ByVal lpPathName As String, ByRef lpSecurityAttributes As Any) As Long
GetTempFileNameA Creates a name for a temporary file
Function GetTempFileNameA (ByVal lpPathName As String, ByVal lpPrefixString As String, ByVal uUnique As Long, ByVal lpTempFileName As String) As Long
GetLongPathName Converts the specified path to its long form. If no long path is found, this function simply returns the specified name.
Function GetLongPathName (ByVal lpszShortPath As String, ByVal lpszLongPath As String, ByVal cchBuffer As Long) As Long
GetShortPathName Converts the specified path to its short form. If no long path is found, this function simply returns the specified name.
Function GetShortPathName (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long
GetTempPathA Retrieves the path of the directory designated for temporary files
Function GetTempPathA (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
CreateFile Creates or opens the following objects and returns a handle that can be used to access the object
Function CreateFile (ByVal lpFileName As String, ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, ByRef lpSecurityAttributes As Any, ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, ByVal hTemplateFile As Long) As Long
ReadFile Reads data from a file, starting at the position indicated by the file pointer
Function ReadFile (ByVal hFile As Long, ByRef lpBuffer As Any, ByVal nNumberOfBytesToRead As Long, ByRef lpNumberOfBytesRead As Long, ByRef lpOverlapped As Any) As Long
WriteFile Writes data to a file and is designed for both synchronous and asynchronous operation
Function WriteFile (ByVal hFile As Long, ByRef lpBuffer As Any, ByVal nNumberOfBytesToWrite As Long, ByRef lpNumberOfBytesWritten As Long, ByRef lpOverlapped As Any) As Long
FindClose Closes the specified search handle
Function FindClose (ByVal hFindFile As Long) As Long
FindFirstFile Searches a directory for a file whose name matches the specified filename
Function FindFirstFile (ByVal lpFileName As String, ByRef lpFindFileData As Any) As Long
FindNextFile Searches a directory for a file whose name matches the specified filename
Function FindNextFile (ByVal hFindFile As Long, ByRef lpFindFileData As Any) As Long
GetFileTime Get the date and time that a file was created, last accessed, or last modified
Function GetFileTime (ByVal hFile As Long, ByRef lpCreationTime As FILETIME, ByRef lpLastAccessTime As FILETIME, ByRef lpLastWriteTime As FILETIME) As Long
SetFileTime Sets the date and time that a file was created, last accessed, or last modified
Function SetFileTime (ByVal hFile As Long, ByRef lpCreationTime As FILETIME, ByRef lpLastAccessTime As FILETIME, ByRef lpLastWriteTime As FILETIME) As Long
SetFileAttributes Sets a file's attributes
Function SetFileAttributes (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long
lopen Opens an existing file and sets the file pointer to the beginning of the file
Function lopen (ByVal lpPathName As String, ByVal iReadWrite As Long) As Long
lclose Closes the specified file so that it is no longer available for reading or writing
Function lclose (ByVal hFile As Long) As Long
FileTimeToLocalFileTime Converts a file time based on the Coordinated Universal Time (UTC) to a local file time
Function FileTimeToLocalFileTime (ByRef lpFileTime As FILETIME, ByRef lpLocalFileTime As FILETIME) As Long
FileTimeToSystemTime Converts a 64-bit file time to system time format
Function FileTimeToSystemTime (ByRef lpFileTime As FILETIME, ByRef lpSystemTime As SYSTEMTIME) As Long
SystemTimeToFileTime Converts a system time to a file time
Function SystemTimeToFileTime (ByRef lpSystemTime As SYSTEMTIME, ByRef lpFileTime As FILETIME) As Long
LocalFileTimeToFileTime Converts a local file time to a file time based on the Coordinated Universal Time (UTC).
Function LocalFileTimeToFileTime (ByRef lpLocalFileTime As FILETIME, ByRef lpFileTime As FILETIME) As Long
DuplicateHandle Duplicates an object handle
Function DuplicateHandle (ByVal hSourceProcessHandle As Long, ByVal hSourceHandle As Long, ByVal hTargetProcessHandle As Long, ByRef lpTargetHandle As Long, ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwOptions As Long) As Long
CloseHandle Closes an open object handle
Function CloseHandle (ByVal hObject As Long) As Long
GetStdHandle returns a handle for the standard input, standard output, or standard error device
Function GetStdHandle (ByVal nStdHandle As Long) As Long
SetStdHandle Is used to set the handle for the standard input, standard output, or standard error device
Function SetStdHandle (ByVal nStdHandle As Long, ByVal hHandle As Long) As Long
GetCurrentProcess Returns a pseudohandle for the current process
Function GetCurrentProcess () As Long
GetCurrentProcessId Returns the process identifier of the calling process
Function GetCurrentProcessId () As Long
GetCurrentThreadId Returns the thread identifier of the calling thread
Function GetCurrentThreadId () As Long
CreateProcess Creates a new process and its primary thread
Function CreateProcess (ByVal lpApplicationName As String, ByVal lpCommandLine As String, ByRef lpProcessAttributes As Any, ByRef lpThreadAttributes As Any, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, ByRef lpEnvironment As Any, ByVal lpCurrentDirectory As String, ByRef lpStartupInfo As Any, ByRef lpProcessInformation As Any) As Long
CreateThread create a thread that runs in the virtual address space of another process, use the CreateRemoteThread function.
Function CreateThread (ByRef lpThreadAttributes As Any, ByVal dwStackSize As Long, ByVal lpStartAddress As Long, ByRef lpParameter As Any, ByVal dwCreationFlags As Long, ByRef lpThreadId As Long) As Long
Sleep Suspends the execution of the current thread for a specified interval
Function Sleep (ByVal dwMilliseconds As Long) As Any
GetModuleFileName Retrieves the full path and filename for the executable file containing the specified module
Function GetModuleFileName (ByVal hModule As Long, ByVal lpFileName As String, ByVal nSize As Long) As Long
CreatePipe Creates an anonymous pipe, and returns handles to the read and write ends of the pipe
Function CreatePipe (ByRef hReadPipe As Long, ByRef hWritePipe As Long, ByRef lpPipeAttributes As Any, ByVal nSize As Long) As Long
PeekNamedPipe Copies data from a named or anonymous pipe into a buffer without removing it from the pipe. It also returns information about data in the pipe
Function PeekNamedPipe (ByVal hNamedPipe As Long, ByRef lpBuffer As Any, ByVal nBufferSize As Long, ByRef lpBytesRead As Long, ByRef lpTotalBytesAvail As Long, ByRef lpBytesLeftThisMessage As Long) As Long
CreateEvent Creates or opens a named or unnamed event object.
Function CreateEvent (ByRef lpEventAttributes As Any, ByVal bManualReset As Long, ByVal bInitialState As Long, ByVal lpName As String) As Long
OpenEvent Opens an existing named event object.
Function OpenEvent (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal lpName As String) As Long
SetEvent Sets the specified event object to the signaled state.
Function SetEvent (ByVal hEvent As Long) As Long
ResetEvent Sets the specified event object to the nonsignaled state.
Function ResetEvent (ByVal hEvent As Long) As Long
PulseEvent Sets the specified event object to the signaled state and then resets it to the nonsignaled state after releasing the appropriate number of waiting threads.
Function PulseEvent (ByVal hEvent As Long) As Long
WaitForSingleObject Returns when one of the following occurs: the specified object is in the signaled state, the time-out interval elapses
Function WaitForSingleObject (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long
WaitForMultipleObjects Returns when one of the following occurs: Either any one or all of the specified objects are in the signaled state, The time-out interval elapses.
Function WaitForMultipleObjects (ByVal nCount As Long, ByRef lpHandles As Long, ByVal bWaitAll As Long, ByVal dwMilliseconds As Long) As Long
GlobalAddAtom Adds a character string to the global atom table and returns a unique value (an atom) identifying the string
Function GlobalAddAtom (ByVal lpString As String) As Long
GlobalDeleteAtom Decrements the reference count of a global string atom
Function GlobalDeleteAtom (ByVal nAtom As Long) As Long
MulDiv The MulDiv function multiplies two 32-bit values and then divides the 64-bit result by a third 32-bit value. The return value is rounded up or down to the nearest integer
Function MulDiv (ByVal nNumber As Long, ByVal nNumerator As Long, ByVal nDenominator As Long) As Long
GetComputerName Retrieves the computer name of the current system
Function GetComputerName (ByVal lpBuffer As String, ByRef nSize As Long) As Long
GetWindowsDirectory Retrieves the path of the Windows directory
Function GetWindowsDirectory (ByVal lpBuffer As String, ByVal uSize As Long) As Long
GetSystemDirectory Retrieves the path of the system directory
Function GetSystemDirectory (ByVal lpBuffer As String, ByVal uSize As Long) As Long
GetPrivateProfileSectionNames Retrieves the names of all sections in an initialization file
Function GetPrivateProfileSectionNames (ByVal lpszReturnBuffer As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
GetPrivateProfileSection Retrieves all the keys and values for the specified section of an initialization file
Function GetPrivateProfileSection (ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
GetPrivateProfileString Retrieves a string from the specified section in an initialization file
Function GetPrivateProfileString (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
WritePrivateProfileString Copies a string into the specified section of the specified initialization file
Function WritePrivateProfileString (ByVal lpAppName As String, ByVal lpKeyName As Long, ByVal lpString As String, ByVal lpFileName As String) As Long
GetMailslotInfo Retrieves information about the specified mailslot
Function GetMailslotInfo (ByVal hMailslot As Long, ByRef lpMaxMessageSize As Long, ByRef lpNextSize As Long, ByRef lpMessageCount As Long, ByRef lpReadTimeout As Long) As Long
CreateMailslot Retrieves information about the specified mailslot
Function CreateMailslot (ByVal lpName As String, ByVal nMaxMessageSize As Long, ByVal lReadTimeout As Long, ByRef lpSecurityAttributes As Any) As Long

Module WinGDI

Enums

BS
BS_SOLID = &H0
BS_NULL = &H1
BS_HOLLOW = &H1
BS_HATCHED = &H2
BS_PATTERN = &H3
BS_INDEXED = &H4
BS_DIBPATTERN = &H5
BS_DIBPATTERNPT = &H6
BS_PATTERN8X8 = &H7
BS_DIBPATTERN8X8 = &H8
BS_MONOPATTERN = &H9
ELFQUALITY
DEFAULT_QUALITY = &H0
DRAFT_QUALITY = &H1
PROOF_QUALITY = &H2
NONANTIALIASED_QUALITY = &H3
ANTIALIASED_QUALITY = &H4
CLEARTYPE_QUALITY = &H5
CLEARTYPE_NATURAL_QUALITY = &H6
WinBI
BI_RGB = &H0
BI_RLE8 = &H1
BI_RLE4 = &H2
WinDP
DRIVERVERSION = &H0
TECHNOLOGY = &H2
HORZSIZE = &H4
VERTSIZE = &H6
HORZRES = &H8
VERTRES = &HA
BITSPIXEL = &HC
PLANES = &HE
NUMBRUSHES = &H10
NUMPENS = &H12
NUMMARKERS = &H14
NUMFONTS = &H16
NUMCOLORS = &H18
PDEVICESIZE = &H1A
CURVECAPS = &H1C
LINECAPS = &H1E
POLYGONALCAPS = &H20
TEXTCAPS = &H22
CLIPCAPS = &H24
RASTERCAPS = &H26
ASPECTX = &H28
ASPECTY = &H2A
ASPECTXY = &H2C
LOGPIXELSX = &H58
LOGPIXELSY = &H5A
SIZEPALETTE = &H68
NUMRESERVED = &H6A
COLORRES = &H6C
PHYSICALWIDTH = &H6E
PHYSICALHEIGHT = &H6F
PHYSICALOFFSETX = &H70
PHYSICALOFFSETY = &H71
SCALINGFACTORX = &H72
SCALINGFACTORY = &H73
VREFRESH = &H74
DESKTOPVERTRES = &H75
DESKTOPHORZRES = &H76
BLTALIGNMENT = &H77
SHADEBLENDCAPS = &H78
COLORMGMTCAPS = &H79
WinPS
PS_SOLID = &H0
PS_DASH = &H1
PS_DOT = &H2
PS_DASHDOT = &H3
PS_DASHDOTDOT = &H4
PS_NULL = &H5
PS_INSIDEFRAME = &H6
WinR2
R2_BLACK = &H1
R2_NOTMERGEPEN = &H2
R2_MASKNOTPEN = &H3
R2_NOTCOPYPEN = &H4
R2_MASKPENNOT = &H5
R2_NOT = &H6
R2_XORPEN = &H7
R2_NOTMASKPEN = &H8
R2_MASKPEN = &H9
R2_NOTXORPEN = &HA
R2_NOP = &HB
R2_MERGENOTPEN = &HC
R2_COPYPEN = &HD
R2_MERGEPENNOT = &HE
R2_MERGEPEN = &HF
R2_LAST = &H10
WinROP
SRCCOPY = &HCC0020
SRCPAINT = &HEE0086
SRCAND = &H8800C6
SRCINVERT = &H660046
SRCERASE = &H440328
NOTSRCCOPY = &H330008
NOTSRCERASE = &H1100A6
MERGECOPY = &HC000CA
MERGEPAINT = &HBB0226
PATCOPY = &HF00021
PATPAINT = &HFB0A09
PATINVERT = &H5A0049
DSTINVERT = &H550009
BLACKNESS = &H42
WHITENESS = &HFF0062
NOMIRRORBITMAP = &H80000000
CAPTUREBLT = &H40000000
WinRGN
RGN_AND = &H1
RGN_OR = &H2
RGN_XOR = &H3
RGN_DIFF = &H4
RGN_COPY = &H5
RGN_MIN = &H1
RGN_MAX = &H5

Types

LOGBRUSH
lbStyle As Long
lbColor As Long
lbHatch As Long
LOGFONT
lfHeight As Long
lfWidth As Long
lfEscapement As Long
lfOrientation As Long
lfWeight As Long
lfItalic As Byte
lfUnderline As Byte
lfStrikeOut As Byte
lfCharSet As Byte
lfOutPrecision As Byte
lfClipPrecision As Byte
lfQuality As Byte
lfPitchAndFamily As Byte
lfFaceName As Fixed Array
BITMAP
bmType As Long
bmWidth As Long
bmHeight As Long
bmWidthBytes As Long
bmPlanes As Integer
bmBitsPixel As Integer
bmBits As Long
BITMAPINFOHEADER
biSize As Long
biWidth As Long
biHeight As Long
biPlanes As Integer
biBitCount As Integer
biCompression As Long
biSizeImage As Long
biXPelsPerMeter As Long
biYPelsPerMeter As Long
biClrUsed As Long
biClrImportant As Long
RGBTRIPLE
rgbtBlue As Byte
rgbtGreen As Byte
rgbtRed As Byte
RGBQUAD
rgbBlue As Byte
rgbGreen As Byte
rgbRed As Byte
rgbReserved As Byte
BITMAPINFO
bmiHeader As BITMAPINFOHEADER
bmiColors As Fixed Array
BITMAPINFO2
bmiHeader As BITMAPINFOHEADER
bmiColors As Fixed Array
BITMAPINFO16
bmiHeader As BITMAPINFOHEADER
bmiColors As Fixed Array
BITMAPINFO256
bmiHeader As BITMAPINFOHEADER
bmiColors As Fixed Array
BITMAPFILEHEADER
bfType As Integer
bfSize As Long
bfReserved1 As Integer
bfReserved2 As Integer
bfOffBits As Long
LOGPALETTE
palVersion As Integer
palNumEntries As Integer
palPalEntry As Fixed Array
PALETTEENTRY
peRed As Byte
peGreen As Byte
peBlue As Byte
peFlags As Byte

Functions

GetWindowOrgEx Retrieves the x-coordinates and y-coordinates of the window origin for the specified device context.
Function GetWindowOrgEx (ByVal hdc As Long, ByRef lpPoint As Any) As Long
CreateCompatibleDC Creates a memory device context (DC) compatible with the specified device
Function CreateCompatibleDC (ByVal hdc As Long) As Long
GetDeviceCaps Retrieves device-specific information about a specified device
Function GetDeviceCaps (ByVal hdc As Long, ByVal nIndex As Long) As Long
GetObject Obtains information about a specified graphics object
Function GetObject (ByVal hgdiobj As Long, ByVal cbBuffer As Long, ByRef lpvObject As Any) As Long
GetStockObject Retrieves a handle to one of the predefined stock pens, brushes, fonts, or palettes
Function GetStockObject (ByVal fnObject As Long) As Long
SelectObject Selects an object into the specified device context
Function SelectObject (ByVal hdc As Long, ByVal hgdiobj As Long) As Long
DeleteObject Deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object
Function DeleteObject (ByVal hObject As Long) As Long
CreateDC Creates a device context (DC) for a device by using the specified name
Function CreateDC (ByVal lpszDriver As String, ByVal lpszDevice As String, ByVal lpszOutput As String, ByRef lpInitData As Any) As Long
DeleteDC deletes the specified device context (DC)
Function DeleteDC (ByVal hdc As Long) As Long
CreateEllipticRgn Creates an elliptical region
Function CreateEllipticRgn (ByVal nLeftRect As Long, ByVal nTopRect As Long, ByVal nRightRect As Long, ByVal nBottomRect As Long) As Long
CreateRectRgn Creates a rectangular region
Function CreateRectRgn (ByVal nLeftRect As Long, ByVal nTopRect As Long, ByVal nRightRect As Long, ByVal nBottomRect As Long) As Long
SelectClipRgn Selects a region as the current clipping region for the specified device context
Function SelectClipRgn (ByVal hdc As Long, ByVal hrgn As Long) As Long
CombineRgn Combines two regions and stores the result in a third region
Function CombineRgn (ByVal hrgnDest As Long, ByVal hrgnSrc1 As Long, ByVal hrgnSrc2 As Long, ByVal fnCombineMode As Long) As Long
CreatePen Creates a logical pen that has the specified style, width, and color
Function CreatePen (ByVal fnPenStyle As Long, ByVal nWidth As Long, ByVal crColor As Long) As Long
CreateBrushIndirect Creates a logical brush that has the specified style, color, and pattern
Function CreateBrushIndirect (ByRef lplb As LOGBRUSH) As Long
CreatePatternBrush Creates a logical brush with the specified bitmap pattern
Function CreatePatternBrush (ByVal hbmp As Long) As Long
GetBrushOrgEx Retrieves the current brush origin for the specified device context
Function GetBrushOrgEx (ByVal hdc As Long, ByRef lppt As Any) As Long
SetBrushOrgEx Sets the brush origin that GDI assigns to the next brush an application selects into the specified device context
Function SetBrushOrgEx (ByVal hdc As Long, ByVal nXOrg As Long, ByVal nYOrg As Long, ByRef lppt As Any) As Long
SetDCBrushColor Sets the current device context (DC) brush color to the specified color value. If the device cannot represent the specified color value, the color is set to the nearest physical color.
Function SetDCBrushColor (ByVal hdc As Long, ByVal crColor As Long) As Long
LineTo Draws a line from the current position up to, but not including, the specified point
Function LineTo (ByVal hdc As Long, ByVal nXEnd As Long, ByVal nYEnd As Long) As Long
MoveToEx Updates the current position to the specified point and optionally returns the previous position
Function MoveToEx (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByRef lpPoint As Any) As Long
SetBkMode Sets the background mix mode of the specified device context
Function SetBkMode (ByVal hdc As Long, ByVal iBkMode As Long) As Long
GetBkColor Returns the current background color for the specified device context
Function GetBkColor (ByVal hdc As Long) As Long
SetBkColor Sets the current background color to the specified color value, or to the nearest physical color if the device cannot represent the specified color value
Function SetBkColor (ByVal hdc As Long, ByVal crColor As Long) As Long
Ellipse Draws an ellipse
Function Ellipse (ByVal hdc As Long, ByVal nLeftRect As Long, ByVal nTopRect As Long, ByVal nRightRect As Long, ByVal nBottomRect As Long) As Long
CreateSolidBrush Creates a logical brush that has the specified solid color
Function CreateSolidBrush (ByVal crColor As Long) As Long
GetTextColor Retrieves the current text color for the specified device context
Function GetTextColor (ByVal hdc As Long) As Long
SetTextColor Sets the text color for the specified device context to the specified color
Function SetTextColor (ByVal hdc As Long, ByVal crColor As Long) As Long
CreateBitmap creates a bitmap with the specified width, height, and color format (color planes and bits per pixel
Function CreateBitmap (ByVal nWidth As Long, ByVal nHeight As Long, ByVal cPlanes As Long, ByVal cBitsPerPel As Long, ByRef lpvBits As Any) As Long
CreateCompatibleBitmap Creates a bitmap compatible with the device that is associated with the specified device context
Function CreateCompatibleBitmap (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
CreateBitmapIndirect Creates a bitmap with the specified width, height, and color format (color planes and bits per pixel)
Function CreateBitmapIndirect (ByRef lpbm As Any) As Long
CreateDIBitmap Creates a device-dependent bitmap (DDB) from a device-independent bitmap (DIB)
Function CreateDIBitmap (ByVal hdc As Long, ByRef lpbmih As Any, ByVal fdwInit As Long, ByRef lpbInit As Any, ByRef lpbmi As Any, ByVal fuUsage As Long) As Long
CreateDIBSection Creates a device-independent bitmap (DIB) that applications can write to directly
Function CreateDIBSection (ByVal hdc As Long, ByRef pbmi As Any, ByVal iUsage As Long, ByRef ppvBits As Long, ByVal hSection As Long, ByVal dwOffset As Long) As Long
GetDIBits Retrieves the bits of the specified bitmap and copies them into a buffer using the specified format
Function GetDIBits (ByVal hdc As Long, ByVal hbmp As Long, ByVal uStartScan As Long, ByVal cScanLines As Long, ByRef lpvBits As Any, ByRef lpbi As Any, ByVal uUsage As Long) As Long
SetDIBits Sets the pixels in a bitmap using the color data found in the specified device-independent bitmap (DIB)
Function SetDIBits (ByVal hdc As Long, ByVal hbmp As Long, ByVal uStartScan As Long, ByVal cScanLines As Long, ByRef lpvBits As Any, ByRef lpbmi As Any, ByVal fuColorUse As Long) As Long
BitBlt Performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context
Function BitBlt (ByVal hdcDest As Long, ByVal nXDest As Long, ByVal nYDest As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hdcSrc As Long, ByVal nXSrc As Long, ByVal nYSrc As Long, ByVal dwRop As Long) As Long
StretchDIBits Performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context
Function StretchDIBits (ByVal hdc As Long, ByVal XDest As Long, ByVal YDest As Long, ByVal nDestWidth As Long, ByVal nDestHeight As Long, ByVal XSrc As Long, ByVal YSrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByRef lpBits As Any, ByRef lpBitsInfo As Any, ByVal iUsage As Long, ByVal dwRop As Long) As Long
GetPixel Retrieves the red, green, blue (RGB) color value of the pixel at the specified coordinates
Function GetPixel (ByVal hdc As Long, ByVal XPos As Long, ByVal nYPos As Long) As Long
SetPixel Sets the pixel at the specified coordinates to the specified color
Function SetPixel (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
SetDIBitsToDevice Sets the pixels in the specified rectangle on the device that is associated with the destination device context using color data from a device-independent bitmap (DIB)
Function SetDIBitsToDevice (ByVal hdc As Long, ByVal XDest As Long, ByVal YDest As Long, ByVal dwWidth As Long, ByVal dwHeight As Long, ByVal XSrc As Long, ByVal YSrc As Long, ByVal uStartScan As Long, ByVal cScanLines As Long, ByRef lpvBits As Any, ByRef lpbmi As Any, ByVal fuColorUse As Long) As Long
Rectangle Draws a rectangle
Function Rectangle (ByVal hdc As Long, ByVal nLeftRect As Long, ByVal nTopRect As Long, ByVal nRightRect As Long, ByVal nBottomRect As Long) As Long
GetSystemPaletteEntries Retrieves a range of palette entries from the system palette that is associated with the specified device context
Function GetSystemPaletteEntries (ByVal hdc As Long, ByVal iStartIndex As Long, ByVal nEntries As Long, ByRef lppe As Any) As Long
CreatePalette Creates a logical color palette
Function CreatePalette (ByRef lplgpl As Any) As Long
SelectPalette Selects the specified logical palette into a device context
Function SelectPalette (ByVal hdc As Long, ByVal hpal As Long, ByVal bForceBackground As Long) As Long
RealizePalette Maps palette entries from the current logical palette to the system palette
Function RealizePalette (ByVal hdc As Long) As Long
CreateFontIndirect Creates a logical font that has the characteristics specified in the specified structure
Function CreateFontIndirect (ByRef lplf As LOGFONT) As Long
SetROP2 Sets the current foreground mix mode
Function SetROP2 (ByVal hdc As Long, ByVal fnDrawMode As Long) As Long

Module WinUser

Enums

SWP Specifies the window sizing and positioning flags.
SWP_NOSIZE = &H1
SWP_NOMOVE = &H2
SWP_NOZORDER = &H4
SWP_NOACTIVATE = &H10
SWP_FRAMECHANGED = &H20
SWP_SHOWWINDOW = &H40
SWP_NOOWNERZORDER = &H200
IDC
IDC_ARROW = &H7F00
IDC_IBEAM = &H7F01
IDC_WAIT = &H7F02
IDC_CROSS = &H7F03
IDC_UPARROW = &H7F04
IDC_SIZE = &H7F80
IDC_ICON = &H7F81
IDC_SIZENWSE = &H7F82
IDC_SIZENESW = &H7F83
IDC_SIZEWE = &H7F84
IDC_SIZENS = &H7F85
IDC_SIZEALL = &H7F86
IDC_NO = &H7F88
IDC_HAND = &H7F89
IDC_APPSTARTING = &H7F8A
IDC_HELP = &H7F8B
WVR
WVR_ALIGNTOP = &H10
WVR_ALIGNLEFT = &H20
WVR_ALIGNBOTTOM = &H40
WVR_ALIGNRIGHT = &H80
WVR_HREDRAW = &H100
WVR_VREDRAW = &H200
WVR_REDRAW = &H300
WVR_VALIDRECTS = &H400
HT Indicates the position of the cursor hot spot.
HTERROR = &HFFFFFFFE
HTTRANSPARENT = &HFFFFFFFF
HTNOWHERE = &H0
HTCLIENT = &H1
HTCAPTION = &H2
HTSYSMENU = &H3
HTGROWBOX = &H4
HTSIZE = &H4
HTMENU = &H5
HTHSCROLL = &H6
HTVSCROLL = &H7
HTMINBUTTON = &H8
HTMAXBUTTON = &H9
HTLEFT = &HA
HTRIGHT = &HB
HTTOP = &HC
HTTOPLEFT = &HD
HTTOPRIGHT = &HE
HTBOTTOM = &HF
HTBOTTOMLEFT = &H10
HTBOTTOMRIGHT = &H11
HTBORDER = &H12
HTREDUCE = &H8
HTZOOM = &H9
HTSIZEFIRST = &HA
HTSIZELAST = &H11
HTOBJECT = &H13
HTCLOSE = &H14
HTHELP = &H15
GWL
GWL_WNDPROC = &HFFFFFFFC
GWL_HINSTANCE = &HFFFFFFFA
GWL_HWNDPARENT = &HFFFFFFF8
GWL_STYLE = &HFFFFFFF0
GWL_EXSTYLE = &HFFFFFFEC
GWL_USERDATA = &HFFFFFFEB
GWL_ID = &HFFFFFFF4
LWA Specifies an action to take for the SetLayeredWindowAttributes function.
LWA_COLORKEY = &H1
LWA_ALPHA = &H2
RDW
RDW_INVALIDATE = &H1
RDW_INTERNALPAINT = &H2
RDW_ERASE = &H4
RDW_VALIDATE = &H8
RDW_NOINTERNALPAINT = &H10
RDW_NOERASE = &H20
RDW_NOCHILDREN = &H40
RDW_ALLCHILDREN = &H80
RDW_UPDATENOW = &H100
RDW_ERASENOW = &H200
RDW_FRAME = &H400
RDW_NOFRAME = &H800
DC
DC_ACTIVE = &H1
DC_SMALLCAP = &H2
DC_ICON = &H4
DC_TEXT = &H8
DC_INBUTTON = &H10
DC_GRADIENT = &H20
DC_BUTTONS = &H1000
DFC
DFC_CAPTION = &H1
DFC_MENU = &H2
DFC_SCROLL = &H3
DFC_BUTTON = &H4
DFCS
DFCS_CAPTIONCLOSE = &H0
DFCS_CAPTIONMIN = &H1
DFCS_CAPTIONMAX = &H2
DFCS_CAPTIONRESTORE = &H3
DFCS_CAPTIONHELP = &H4
DFCS_MENUARROW = &H0
DFCS_MENUCHECK = &H1
DFCS_MENUBULLET = &H2
DFCS_MENUARROWRIGHT = &H4
DFCS_SCROLLUP = &H0
DFCS_SCROLLDOWN = &H1
DFCS_SCROLLLEFT = &H2
DFCS_SCROLLRIGHT = &H3
DFCS_SCROLLCOMBOBOX = &H5
DFCS_SCROLLSIZEGRIP = &H8
DFCS_SCROLLSIZEGRIPRIGHT = &H10
DFCS_BUTTONCHECK = &H0
DFCS_BUTTONRADIOIMAGE = &H1
DFCS_BUTTONRADIOMASK = &H2
DFCS_BUTTONRADIO = &H4
DFCS_BUTTON3STATE = &H8
DFCS_BUTTONPUSH = &H10
DFCS_INACTIVE = &H100
DFCS_PUSHED = &H200
DFCS_CHECKED = &H400
DFCS_ADJUSTRECT = &H2000
DFCS_FLAT = &H4000
DFCS_MONO = &H8000
WinWH
WH_MSGFILTER = &HFFFFFFFF
WH_JOURNALRECORD = &H0
WH_JOURNALPLAYBACK = &H1
WH_KEYBOARD = &H2
WH_GETMESSAGE = &H3
WH_CALLWNDPROC = &H4
WH_CBT = &H5
WH_SYSMSGFILTER = &H6
WH_MOUSE = &H7
WH_HARDWARE = &H8
WH_DEBUG = &H9
WH_SHELL = &HA
WH_FOREGROUNDIDLE = &HB
WH_CALLWNDPROCRET = &HC
WinHC
HC_ACTION = &H0
HC_GETNEXT = &H1
HC_SKIP = &H2
HC_NOREMOVE = &H3
HC_SYSMODALON = &H4
HC_SYSMODALOFF = &H5
WinHCBT
HCBT_MOVESIZE = &H0
HCBT_MINMAX = &H1
HCBT_QS = &H2
HCBT_CREATEWND = &H3
HCBT_DESTROYWND = &H4
HCBT_ACTIVATE = &H5
HCBT_CLICKSKIPPED = &H6
HCBT_KEYSKIPPED = &H7
HCBT_SYSCOMMAND = &H8
HCBT_SETFOCUS = &H9
SPI
SPI_GETWORKAREA = &H30
SPI_GETHIGHCONTRAST = &H42
SPI_GETWHEELSCROLLLINES = &H68
EDGE
BDR_RAISEDINNER = &H1
BDR_SUNKENINNER = &H2
BDR_RAISEDOUTER = &H3
BDR_SUNKENOUTER = &H4
EDGE_RAISED = &H3
EDGE_SUNKEN = &H6
EDGE_ETCHED = &H5
EDGE_BUMP = &H3
BF
BF_LEFT = &H1
BF_TOP = &H2
BF_RIGHT = &H4
BF_BOTTOM = &H8
BF_TOPLEFT = &H3
BF_TOPRIGHT = &H6
BF_BOTTOMLEFT = &H9
BF_BOTTOMRIGHT = &HC
BF_RECT = &HF
BF_DIAGONAL = &H10
BF_DIAGONAL_ENDTOPRIGHT = &H16
BF_DIAGONAL_ENDTOPLEFT = &H13
BF_DIAGONAL_ENDBOTTOMLEFT = &H19
BF_DIAGONAL_ENDBOTTOMRIGHT = &H1C
BF_MIDDLE = &H800
BF_SOFT = &H1000
BF_ADJUST = &H2000
BF_FLAT = &H4000
BF_MONO = &H8000
DI
DI_MASK = &H1
DI_IMAGE = &H2
DI_NORMAL = &H3
DI_COMPAT = &H4
DI_DEFAULTSIZE = &H8
DT
DT_TOP = &H0
DT_LEFT = &H0
DT_CENTER = &H1
DT_RIGHT = &H2
DT_VCENTER = &H4
DT_BOTTOM = &H8
DT_WORDBREAK = &H10
DT_SINGLELINE = &H20
DT_EXPANDTABS = &H40
DT_TABSTOP = &H80
DT_NOCLIP = &H100
DT_EXTERNALLEADING = &H200
DT_CALCRECT = &H400
DT_NOPREFIX = &H800
DT_INTERNAL = &H1000
DT_EDITCONTROL = &H2000
DT_PATH_ELLIPSIS = &H4000
DT_END_ELLIPSIS = &H8000
DT_MODIFYSTRING = &H10000
DT_RTLREADING = &H20000
DT_WORD_ELLIPSIS = &H40000
DT_NOFULLWIDTHCHARBREAK = &H80000
DT_HIDEPREFIX = &H100000
DT_PREFIXONLY = &H200000
DS
DST_COMPLEX = &H0
DST_TEXT = &H1
DST_PREFIXTEXT = &H2
DST_ICON = &H3
DST_BITMAP = &H4
DSS_NORMAL = &H0
DSS_UNION = &H10
DSS_DISABLED = &H20
DSS_MONO = &H80
WinSB
SB_HORZ = &H0
SB_VERT = &H1
SB_CTL = &H2
SB_BOTH = &H3
SBC
SB_LINEUP = &H0
SB_LINELEFT = &H0
SB_LINEDOWN = &H1
SB_LINERIGHT = &H1
SB_PAGEUP = &H2
SB_PAGELEFT = &H2
SB_PAGEDOWN = &H3
SB_PAGERIGHT = &H3
SB_THUMBPOSITION = &H4
SB_THUMBTRACK = &H5
SB_TOP = &H6
SB_LEFT = &H6
SB_BOTTOM = &H7
SB_RIGHT = &H7
SB_ENDSCROLL = &H8
SIF
SIF_RANGE = &H1
SIF_PAGE = &H2
SIF_POS = &H4
SIF_DISABLENOSCROLL = &H8
SIF_TRACKPOS = &H10
SIF_ALL = &H17
LR
LR_DEFAULTCOLOR = &H0
LR_MONOCHROME = &H1
LR_COLOR = &H2
LR_COPYRETURNORG = &H4
LR_COPYDELETEORG = &H8
LR_LOADFROMFILE = &H10
LR_LOADTRANSPARENT = &H20
LR_DEFAULTSIZE = &H40
LR_VGACOLOR = &H80
LR_LOADMAP3DCOLORS = &H1000
LR_CREATEDIBSECTION = &H2000
LR_COPYFROMRESOURCE = &H4000
LR_SHARED = &H8000
MOUSEEVENTF
MOUSEEVENTF_MOVE = &H1
MOUSEEVENTF_LEFTDOWN = &H2
MOUSEEVENTF_LEFTUP = &H4
MOUSEEVENTF_RIGHTDOWN = &H8
MOUSEEVENTF_RIGHTUP = &H10
MOUSEEVENTF_MIDDLEDOWN = &H20
MOUSEEVENTF_MIDDLEUP = &H40
MOUSEEVENTF_XDOWN = &H80
MOUSEEVENTF_XUP = &H100
MOUSEEVENTF_WHEEL = &H800
MOUSEEVENTF_VIRTUALDESK = &H4000
MOUSEEVENTF_ABSOLUTE = &H8000
TME Specifies the services requested for the TrackMouseEvent function.
TME_HOVER = &H1
TME_LEAVE = &H2
TME_QUERY = &H40000000
TME_CANCEL = &H80000000
MK Identifies the current state of the keyboard modifier keys on the keyboard.
MK_LBUTTON = &H1
MK_RBUTTON = &H2
MK_SHIFT = &H4
MK_CONTROL = &H8
MK_MBUTTON = &H10
SM
SM_CXSCREEN = &H0
SM_CYSCREEN = &H1
SM_CXVSCROLL = &H2
SM_CYHSCROLL = &H3
SM_CYCAPTION = &H4
SM_CXBORDER = &H5
SM_CYBORDER = &H6
SM_CXDLGFRAME = &H7
SM_CYDLGFRAME = &H8
SM_CYVTHUMB = &H9
SM_CXHTHUMB = &HA
SM_CXICON = &HB
SM_CYICON = &HC
SM_CXCURSOR = &HD
SM_CYCURSOR = &HE
SM_CYMENU = &HF
SM_CXFULLSCREEN = &H10
SM_CYFULLSCREEN = &H11
SM_CYKANJIWINDOW = &H12
SM_MOUSEPRESENT = &H13
SM_CYVSCROLL = &H14
SM_CXHSCROLL = &H15
SM_DEBUG = &H16
SM_SWAPBUTTON = &H17
SM_RESERVED1 = &H18
SM_RESERVED2 = &H19
SM_RESERVED3 = &H1A
SM_RESERVED4 = &H1B
SM_CXMIN = &H1C
SM_CYMIN = &H1D
SM_CXSIZE = &H1E
SM_CYSIZE = &H1F
SM_CXFRAME = &H20
SM_CYFRAME = &H21
SM_CXMINTRACK = &H22
SM_CYMINTRACK = &H23
SM_CXDOUBLECLK = &H24
SM_CYDOUBLECLK = &H25
SM_CXICONSPACING = &H26
SM_CYICONSPACING = &H27
SM_MENUDROPALIGNMENT = &H28
SM_PENWINDOWS = &H29
SM_DBCSENABLED = &H2A
SM_CMOUSEBUTTONS = &H2B
VK
VK_LBUTTON = &H1
VK_RBUTTON = &H2
VK_CANCEL = &H3
VK_MBUTTON = &H4
VK_XBUTTON1 = &H5
VK_XBUTTON2 = &H6
VK_BACK = &H8
VK_TAB = &H9
VK_CLEAR = &HC
VK_RETURN = &HD
VK_SHIFT = &H10
VK_CONTROL = &H11
VK_MENU = &H12
VK_PAUSE = &H13
VK_CAPITAL = &H14
VK_KANA = &H15
VK_HANGEUL = &H15
VK_HANGUL = &H15
VK_JUNJA = &H17
VK_FINAL = &H18
VK_HANJA = &H19
VK_KANJI = &H19
VK_ESCAPE = &H1B
VK_CONVERT = &H1C
VK_NONCONVERT = &H1D
VK_ACCEPT = &H1E
VK_MODECHANGE = &H1F
VK_SPACE = &H20
VK_PRIOR = &H21
VK_NEXT = &H22
VK_END = &H23
VK_HOME = &H24
VK_LEFT = &H25
VK_UP = &H26
VK_RIGHT = &H27
VK_DOWN = &H28
VK_SELECT = &H29
VK_PRINT = &H2A
VK_EXECUTE = &H2B
VK_SNAPSHOT = &H2C
VK_INSERT = &H2D
VK_DELETE = &H2E
VK_HELP = &H2F
VK_LWIN = &H5B
VK_RWIN = &H5C
VK_APPS = &H5D
VK_SLEEP = &H5F
VK_NUMPAD0 = &H60
VK_NUMPAD1 = &H61
VK_NUMPAD2 = &H62
VK_NUMPAD3 = &H63
VK_NUMPAD4 = &H64
VK_NUMPAD5 = &H65
VK_NUMPAD6 = &H66
VK_NUMPAD7 = &H67
VK_NUMPAD8 = &H68
VK_NUMPAD9 = &H69
VK_MULTIPLY = &H6A
VK_ADD = &H6B
VK_SEPARATOR = &H6C
VK_SUBTRACT = &H6D
VK_DECIMAL = &H6E
VK_DIVIDE = &H6F
VK_F1 = &H70
VK_F2 = &H71
VK_F3 = &H72
VK_F4 = &H73
VK_F5 = &H74
VK_F6 = &H75
VK_F7 = &H76
VK_F8 = &H77
VK_F9 = &H78
VK_F10 = &H79
VK_F11 = &H7A
VK_F12 = &H7B
VK_F13 = &H7C
VK_F14 = &H7D
VK_F15 = &H7E
VK_F16 = &H7F
VK_F17 = &H80
VK_F18 = &H81
VK_F19 = &H82
VK_F20 = &H83
VK_F21 = &H84
VK_F22 = &H85
VK_F23 = &H86
VK_F24 = &H87
VK_NUMLOCK = &H90
VK_SCROLL = &H91
VK_OEM_NEC_EQUAL = &H92
VK_OEM_FJ_JISHO = &H92
VK_OEM_FJ_MASSHOU = &H93
VK_OEM_FJ_TOUROKU = &H94
VK_OEM_FJ_LOYA = &H95
VK_OEM_FJ_ROYA = &H96
VK_LSHIFT = &HA0
VK_RSHIFT = &HA1
VK_LCONTROL = &HA2
VK_RCONTROL = &HA3
VK_LMENU = &HA4
VK_RMENU = &HA5
VK_BROWSER_BACK = &HA6
VK_BROWSER_FORWARD = &HA7
VK_BROWSER_REFRESH = &HA8
VK_BROWSER_STOP = &HA9
VK_BROWSER_SEARCH = &HAA
VK_BROWSER_FAVORITES = &HAB
VK_BROWSER_HOME = &HAC
VK_VOLUME_MUTE = &HAD
VK_VOLUME_DOWN = &HAE
VK_VOLUME_UP = &HAF
VK_MEDIA_NEXT_TRACK = &HB0
VK_MEDIA_PREV_TRACK = &HB1
VK_MEDIA_STOP = &HB2
VK_MEDIA_PLAY_PAUSE = &HB3
VK_LAUNCH_MAIL = &HB4
VK_LAUNCH_MEDIA_SELECT = &HB5
VK_LAUNCH_APP1 = &HB6
VK_LAUNCH_APP2 = &HB7
VK_OEM_1 = &HBA
VK_OEM_PLUS = &HBB
VK_OEM_COMMA = &HBC
VK_OEM_MINUS = &HBD
VK_OEM_PERIOD = &HBE
VK_OEM_2 = &HBF
VK_OEM_3 = &HC0
VK_OEM_4 = &HDB
VK_OEM_5 = &HDC
VK_OEM_6 = &HDD
VK_OEM_7 = &HDE
VK_OEM_8 = &HDF
VK_OEM_AX = &HE1
VK_OEM_102 = &HE2
VK_ICO_HELP = &HE3
VK_ICO_00 = &HE4
VK_PROCESSKEY = &HE5
VK_ICO_CLEAR = &HE6
VK_PACKET = &HE7
VK_OEM_RESET = &HE9
VK_OEM_JUMP = &HEA
VK_OEM_PA1 = &HEB
VK_OEM_PA2 = &HEC
VK_OEM_PA3 = &HED
VK_OEM_WSCTRL = &HEE
VK_OEM_CUSEL = &HEF
VK_OEM_ATTN = &HF0
VK_OEM_FINISH = &HF1
VK_OEM_COPY = &HF2
VK_OEM_AUTO = &HF3
VK_OEM_ENLW = &HF4
VK_OEM_BACKTAB = &HF5
VK_ATTN = &HF6
VK_CRSEL = &HF7
VK_EXSEL = &HF8
VK_EREOF = &HF9
VK_PLAY = &HFA
VK_ZOOM = &HFB
VK_NONAME = &HFC
VK_PA1 = &HFD
VK_OEM_CLEAR = &HFE
QS
QS_KEY = &H1
QS_MOUSEMOVE = &H2
QS_MOUSEBUTTON = &H4
QS_POSTMESSAGE = &H8
QS_TIMER = &H10
QS_PAINT = &H20
QS_SENDMESSAGE = &H40
QS_HOTKEY = &H80
QS_ALLPOSTMESSAGE = &H100
QS_RAWINPUT = &H400
QS_MOUSE = &H6
QS_INPUT = &H407
QS_ALLEVENTS = &H4BF
QS_ALLINPUT = &H4FF
WinCOLOR
COLOR_SCROLLBAR = &H0
COLOR_BACKGROUND = &H1
COLOR_ACTIVECAPTION = &H2
COLOR_INACTIVECAPTION = &H3
COLOR_MENU = &H4
COLOR_WINDOW = &H5
COLOR_WINDOWFRAME = &H6
COLOR_MENUTEXT = &H7
COLOR_WINDOWTEXT = &H8
COLOR_CAPTIONTEXT = &H9
COLOR_ACTIVEBORDER = &HA
COLOR_INACTIVEBORDER = &HB
COLOR_APPWORKSPACE = &HC
COLOR_HIGHLIGHT = &HD
COLOR_HIGHLIGHTTEXT = &HE
COLOR_BTNFACE = &HF
COLOR_BTNSHADOW = &H10
COLOR_GRAYTEXT = &H11
COLOR_BTNTEXT = &H12
COLOR_INACTIVECAPTIONTEXT = &H13
COLOR_BTNHIGHLIGHT = &H14
COLOR_3DDKSHADOW = &H15
COLOR_3DLIGHT = &H16
COLOR_INFOTEXT = &H17
COLOR_INFOBK = &H18
COLOR_HOTLIGHT = &H1A
COLOR_GRADIENTACTIVECAPTION = &H1B
COLOR_GRADIENTINACTIVECAPTION = &H1C
COLOR_MENUHILIGHT = &H1D
COLOR_MENUBAR = &H1E
COLOR_DESKTOP = &H1
COLOR_3DFACE = &HF
COLOR_3DSHADOW = &H10
COLOR_3DHIGHLIGHT = &H14
COLOR_3DHILIGHT = &H14
COLOR_BTNHILIGHT = &H14
CFM CHARFORMAT masks
CFM_BOLD = &H1
CFM_ITALIC = &H2
CFM_UNDERLINE = &H4
CFM_STRIKEOUT = &H8
CFM_PROTECTED = &H10
CFM_LINK = &H20
CFM_SIZE = &H80000000
CFM_COLOR = &H40000000
CFM_FACE = &H20000000
CFM_OFFSET = &H10000000
CFM_CHARSET = &H8000000
CFE CHARFORMAT Effects
CFE_BOLD = &H1
CFE_ITALIC = &H2
CFE_UNDERLINE = &H4
CFE_STRIKEOUT = &H8
CFE_PROTECTED = &H10
CFE_LINK = &H20
CFE_AUTOCOLOR = &H40000000
SCF
SCF_SELECTION = &H1
SCF_WORD = &H2
SCF_DEFAULT = &H0
SCF_ALL = &H4
SCF_USEUIRULES = &H8
SCF_ASSOCIATEFONT = &H10
SCF_NOKBUPDATE = &H20
SCF_ASSOCIATEFONT2 = &H40
BUTTONSTYLE Button Control Styles
BS_PUSHBUTTON = &H0
BS_DEFPUSHBUTTON = &H1
BS_CHECKBOX = &H2
BS_AUTOCHECKBOX = &H3
BS_RADIOBUTTON = &H4
BS_3STATE = &H5
BS_AUTO3STATE = &H6
BS_GROUPBOX = &H7
BS_USERBUTTON = &H8
BS_AUTORADIOBUTTON = &H9
BS_PUSHBOX = &HA
BS_OWNERDRAW = &HB
BS_TYPEMASK = &HF
BS_LEFTTEXT = &H20
BS_TEXT = &H0
BS_ICON = &H40
BS_BITMAP = &H80
BS_LEFT = &H100
BS_RIGHT = &H200
BS_CENTER = &H300
BS_TOP = &H400
BS_BOTTOM = &H800
BS_VCENTER = &HC00
BS_PUSHLIKE = &H1000
BS_MULTILINE = &H2000
BS_NOTIFY = &H4000
BS_FLAT = &H8000
BS_RIGHTBUTTON = &H20
EM Edit Control Messages.
EM_GETSEL = &HB0
EM_SETSEL = &HB1
EM_GETRECT = &HB2
EM_SETRECT = &HB3
EM_SETRECTNP = &HB4
EM_SCROLL = &HB5
EM_LINESCROLL = &HB6
EM_SCROLLCARET = &HB7
EM_GETMODIFY = &HB8
EM_SETMODIFY = &HB9
EM_GETLINECOUNT = &HBA
EM_LINEINDEX = &HBB
EM_SETHANDLE = &HBC
EM_GETHANDLE = &HBD
EM_GETTHUMB = &HBE
EM_LINELENGTH = &HC1
EM_REPLACESEL = &HC2
EM_GETLINE = &HC4
EM_LIMITTEXT = &HC5
EM_CANUNDO = &HC6
EM_UNDO = &HC7
EM_FMTLINES = &HC8
EM_LINEFROMCHAR = &HC9
EM_SETTABSTOPS = &HCB
EM_SETPASSWORDCHAR = &HCC
EM_EMPTYUNDOBUFFER = &HCD
EM_GETFIRSTVISIBLELINE = &HCE
EM_SETREADONLY = &HCF
EM_SETWORDBREAKPROC = &HD0
EM_GETWORDBREAKPROC = &HD1
EM_GETPASSWORDCHAR = &HD2
EM_SETMARGINS = &HD3
EM_GETMARGINS = &HD4
EM_SETLIMITTEXT = &HC5
EM_GETLIMITTEXT = &HD5
EM_POSFROMCHAR = &HD6
EM_CHARFROMPOS = &HD7
EM_SETIMESTATUS = &HD8
EM_GETIMESTATUS = &HD9
EM_SETCHARFORMAT = &H444
ES Edit Control Styles
ES_LEFT = &H0
ES_CENTER = &H1
ES_RIGHT = &H2
ES_MULTILINE = &H4
ES_UPPERCASE = &H8
ES_LOWERCASE = &H10
ES_PASSWORD = &H20
ES_AUTOVSCROLL = &H40
ES_AUTOHSCROLL = &H80
ES_NOHIDESEL = &H100
ES_OEMCONVERT = &H400
ES_READONLY = &H800
ES_WANTRETURN = &H1000
ES_NUMBER = &H2000
WinMF
MF_INSERT = &H0
MF_CHANGE = &H80
MF_APPEND = &H100
MF_DELETE = &H200
MF_REMOVE = &H1000
MF_BYCOMMAND = &H0
MF_BYPOSITION = &H400
MF_SEPARATOR = &H800
MF_ENABLED = &H0
MF_GRAYED = &H1
MF_DISABLED = &H2
MF_UNCHECKED = &H0
MF_CHECKED = &H8
MF_USECHECKBITMAPS = &H200
MF_STRING = &H0
MF_BITMAP = &H4
MF_OWNERDRAW = &H100
MF_POPUP = &H10
MF_MENUBARBREAK = &H20
MF_MENUBREAK = &H40
MF_UNHILITE = &H0
MF_HILITE = &H80
MF_DEFAULT = &H1000
MF_SYSMENU = &H2000
MF_HELP = &H4000
MF_RIGHTJUSTIFY = &H4000
MF_MOUSESELECT = &H8000
MF_END = &H80
MFT_STRING = &H0
MFT_BITMAP = &H4
MFT_MENUBARBREAK = &H20
MFT_MENUBREAK = &H40
MFT_OWNERDRAW = &H100
MFT_RADIOCHECK = &H200
MFT_SEPARATOR = &H800
MFT_RIGHTORDER = &H2000
MFT_RIGHTJUSTIFY = &H4000
MFS_GRAYED = &H3
MFS_DISABLED = &H3
MFS_CHECKED = &H8
MFS_HILITE = &H80
MFS_ENABLED = &H0
MFS_UNCHECKED = &H0
MFS_UNHILITE = &H0
MFS_DEFAULT = &H1000
WinODT
ODT_MENU = &H1
ODT_LISTBOX = &H2
ODT_COMBOBOX = &H3
ODT_BUTTON = &H4
ODT_STATIC = &H5
ODT_HEADER = &H64
ODT_TAB = &H65
ODT_LISTVIEW = &H66
WinMIIM
MIIM_STATE = &H1
MIIM_ID = &H2
MIIM_SUBMENU = &H4
MIIM_CHECKMARKS = &H8
MIIM_TYPE = &H10
MIIM_DATA = &H20
MIIM_STRING = &H40
MIIM_BITMAP = &H80
MIIM_FTYPE = &H100
WinTPM
TPM_LEFTBUTTON = &H0
TPM_RIGHTBUTTON = &H2
TPM_LEFTALIGN = &H0
TPM_CENTERALIGN = &H4
TPM_RIGHTALIGN = &H8
TPM_TOPALIGN = &H0
TPM_VCENTERALIGN = &H10
TPM_BOTTOMALIGN = &H20
TPM_HORIZONTAL = &H0
TPM_VERTICAL = &H40
TPM_NONOTIFY = &H80
TPM_RETURNCMD = &H100
TPM_RECURSE = &H1
TPM_HORPOSANIMATION = &H400
TPM_HORNEGANIMATION = &H800
TPM_VERPOSANIMATION = &H1000
TPM_VERNEGANIMATION = &H2000
TPM_NOANIMATION = &H4000
TPM_LAYOUTRTL = &H8000
SMTO
SMTO_NORMAL = &H0
SMTO_BLOCK = &H1
SMTO_ABORTIFHUNG = &H2
SMTO_NOTIMEOUTIFNOTHUNG = &H8

Types

CURSORINFO
cbSize As Long
flags As Long
hCursor As Long
ptScreenPos As POINT
ICONINFO
fIcon As Long
xHotspot As Long
yHotspot As Long
hbmMask As Long
hbmColor As Long
MINMAXINFO
ptReserved As POINT
ptMaxSize As POINT
ptMaxPosition As POINT
ptMinTrackSize As POINT
ptMaxTrackSize As POINT
NCCALCSIZE_PARAMS
rgrc As Fixed Array
lppos As Long
WINDOWPOS Contains information about the size and position of a window.
hWnd As Long
hWndInsertAfter As Long
x As Long
y As Long
cx As Long
cy As Long
flags As Long
PAINTSTRUCT Contains information for an application to paint the client area of a window owned by that application
hdc As Long
fErase As Long
rcPaint As RECT
fRestore As Long
fIncUpdate As Long
rgbReserved As Fixed Array
SCROLLINFO
cbSize As Long
fMask As Long
nMin As Long
nMax As Long
nPage As Long
nPos As Long
nTrackPos As Long
TRACKMOUSEEVENT Used by the TrackMouseEvent function to track when the mouse pointer leaves a window or hovers over a window for a specified amount of time.
cbSize As Long
dwFlags As Long
hWndTrack As Long
dwHoverTime As Long
CHARFORMAT Edit Control Format Structure.
cbSize As Long
dwMask As Long
dwEffects As Long
yHeight As Long
yOffset As Long
crTextColor As Long
bCharSet As Byte
bPitchAndFamily As Byte
szFaceName As Fixed Array
MENUITEMINFO
cbSize As Long
fMask As Long
fType As Long
fState As Long
wID As Long
hSubMenu As Long
hbmpChecked As Long
hbmpUnchecked As Long
dwItemData As Long
dwTypeData As Long
cch As Long
MEASUREITEMSTRUCT
CtlType As Long
CtlID As Long
itemID As Long
itemWidth As Long
itemHeight As Long
itemData As Long
DRAWITEMSTRUCT
CtlType As Long
CtlID As Long
itemID As Long
itemAction As Long
itemState As Long
hWndItem As Long
hdc As Long
rcItem As RECT
itemData As Long
MENUITEMTEMPLATE
mtOption As Integer
mtID As Integer
mtString As Fixed Array
TPMPARAMS
cbSize As Long
rcExclude As RECT

Functions

SetWindowLong Changes an attribute of the specified window
Function SetWindowLong (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
GetWindowLong Retrieves information about the specified window
Function GetWindowLong (ByVal hWnd As Long, ByVal nIndex As Long) As Long
RegisterWindowMessage Defines a new window message that is guaranteed to be unique throughout the system
Function RegisterWindowMessage (ByVal lpString As String) As Long
PostMessage Places (posts) a message in the message queue associated with the thread that created the specified window and then returns without waiting for the thread to process the message
Function PostMessage (ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
SendMessageA Sends the specified message to a window or windows
Function SendMessageA (ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
SendMessageW Sends the specified message to a window or windows
Function SendMessageW (ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
SendMessageTimeoutA Sends the specified message to a window or windows
Function SendMessageTimeoutA (ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long, ByVal fuFlags As Long, ByVal uTimeout As Long, ByRef lpdwResult As ULONG_PTR) As Long
CreateWindowExA The CreateWindowEx function creates an overlapped, pop-up, or child window with an extended style
Function CreateWindowExA (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, ByRef lpParam As Any) As Long
CreateWindowExW The CreateWindowEx function creates an overlapped, pop-up, or child window with an extended style
Function CreateWindowExW (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, ByRef lpParam As Any) As Long
GetWindowTextLength Retrieves the length, in characters, of the specified window's title bar text (if the window has a title bar)
Function GetWindowTextLength (ByVal hWnd As Long) As Long
GetWindowText Copies the text of the specified window's title bar (if it has one) into a buffer
Function GetWindowText (ByVal hWnd As Long, ByVal lpString As String, ByVal nMaxCount As Long) As Long
DestroyWindow Destroys the specified window
Function DestroyWindow (ByVal hWnd As Long) As Long
EnableWindow Enables or disables mouse and keyboard input to the specified window or control
Function EnableWindow (ByVal hWnd As Long, ByVal bEnable As Long) As Long
MoveWindow Changes the position and dimensions of the specified window
Function MoveWindow (ByVal hWnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long
RedrawWindow Updates the specified rectangle or region in a window's client area
Function RedrawWindow (ByVal hWnd As Long, ByRef lprcUpdate As Any, ByVal hrgnUpdate As Long, ByVal flags As Long) As Long
ShowWindow Sets the specified window's show state
Function ShowWindow (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long
UpdateWindow Updates the client area of the specified window by sending a WM_PAINT message to the window if the window's update region is not empty
Function UpdateWindow (ByVal hWnd As Long) As Long
FindWindowEx Retrieves a handle to a window whose class name and window name match the specified strings
Function FindWindowEx (ByVal hWndParent As Long, ByVal hWndChildAfter As Long, ByVal lpszClass As String, ByVal lpszWindow As String) As Long
CallWindowProc The CallWindowProc function passes message information to the specified window procedure
Function CallWindowProc (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
DefWindowProc The DefWindowProc function calls the default window procedure to provide default processing for any window messages that an application does not process. This function ensures that every message is processed
Function DefWindowProc (ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
SetLayeredWindowAttributes ...
Function SetLayeredWindowAttributes (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
GetClassName Retrieves the name of the class to which the specified window belongs
Function GetClassName (ByVal hWnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
IsIconic Determines whether the specified window is minimized (iconic)
Function IsIconic (ByVal hWnd As Long) As Long
IsWindow Determines whether the specified window handle identifies an existing window
Function IsWindow (ByVal hWnd As Long) As Long
IsWindowEnabled Determines whether the specified window is enabled for mouse and keyboard input
Function IsWindowEnabled (ByVal hWnd As Long) As Long
IsWindowVisible Retrieves the visibility state of the specified window
Function IsWindowVisible (ByVal hWnd As Long) As Long
IsZoomed determines whether the specified window is maximized
Function IsZoomed (ByVal hWnd As Long) As Long
SetWindowPos Destroys the specified window
Function SetWindowPos (ByVal hWnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal uFlags As Long) As Long
LockWindowUpdate Disables or reenables drawing in the specified window
Function LockWindowUpdate (ByVal hWndLock As Long) As Long
GetDesktopWindow Returns a handle to the desktop window
Function GetDesktopWindow () As Long
GetParent Retrieves a handle to the specified child window's parent window
Function GetParent (ByVal hWnd As Long) As Long
SetParent Changes the parent window of the specified child window
Function SetParent (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
GetClientRect Retrieves the coordinates of a window's client area
Function GetClientRect (ByVal hWnd As Long, ByRef lpRect As RECT) As Long
WindowFromPoint Retrieves a handle to the window that contains the specified point
Function WindowFromPoint (ByVal x As Long, ByVal y As Long) As Long
MessageBox Creates, displays, and operates a message box.
Function MessageBox (ByVal hWnd As Long, ByVal lpText As String, ByVal lpCaption As String, ByVal uType As Long) As Long
EnumChildWindows Creates, displays, and operates a message box.
Function EnumChildWindows (ByVal hWndParent As Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
MsgWaitForMultipleObjects Returns when one of the following occurs : one or all of the specified objects are in the signaled state, the time-out interval elapses
Function MsgWaitForMultipleObjects (ByVal nCount As Long, ByRef pHandles As Long, ByVal bWaitAll As Long, ByVal dwMilliseconds As Long, ByVal dwWakeMask As Long) As Long
GetDC Retrieves a handle to a display device context for the client area of a specified window or for the entire screen
Function GetDC (ByVal hWnd As Long) As Long
GetWindowDC Retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars
Function GetWindowDC (ByVal hWnd As Long) As Long
ReleaseDC Releases a device context (DC), freeing it for use by other applications
Function ReleaseDC (ByVal hWnd As Long, ByVal hdc As Long) As Long
ClientToScreen Converts the client coordinates of a specified point to screen coordinates
Function ClientToScreen (ByVal hWnd As Long, ByRef lpPoint As Any) As Long
MapWindowPoints Converts (maps) a set of points from a coordinate space relative to one window to a coordinate space relative to another window
Function MapWindowPoints (ByVal hWndFrom As Long, ByVal hWndTo As Long, ByRef lpPoints As Any, ByVal cPoints As Long) As Long
BeginPaint Prepares the specified window for painting and fills a PAINTSTRUCT structure with information about the painting
Function BeginPaint (ByVal hWnd As Long, ByRef lpPaint As PAINTSTRUCT) As Long
DrawEdge Draws one or more edges of rectangle
Function DrawEdge (ByVal hdc As Long, ByRef qrc As RECT, ByVal EDGE As Long, ByVal grfFlags As Long) As Long
DrawState Displays an image and applies a visual effect to indicate a state, such as a disabled or default state
Function DrawState (ByVal hdc As Long, ByVal hbr As Long, ByVal lpOutputFunc As Long, ByVal lData As Long, ByVal wData As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal fuFlags As Long) As Long
DrawCaption Draws a window caption
Function DrawCaption (ByVal hWnd As Long, ByVal hdc As Long, ByRef lpRC As RECT, ByVal uFlags As Long) As Long
DrawFocusRect Draws a rectangle in the style used to indicate that the rectangle has the focus
Function DrawFocusRect (ByVal hdc As Long, ByRef lpRC As RECT) As Long
DrawFrameControl Draws a frame control of the specified type and style
Function DrawFrameControl (ByVal hdc As Long, ByRef lpRC As RECT, ByVal uType As Long, ByVal uState As Long) As Long
EndPaint Marks the end of painting in the specified window
Function EndPaint (ByVal hWnd As Long, ByRef lpPaint As PAINTSTRUCT) As Long
GetUpdateRect retrieves the coordinates of the smallest rectangle that completely encloses the update region of the specified window. GetUpdateRect retrieves the rectangle in logical coordinates
Function GetUpdateRect (ByVal hWnd As Long, ByRef lpRect As RECT, ByVal bErase As Long) As Long
InvalidateRect Adds a rectangle to the specified window's update region
Function InvalidateRect (ByVal hWnd As Long, ByRef lpRect As Any, ByVal bErase As Long) As Long
ValidateRect Validates the client area within a rectangle by removing the rectangle from the update region of the specified window
Function ValidateRect (ByVal hWnd As Long, ByRef lpRect As Any) As Long
SystemParametersInfo The IsWindow function determines whether the specified window handle identifies an existing window
Function SystemParametersInfo (ByVal uiAction As Long, ByVal uiParam As Long, ByRef pvParam As Any, ByVal fWinIni As Long) As Long
GetForegroundWindow Returns a handle to the foreground window (the window with which the user is currently working)
Function GetForegroundWindow () As Long
SetForegroundWindow Puts the thread that created the specified window into the foreground and activates the window
Function SetForegroundWindow (ByVal hWnd As Long) As Long
ScreenToClient Converts the screen coordinates of a specified point on the screen to client coordinates
Function ScreenToClient (ByVal hWnd As Long, ByRef lpPoint As Any) As Long
GetWindowRect The GetWindowRect function retrieves the dimensions of the bounding rectangle of the specified window
Function GetWindowRect (ByVal hWnd As Long, ByRef lpRect As RECT) As Long
SetWindowRgn Sets the window region of a window
Function SetWindowRgn (ByVal hWnd As Long, ByVal hrgn As Long, ByVal bRedraw As Long) As Long
GetSysColorBrush Retrieves a handle identifying a logical brush that corresponds to the specified color index
Function GetSysColorBrush (ByVal nIndex As Long) As Long
CopyRect Copies the coordinates of one rectangle to another
Function CopyRect (ByRef lprcDst As RECT, ByRef lprcSrc As RECT) As Long
EqualRect Determines whether the two specified rectangles are equal by comparing the coordinates of their upper-left and lower-right corners
Function EqualRect (ByRef lprc1 As RECT, ByRef lprc2 As RECT) As Long
InflateRect Increases or decreases the width and height of the specified rectangle
Function InflateRect (ByRef lpRC As RECT, ByVal dx As Long, ByVal dy As Long) As Long
OffsetRect Moves the specified rectangle by the specified offsets
Function OffsetRect (ByRef lpRC As RECT, ByVal dx As Long, ByVal dy As Long) As Long
SetRect Sets the coordinates of the specified rectangle
Function SetRect (ByRef lpRC As RECT, ByVal xLeft As Long, ByVal yTop As Long, ByVal xRight As Long, ByVal yBottom As Long) As Long
FillRect Fills a rectangle by using the specified brush
Function FillRect (ByVal hdc As Long, ByRef lpRC As RECT, ByVal hbr As Long) As Long
PtInRect Determines whether the specified point lies within the specified rectangle
Function PtInRect (ByRef lpRC As RECT, ByVal ptX As Long, ByVal ptY As Long) As Long
FrameRect Draws a border around the specified rectangle by using the specified brush. The width and height of the border are always one logical unit
Function FrameRect (ByVal hdc As Long, ByRef lpRC As RECT, ByVal hbr As Long) As Long
LoadCursorLong Loads the specified cursor resource from the executable (.EXE) file associated with an application instance.
Function LoadCursorLong (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long
LoadCursorString Loads the specified cursor resource from the executable (.EXE) file associated with an application instance.
Function LoadCursorString (ByVal hInstance As Long, ByVal lpCursorName As String) As Long
LoadImageString Loads an icon, cursor, or bitmap
Function LoadImageString (ByVal hinst As Long, ByVal lpszName As String, ByVal uType As Long, ByVal cxDesired As Long, ByVal cyDesired As Long, ByVal fuLoad As Long) As Long
LoadImageLong Loads an icon, cursor, or bitmap
Function LoadImageLong (ByVal hinst As Long, ByVal lpszName As Long, ByVal uType As Long, ByVal cxDesired As Long, ByVal cyDesired As Long, ByVal fuLoad As Long) As Long
LoadIconString Loads the specified icon resource from the executable (.EXE) file associated with an application instance
Function LoadIconString (ByVal hInstance As Long, ByVal lpIconName As String) As Long
LoadIconLong Loads the specified icon resource from the executable (.EXE) file associated with an application instance
Function LoadIconLong (ByVal hInstance As Long, ByVal lpIconName As Long) As Long
DrawTextA Draws formatted text in the specified rectangle
Function DrawTextA (ByVal hdc As Long, ByVal lpString As String, ByVal nCount As Long, ByRef lpRect As RECT, ByVal uFormat As Long) As Long
DrawTextW Draws formatted text in the specified rectangle
Function DrawTextW (ByVal hdc As Long, ByVal lpString As String, ByVal nCount As Long, ByRef lpRect As RECT, ByVal uFormat As Long) As Long
DestroyCursor Destroys a cursor and frees any memory the cursor occupied
Function DestroyCursor (ByVal hCursor As Long) As Long
GetCursor Retrieves the handle to the current cursor
Function GetCursor () As Long
SetCursor Sets the cursor shape
Function SetCursor (ByVal hCursor As Long) As Long
GetCursorPos Retrieves the cursor's position, in screen coordinates
Function GetCursorPos (ByRef lpPoint As Any) As Long
GetCursorInfo Retrieves the cursor's information
Function GetCursorInfo (ByRef lpPoint As Any) As Long
DestroyIcon Destroys an icon and frees any memory the icon occupied
Function DestroyIcon (ByVal hIcon As Long) As Long
DrawIcon Draws an icon in the client area of the window of the specified device context
Function DrawIcon (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal hIcon As Long) As Long
DrawIconEx Draws an icon or cursor in the client area of the window of the specified device context
Function DrawIconEx (ByVal hdc As Long, ByVal xLeft As Long, ByVal yTop As Long, ByVal hIcon As Long, ByVal cxWidth As Long, ByVal cyWidth As Long, ByVal istepIfAniCur As Long, ByVal hbrFlickerFreeDraw As Long, ByVal diFlags As Long) As Long
GetIconInfo retrieves information about the specified icon or cursor
Function GetIconInfo (ByVal hIcon As Long, ByRef piconinfo As Any) As Long
CreateIconIndirect Creates an icon or cursor from an ICONINFO structure
Function CreateIconIndirect (ByRef piconinfo As Any) As Long
EnableScrollBar Enables or disables one or both scroll bar arrows
Function EnableScrollBar (ByVal hWnd As Long, ByVal wSBflags As Long, ByVal wArrows As Long) As Long
GetScrollInfo Retrieves the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb)
Function GetScrollInfo (ByVal hWnd As Long, ByVal fnBar As Long, ByRef lpsi As Any) As Long
SetScrollInfo Sets the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb)
Function SetScrollInfo (ByVal hWnd As Long, ByVal fnBar As Long, ByRef lpsi As Any, ByVal fRedraw As Long) As Long
ShowScrollBar Shows or hides the specified scroll bar
Function ShowScrollBar (ByVal hWnd As Long, ByVal wBar As Long, ByVal bShow As Long) As Long
ScrollDC Scrolls a rectangle of bits horizontally and vertically
Function ScrollDC (ByVal hdc As Long, ByVal dx As Long, ByVal dy As Long, ByRef lprcScroll As RECT, ByRef lprcClip As RECT, ByVal hrgnUpdate As Long, ByRef lprcUpdate As RECT) As Long
OpenClipboard Opens the clipboard for examination and prevents other applications from modifying the clipboard content
Function OpenClipboard (ByVal hWndNewOwner As Long) As Long
EmptyClipboard Empties the clipboard and frees handles to data in the clipboard
Function EmptyClipboard () As Long
CloseClipboard Closes the clipboard
Function CloseClipboard () As Long
SetClipboardData Places data on the clipboard in a specified clipboard format
Function SetClipboardData (ByVal uFormat As Long, ByVal hMem As Long) As Long
GetCapture retrieves the handle of the window (if any) that has captured the mouse
Function GetCapture () As Long
ReleaseCapture Releases the mouse capture from a window in the current thread and restores normal mouse input processing
Function ReleaseCapture () As Long
SetCapture Sets the mouse capture to the specified window belonging to the current thread
Function SetCapture (ByVal hWnd As Long) As Long
mouse_event Synthesizes mouse motion and button clicks
Function mouse_event (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal dwData As Long, ByVal dwExtraInfo As Long) As Any
TRACKMOUSEEVENT Posts messages when the mouse pointer leaves a window or hovers over a window for a specified amount of time
Function TRACKMOUSEEVENT (ByRef lpEvenTrack As Any) As Long
SetTimer Creates a timer with the specified time-out value
Function SetTimer (ByVal hWnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long
KillTimer Destroys the specified timer
Function KillTimer (ByVal hWnd As Long, ByVal uIDEvent As Long) As Long
SetWindowsHookEx Installs an application-defined hook procedure into a hook chain
Function SetWindowsHookEx (ByVal idHook As Long, ByVal lpfn As Long, ByVal hMod As Long, ByVal dwThreadId As Long) As Long
UnhookWindowsHookEx Removes a hook procedure installed in a hook chain by the SetWindowsHookEx function
Function UnhookWindowsHookEx (ByVal hhk As Long) As Long
CallNextHookEx Passes the hook information to the next hook procedure in the current hook chain
Function CallNextHookEx (ByVal hhk As Long, ByVal nCode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
RegisterHotKey Defines a system-wide hot key
Function RegisterHotKey (ByVal hWnd As Long, ByVal id As Long, ByVal fsModifiers As Long, ByVal VK As Long) As Long
UnregisterHotKey Frees a hot key previously registered by the calling thread
Function UnregisterHotKey (ByVal hWnd As Long, ByVal id As Long) As Long
GetFocus Retrieves the handle to the window that has the keyboard focus, if the window is associated with the calling thread's message queue
Function GetFocus () As Long
SetFocus Sets the keyboard focus to the specified window
Function SetFocus (ByVal hWnd As Long) As Long
GetKeyState Retrieves the status of the specified virtual key.
Function GetKeyState (ByVal vKey As Long) As Integer
GetKeyNameTextA Retrieves retrieves a string that represents the name of a key.
Function GetKeyNameTextA (ByVal lParam As Long, ByVal lpString As String, ByVal nSize As Long) As Long
GetKeyNameTextW Retrieves retrieves a string that represents the name of a key.
Function GetKeyNameTextW (ByVal lParam As Long, ByVal lpString As String, ByVal nSize As Long) As Long
GetAsyncKeyState Determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState
Function GetAsyncKeyState (ByVal vKey As Long) As Integer
MapVirtualKey Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.
Function MapVirtualKey (ByVal uCode As Long, ByVal uMapType As Long) As Long
GetProp The GetProp function retrieves a data handle from the property list of the given window
Function GetProp (ByVal hWnd As Long, ByVal lpString As String) As Long
SetProp The SetProp function adds a new entry or changes an existing entry in the property list of the specified window
Function SetProp (ByVal hWnd As Long, ByVal lpString As String, ByVal hData As Long) As Long
RemoveProp The RemoveProp function removes an entry from the property list of the specified window
Function RemoveProp (ByVal hWnd As Long, ByVal lpString As String) As Long
GetWindowThreadProcessId The GlobalHandle function retrieves the handle associated with the specified pointer to a global memory block
Function GetWindowThreadProcessId (ByVal hWnd As Long, ByRef lpdwProcessId As Long) As Long
GetSystemMetrics Retrieves various system metrics (widths and heights of display elements) and system configuration settings
Function GetSystemMetrics (ByVal nIndex As Long) As Long
GetSysColor Retrieves the current color of the specified display element
Function GetSysColor (ByVal nIndex As Long) As Long
GetMenu Retrieves the handle to the menu assigned to the given window
Function GetMenu (ByVal hWnd As Long) As Long
GetSubMenu Retrieves the handle to the drop-down menu or submenu activated by the specified menu item
Function GetSubMenu (ByVal hMenu As Long, ByVal nPos As Long) As Long
GetMenuItemCount Determines the number of items in the specified menu
Function GetMenuItemCount (ByVal hMenu As Long) As Long
GetMenuItemID Retrieves the menu item identifier of a menu item located at the specified position in a menu
Function GetMenuItemID (ByVal hMenu As Long, ByVal nPos As Long) As Long
GetMenuItemInfo Retrieves information about a menu item
Function GetMenuItemInfo (ByVal hMenu As Long, ByVal uItem As Long, ByVal fByPosition As Long, ByRef lpmii As Any) As Long
TrackPopupMenuEx Displays a shortcut menu at the specified location and tracks the selection of items on the shortcut menu
Function TrackPopupMenuEx (ByVal hMenu As Long, ByVal fuFlags As Long, ByVal x As Long, ByVal y As Long, ByVal hWnd As Long, ByRef lptpm As Any) As Long
SetMenu Assigns a new menu to the specified window
Function SetMenu (ByVal hWnd As Long, ByVal hMenu As Long) As Long
SetMenuItemInfo Changes information about a menu item
Function SetMenuItemInfo (ByVal hMenu As Long, ByVal uItem As Long, ByVal fByPosition As Long, ByRef lpmii As Any) As Long
OemToChar translates a string from the OEM-defined character set into either an ANSI or a wide-character string
Function OemToChar (ByVal lpszSrc As Long, ByVal lpszDst As Long) As Long

Alias ULONG_PTR

Module AdvApi

Enums

WINHKEY Root keys to the Registry
HKEY_CLASSES_ROOT = &H80000000
HKEY_CURRENT_USER = &H80000001
HKEY_LOCAL_MACHINE = &H80000002
HKEY_USERS = &H80000003
HKEY_PERFORMANCE_DATA = &H80000004
HKEY_CURRENT_CONFIG = &H80000005
HKEY_DYN_DATA = &H80000006
WINKEY
KEY_QUERY_VALUE = &H1 Registry access: Allow value query
KEY_SET_VALUE = &H2
KEY_CREATE_SUB_KEY = &H4
KEY_ENUMERATE_SUB_KEYS = &H8
KEY_NOTIFY = &H10
KEY_CREATE_LINK = &H20
KEY_READ = &H20019
KEY_ALL_ACCESS = &H2003F
EREG
REG_NONE = &H0 Registry value: No value type
REG_SZ = &H1 Registry value: Unicode null terminated string
REG_EXPAND_SZ = &H2 Registry value: Unicode null terminated string
REG_BINARY = &H3 Registry value: Free form binary
REG_DWORD = &H4 Registry value: 32-bit number
SERVICE_CONTROL
SERVICE_CONTROL_STOP = &H1
SERVICE_CONTROL_PAUSE = &H2
SERVICE_CONTROL_CONTINUE = &H3
SERVICE_CONTROL_INTERROGATE = &H4
SERVICE_CONTROL_SHUTDOWN = &H5
SERVICE_STATE
SERVICE_STOPPED = &H1
SERVICE_START_PENDING = &H2
SERVICE_STOP_PENDING = &H3
SERVICE_RUNNING = &H4
SERVICE_CONTINUE_PENDING = &H5
SERVICE_PAUSE_PENDING = &H6
SERVICE_PAUSED = &H7
SC_MANAGER_ACCESS_TYPES
SC_MANAGER_CONNECT = &H1
SC_MANAGER_CREATE_SERVICE = &H2
SC_MANAGER_ENUMERATE_SERVICE = &H4
SC_MANAGER_LOCK = &H8
SC_MANAGER_QUERY_LOCK_STATUS = &H10
SC_MANAGER_MODIFY_BOOT_CONFIG = &H20
SC_MANAGER_ALL_ACCESS = &HF003F
SERVICE_ACCESS_RIGHT
SERVICE_QUERY_CONFIG = &H1
SERVICE_CHANGE_CONFIG = &H2
SERVICE_QUERY_STATUS = &H4
SERVICE_ENUMERATE_DEPENDENTS = &H8
SERVICE_START = &H10
SERVICE_STOP = &H20
SERVICE_PAUSE_CONTINUE = &H40
SERVICE_INTERROGATE = &H80
SERVICE_USER_DEFINED_CONTROL = &H100
SERVICE_ALL_ACCESS = &HF01FF
SERVICE_TYPE
SERVICE_KERNEL_DRIVER = &H1
SERVICE_FILE_SYSTEM_DRIVER = &H2
SERVICE_ADAPTER = &H4
SERVICE_RECOGNIZER_DRIVER = &H8
SERVICE_DRIVER = &HB
SERVICE_WIN32_OWN_PROCESS = &H10
SERVICE_WIN32_SHARE_PROCESS = &H20
SERVICE_WIN32 = &H30
SERVICE_INTERACTIVE_PROCESS = &H100
SERVICE_TYPE_ALL = &H13F
SERVICE_START_TYPE
SERVICE_BOOT_START = &H0
SERVICE_SYSTEM_START = &H1
SERVICE_AUTO_START = &H2
SERVICE_DEMAND_START = &H3
SERVICE_DISABLED = &H4
SERVICE_ERROR_CONTROL_TYPE
SERVICE_ERROR_IGNORE = &H0
SERVICE_ERROR_NORMAL = &H1
SERVICE_ERROR_SEVERE = &H2
SERVICE_ERROR_CRITICAL = &H3
SERVICE_ACCEPT
SERVICE_ACCEPT_STOP = &H1
SERVICE_ACCEPT_PAUSE_CONTINUE = &H2
SERVICE_ACCEPT_SHUTDOWN = &H4
SERVICE_ACCEPT_PARAMCHANGE = &H8
SERVICE_ACCEPT_NETBINDCHANGE = &H10
SERVICE_ACCEPT_HARDWAREPROFILECHANGE = &H20
SERVICE_ACCEPT_POWEREVENT = &H40
SERVICE_ACCEPT_SESSIONCHANGE = &H80

Types

SERVICE_STATUS
dwServiceType As Long
dwCurrentState As Long
dwControlsAccepted As Long
dwWin32ExitCode As Long
dwServiceSpecificExitCode As Long
dwCheckPoint As Long
dwWaitHint As Long
QUERY_SERVICE_CONFIG
dwServiceType As Long
dwStartType As Long
dwErrorControl As Long
lpBinaryPathName As Long
lpLoadOrderGroup As Long
dwTagId As Long
lpDependencies As Long
lpServiceStartName As Long
lpDisplayName As Long
SERVICE_TABLE_ENTRY
lpServiceName As Long
lpServiceProc As Long
lpServiceNameNull As Long
lpServiceProcNull As Long

Functions

GetUserName Retrieves the user name of the current thread. This is the name of the user currently logged onto the system.
Function GetUserName (ByVal lpBuffer As String, ByRef nSize As Long) As Long
RegCloseKey Releases a handle to the specified key
Function RegCloseKey (ByVal hKey As Long) As Long
RegCreateKeyEx Creates the specified key. If the key already exists in the registry, the function opens it
Function RegCreateKeyEx (ByVal hKey As Long, ByVal lpSubKey As String, ByVal Reserved As Long, ByVal lpClass As String, ByVal dwOptions As Long, ByVal samDesired As Long, ByRef lpSecurityAttributes As Any, ByRef phkResult As Long, ByRef lpdwDisposition As Long) As Long
RegEnumKey enumerates subkeys of the specified open registry key.
Function RegEnumKey (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, ByVal cchName As Long) As Long
RegEnumKeyEx Enumerates subkeys of the specified open registry key
Function RegEnumKeyEx (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, ByRef lpcbName As Long, ByVal lpReserved As Long, ByVal lpClass As String, ByRef lpcbClass As Long, ByRef lpftLastWriteTime As FILETIME) As Long
RegEnumValue Enumerates the values for the specified open registry key
Function RegEnumValue (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As String, ByRef lpcbValueName As Long, ByVal lpReserved As Long, ByRef lpType As Long, ByVal lpData As String, ByRef lpcbData As Long) As Long
RegOpenKey Opens the specified key
Function RegOpenKey (ByVal hKey As Long, ByVal lpSubKey As String, ByRef phkResult As Long) As Long
RegOpenKeyEx Opens the specified key
Function RegOpenKeyEx (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, ByRef phkResult As Long) As Long
RegQueryValueEx Retrieves the type and data for a specified value name associated with an open registry key
Function RegQueryValueEx (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, ByRef lpType As Long, ByVal lpData As String, ByRef lpcbData As Long) As Long
RegSetValueExString Sets the data and type of a specified value under a registry key
Function RegSetValueExString (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, ByVal lpData As String, ByVal cbData As Long) As Long
RegSetValueExData Sets the data and type of a specified value under a registry key
Function RegSetValueExData (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, ByRef lpData As Any, ByVal cbData As Long) As Long
RegDeleteValue Removes a named value from the specified registry key
Function RegDeleteValue (ByVal hKey As Long, ByVal lpValueName As String) As Long
CloseServiceHandle Closes a handle to a service control manager or service object.
Function CloseServiceHandle (ByVal hSCObject As Long) As Long
ControlService Sends a control code to a service.
Function ControlService (ByVal hService As Long, ByVal dwControl As Long, ByRef lpServiceStatus As Any) As Long
CreateService Creates a service object and adds it to the specified service control manager database.
Function CreateService (ByVal hSCManager As Long, ByVal lpServiceName As String, ByVal lpDisplayName As String, ByVal dwDesiredAccess As Long, ByVal dwServiceType As Long, ByVal dwStartType As Long, ByVal dwErrorControl As Long, ByVal lpBinaryPathName As String, ByVal lpLoadOrderGroup As String, ByVal lpdwTagId As Long, ByVal lpDependencies As String, ByVal lpServiceStartName As String, ByVal lpPassword As String) As Long
DeleteService Marks the specified service for deletion from the service control manager database.
Function DeleteService (ByVal hService As Long) As Long
OpenService Opens an existing service.
Function OpenService (ByVal hSCManager As Long, ByVal lpServiceName As String, ByVal dwDesiredAccess As Long) As Long
OpenSCManager establishes a connection to the service control manager on the specified computer and opens the specified service control manager database.
Function OpenSCManager (ByVal lpMachineName As String, ByVal lpDatabaseName As String, ByVal dwDesiredAccess As Long) As Long
QueryServiceConfig Retrieves the configuration parameters of the specified service.
Function QueryServiceConfig (ByVal hService As Long, ByRef lpServiceConfig As Any, ByVal cbBufSize As Long, ByRef pcbBytesNeeded As Long) As Long
QueryServiceStatus Retrieves the current status of the specified service.
Function QueryServiceStatus (ByVal hService As Long, ByRef lpServiceStatus As Any) As Long
RegisterServiceCtrlHandlerA A service calls the RegisterServiceCtrlHandler function to register a function to handle its service control requests.
Function RegisterServiceCtrlHandlerA (ByVal lpServiceName As String, ByVal lpHandlerProc As Long) As Long
RegisterServiceCtrlHandlerW Registers a function to handle service control requests
Function RegisterServiceCtrlHandlerW (ByVal lpServiceName As Long, ByVal lpHandlerProc As Long) As Long
SetServiceStatus Updates the service control manager's status information for the calling service..
Function SetServiceStatus (ByVal hServiceStatus As Long, ByRef lpServiceStatus As Any) As Long
StartService Starts a service.
Function StartService (ByVal hService As Long, ByVal dwNumServiceArgs As Long, ByRef lpServiceArgVectors As String) As Long
StartServiceCtrlDispatcherA Connects the main thread of a service process to the service control manager, which causes the thread to be the service control dispatcher thread for the calling process..
Function StartServiceCtrlDispatcherA (ByRef lpServiceTable As Any) As Long
StartServiceCtrlDispatcherW Connects the main thread of a service process to the service control manager, which causes the thread to be the service control dispatcher thread for the calling process
Function StartServiceCtrlDispatcherW (ByRef lpServiceTable As Any) As Long

Module WinComCtl

Enums

WinICC
ICC_LISTVIEW_CLASSES = &H1
ICC_TREEVIEW_CLASSES = &H2
ICC_BAR_CLASSES = &H4
ICC_TAB_CLASSES = &H8
ICC_UPDOWN_CLASS = &H10
ICC_PROGRESS_CLASS = &H20
ICC_HOTKEY_CLASS = &H40
ICC_ANIMATE_CLASS = &H80
ICC_WIN95_CLASSES = &HFF
ICC_DATE_CLASSES = &H100
ICC_USEREX_CLASSES = &H200
ICC_COOL_CLASSES = &H400
ICC_INTERNET_CLASSES = &H800
ICC_PAGESCROLLER_CLASS = &H1000
ICC_NATIVEFNTCTL_CLASS = &H2000
ICC_STANDARD_CLASSES = &H4000
ICC_LINK_CLASS = &H8000
ECCM
CCM_FIRST = &H2000
CCM_SETBKCOLOR = &H2001
CCM_SETUNICODEFORMAT = &H2005
CCM_GETUNICODEFORMAT = &H2006
SBM
SB_SETTEXT = &H401
SB_GETTEXT = &H402
SB_GETTEXTLENGTH = &H403
SB_SIMPLE = &H409
SB_ISSIMPLE = &H40E
SBS
SBARS_SIZEGRIP = &H100
NM
NM_FIRST = &H0
NM_OUTOFMEMORY = &HFFFFFFFF
NM_CLICK = &HFFFFFFFE
NM_DBLCLK = &HFFFFFFFD
NM_RETURN = &HFFFFFFFC
NM_RCLICK = &HFFFFFFFB
NM_RDBLCLK = &HFFFFFFFA
NM_SETFOCUS = &HFFFFFFF9
NM_KILLFOCUS = &HFFFFFFF8
NM_CUSTOMDRAW = &HFFFFFFF4
NM_HOVER = &HFFFFFFF3
NM_NCHITTEST = &HFFFFFFF2
NM_KEYDOWN = &HFFFFFFF1
NM_RELEASEDCAPTURE = &HFFFFFFF0
NM_SETCURSOR = &HFFFFFFEF
NM_CHAR = &HFFFFFFEE
NM_TOOLTIPSCREATED = &HFFFFFFED
NM_LDOWN = &HFFFFFFEC
NM_RDOWN = &HFFFFFFEB
NM_THEMECHANGED = &HFFFFFFEA
LVS
LVS_ICON = &H0
LVS_REPORT = &H1
LVS_SMALLICON = &H2
LVS_LIST = &H3
LVS_TYPEMASK = &H3
LVS_SINGLESEL = &H4
LVS_SHOWSELALWAYS = &H8
LVS_SORTASCENDING = &H10
LVS_SORTDESCENDING = &H20
LVS_SHAREIMAGELISTS = &H40
LVS_NOLABELWRAP = &H80
LVS_AUTOARRANGE = &H100
LVS_EDITLABELS = &H200
LVS_OWNERDATA = &H1000
LVS_NOSCROLL = &H2000
LVS_TYPESTYLEMASK = &HFC00
LVS_ALIGNTOP = &H0
LVS_ALIGNLEFT = &H800
LVS_ALIGNMASK = &HC00
LVS_OWNERDRAWFIXED = &H400
LVS_NOCOLUMNHEADER = &H4000
LVS_NOSORTHEADER = &H8000
LVM
LVM_FIRST = &H1000
LVM_GETITEM = &H1005
LVM_SETITEM = &H1006
LVM_INSERTITEM = &H1007
LVM_DELETEITEM = &H1008
LVM_DELETEALLITEMS = &H1009
LVM_GETNEXTITEM = &H100C
LVM_FINDITEM = &H100D
LVM_INSERTCOLUMN = &H101B
LVM_SETHOTITEM = &H103C
LVM_GETHOTITEM = &H103D
LVN
LVN_FIRST = &HFFFFFF9C
LVN_ITEMCHANGING = &HFFFFFF9C
LVN_ITEMCHANGED = &HFFFFFF9B
LVN_INSERTITEM = &HFFFFFF9A
LVN_DELETEITEM = &HFFFFFF99
LVN_DELETEALLITEMS = &HFFFFFF98
LVN_BEGINLABELEDIT = &HFFFFFF97
LVN_ENDLABELEDIT = &HFFFFFF96
LVN_COLUMNCLICK = &HFFFFFF94
LVN_BEGINDRAG = &HFFFFFF93
LVN_BEGINRDRAG = &HFFFFFF91
LVN_ODCACHEHINT = &HFFFFFF8F
LVN_ITEMACTIVATE = &HFFFFFF8E
LVN_ODSTATECHANGED = &HFFFFFF8D
LVN_HOTTRACK = &HFFFFFF87
LVN_GETDISPINFOA = &HFFFFFF6A
LVN_SETDISPINFOA = &HFFFFFF69
LVN_ODFINDITEM = &HFFFFFF68
LVN_GETDISPINFOW = &HFFFFFF4F
LVN_SETDISPINFOW = &HFFFFFF4E
LVCF
LVCF_FMT = &H1
LVCF_WIDTH = &H2
LVCF_TEXT = &H4
LVCF_SUBITEM = &H8
LVCF_IMAGE = &H10
LVCF_ORDER = &H20
LVIF
LVIF_TEXT = &H1
LVIF_IMAGE = &H2
LVIF_PARAM = &H4
LVIF_STATE = &H8
LVIF_INDENT = &H10
LVIF_NORECOMPUTE = &H800
LVIF_GROUPID = &H100
LVIF_COLUMNS = &H200
LVCFMT
LVCFMT_LEFT = &H0
LVCFMT_RIGHT = &H1
LVCFMT_CENTER = &H2
LVCFMT_JUSTIFYMASK = &H3
LVCFMT_IMAGE = &H800
LVCFMT_BITMAP_ON_RIGHT = &H1000
LVCFMT_COL_HAS_IMAGES = &H8000
LVFI
LVFI_PARAM = &H1
LVFI_STRING = &H2
LVFI_PARTIAL = &H8
LVFI_WRAP = &H20
LVFI_NEARESTXY = &H40
LVNI
LVNI_ALL = &H0
LVNI_FOCUSED = &H1
LVNI_SELECTED = &H2
LVNI_CUT = &H4
LVNI_DROPHILITED = &H8
LVNI_ABOVE = &H100
LVNI_BELOW = &H200
LVNI_TOLEFT = &H400
LVNI_TORIGHT = &H800
TVS
TVS_HASBUTTONS = &H1
TVS_HASLINES = &H2
TVS_LINESATROOT = &H4
TVS_EDITLABELS = &H8
TVS_DISABLEDRAGDROP = &H10
TVS_SHOWSELALWAYS = &H20
TVS_RTLREADING = &H40
TVS_NOTOOLTIPS = &H80
TVS_CHECKBOXES = &H100
TVS_TRACKSELECT = &H200
TVS_SINGLEEXPAND = &H400
TVS_INFOTIP = &H800
TVS_FULLROWSELECT = &H1000
TVS_NOSCROLL = &H2000
TVS_NONEVENHEIGHT = &H4000
TVS_NOHSCROLL = &H8000
TVM
TV_FIRST = &H1100
TVM_INSERTITEM = &H1100
TVM_DELETEITEM = &H1101
TVM_SELECTITEM = &H110B
TVM_GETITEM = &H110C
TVM_SETITEM = &H110D
TVM_ENSUREVISIBLE = &H1114
TVM_SETBKCOLOR = &H111D
TVM_GETBKCOLOR = &H111F
TVN
TVN_FIRST = &HFFFFFE70
TVN_SELCHANGINGA = &HFFFFFE6F
TVN_SELCHANGINGW = &HFFFFFE3E
TVN_SELCHANGEDA = &HFFFFFE6E
TVN_SELCHANGEDW = &HFFFFFE3D
TVN_GETDISPINFOA = &HFFFFFE6D
TVN_GETDISPINFOW = &HFFFFFE3C
TVN_SETDISPINFOA = &HFFFFFE6C
TVN_SETDISPINFOW = &HFFFFFE3B
TVN_ITEMEXPANDINGA = &HFFFFFE6B
TVN_ITEMEXPANDINGW = &HFFFFFE3A
TVN_ITEMEXPANDEDA = &HFFFFFE6A
TVN_ITEMEXPANDEDW = &HFFFFFE39
TVN_BEGINDRAGA = &HFFFFFE69
TVN_BEGINDRAGW = &HFFFFFE38
TVN_BEGINRDRAGA = &HFFFFFE68
TVN_BEGINRDRAGW = &HFFFFFE37
TVN_DELETEITEMA = &HFFFFFE67
TVN_DELETEITEMW = &HFFFFFE36
TVN_BEGINLABELEDITA = &HFFFFFE66
TVN_BEGINLABELEDITW = &HFFFFFE35
TVN_ENDLABELEDITA = &HFFFFFE65
TVN_ENDLABELEDITW = &HFFFFFE34
TVN_KEYDOWN = &HFFFFFE64
TVN_GETINFOTIPA = &HFFFFFE63
TVN_GETINFOTIPW = &HFFFFFE62
TVN_SINGLEEXPAND = &HFFFFFE61
TVGN
TVGN_ROOT = &H0
TVGN_NEXT = &H1
TVGN_PREVIOUS = &H2
TVGN_PARENT = &H3
TVGN_CHILD = &H4
TVGN_FIRSTVISIBLE = &H5
TVGN_NEXTVISIBLE = &H6
TVGN_PREVIOUSVISIBLE = &H7
TVGN_DROPHILITE = &H8
TVGN_CARET = &H9
TVGN_LASTVISIBLE = &HA
TVIF
TVIF_TEXT = &H1
TVIF_IMAGE = &H2
TVIF_PARAM = &H4
TVIF_STATE = &H8
TVIF_HANDLE = &H10
TVIF_SELECTEDIMAGE = &H20
TVIF_CHILDREN = &H40
TVIF_INTEGRAL = &H80
TVIS
TVIS_OVERLAYMASK = &HF00
TVIS_STATEIMAGEMASK = &HF000
TVIS_USERMASK = &HF000
ILCF
ILCF_MOVE = &H0
ILCF_SWAP = &H1
ILD
ILD_NORMAL = &H0
ILD_TRANSPARENT = &H1
ILD_BLEND25 = &H2
ILD_SELECTED = &H4
ILD_FOCUS = &H4
ILD_MASK = &H10
ILD_IMAGE = &H20
ILD_ROP = &H40
ILD_OVERLAYMASK = &HF00
ILC
ILC_COLOR = &H0
ILC_MASK = &H1
ILC_COLOR4 = &H4
ILC_COLOR8 = &H8
ILC_COLOR16 = &H10
ILC_COLOR24 = &H18
ILC_COLOR32 = &H20
ILC_COLORDDB = &HFE
ILC_PALETTE = &H800
WinHDF
HDF_LEFT = &H0
HDF_RIGHT = &H1
HDF_CENTER = &H2
HDF_JUSTIFYMASK = &H3
HDF_RTLREADING = &H4
HDF_OWNERDRAW = &H8000
HDF_STRING = &H4000
HDF_BITMAP = &H2000
HDF_BITMAP_ON_RIGHT = &H1000
HDF_IMAGE = &H800
HDF_SORTUP = &H400
HDF_SORTDOWN = &H200
WinHDI
HDI_WIDTH = &H1
HDI_HEIGHT = &H1
HDI_TEXT = &H2
HDI_FORMAT = &H4
HDI_LPARAM = &H8
HDI_BITMAP = &H10
HDI_IMAGE = &H20
HDI_DI_SETITEM = &H40
HDI_ORDER = &H80
HDI_FILTER = &H100
WinHDS
HDS_HORZ = &H0
HDS_BUTTONS = &H2
HDS_HOTTRACK = &H4
HDS_HIDDEN = &H8
HDS_DRAGDROP = &H40
HDS_FULLDRAG = &H80
HDS_FILTERBAR = &H100
HDS_FLAT = &H200
WinHDFT
HDFT_ISSTRING = &H0
HDFT_ISNUMBER = &H1
HDFT_HASNOVALUE = &H8000
WinHDM
HDM_GETITEMCOUNT = &H1200
HDM_INSERTITEMA = &H1201
HDM_INSERTITEMW = &H120A
HDM_DELETEITEM = &H1202
HDM_GETITEMA = &H1203
HDM_GETITEMW = &H120B
HDM_SETITEMA = &H1204
HDM_SETITEMW = &H120C
HDM_LAYOUT = &H1205
HDM_HITTEST = &H1206
HDM_GETITEMRECT = &H1207
HDM_SETIMAGELIST = &H1208
HDM_GETIMAGELIST = &H1209
HDM_ORDERTOINDEX = &H120F
HDM_CREATEDRAGIMAGE = &H1210
HDM_GETORDERARRAY = &H1211
HDM_SETORDERARRAY = &H1212
HDM_SETHOTDIVIDER = &H1213
HDM_SETBITMAPMARGIN = &H1214
HDM_GETBITMAPMARGIN = &H1215
HDM_SETUNICODEFORMAT = &H2005
HDM_GETUNICODEFORMAT = &H2006
HDM_SETFILTERCHANGETIMEOUT = &H1216
HDM_EDITFILTER = &H1217
HDM_CLEARFILTER = &H1218
HDN
HDN_ITEMCHANGINGA = &HFFFFFED4
HDN_ITEMCHANGINGW = &HFFFFFEC0
HDN_ITEMCHANGEDA = &HFFFFFED3
HDN_ITEMCHANGEDW = &HFFFFFEBF
HDN_ITEMCLICKA = &HFFFFFED2
HDN_ITEMCLICKW = &HFFFFFEBE
HDN_ITEMDBLCLICKA = &HFFFFFED1
HDN_ITEMDBLCLICKW = &HFFFFFEBD
HDN_DIVIDERDBLCLICKA = &HFFFFFECF
HDN_DIVIDERDBLCLICKW = &HFFFFFEBB
HDN_BEGINTRACKA = &HFFFFFECE
HDN_BEGINTRACKW = &HFFFFFEBA
HDN_ENDTRACKA = &HFFFFFECD
HDN_ENDTRACKW = &HFFFFFEB9
HDN_TRACKA = &HFFFFFECC
HDN_TRACKW = &HFFFFFEB8
HDN_GETDISPINFOA = &HFFFFFECB
HDN_GETDISPINFOW = &HFFFFFEB7
HDN_BEGINDRAG = &HFFFFFECA
HDN_ENDDRAG = &HFFFFFEC9
HDN_FILTERCHANGE = &HFFFFFEC8
HDN_FILTERBTNCLICK = &HFFFFFEC7
WinTCM
TCM_GETIMAGELIST = &H1302
TCM_SETIMAGELIST = &H1303
TCM_GETITEMCOUNT = &H1304
TCM_GETITEMA = &H1305
TCM_GETITEMW = &H133C
TCM_GETITEM = &H1305
TCM_SETITEMA = &H1306
TCM_SETITEMW = &H133D
TCM_SETITEM = &H1306
TCM_INSERTITEMA = &H1307
TCM_INSERTITEMW = &H133E
TCM_INSERTITEM = &H1307
TCM_DELETEITEM = &H1308
TCM_DELETEALLITEMS = &H1309
TCM_GETITEMRECT = &H130A
TCM_GETCURSEL = &H130B
TCM_SETCURSEL = &H130C
TCM_HITTEST = &H130D
TCM_SETITEMEXTRA = &H130E
TCM_ADJUSTRECT = &H1328
TCM_SETITEMSIZE = &H1329
TCM_REMOVEIMAGE = &H132A
TCM_SETPADDING = &H132B
TCM_GETROWCOUNT = &H132C
TCM_GETTOOLTIPS = &H132D
TCM_SETTOOLTIPS = &H132E
TCM_GETCURFOCUS = &H132F
TCM_SETCURFOCUS = &H1330
TCM_SETMINTABWIDTH = &H1331
TCM_DESELECTALL = &H1332
TCM_HIGHLIGHTITEM = &H1333
TCM_SETEXTENDEDSTYLE = &H1334
TCM_GETEXTENDEDSTYLE = &H1335
TCM_SETUNICODEFORMAT = &H2005
TCM_GETUNICODEFORMAT = &H2006
WinTCS
TCS_SCROLLOPPOSITE = &H1
TCS_BOTTOM = &H2
TCS_RIGHT = &H2
TCS_MULTISELECT = &H4
TCS_FLATBUTTONS = &H8
TCS_FORCEICONLEFT = &H10
TCS_FORCELABELLEFT = &H20
TCS_HOTTRACK = &H40
TCS_VERTICAL = &H80
TCS_TABS = &H0
TCS_BUTTONS = &H100
TCS_SINGLELINE = &H0
TCS_MULTILINE = &H200
TCS_RIGHTJUSTIFY = &H0
TCS_FIXEDWIDTH = &H400
TCS_RAGGEDRIGHT = &H800
TCS_FOCUSONBUTTONDOWN = &H1000
TCS_OWNERDRAWFIXED = &H2000
TCS_TOOLTIPS = &H4000
TCS_FOCUSNEVER = &H8000
WinTCIF
TCIF_TEXT = &H1
TCIF_IMAGE = &H2
TCIF_RTLREADING = &H4
TCIF_PARAM = &H8
TCIF_STATE = &H10
WinTCIS
TCIS_BUTTONPRESSED = &H1
TCIS_HIGHLIGHTED = &H2
WinTCS_EX
TCS_EX_FLATSEPARATORS = &H1
TCS_EX_REGISTERDROP = &H2
WinTCN
TCN_FIRST = &HFFFFFDDA
TCN_KEYDOWN = &HFFFFFDDA
TCN_SELCHANGE = &HFFFFFDD9
TCN_SELCHANGING = &HFFFFFDD8
TCN_GETOBJECT = &HFFFFFDD7
WinUDM
UDM_SETRANGE = &H465
UDM_GETRANGE = &H466
UDM_SETPOS = &H467
UDM_GETPOS = &H468
UDM_SETBUDDY = &H469
UDM_GETBUDDY = &H46A
UDM_SETACCEL = &H46B
UDM_GETACCEL = &H46C
UDM_SETBASE = &H46D
UDM_GETBASE = &H46E
UDM_SETRANGE32 = &H46F
UDM_GETRANGE32 = &H470
UDM_SETUNICODEFORMAT = &H2005
UDM_GETUNICODEFORMAT = &H2006
UDM_SETPOS32 = &H471
UDM_GETPOS32 = &H472
WinUDS
UDS_WRAP = &H1
UDS_SETBUDDYINT = &H2
UDS_ALIGNRIGHT = &H4
UDS_ALIGNLEFT = &H8
UDS_AUTOBUDDY = &H10
UDS_ARROWKEYS = &H20
UDS_HORZ = &H40
UDS_NOTHOUSANDS = &H80
UDS_HOTTRACK = &H100
WinUDN
UDN_DELTAPOS = &HFFFFFD2E
TBS
TBS_AUTOTICKS = &H1
TBS_VERT = &H2
TBS_HORZ = &H0
TBS_TOP = &H4
TBS_BOTTOM = &H0
TBS_LEFT = &H4
TBS_RIGHT = &H0
TBS_BOTH = &H8
TBS_NOTICKS = &H10
TBS_ENABLESELRANGE = &H20
TBS_FIXEDLENGTH = &H40
TBS_NOTHUMB = &H80
TBS_TOOLTIPS = &H100
TBS_REVERSED = &H200
TBS_DOWNISLEFT = &H400
TBM
TBM_GETPOS = &H400
TBM_GETRANGEMIN = &H401
TBM_GETRANGEMAX = &H402
TBM_GETTIC = &H403
TBM_SETTIC = &H404
TBM_SETPOS = &H405
TBM_SETRANGE = &H406
TBM_SETRANGEMIN = &H407
TBM_SETRANGEMAX = &H408
TBM_CLEARTICS = &H409
TBM_SETSEL = &H40A
TBM_SETSELSTART = &H40B
TBM_SETSELEND = &H40C
TBM_GETPTICS = &H40E
TBM_GETTICPOS = &H40F
TBM_GETNUMTICS = &H410
TBM_GETSELSTART = &H411
TBM_GETSELEND = &H412
TBM_CLEARSEL = &H413
TBM_SETTICFREQ = &H414
TBM_SETPAGESIZE = &H415
TBM_GETPAGESIZE = &H416
TBM_SETLINESIZE = &H417
TBM_GETLINESIZE = &H418
TBM_GETTHUMBRECT = &H419
TBM_GETCHANNELRECT = &H41A
TBM_SETTHUMBLENGTH = &H41B
TBM_GETTHUMBLENGTH = &H41C
TBM_SETTOOLTIPS = &H41D
TBM_GETTOOLTIPS = &H41E
TBM_SETTIPSIDE = &H41F
PBM
PBM_SETRANGE = &H401
PBM_SETPOS = &H402
PBM_DELTAPOS = &H403
PBM_SETSTEP = &H404
PBM_STEPIT = &H405
PBM_SETRANGE32 = &H406
PBM_GETRANGE = &H407
PBM_GETPOS = &H408
PBM_SETBARCOLOR = &H409
PBM_SETBKCOLOR = &H2001
HKM
HKM_SETHOTKEY = &H401
HKM_GETHOTKEY = &H402
HKM_SETRULES = &H403
HOTKEYF
HOTKEYF_SHIFT = &H1
HOTKEYF_CONTROL = &H2
HOTKEYF_ALT = &H4
HOTKEYF_EXT = &H8
HOTKEYF_SHIFTCONTROL = &H3
HOTKEYF_ALTSHIFT = &H5
HOTKEYF_CONTROLALT = &H6
HOTKEYF_CONTROLALTSHIFT = &H7
WinMCM
MCM_GETCURSEL = &H1001
MCM_SETCURSEL = &H1002
MCM_SETCOLOR = &H100A
MCM_GETCOLOR = &H100B
MCM_SETFIRSTDAYOFWEEK = &H100F
MCM_GETFIRSTDAYOFWEEK = &H1010
WinMCS
MCS_MULTISELECT = &H2
MCS_WEEKNUMBERS = &H4
MCS_NOTODAYCIRCLE = &H8
MCS_NOTODAY = &H10
WinMCSC
MCSC_BACKGROUND = &H0
MCSC_TEXT = &H1
MCSC_TITLEBK = &H2
MCSC_TITLETEXT = &H3
MCSC_MONTHBK = &H4
MCSC_TRAILINGTEXT = &H5
WinMCN
MCN_SELCHANGE = &HFFFFFD13
MCN_GETDAYSTATE = &HFFFFFD15
MCN_SELECT = &HFFFFFD16
DTM
DTM_GETSYSTEMTIME = &H1001
DTM_SETSYSTEMTIME = &H1002
DTM_GETRANGE = &H1003
DTM_SETRANGE = &H1004
DTM_SETFORMATA = &H1005
DTM_SETFORMATW = &H1032
DTM_SETFORMAT = &H1005
DTM_SETMCCOLOR = &H1006
DTM_GETMCCOLOR = &H1007
DTM_GETMONTHCAL = &H1008
DTM_SETMCFONT = &H1009
DTM_GETMCFONT = &H100A
DTS
DTS_SHORTDATEFORMAT = &H0
DTS_UPDOWN = &H1
DTS_SHOWNONE = &H2
DTS_LONGDATEFORMAT = &H4
DTS_TIMEFORMAT = &H9
DTS_APPCANPARSE = &H10
DTS_SHORTDATECENTURYFORMAT = &HC
DTS_RIGHTALIGN = &H20
DTN
DTN_DATETIMECHANGE = &HFFFFFD09
DTN_DROPDOWN = &HFFFFFD0E
DTN_CLOSEUP = &HFFFFFD0F
WinIPM
IPM_CLEARADDRESS = &H464
IPM_SETADDRESS = &H465
IPM_GETADDRESS = &H466
IPM_SETRANGE = &H467
IPM_SETFOCUS = &H468
IPM_ISBLANK = &H469
EWSB
WSB_PROP_CYVSCROLL = &H1
WSB_PROP_CXHSCROLL = &H2
WSB_PROP_CYHSCROLL = &H4
WSB_PROP_CXVSCROLL = &H8
WSB_PROP_CXHTHUMB = &H10
WSB_PROP_CYVTHUMB = &H20
WSB_PROP_VBKGCOLOR = &H40
WSB_PROP_HBKGCOLOR = &H80
WSB_PROP_VSTYLE = &H100
WSB_PROP_HSTYLE = &H200
WSB_PROP_WINSTYLE = &H400
WSB_PROP_PALETTE = &H800
WSB_PROP_MASK = &HFFF
EFSB
FSB_REGULAR_MODE = &H0
FSB_ENCARTA_MODE = &H1
FSB_FLAT_MODE = &H2
TTS
TTS_ALWAYSTIP = &H1
TTS_NOPREFIX = &H2
TTS_NOANIMATE = &H10
TTS_NOFADE = &H20
TTS_BALLOON = &H40
TTS_CLOSE = &H80
TTM
TTM_ACTIVATE = &H401
TTM_SETDELAYTIME = &H403
TTM_ADDTOOLA = &H404
TTM_ADDTOOLW = &H432
TTM_DELTOOLA = &H405
TTM_DELTOOLW = &H433
TTM_NEWTOOLRECTA = &H406
TTM_NEWTOOLRECTW = &H434
TTM_RELAYEVENT = &H407
TTM_GETTOOLINFOA = &H408
TTM_GETTOOLINFOW = &H435
TTM_SETTOOLINFOA = &H409
TTM_SETTOOLINFOW = &H436
TTM_HITTESTA = &H40A
TTM_HITTESTW = &H437
TTM_GETTEXTA = &H40B
TTM_GETTEXTW = &H438
TTM_UPDATETIPTEXTA = &H40C
TTM_UPDATETIPTEXTW = &H439
TTM_GETTOOLCOUNT = &H40D
TTM_ENUMTOOLSA = &H40E
TTM_ENUMTOOLSW = &H43A
TTM_GETCURRENTTOOLA = &H40F
TTM_GETCURRENTTOOLW = &H43B
TTM_WINDOWFROMPOINT = &H410
TTM_TRACKACTIVATE = &H411
TTM_TRACKPOSITION = &H412
TTM_SETTIPBKCOLOR = &H413
TTM_SETTIPTEXTCOLOR = &H414
TTM_GETDELAYTIME = &H415
TTM_GETTIPBKCOLOR = &H416
TTM_GETTIPTEXTCOLOR = &H417
TTM_SETMAXTIPWIDTH = &H418
TTM_GETMAXTIPWIDTH = &H419
TTM_SETMARGIN = &H41A
TTM_GETMARGIN = &H41B
TTM_POP = &H41C
TTM_UPDATE = &H41D
TTM_GETBUBBLESIZE = &H41E
TTM_ADJUSTRECT = &H41F
TTM_SETTITLEA = &H420
TTM_SETTITLEW = &H421
TTM_POPUP = &H422
TTM_GETTITLE = &H423
TTM_ADDTOOL = &H404
TTM_DELTOOL = &H405
TTM_NEWTOOLRECT = &H406
TTM_GETTOOLINFO = &H408
TTM_SETTOOLINFO = &H409
TTM_HITTEST = &H40A
TTM_GETTEXT = &H40B
TTM_UPDATETIPTEXT = &H40C
TTM_ENUMTOOLS = &H40E
TTM_GETCURRENTTOOL = &H40F
TTM_SETTITLE = &H420
TTN
TTN_FIRST = &HFFFFFDF8
TTN_GETDISPINFOA = &HFFFFFDF8
TTN_GETDISPINFOW = &HFFFFFDEE
TTN_SHOW = &HFFFFFDF7
TTN_POP = &HFFFFFDF6
TTN_LINKCLICK = &HFFFFFDF5
TTN_GETDISPINFO = &HFFFFFDF8
TTN_NEEDTEXT = &HFFFFFDF8
TTN_NEEDTEXTA = &HFFFFFDF8
TTN_NEEDTEXTW = &HFFFFFDEE
TTF
TTF_IDISHWND = &H1
TTF_CENTERTIP = &H2
TTF_RTLREADING = &H4
TTF_SUBCLASS = &H10
TTF_TRACK = &H20
TTF_ABSOLUTE = &H80
TTF_TRANSPARENT = &H100
TTF_PARSELINKS = &H1000
TTF_DI_SETITEM = &H8000
TTDT
TTDT_AUTOMATIC = &H0
TTDT_RESHOW = &H1
TTDT_AUTOPOP = &H2
TTDT_INITIAL = &H3

Types

tINITCOMMONCONTROLSEX
dwSize As Long
dwICC As Long
DLLVERSIONINFO
cbSize As Long
dwMajorVersion As Long
dwMinorVersion As Long
dwBuildNumber As Long
dwPlatformId As Long
NMHDR
hWndFrom As Long
idFrom As Long
code As Long
NMTTDISPINFO
hdr As NMHDR
lpszText As Long
szText As Fixed Array
hinst As Long
uFlags As Long
lParam As Long
LVCOLUMN
mask As Long
fmt As Long
cx As Long
pszText As Long
cchTextMax As Long
iSubItem As Long
iImage As Long
iOrder As Long
LVITEM
mask As Long
iItem As Long
iSubItem As Long
state As Long
stateMask As Long
pszText As Long
cchTextMax As Long
iImage As Long
lParam As Long
iIndent As Long
iGroupId As Long
cColumns As Long
puColumns As Long
LVFINDINFO
flags As Long
psz As Long
lParam As Long
pt As POINT
vkDirection As Long
NMLISTVIEW
hdr As NMHDR
iItem As Long
iSubItem As Long
uNewState As Long
uOldState As Long
uChanged As Long
ptAction As POINT
lParam As Long
TVITEM
mask As Long
hItem As Long
state As Long
stateMask As Long
pszText As Long
cchTextMax As Long
iImage As Long
iSelectedImage As Long
cChildren As Long
lParam As Long
NMTREEVIEW
hdr As NMHDR
action As Long
itemOld As TVITEM
itemNew As TVITEM
ptDrag As POINT
TVINSERTSTRUCT
hParent As Long
hInsertAfter As Long
item As TVITEM
HDTEXTFILTER
pszText As Long
cchTextMax As Long
HDITEM
mask As Long
cxy As Long
pszText As Long
hbm As Long
cchTextMax As Long
fmt As Long
lParam As Long
iImage As Long
iOrder As Long
type As Long
pvFilter As Long
TCITEM
mask As Long
dwState As Long
dwStateMask As Long
pszText As Long
cchTextMax As Long
iImage As Long
lParam As Long
TCKEYDOWN
hdr As NMHDR
wVKey As Integer
flags As Long
NMUPDOWN
hdr As NMHDR
iPos As Long
iDelta As Long
UDACCEL
nSec As Long
nInc As Long
NMSELCHANGE
NMHDR As NMHDR
stSelStart As SYSTEMTIME
stSelEnd As SYSTEMTIME
NMDATETIMECHANGE
NMHDR As NMHDR
dwFlags As Long
st As SYSTEMTIME
TTTOOLINFO
cbSize As Long
uFlags As Long
hWnd As Long
uId As Long
RECT As RECT
hinst As Long
lpszText As Long
lParam As Long
lpReserved As Long
TTGETTITLE
dwSize As Long
uTitleBitmap As Long
cch As Long
pszTitle As Unsigned Short

Functions

InitCommonControls Registers and initializes the common control window classes
Function InitCommonControls () As Any
InitCommonControlsEx Registers specific common control classes from the common control dynamic-link library (DLL)
Function InitCommonControlsEx (ByRef lpInitCtrls As tINITCOMMONCONTROLSEX) As Long
DllGetVersion Registers specific common control classes from the common control dynamic-link library (DLL)
Function DllGetVersion (ByRef pdvi As DLLVERSIONINFO) As Long
ImageList_Add Adds an image or images to an image list
Function ImageList_Add (ByVal hIml As Long, ByVal hbmImage As Long, ByVal hbmMask As Long) As Long
ImageList_AddIcon Adds an icon to an image list
Function ImageList_AddIcon (ByVal hIml As Long, ByVal hIcon As Long) As Long
ImageList_AddMasked Adds an image or images to an image list, generating a mask from the specified bitmap
Function ImageList_AddMasked (ByVal hIml As Long, ByVal hbmImage As Long, ByVal crMask As Long) As Long
ImageList_BeginDrag Begins dragging an image
Function ImageList_BeginDrag (ByVal himlTrack As Long, ByVal iTrack As Long, ByVal dxHotspot As Long, ByVal dyHotspot As Long) As Long
ImageList_Copy Copies images within a given image list
Function ImageList_Copy (ByVal himlDst As Long, ByVal iDst As Long, ByVal himlSrc As Long, ByVal iSrc As Long, ByVal uFlags As Long) As Long
ImageList_Create Creates a new image list
Function ImageList_Create (ByVal cx As Long, ByVal cy As Long, ByVal flags As Long, ByVal cInitial As Long, ByVal cGrow As Long) As Long
ImageList_Destroy Destroys an image list
Function ImageList_Destroy (ByVal hIml As Long) As Long
ImageList_Draw Draws an image list item in the specified device context
Function ImageList_Draw (ByVal hIml As Long, ByVal i As Long, ByVal hdcDst As Long, ByVal x As Long, ByVal y As Long, ByVal fStyle As Long) As Long
ImageList_DrawEx Draws an image list item in the specified device context
Function ImageList_DrawEx (ByVal hIml As Long, ByVal i As Long, ByVal hdcDst As Long, ByVal x As Long, ByVal y As Long, ByVal dx As Long, ByVal dy As Long, ByVal rgbBk As Long, ByVal rgbFg As Long, ByVal fStyle As Long) As Long
ImageList_DragEnter Locks updates to the specified window during a drag operation and displays the drag image at the specified position within the window
Function ImageList_DragEnter (ByVal hWndLock As Long, ByVal x As Long, ByVal y As Long) As Long
ImageList_DragMove Moves the image that is being dragged during a drag-and-drop operation
Function ImageList_DragMove (ByVal x As Long, ByVal y As Long) As Long
ImageList_DragLeave Moves the image that is being dragged during a drag-and-drop operation
Function ImageList_DragLeave (ByVal hWndLock As Long) As Long
ImageList_EndDrag Moves the image that is being dragged during a drag-and-drop operation
Function ImageList_EndDrag () As Long
ImageList_GetIcon Creates an icon from an image and mask in an image list
Function ImageList_GetIcon (ByVal hIml As Long, ByVal i As Long, ByVal flags As Long) As Long
ImageList_GetIconSize Retrieves the dimensions of images in an image list
Function ImageList_GetIconSize (ByVal hIml As Long, ByRef cx As Long, ByRef cy As Long) As Long
ImageList_GetImageCount Retrieves the number of images in an image list
Function ImageList_GetImageCount (ByVal hIml As Long) As Long
ImageList_Remove Removes an image from an image list
Function ImageList_Remove (ByVal hIml As Long, ByVal i As Long) As Long
ImageList_SetIconSize Sets the dimensions of images in an image list and removes all images from the list
Function ImageList_SetIconSize (ByVal hIml As Long, ByVal cx As Long, ByVal cy As Long) As Long
CreateUpDownControl Creates an up-down control
Function CreateUpDownControl (ByVal dwStyle As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal hParent As Long, ByVal nID As Long, ByVal hinst As Long, ByVal hBuddy As Long, ByVal nUpper As Long, ByVal nLower As Long, ByVal nPos As Long) As Long
InitializeFlatSB Initializes flat scroll bars for a particular window
Function InitializeFlatSB (ByVal hWnd As Long) As Long
FlatSB_EnableScrollBar Enables or disables one or both flat scroll bar direction buttons
Function FlatSB_EnableScrollBar (ByVal hWnd As Long, ByVal wSBflags As Long, ByVal wArrows As Long) As Long
FlatSB_GetScrollInfo Retrieves the information for a flat scroll bar
Function FlatSB_GetScrollInfo (ByVal hWnd As Long, ByVal fnBar As Long, ByRef lpsi As Any) As Long
FlatSB_GetScrollPos Retrieves the information for a flat scroll bar
Function FlatSB_GetScrollPos (ByVal hWnd As Long, ByVal code As Long) As Long
FlatSB_GetScrollProp Retrieves the properties for a flat scroll bar
Function FlatSB_GetScrollProp (ByVal hWnd As Long, ByVal index As Long, ByRef pValue As Long) As Long
FlatSB_GetScrollRange Retrieves the scroll range for a flat scroll bar
Function FlatSB_GetScrollRange (ByVal hWnd As Long, ByVal code As Long, ByRef lpMinPos As Long, ByRef lpMaxPos As Long) As Long
FlatSB_SetScrollInfo Sets the information for a flat scroll bar
Function FlatSB_SetScrollInfo (ByVal hWnd As Long, ByVal fnBar As Long, ByRef lpsi As Any, ByVal fRedraw As Long) As Long
FlatSB_SetScrollPos Sets the current position of the thumb in a flat scroll bar
Function FlatSB_SetScrollPos (ByVal hWnd As Long, ByVal code As Long, ByVal nPos As Long, ByVal fRedraw As Long) As Long
FlatSB_SetScrollProp Sets the properties for a flat scroll bar
Function FlatSB_SetScrollProp (ByVal hWnd As Long, ByVal index As Long, ByVal newValue As Long, ByVal fRedraw As Long) As Long
FlatSB_SetScrollRange Sets the scroll range of a flat scroll bar
Function FlatSB_SetScrollRange (ByVal hWnd As Long, ByVal code As Long, ByVal nMinPos As Long, ByVal nMaxPos As Long, ByVal fRedraw As Long) As Long
FlatSB_ShowScrollBar Shows or hides a flat scroll bar
Function FlatSB_ShowScrollBar (ByVal hWnd As Long, ByVal code As Long, ByVal fShow As Long) As Long
UninitializeFlatSB Uninitializes flat scroll bars for a particular window
Function UninitializeFlatSB (ByVal hWnd As Long) As Long
CCTrackMouseEvent Posts messages when the mouse pointer leaves a window or hovers over a window for a specified amount of time
Function CCTrackMouseEvent (ByRef lpEventTrack As Any) As Long

Module WinComDlg

Enums

WinComDlgError
CDERR_DIALOGFAILURE = &HFFFF
CDERR_GENERALCODES = &H0
CDERR_STRUCTSIZE = &H1
CDERR_INITIALIZATION = &H2
CDERR_NOTEMPLATE = &H3
CDERR_NOHINSTANCE = &H4
CDERR_LOADSTRFAILURE = &H5
CDERR_FINDRESFAILURE = &H6
CDERR_LOADRESFAILURE = &H7
CDERR_LOCKRESFAILURE = &H8
CDERR_MEMALLOCFAILURE = &H9
CDERR_MEMLOCKFAILURE = &HA
CDERR_NOHOOK = &HB
CDERR_REGISTERMSGFAIL = &HC
PDERR_PRINTERCODES = &H1000
PDERR_SETUPFAILURE = &H1001
PDERR_PARSEFAILURE = &H1002
PDERR_RETDEFFAILURE = &H1003
PDERR_LOADDRVFAILURE = &H1004
PDERR_GETDEVMODEFAIL = &H1005
PDERR_INITFAILURE = &H1006
PDERR_NODEVICES = &H1007
PDERR_NODEFAULTPRN = &H1008
PDERR_DNDMMISMATCH = &H1009
PDERR_CREATEICFAILURE = &H100A
PDERR_PRINTERNOTFOUND = &H100B
PDERR_DEFAULTDIFFERENT = &H100C
CFERR_CHOOSEFONTCODES = &H2000
CFERR_NOFONTS = &H2001
CFERR_MAXLESSTHANMIN = &H2002
FNERR_FILENAMECODES = &H3000
FNERR_SUBCLASSFAILURE = &H3001
FNERR_INVALIDFILENAME = &H3002
FNERR_BUFFERTOOSMALL = &H3003
FRERR_FINDREPLACECODES = &H4000
FRERR_BUFFERLENGTHZERO = &H4001
CCERR_CHOOSECOLORCODES = &H5000
WinOFN
OFN_READONLY = &H1
OFN_OVERWRITEPROMPT = &H2
OFN_HIDEREADONLY = &H4
OFN_NOCHANGEDIR = &H8
OFN_SHOWHELP = &H10
OFN_ENABLEHOOK = &H20
OFN_ENABLETEMPLATE = &H40
OFN_ENABLETEMPLATEHANDLE = &H80
OFN_NOVALIDATE = &H100
OFN_ALLOWMULTISELECT = &H200
OFN_EXTENSIONDIFFERENT = &H400
OFN_PATHMUSTEXIST = &H800
OFN_FILEMUSTEXIST = &H1000
OFN_CREATEPROMPT = &H2000
OFN_SHAREAWARE = &H4000
OFN_NOREADONLYRETURN = &H8000
OFN_NOTESTFILECREATE = &H10000
OFN_NONETWORKBUTTON = &H20000
OFN_NOLONGNAMES = &H40000
OFN_EXPLORER = &H80000
OFN_NODEREFERENCELINKS = &H100000
OFN_LONGNAMES = &H200000
CC
CC_RGBINIT = &H1
CC_FULLOPEN = &H2
CC_PREVENTFULLOPEN = &H4
CC_SHOWHELP = &H8
CC_ENABLEHOOK = &H10
CC_ENABLETEMPLATE = &H20
CC_ENABLETEMPLATEHANDLE = &H40
CC_SOLIDCOLOR = &H80
CC_ANYCOLOR = &H100
CF
CF_SCREENFONTS = &H1
CF_PRINTERFONTS = &H2
CF_BOTH = &H3
CF_SHOWHELP = &H4
CF_ENABLEHOOK = &H8
CF_ENABLETEMPLATE = &H10
CF_ENABLETEMPLATEHANDLE = &H20
CF_INITTOLOGFONTSTRUCT = &H40
CF_USESTYLE = &H80
CF_EFFECTS = &H100
CF_APPLY = &H200
CF_ANSIONLY = &H400
CF_SCRIPTSONLY = &H400
CF_NOVECTORFONTS = &H800
CF_NOOEMFONTS = &H800
CF_NOSIMULATIONS = &H1000
CF_LIMITSIZE = &H2000
CF_FIXEDPITCHONLY = &H4000
CF_WYSIWYG = &H8000
CF_FORCEFONTEXIST = &H10000
CF_SCALABLEONLY = &H20000
CF_TTONLY = &H40000
CF_NOFACESEL = &H80000
CF_NOSTYLESEL = &H100000
CF_NOSIZESEL = &H200000
CF_SELECTSCRIPT = &H400000
CF_NOSCRIPTSEL = &H800000
CF_NOVERTFONTS = &H1000000
PD
PD_ALLPAGES = &H0
PD_SELECTION = &H1
PD_PAGENUMS = &H2
PD_NOSELECTION = &H4
PD_NOPAGENUMS = &H8
PD_COLLATE = &H10
PD_PRINTTOFILE = &H20
PD_PRINTSETUP = &H40
PD_NOWARNING = &H80
PD_RETURNDC = &H100
PD_RETURNIC = &H200
PD_RETURNDEFAULT = &H400
PD_SHOWHELP = &H800
PD_ENABLEPRINTHOOK = &H1000
PD_ENABLESETUPHOOK = &H2000
PD_ENABLEPRINTTEMPLATE = &H4000
PD_ENABLESETUPTEMPLATE = &H8000
PD_ENABLEPRINTTEMPLATEHANDLE = &H10000
PD_ENABLESETUPTEMPLATEHANDLE = &H20000
PD_USEDEVMODECOPIES = &H40000
PD_USEDEVMODECOPIESANDCOLLATE = &H40000
PD_DISABLEPRINTTOFILE = &H80000
PD_HIDEPRINTTOFILE = &H100000
PD_NONETWORKBUTTON = &H200000
PD_CURRENTPAGE = &H400000
PD_NOCURRENTPAGE = &H800000
PD_EXCLUSIONFLAGS = &H1000000
PD_USELARGETEMPLATE = &H10000000
PD_RESULT_CANCEL = &H0
PD_RESULT_PRINT = &H1
PD_RESULT_APPLY = &H2

Types

OPENFILENAME
lStructSize As Long
hwndOwner As Long
hInstance As Long
lpstrFilter As Long
lpstrCustomFilter As Long
nMaxCustFilter As Long
nFilterIndex As Long
lpstrFile As Long
nMaxFile As Long
lpstrFileTitle As Long
nMaxFileTitle As Long
lpstrInitialDir As Long
lpstrTitle As Long
flags As Long
nFileOffset As Integer
nFileExtension As Integer
lpstrDefExt As Long
lCustData As Long
lpfnHook As Long
lpTemplateName As Long
pvReserved As Long
dwReserved As Long
FlagsEx As Long
CHOOSECOLOR
lStructSize As Long
hwndOwner As Long
hInstance As Long
rgbResult As Long
lpCustColors As Long
flags As Long
lCustData As Long
lpfnHook As Long
lpTemplateName As Long
CHOOSEFONT
lStructSize As Long
hwndOwner As Long
hdc As Long
lpLogFont As Long
iPointSize As Long
flags As Long
rgbColors As Long
lCustData As Long
lpfnHook As Long
lpTemplateName As Long
hInstance As Long
lpszStyle As Long
nFontType As Integer
MISSING_ALIGNMENT As Integer
nSizeMin As Long
nSizeMax As Long
DEVMODEPRINTER
dmDeviceName As Fixed Array
dmSpecVersion As Integer
dmDriverVersion As Integer
dmSize As Integer
dmDriverExtra As Integer
dmFields As Long
dmOrientation As Integer
dmPaperSize As Integer
dmPaperLength As Integer
dmPaperWidth As Integer
dmScale As Integer
dmCopies As Integer
dmDefaultSource As Integer
dmPrintQuality As Integer
dmColor As Integer
dmDuplex As Integer
dmYResolution As Integer
dmTTOption As Integer
dmCollate As Integer
dmFormName As Fixed Array
dmLogPixels As Integer
dmBitsPerPel As Long
dmPelsWidth As Long
dmPelsHeight As Long
dmDisplayFlags As Long
dmNup As Long
dmDisplayFrequency As Long
dmICMMethod As Long
dmICMIntent As Long
dmMediaType As Long
dmDitherType As Long
dmReserved1 As Long
dmReserved2 As Long
dmPanningWidth As Long
dmPanningHeight As Long
PRINTPAGERANGE
nFromPage As Long
nToPage As Long
PRINTDLG
lStructSize As Long
hwndOwner As Long
hDevMode As Long
hDevNames As Long
hdc As Long
flags As Long
nFromPage As Integer
nToPage As Integer
nMinPage As Integer
nMaxPage As Integer
nCopies As Integer
hInstance As Long
lCustData As Long
lpfnPrintHook As Long
lpfnSetupHook As Long
lpPrintTemplateName As Long
lpSetupTemplateName As Long
hPrintTemplate As Long
hSetupTemplate As Long
PRINTDLGEX
lStructSize As Long
hwndOwner As Long
hDevMode As Long
hDevNames As Long
hdc As Long
flags As Long
Flags2 As Long
ExclusionFlags As Long
nPageRanges As Long
nMaxPageRanges As Long
lpPageRanges As Long
nMinPage As Long
nMaxPage As Long
nCopies As Long
hInstance As Long
lpPrintTemplateName As Long
lpCallback As Long
nPropertyPages As Long
lphPropertyPages As Long
nStartPage As Long
dwResultAction As Long

Functions

CommDlgExtendedError Returns a common dialog box error code
Function CommDlgExtendedError () As Long
GetOpenFileNameA Creates an Open common dialog box that lets the user specify the drive, directory, and the name of a file or set of files to open
Function GetOpenFileNameA (ByRef lpofn As Any) As Long
GetOpenFileNameW Creates an Open common dialog box that lets the user specify the drive, directory, and the name of a file or set of files to open
Function GetOpenFileNameW (ByRef lpofn As Any) As Long
GetSaveFileNameA Creates a Save common dialog box that lets the user specify the drive, directory, and name of a file to save
Function GetSaveFileNameA (ByRef lpofn As Any) As Long
GetSaveFileNameW Creates a Save common dialog box that lets the user specify the drive, directory, and name of a file to save
Function GetSaveFileNameW (ByRef lpofn As Any) As Long
ChooseColorA Creates a Color common dialog box that enables the user to select a color
Function ChooseColorA (ByRef lpcc As Any) As Long
ChooseColorW Creates a Color common dialog box that enables the user to select a color
Function ChooseColorW (ByRef lpcc As Any) As Long
ChooseFontA Creates a Font dialog box that enables the user to choose attributes for a logical font
Function ChooseFontA (ByRef lpcf As Any) As Long
ChooseFontW Creates a Font dialog box that enables the user to choose attributes for a logical font
Function ChooseFontW (ByRef lpcf As Any) As Long
PrintDlgA Creates a Font dialog box that enables the user to choose attributes for a logical font
Function PrintDlgA (ByRef lppd As Any) As Long
PrintDlgW Creates a Font dialog box that enables the user to choose attributes for a logical font
Function PrintDlgW (ByRef lppd As Any) As Long
PrintDlgExA Creates a Font dialog box that enables the user to choose attributes for a logical font
Function PrintDlgExA (ByRef lppdex As Any) As Long
PrintDlgExW Creates a Font dialog box that enables the user to choose attributes for a logical font
Function PrintDlgExW (ByRef lppdex As Any) As Long

Module Ole32

Types

SAFEARRAYBOUND
cElements As Long
lLbound As Long
SAFEARRAY2D
cDims As Integer
fFeatures As Integer
cbElements As Long
cLocks As Long
pvData As Long
rgsBounds As Fixed Array
SAFEARRAY3D
cDims As Integer
fFeatures As Integer
cbElements As Long
cLocks As Long
pvData As Long
rgsBounds As Fixed Array
PICDESC
cbSizeofStruct As Long
picType As Long
hBitmap As Long
hpal As Long

Functions

CLSIDFromString Converts a string generated by the StringFromCLSID function back into the original CLSID
Function CLSIDFromString (ByVal lpsz As String, ByRef pclsid As Any) As Long
IIDFromString Converts a string generated by the StringFromIID function back into the original interface identifier (IID)
Function IIDFromString (ByVal lpsz As String, ByRef lpiid As Any) As Long
CreateStreamOnHGlobal Creates a stream object stored in global memory
Function CreateStreamOnHGlobal (ByVal hGlobal As Long, ByVal fDeleteOnRelease As Long, ByRef ppstm As Any) As Long
CoTaskMemAlloc Allocates a block of task memory in the same way that IMalloc::Alloc does
Function CoTaskMemAlloc (ByVal cb As Long) As Long
CoTaskMemFree Creates a stream object stored in global memory
Function CoTaskMemFree (ByRef pv As Any) As Any

Module OleAut32

OLE Automation Functions

Enums

REGKIND
REGKIND_DEFAULT = &H0
REGKIND_REGISTER = &H1
REGKIND_NONE = &H2

Functions

LoadTypeLibEx Loads a type library and (optionally) registers it in the system registry.
Function LoadTypeLibEx (ByVal szFile As String, ByRef REGKIND As REGKIND, ByVal pptlib As Long) As Long
SysAllocString Allocates and returns a BSTR for a given LPSTR
Function SysAllocString (ByVal sz As String) As Long

Module WinOle32

Functions

CoCreateGuid Creates a GUID, a unique 128-bit integer used for CLSIDs and interface identifiers.
Function CoCreateGuid (ByRef pguid As CLSID) As Long
StringFromGUID2 Converts a globally unique identifier (GUID) into a string of printable characters.
Function StringFromGUID2 (ByRef rguid As CLSID, ByVal lpsz As String, ByVal cchMax As Long) As Long

Module WinOlePro32

Functions

OleTranslateColor Converts an OLE_COLOR type to a COLORREF
Function OleTranslateColor (ByVal clr As Long, ByVal hpal As Long, ByRef pcolorref As Long) As Long
OleLoadPicture Creates a new picture object and initializes it from the contents of a stream
Function OleLoadPicture (ByRef pStream As Any, ByVal lSize As Long, ByVal fRunmode As Long, ByRef riid As Any, ByRef ppvObj As Any) As Long
OleCreatePictureIndirect Creates a new picture object initialized according to a PICTDESC structure
Function OleCreatePictureIndirect (ByRef pPictDesc As Any, ByRef riid As Any, ByVal fOwn As Long, ByRef ppvObj As Any) As Long

Module Shell

Enums

BIF
BIF_RETURNONLYFSDIRS = &H1 Find folder to start document search
BIF_DONTGOBELOWDOMAIN = &H2 For starting the Find Computer
BIF_STATUSTEXT = &H4 Include a status area with text coming from messages sent by the callback function
BIF_RETURNFSANCESTORS = &H8 Only return file system ancestors--grey out OK button for other selections
BIF_EDITBOX = &H10 Include edit control for name of item
BIF_VALIDATE = &H20 Insist on valid result (or CANCEL)--requires will BIF_EDITBOX and callback procedure
BIF_NEWDIALOGSTYLE = &H40 Use the new dialog layout with the ability to resize
BIF_BROWSEFORCOMPUTER = &H1000 Only return computers--grey out OK button for other selections
BIF_BROWSEFORPRINTER = &H2000 Only return printers--grey out OK button for other selections
BIF_BROWSEINCLUDEFILES = &H4000 Display files as well as folders
BFFM
BFFM_INITIALIZED = &H1
BFFM_SELCHANGED = &H2
BFFM_VALIDATEFAILEDA = &H3
BFFM_VALIDATEFAILEDW = &H4
BFFM_IUNKNOWN = &H5
BFFM_SETSTATUSTEXTA = &H464
BFFM_ENABLEOK = &H465
BFFM_SETSELECTIONA = &H466
BFFM_SETSELECTIONW = &H467
BFFM_SETSTATUSTEXTW = &H468
BFFM_SETOKTEXT = &H469
BFFM_SETEXPANDED = &H46A
NIM
NIM_ADD = &H0
NIM_MODIFY = &H1
NIM_DELETE = &H2
NIM_SETFOCUS = &H3
NIM_SETVERSION = &H4
NIF
NIF_MESSAGE = &H1
NIF_ICON = &H2
NIF_TIP = &H4
NIF_STATE = &H8
NIF_INFO = &H10
NIF_GUID = &H20
NIIF
NIIF_NONE = &H0
NIIF_INFO = &H1
NIIF_WARNING = &H2
NIIF_ERROR = &H3
NIIF_ICON_MASK = &HF
NIIF_NOSOUND = &H10

Types

BROWSEINFO
hwndOwner As Long Handle to the owner window for the dialog box
pidlRoot As Long Pointer to an item identifier list (PIDL) specifying the location of the root folder from which to start browsing
pszDisplayName As Long Address of a buffer to receive the display name of the folder selected by the user
lpszTitle As Long Address of a null-terminated string that is displayed above the tree view control in the dialog box
ulFlags As Long Flags specifying the options for the dialog box
lpfn As Long Address of an application-defined function that the dialog box calls when an event occurs
lParam As Long Application-defined value that the dialog box passes to the callback function, if one is specified
iImage As Long Variable to receive the image associated with the selected folder
NOTIFYICONDATA
cbSize As Long
hWnd As Long
uId As Long
uFlags As Long
uCallbackMessage As Long
hIcon As Long
szTip As Fixed Array
dwState As Long
dwStateMask As Long
szInfo As Fixed Array
uVersion As Long
szInfoTitle As Fixed Array
dwInfoFlags As Long

Functions

ShellExecute The GlobalHandle function retrieves the handle associated with the specified pointer to a global memory block
Function ShellExecute (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
SHGetPathFromIDListA Converts an item identifier list to a file system path
Function SHGetPathFromIDListA (ByVal pidl As Long, ByVal pszPath As String) As Long
SHGetPathFromIDListW Converts an item identifier list to a file system path
Function SHGetPathFromIDListW (ByVal pidl As Long, ByVal pszPath As String) As Long
SHBrowseForFolderA Displays a dialog box that enables the user to select a shell folder
Function SHBrowseForFolderA (ByRef lpbi As Any) As Long
SHBrowseForFolderW Displays a dialog box that enables the user to select a shell folder
Function SHBrowseForFolderW (ByRef lpbi As Any) As Long
Shell_NotifyIcon Sends a message to the taskbar's status area.
Function Shell_NotifyIcon (ByVal dwMessage As Long, ByRef lpData As Any) As Long

Module WinMM

Enums

SND
SND_SYNC = &H0 Play synchronously (default)
SND_ASYNC = &H1 Play asynchronously
SND_NODEFAULT = &H2 Don't use default sound
SND_MEMORY = &H4 String parameter points to sound in memory
SND_LOOP = &H8 Loop the sound until next sndPlaySound
SND_NOSTOP = &H10 Don't stop any currently playing sound
SND_PURGE = &H40 Purge non-static events for task
SND_APPLICATION = &H80 Look for application specific association
SND_NOWAIT = &H2000 Don't wait if the driver is busy
SND_ALIAS = &H10000 Name is a registry alias
SND_ALIAS_ID = &H110000 Alias is a predefined ID
SND_FILENAME = &H20000 Name is file name
SND_RESOURCE = &H40004 Name is resource name or atom

Functions

timeGetTime Retrieves the time elapsed since Windows was started, in milliseconds
Function timeGetTime () As Long
timeBeginPeriod Sets the minimum timer resolution for an application or device driver.
Function timeBeginPeriod (ByVal uPeriod As Long) As Long
timeEndPeriod Clears a previously set minimum timer resolution.
Function timeEndPeriod (ByVal uPeriod As Long) As Long
sndPlaySound Plays a waveform sound specified either by a filename or by an entry in the registry or the WIN.INI file
Function sndPlaySound (ByVal lpszSound As Long, ByVal fuSound As Long) As Long
PlaySound plays a sound specified by the given filename, resource, or system event. (A system event may be associated with a sound in the registry or in the WIN.INI file
Function PlaySound (ByVal pszSound As String, ByVal hMod As Long, ByVal fdwSound As Long) As Long

Module WinMsvfw

Functions

DrawDibOpen Opens the DrawDib library for use and creates a DrawDib DC for drawing
Function DrawDibOpen () As Long
DrawDibDraw Draws a DIB to the screen
Function DrawDibDraw (ByVal hdd As Long, ByVal hdc As Long, ByVal xDst As Long, ByVal yDst As Long, ByVal dxDst As Long, ByVal dyDst As Long, ByRef lpbi As BITMAPINFOHEADER, ByRef lpBits As Any, ByVal XSrc As Long, ByVal YSrc As Long, ByVal dxSrc As Long, ByVal dySrc As Long, ByVal wFlags As Long) As Long
DrawDibClose Closes a DrawDib DC and frees the resources DrawDib allocated for it
Function DrawDibClose (ByVal hdd As Long) As Long

Module WinImg

Enums

WinAlphaBlendFormat
AC_SRC_OVER = &H0
AC_SRC_ALPHA = &H1

Types

BLENDFUNCTION
BlendOp As Byte
BlendFlags As Byte
SourceConstantAlpha As Byte
AlphaFormat As Byte

Functions

AlphaBlend Displays bitmaps that have transparent or semitransparent pixels
Function AlphaBlend (ByVal hdcDest As Long, ByVal nXOriginDest As Long, ByVal nYOriginDest As Long, ByVal nWidthDest As Long, ByVal hHeightDest As Long, ByVal hdcSrc As Long, ByVal nXOriginSrc As Long, ByVal nYOriginSrc As Long, ByVal nWidthSrc As Long, ByVal nHeightSrc As Long, ByVal BLENDFUNCTION As Long) As Long

Module ImageHlp

Functions

MapFileAndCheckSum Computes the checksum of the specified file
Function MapFileAndCheckSum (ByVal Filename As String, ByRef HeaderSum As Long, ByRef CheckSum As Long) As Long

Module WinNet32

Enums

SV_TYPE
SV_TYPE_WORKSTATION = &H1
SV_TYPE_SERVER = &H2
SV_TYPE_SQLSERVER = &H4
SV_TYPE_DOMAIN_CTRL = &H8
SV_TYPE_DOMAIN_BAKCTRL = &H10
SV_TYPE_TIME_SOURCE = &H20
SV_TYPE_AFP = &H40
SV_TYPE_NOVELL = &H80
SV_TYPE_DOMAIN_MEMBER = &H100
SV_TYPE_PRINTQ_SERVER = &H200
SV_TYPE_DIALIN_SERVER = &H400
SV_TYPE_XENIX_SERVER = &H800
SV_TYPE_SERVER_UNIX = &H800
SV_TYPE_NT = &H1000
SV_TYPE_WFW = &H2000
SV_TYPE_SERVER_MFPN = &H4000
SV_TYPE_SERVER_NT = &H8000
SV_TYPE_POTENTIAL_BROWSER = &H10000
SV_TYPE_BACKUP_BROWSER = &H20000
SV_TYPE_MASTER_BROWSER = &H40000
SV_TYPE_DOMAIN_MASTER = &H80000
SV_TYPE_SERVER_OSF = &H100000
SV_TYPE_SERVER_VMS = &H200000
SV_TYPE_WINDOWS = &H400000
SV_TYPE_DFS = &H800000
SV_TYPE_CLUSTER_NT = &H1000000
SV_TYPE_TERMINALSERVER = &H2000000
SV_TYPE_CLUSTER_VS_NT = &H4000000
SV_TYPE_DCE = &H10000000
SV_TYPE_ALTERNATE_XPORT = &H20000000
SV_TYPE_LOCAL_LIST_ONLY = &H40000000
SV_TYPE_DOMAIN_ENUM = &H80000000
SV_TYPE_ALL = &HFFFFFFFF
WinNCBCommand
NCBRESET = &H32
NCBASTAT = &H33
NCBENUM = &H37

Types

WKSTA_INFO_100
wki100_platform_id As Long
wki100_computername As Long
wki100_langroup As Long
wki100_ver_major As Long
wki100_ver_minor As Long
WKSTA_USER_INFO_1
wkui1_username As Long
wkui1_logon_domain As Long
wkui1_oth_domains As Long
wkui1_logon_server As Long
ADAPTER_STATUS
adapter_address As Fixed Array
rev_major As Byte
reserved0 As Byte
adapter_type As Byte
rev_minor As Byte
duration As Integer
frmr_recv As Integer
frmr_xmit As Integer
iframe_recv_err As Integer
xmit_aborts As Integer
xmit_success As Long
recv_success As Long
iframe_xmit_err As Integer
recv_buff_unavail As Integer
t1_timeouts As Integer
ti_timeouts As Integer
reserved1 As Long
free_ncbs As Integer
max_cfg_ncbs As Integer
max_ncbs As Integer
xmit_buf_unavail As Integer
max_dgram_size As Integer
pending_sess As Integer
max_cfg_sess As Integer
max_sess As Integer
max_sess_pkt_size As Integer
name_count As Integer
NCB
ncb_command As Byte
ncb_retcode As Byte
ncb_lsn As Byte
ncb_num As Byte
ncb_buffer As Long
ncb_length As Integer
ncb_callname As Fixed Array
ncb_name As Fixed Array
ncb_rto As Byte
ncb_sto As Byte
ncb_post As Long
ncb_lana_num As Byte
ncb_cmd_cplt As Byte
ncb_reserve As Fixed Array
ncb_event As Long
NAME_BUFFER
name As Fixed Array
name_num As Byte
name_flags As Byte
ASTAT
adapt As ADAPTER_STATUS
namebuff As Fixed Array
LANA_ENUM
Length As Byte
adapter_numbers As Fixed Array

Functions

Netbios Interprets and executes the specified network control block (NCB).
Function Netbios (ByRef pncb As Any) As Byte

Module IpHlpApi

Enums

MIB_IF_TYPE
MIB_IF_TYPE_ETHERNET = &H6
MIB_IF_TYPE_TOKENRING = &H9
MIB_IF_TYPE_FDDI = &HF
MIB_IF_TYPE_PPP = &H17
MIB_IF_TYPE_LOOPBACK = &H18
MIB_IF_TYPE_SLIP = &H1C

Types

IP_MASK_STRING
String As Fixed Array
IP_ADDR_STRING
Next As Long
IpAddress As Fixed Array
IpMask As Fixed Array
Context As Long
FIXED_INFO
HostName As Fixed Array
DomainName As Fixed Array
CurrentDnsServer As Long
DnsServerList As IP_ADDR_STRING
NodeType As Long
ScopeId As Fixed Array
EnableRouting As Long
EnableProxy As Long
EnableDns As Long
IP_ADAPTER_INFO
Next As Long
ComboIndex As Long
AdapterName As Fixed Array
Description As Fixed Array
AddressLength As Long
Address As Fixed Array
index As Long
type As Long
DhcpEnabled As Long
CurrentIpAddress As Long
IpAddressList As IP_ADDR_STRING
GatewayList As IP_ADDR_STRING
DhcpServer As IP_ADDR_STRING
HaveWins As Long
PrimaryWinsServer As IP_ADDR_STRING
SecondaryWinsServer As IP_ADDR_STRING
LeaseObtained As Long
LeaseExpires As Long

Functions

SendARP Sends an ARP request to obtain the physical address that corresponds to the specified destination IP address
Function SendARP (ByVal DestIP As Long, ByVal SrcIP As Long, ByRef pMacAddr As Long, ByRef PhyAddrLen As Long) As Long
GetNetworkParams Retrieves network parameters for the local computer
Function GetNetworkParams (ByRef pFixedInfo As Any, ByRef pOutBufLen As Long) As Long
GetAdaptersInfo Rtrieves adapter information for the local computer
Function GetAdaptersInfo (ByRef pAdapterInfo As Any, ByRef pOutBufLen As Long) As Long

Module WSock32

Enums

WSAFamily
AF_UNSPEC = &H0
AF_UNIX = &H1
AF_INET = &H2
AF_IMPLINK = &H3
AF_PUP = &H4
AF_CHAOS = &H5
AF_NS = &H6
AF_IPX = &H6
AF_ISO = &H7
AF_OSI = &H7
AF_ECMA = &H8
AF_DATAKIT = &H9
AF_CCITT = &HA
AF_SNA = &HB
AF_DECnet = &HC
AF_DLI = &HD
AF_LAT = &HE
AF_HYLINK = &HF
AF_APPLETALK = &H10
AF_NETBIOS = &H11
AF_VOICEVIEW = &H12
AF_FIREFOX = &H13
AF_UNKNOWN1 = &H14
AF_BAN = &H15
AF_ATM = &H16
AF_INET6 = &H17
AF_CLUSTER = &H18
AF_12844 = &H19
AF_MAX = &H1A
WSAProtocol
IPPROTO_IP = &H0
IPPROTO_HOPOPTS = &H0
IPPROTO_ICMP = &H1
IPPROTO_IGMP = &H2
IPPROTO_GGP = &H3
IPPROTO_IPV4 = &H4
IPPROTO_TCP = &H6
IPPROTO_PUP = &HC
IPPROTO_UDP = &H11
IPPROTO_IDP = &H16
IPPROTO_IPV6 = &H29
IPPROTO_ROUTING = &H2B
IPPROTO_FRAGMENT = &H2C
IPPROTO_ESP = &H32
IPPROTO_AH = &H33
IPPROTO_ICMPV6 = &H3A
IPPROTO_NONE = &H3B
IPPROTO_DSTOPTS = &H3C
IPPROTO_ND = &H4D
IPPROTO_ICLFXBM = &H4E
IPPROTO_RAW = &HFF
IPPROTO_MAX = &H100
WSASockType
SOCK_STREAM = &H1
SOCK_DGRAM = &H2
SOCK_RAW = &H3
SOCK_RDM = &H4
SOCK_SEQPACKET = &H5

Types

WSAData
wVersion As Integer
wHighVersion As Integer
szDescription As Fixed Array
szSystemStatus As Fixed Array
iMaxSockets As Integer
iMaxUdpDg As Integer
lpVendorInfo As Long
HOSTENT
h_name As Long
h_aliases As Long
h_addrtype As Integer
h_length As Integer
h_addr_list As Long

Functions

WSAStartup <>
Function WSAStartup (ByVal wVersionRequested As Integer, ByRef lpWSAData As Any) As Long
WSACleanup <>
Function WSACleanup () As Long
gethostbyname Retrieves host information corresponding to a host name from a host database
Function gethostbyname (ByVal name As String) As Long
gethostbyaddr Retrieves the host information corresponding to a network address
Function gethostbyaddr (ByRef addr As Any, ByVal len As Long, ByVal type As Long) As Long
inet_addr Converts a string containing an (Ipv4) Internet Protocol dotted address into a proper address for the IN_ADDR structure
Function inet_addr (ByVal cp As String) As Long
inet_ntoa Converts an (Ipv4) Internet network address into a string in Internet standard dotted format
Function inet_ntoa (ByVal in As Long) As Long

Module Wininet

Enums

INTERNET_OPTION
INTERNET_OPTION_CALLBACK = &H1
INTERNET_OPTION_CONNECT_TIMEOUT = &H2
INTERNET_OPTION_CONNECT_RETRIES = &H3
INTERNET_OPTION_CONNECT_BACKOFF = &H4
INTERNET_OPTION_SEND_TIMEOUT = &H5
INTERNET_OPTION_CONTROL_SEND_TIMEOUT = &H5
INTERNET_OPTION_RECEIVE_TIMEOUT = &H6
INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT = &H6
INTERNET_OPTION_DATA_SEND_TIMEOUT = &H7
INTERNET_OPTION_DATA_RECEIVE_TIMEOUT = &H8
INTERNET_OPTION_HANDLE_TYPE = &H9
INTERNET_OPTION_LISTEN_TIMEOUT = &HB
INTERNET_OPTION_READ_BUFFER_SIZE = &HC
INTERNET_OPTION_WRITE_BUFFER_SIZE = &HD
INTERNET_OPTION_ASYNC_ID = &HF
INTERNET_OPTION_ASYNC_PRIORITY = &H10
INTERNET_OPTION_PARENT_HANDLE = &H15
INTERNET_OPTION_KEEP_CONNECTION = &H16
INTERNET_OPTION_REQUEST_FLAGS = &H17
INTERNET_OPTION_EXTENDED_ERROR = &H18
INTERNET_OPTION_OFFLINE_MODE = &H1A
INTERNET_OPTION_CACHE_STREAM_HANDLE = &H1B
INTERNET_OPTION_USERNAME = &H1C
INTERNET_OPTION_PASSWORD = &H1D
INTERNET_OPTION_ASYNC = &H1E
INTERNET_OPTION_SECURITY_FLAGS = &H1F
INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT = &H20
INTERNET_OPTION_DATAFILE_NAME = &H21
INTERNET_OPTION_URL = &H22
INTERNET_OPTION_SECURITY_CERTIFICATE = &H23
INTERNET_OPTION_SECURITY_KEY_BITNESS = &H24
INTERNET_OPTION_REFRESH = &H25
INTERNET_OPTION_PROXY = &H26
INTERNET_OPTION_SETTINGS_CHANGED = &H27
INTERNET_OPTION_VERSION = &H28
INTERNET_OPTION_USER_AGENT = &H29
INTERNET_OPTION_END_BROWSER_SESSION = &H2A
INTERNET_OPTION_PROXY_USERNAME = &H2B
INTERNET_OPTION_PROXY_PASSWORD = &H2C
INTERNET_OPTION_CONTEXT_VALUE = &H2D
INTERNET_OPTION_CONNECT_LIMIT = &H2E
INTERNET_OPTION_SECURITY_SELECT_CLIENT_CERT = &H2F
INTERNET_OPTION_POLICY = &H30
INTERNET_OPTION_DISCONNECTED_TIMEOUT = &H31
INTERNET_OPTION_CONNECTED_STATE = &H32
INTERNET_OPTION_IDLE_STATE = &H33
INTERNET_OPTION_OFFLINE_SEMANTICS = &H34
INTERNET_OPTION_SECONDARY_CACHE_KEY = &H35
INTERNET_OPTION_CALLBACK_FILTER = &H36
INTERNET_OPTION_CONNECT_TIME = &H37
INTERNET_OPTION_SEND_THROUGHPUT = &H38
INTERNET_OPTION_RECEIVE_THROUGHPUT = &H39
INTERNET_OPTION_REQUEST_PRIORITY = &H3A
INTERNET_OPTION_HTTP_VERSION = &H3B
INTERNET_OPTION_RESET_URLCACHE_SESSION = &H3C
INTERNET_OPTION_ERROR_MASK = &H3E
INTERNET_OPTION_FROM_CACHE_TIMEOUT = &H3F
INTERNET_OPTION_BYPASS_EDITED_ENTRY = &H40
INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO = &H43
INTERNET_OPTION_CODEPAGE = &H44
INTERNET_OPTION_CACHE_TIMESTAMPS = &H45
INTERNET_OPTION_DISABLE_AUTODIAL = &H46
INTERNET_OPTION_MAX_CONNS_PER_SERVER = &H49
INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER = &H4A
INTERNET_OPTION_PER_CONNECTION_OPTION = &H4B
INTERNET_OPTION_DIGEST_AUTH_UNLOAD = &H4C
INTERNET_OPTION_IGNORE_OFFLINE = &H4D
INTERNET_OPTION_IDENTITY = &H4E
INTERNET_OPTION_REMOVE_IDENTITY = &H4F
INTERNET_OPTION_ALTER_IDENTITY = &H50
INTERNET_OPTION_SUPPRESS_BEHAVIOR = &H51
INTERNET_OPTION_AUTODIAL_MODE = &H52
INTERNET_OPTION_AUTODIAL_CONNECTION = &H53
INTERNET_OPTION_CLIENT_CERT_CONTEXT = &H54
INTERNET_OPTION_AUTH_FLAGS = &H55
INTERNET_OPTION_COOKIES_3RD_PARTY = &H56
INTERNET_OPTION_DISABLE_PASSPORT_AUTH = &H57
INTERNET_OPTION_SEND_UTF8_SERVERNAME_TO_PROXY = &H58
INTERNET_OPTION_EXEMPT_CONNECTION_LIMIT = &H59
INTERNET_OPTION_ENABLE_PASSPORT_AUTH = &H5A
INTERNET_OPTION_HIBERNATE_INACTIVE_WORKER_THREADS = &H5B
INTERNET_OPTION_ACTIVATE_WORKER_THREADS = &H5C
INTERNET_OPTION_RESTORE_WORKER_THREAD_DEFAULTS = &H5D
INTERNET_OPTION_SOCKET_SEND_BUFFER_LENGTH = &H5E
INTERNET_OPTION_PROXY_SETTINGS_CHANGED = &H5F
INTERNET_DEFAULT_PORT
INTERNET_INVALID_PORT_NUMBER = &H0
INTERNET_DEFAULT_FTP_PORT = &H15
INTERNET_DEFAULT_GOPHER_PORT = &H46
INTERNET_DEFAULT_HTTP_PORT = &H50
INTERNET_DEFAULT_HTTPS_PORT = &H1BB
INTERNET_DEFAULT_SOCKS_PORT = &H438
ERROR_INTERNET
INTERNET_ERROR_BASE = &H2EE0
ERROR_INTERNET_OUT_OF_HANDLES = &H2EE1
ERROR_INTERNET_TIMEOUT = &H2EE2
ERROR_INTERNET_EXTENDED_ERROR = &H2EE3
ERROR_INTERNET_INTERNAL_ERROR = &H2EE4
ERROR_INTERNET_INVALID_URL = &H2EE5
ERROR_INTERNET_UNRECOGNIZED_SCHEME = &H2EE6
ERROR_INTERNET_NAME_NOT_RESOLVED = &H2EE7
ERROR_INTERNET_PROTOCOL_NOT_FOUND = &H2EE8
ERROR_INTERNET_INVALID_OPTION = &H2EE9
ERROR_INTERNET_BAD_OPTION_LENGTH = &H2EEA
ERROR_INTERNET_OPTION_NOT_SETTABLE = &H2EEB
ERROR_INTERNET_SHUTDOWN = &H2EEC
ERROR_INTERNET_INCORRECT_USER_NAME = &H2EED
ERROR_INTERNET_INCORRECT_PASSWORD = &H2EEE
ERROR_INTERNET_LOGIN_FAILURE = &H2EEF
ERROR_INTERNET_INVALID_OPERATION = &H2EF0
ERROR_INTERNET_OPERATION_CANCELLED = &H2EF1
ERROR_INTERNET_INCORRECT_HANDLE_TYPE = &H2EF2
ERROR_INTERNET_INCORRECT_HANDLE_STATE = &H2EF3
ERROR_INTERNET_NOT_PROXY_REQUEST = &H2EF4
ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND = &H2EF5
ERROR_INTERNET_BAD_REGISTRY_PARAMETER = &H2EF6
ERROR_INTERNET_NO_DIRECT_ACCESS = &H2EF7
ERROR_INTERNET_NO_CONTEXT = &H2EF8
ERROR_INTERNET_NO_CALLBACK = &H2EF9
ERROR_INTERNET_REQUEST_PENDING = &H2EFA
ERROR_INTERNET_INCORRECT_FORMAT = &H2EFB
ERROR_INTERNET_ITEM_NOT_FOUND = &H2EFC
ERROR_INTERNET_CANNOT_CONNECT = &H2EFD
ERROR_INTERNET_CONNECTION_ABORTED = &H2EFE
ERROR_INTERNET_CONNECTION_RESET = &H2EFF
ERROR_INTERNET_FORCE_RETRY = &H2F00
ERROR_INTERNET_INVALID_PROXY_REQUEST = &H2F01
ERROR_INTERNET_NEED_UI = &H2F02
ERROR_INTERNET_HANDLE_EXISTS = &H2F04
ERROR_INTERNET_SEC_CERT_DATE_INVALID = &H2F05
ERROR_INTERNET_SEC_CERT_CN_INVALID = &H2F06
ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR = &H2F07
ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR = &H2F08
ERROR_INTERNET_MIXED_SECURITY = &H2F09
ERROR_INTERNET_CHG_POST_IS_NON_SECURE = &H2F0A
ERROR_INTERNET_POST_IS_NON_SECURE = &H2F0B
ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED = &H2F0C
ERROR_INTERNET_INVALID_CA = &H2F0D
ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP = &H2F0E
ERROR_INTERNET_ASYNC_THREAD_FAILED = &H2F0F
ERROR_INTERNET_REDIRECT_SCHEME_CHANGE = &H2F10
ERROR_INTERNET_DIALOG_PENDING = &H2F11
ERROR_INTERNET_RETRY_DIALOG = &H2F12
ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR = &H2F14
ERROR_INTERNET_INSERT_CDROM = &H2F15
ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED = &H2F16
ERROR_INTERNET_SEC_CERT_ERRORS = &H2F17
ERROR_INTERNET_SEC_CERT_NO_REV = &H2F18
ERROR_INTERNET_SEC_CERT_REV_FAILED = &H2F19
INET_E
INET_E_BASE = &H800C0000
INET_E_INVALID_URL = &H800C0002
INET_E_NO_SESSION = &H800C0003
INET_E_CANNOT_CONNECT = &H800C0004
INET_E_RESOURCE_NOT_FOUND = &H800C0005
INET_E_OBJECT_NOT_FOUND = &H800C0006
INET_E_DATA_NOT_AVAILABLE = &H800C0007
INET_E_DOWNLOAD_FAILURE = &H800C0008
INET_E_AUTHENTICATION_REQUIRED = &H800C0009
INET_E_NO_VALID_MEDIA = &H800C000A
INET_E_CONNECTION_TIMEOUT = &H800C000B
INET_E_INVALID_REQUEST = &H800C000C
INET_E_UNKNOWN_PROTOCOL = &H800C000D
INET_E_SECURITY_PROBLEM = &H800C000E
INET_E_CANNOT_LOAD_DATA = &H800C000F
INET_E_CANNOT_INSTANTIATE_OBJECT = &H800C0010
INET_E_REDIRECT_FAILED = &H800C0014
INET_E_REDIRECT_TO_DIR = &H800C0015
INET_E_CANNOT_LOCK_REQUEST = &H800C0016
INET_E_USE_EXTEND_BINDING = &H800C0017
INET_E_TERMINATED_BIND = &H800C0018
INET_E_ERROR_FIRST = &H800C0002
INET_E_CODE_DOWNLOAD_DECLINED = &H800C0100
INET_E_RESULT_DISPATCHED = &H800C0200
INET_E_CANNOT_REPLACE_SFP_FILE = &H800C0300
INTERNET_OPEN_TYPE
INTERNET_OPEN_TYPE_PRECONFIG = &H0
INTERNET_OPEN_TYPE_DIRECT = &H1
INTERNET_OPEN_TYPE_PROXY = &H3
INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = &H4

Types

INTERNET_PROXY_INFO
dwAccessType As Long
lpszProxy As Long
lpszProxyBypass As Long

Functions

InternetCloseHandle Closes a single Internet handle
Function InternetCloseHandle (ByVal hInternet As Long) As Long
InternetSetOptionA Sets an Internet option.
Function InternetSetOptionA (ByVal hInternet As Long, ByVal dwOption As Long, ByRef lpBuffer As Any, ByVal dwBufferLength As Long) As Long
InternetSetOptionW Sets an Internet option.
Function InternetSetOptionW (ByVal hInternet As Long, ByVal dwOption As Long, ByRef lpBuffer As Any, ByVal dwBufferLength As Long) As Long
InternetQueryOptionA Query an Internet option.
Function InternetQueryOptionA (ByVal hInternet As Long, ByVal dwOption As Long, ByRef lpBuffer As Any, ByRef lpdwBufferLength As Long) As Long
InternetQueryOptionW Query an Internet option.
Function InternetQueryOptionW (ByVal hInternet As Long, ByVal dwOption As Long, ByRef lpBuffer As Any, ByRef lpdwBufferLength As Long) As Long

Module Secur32

Enums

EXTENDED_NAME_FORMAT
NameUnknown = &H0
NameFullyQualifiedDN = &H1
NameSamCompatible = &H2
NameDisplay = &H3
NameUniqueId = &H6
NameCanonical = &H7
NameUserPrincipal = &H8
NameCanonicalEx = &H9
NameServicePrincipal = &HA
NameDnsDomain = &HC

Functions

GetUserNameEx Retrieves the name of the user or other security principal associated with the calling thread
Function GetUserNameEx (ByRef NameFormat As EXTENDED_NAME_FORMAT, ByVal lpNameBuffer As String, ByRef nSize As Long) As Boolean