El Camino Real - Windows API for Visual BasicName: Windows GUID 598ECD1F-942A-40E2-AB75-F1B982F7FC2 Version 1.1
Module VB
Types
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_QUERYENDSESSION = &H11 |
|
WM_WINDOWPOSCHANGING = &H46 |
|
WM_WINDOWPOSCHANGED = &H47 |
|
WM_INPUTLANGCHANGEREQUEST = &H50 |
|
WM_INPUTLANGCHANGE = &H51 |
|
WM_NCLBUTTONDBLCLK = &HA3 |
|
WM_NCRBUTTONDBLCLK = &HA6 |
|
WM_NCMBUTTONDBLCLK = &HA9 |
|
WM_IME_STARTCOMPOSITION = &H10D |
|
WM_IME_ENDCOMPOSITION = &H10E |
|
WM_IME_COMPOSITION = &H10F |
|
WM_UNINITMENUPOPUP = &H125 |
|
WM_CTLCOLORMSGBOX = &H132 |
|
WM_CTLCOLORLISTBOX = &H134 |
|
WM_CTLCOLORSCROLLBAR = &H137 |
|
WM_CTLCOLORSTATIC = &H138 |
|
WM_CAPTURECHANGED = &H215 |
|
WM_MDIICONARRANGE = &H228 |
|
WM_MDIREFRESHMENU = &H234 |
|
WM_IME_SETCONTEXT = &H281 |
|
WM_IME_COMPOSITIONFULL = &H284 |
|
WM_RENDERALLFORMATS = &H306 |
|
WM_DESTROYCLIPBOARD = &H307 |
|
WM_PAINTCLIPBOARD = &H309 |
|
WM_VSCROLLCLIPBOARD = &H30A |
|
WM_ASKCBFORMATNAME = &H30C |
|
WM_HSCROLLCLIPBOARD = &H30E |
|
WM_QUERYNEWPALETTE = &H30F |
|
WM_PALETTEISCHANGING = &H310 |
|
WM_PALETTECHANGED = &H311 |
|
|
| 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_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
|
| 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_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_ONLY_THIS_PROCESS = &H2 |
|
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 |
|
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 |
|
|
| CREATION_DISPOSITION |
Action to take on files that exist, and which action to take when files do not exist
|
| WinFileShareMode |
|
| 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_SHARE_EXCLUSIVE = &H10 |
|
OF_SHARE_DENY_WRITE = &H20 |
|
OF_SHARE_DENY_READ = &H30 |
|
OF_SHARE_DENY_NONE = &H40 |
|
|
| 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.
|
| POINTS |
|
| RECT |
Defines the upper-left corner, width, and height of a rectangle.
|
| 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 |
dwPlatformId As Long |
OSVERSIONINFO : Identifies the operating system platform |
szCSDVersion As Fixed Array |
| |
| PROCESS_INFORMATION |
hProcess As Long |
Handle to the newly created process |
|
| 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. |
|
| FILETIME |
|
| SYSTEMTIME |
|
| SECURITY_ATTRIBUTES |
lpSecurityDescriptor As Long |
|
|
| WIN32_FIND_DATA |
ftCreationTime As FILETIME |
|
ftLastAccessTime As FILETIME |
|
ftLastWriteTime As FILETIME |
|
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 |
|
| ELFQUALITY |
NONANTIALIASED_QUALITY = &H3 |
|
ANTIALIASED_QUALITY = &H4 |
|
CLEARTYPE_NATURAL_QUALITY = &H6 |
| |
| WinBI |
|
| WinDP |
|
| WinPS |
|
| WinR2 |
|
| WinROP |
NOMIRRORBITMAP = &H80000000 |
|
|
| WinRGN |
|
Types
| LOGBRUSH |
|
| LOGFONT |
lfFaceName As Fixed Array |
| |
| BITMAP |
|
| BITMAPINFOHEADER |
|
| RGBTRIPLE |
|
| RGBQUAD |
|
| BITMAPINFO |
bmiHeader As BITMAPINFOHEADER |
|
|
| BITMAPINFO2 |
bmiHeader As BITMAPINFOHEADER |
|
|
| BITMAPINFO16 |
bmiHeader As BITMAPINFOHEADER |
|
|
| BITMAPINFO256 |
bmiHeader As BITMAPINFOHEADER |
|
|
| BITMAPFILEHEADER |
|
| LOGPALETTE |
palPalEntry As Fixed Array |
| |
| PALETTEENTRY |
|
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_NOOWNERZORDER = &H200 |
| |
| IDC |
|
| WVR |
|
| HT |
Indicates the position of the cursor hot spot.
HTTRANSPARENT = &HFFFFFFFF |
|
|
| GWL |
GWL_HINSTANCE = &HFFFFFFFA |
|
GWL_HWNDPARENT = &HFFFFFFF8 |
|
GWL_USERDATA = &HFFFFFFEB |
|
|
| LWA |
Specifies an action to take for the SetLayeredWindowAttributes function.
|
| RDW |
RDW_NOINTERNALPAINT = &H10 |
|
|
| DC |
|
| DFC |
|
| DFCS |
DFCS_CAPTIONRESTORE = &H3 |
|
DFCS_MENUARROWRIGHT = &H4 |
|
DFCS_SCROLLCOMBOBOX = &H5 |
|
DFCS_SCROLLSIZEGRIP = &H8 |
|
DFCS_SCROLLSIZEGRIPRIGHT = &H10 |
|
DFCS_BUTTONRADIOIMAGE = &H1 |
|
DFCS_BUTTONRADIOMASK = &H2 |
|
|
| WinWH |
WH_MSGFILTER = &HFFFFFFFF |
|
|
| WinHC |
|
| WinHCBT |
|
| SPI |
SPI_GETHIGHCONTRAST = &H42 |
|
SPI_GETWHEELSCROLLLINES = &H68 |
| |
| EDGE |
|
| BF |
BF_DIAGONAL_ENDTOPRIGHT = &H16 |
|
BF_DIAGONAL_ENDTOPLEFT = &H13 |
|
BF_DIAGONAL_ENDBOTTOMLEFT = &H19 |
|
BF_DIAGONAL_ENDBOTTOMRIGHT = &H1C |
|
|
| DI |
|
| DT |
DT_EXTERNALLEADING = &H200 |
|
DT_PATH_ELLIPSIS = &H4000 |
|
DT_MODIFYSTRING = &H10000 |
|
DT_WORD_ELLIPSIS = &H40000 |
|
DT_NOFULLWIDTHCHARBREAK = &H80000 |
|
|
| DS |
|
| WinSB |
|
| SBC |
|
| SIF |
SIF_DISABLENOSCROLL = &H8 |
|
|
| LR |
LR_LOADTRANSPARENT = &H20 |
|
LR_LOADMAP3DCOLORS = &H1000 |
|
LR_CREATEDIBSECTION = &H2000 |
|
LR_COPYFROMRESOURCE = &H4000 |
|
|
| MOUSEEVENTF |
MOUSEEVENTF_LEFTDOWN = &H2 |
|
MOUSEEVENTF_RIGHTDOWN = &H8 |
|
MOUSEEVENTF_RIGHTUP = &H10 |
|
MOUSEEVENTF_MIDDLEDOWN = &H20 |
|
MOUSEEVENTF_MIDDLEUP = &H40 |
|
MOUSEEVENTF_WHEEL = &H800 |
|
MOUSEEVENTF_VIRTUALDESK = &H4000 |
|
MOUSEEVENTF_ABSOLUTE = &H8000 |
| |
| TME |
Specifies the services requested for the TrackMouseEvent function.
|
| MK |
Identifies the current state of the keyboard modifier keys on the keyboard.
|
| SM |
SM_MENUDROPALIGNMENT = &H28 |
|
|
| VK |
VK_BROWSER_FORWARD = &HA7 |
|
VK_BROWSER_REFRESH = &HA8 |
|
VK_BROWSER_FAVORITES = &HAB |
|
VK_MEDIA_NEXT_TRACK = &HB0 |
|
VK_MEDIA_PREV_TRACK = &HB1 |
|
VK_MEDIA_PLAY_PAUSE = &HB3 |
|
VK_LAUNCH_MEDIA_SELECT = &HB5 |
|
|
| QS |
QS_ALLPOSTMESSAGE = &H100 |
|
|
| WinCOLOR |
COLOR_ACTIVECAPTION = &H2 |
|
COLOR_INACTIVECAPTION = &H3 |
|
COLOR_INACTIVEBORDER = &HB |
|
COLOR_HIGHLIGHTTEXT = &HE |
|
COLOR_INACTIVECAPTIONTEXT = &H13 |
|
COLOR_BTNHIGHLIGHT = &H14 |
|
COLOR_GRADIENTACTIVECAPTION = &H1B |
|
COLOR_GRADIENTINACTIVECAPTION = &H1C |
|
|
| CFM |
CHARFORMAT masks
|
| CFE |
CHARFORMAT Effects
CFE_AUTOCOLOR = &H40000000 |
| |
| SCF |
SCF_ASSOCIATEFONT2 = &H40 |
| |
| BUTTONSTYLE |
Button Control Styles
|
| EM |
Edit Control Messages.
EM_SETPASSWORDCHAR = &HCC |
|
EM_EMPTYUNDOBUFFER = &HCD |
|
EM_GETFIRSTVISIBLELINE = &HCE |
|
EM_SETWORDBREAKPROC = &HD0 |
|
EM_GETWORDBREAKPROC = &HD1 |
|
EM_GETPASSWORDCHAR = &HD2 |
|
|
| ES |
Edit Control Styles
|
| WinMF |
MF_USECHECKBITMAPS = &H200 |
|
MFT_RIGHTJUSTIFY = &H4000 |
|
|
| WinODT |
|
| WinMIIM |
|
| WinTPM |
TPM_HORPOSANIMATION = &H400 |
|
TPM_HORNEGANIMATION = &H800 |
|
TPM_VERPOSANIMATION = &H1000 |
|
TPM_VERNEGANIMATION = &H2000 |
|
|
| SMTO |
SMTO_NOTIMEOUTIFNOTHUNG = &H8 |
| |
Types
| CURSORINFO |
|
| ICONINFO |
|
| MINMAXINFO |
|
| NCCALCSIZE_PARAMS |
|
| WINDOWPOS |
Contains information about the size and position of a window.
|
| PAINTSTRUCT |
Contains information for an application to paint the client area of a window owned by that application
rgbReserved As Fixed Array |
| |
| SCROLLINFO |
|
| 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.
|
| CHARFORMAT |
Edit Control Format Structure.
szFaceName As Fixed Array |
| |
| MENUITEMINFO |
|
| MEASUREITEMSTRUCT |
|
| DRAWITEMSTRUCT |
|
| MENUITEMTEMPLATE |
|
| TPMPARAMS |
|
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_PERFORMANCE_DATA = &H80000004 |
|
HKEY_CURRENT_CONFIG = &H80000005 |
|
HKEY_DYN_DATA = &H80000006 |
| |
| WINKEY |
KEY_QUERY_VALUE = &H1 |
Registry access: Allow value query |
KEY_ENUMERATE_SUB_KEYS = &H8 |
|
|
| 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_START_PENDING = &H2 |
|
SERVICE_STOP_PENDING = &H3 |
|
SERVICE_CONTINUE_PENDING = &H5 |
|
SERVICE_PAUSE_PENDING = &H6 |
|
|
| SC_MANAGER_ACCESS_TYPES |
SC_MANAGER_CREATE_SERVICE = &H2 |
|
SC_MANAGER_ENUMERATE_SERVICE = &H4 |
|
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_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_RECOGNIZER_DRIVER = &H8 |
|
SERVICE_WIN32_OWN_PROCESS = &H10 |
|
SERVICE_WIN32_SHARE_PROCESS = &H20 |
|
SERVICE_INTERACTIVE_PROCESS = &H100 |
|
|
| SERVICE_START_TYPE |
SERVICE_SYSTEM_START = &H1 |
|
SERVICE_DEMAND_START = &H3 |
|
|
| 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 |
dwControlsAccepted As Long |
|
dwServiceSpecificExitCode As Long |
|
|
| QUERY_SERVICE_CONFIG |
lpServiceStartName As Long |
|
|
| SERVICE_TABLE_ENTRY |
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_PROGRESS_CLASS = &H20 |
|
ICC_USEREX_CLASSES = &H200 |
|
ICC_INTERNET_CLASSES = &H800 |
|
ICC_PAGESCROLLER_CLASS = &H1000 |
|
ICC_NATIVEFNTCTL_CLASS = &H2000 |
|
ICC_STANDARD_CLASSES = &H4000 |
|
|
| ECCM |
CCM_SETUNICODEFORMAT = &H2005 |
|
CCM_GETUNICODEFORMAT = &H2006 |
| |
| SBM |
|
| SBS |
|
| NM |
NM_OUTOFMEMORY = &HFFFFFFFF |
|
NM_KILLFOCUS = &HFFFFFFF8 |
|
NM_CUSTOMDRAW = &HFFFFFFF4 |
|
NM_NCHITTEST = &HFFFFFFF2 |
|
NM_RELEASEDCAPTURE = &HFFFFFFF0 |
|
NM_SETCURSOR = &HFFFFFFEF |
|
NM_TOOLTIPSCREATED = &HFFFFFFED |
|
NM_THEMECHANGED = &HFFFFFFEA |
| |
| LVS |
LVS_SORTDESCENDING = &H20 |
|
LVS_SHAREIMAGELISTS = &H40 |
|
LVS_TYPESTYLEMASK = &HFC00 |
|
LVS_OWNERDRAWFIXED = &H400 |
|
LVS_NOCOLUMNHEADER = &H4000 |
|
LVS_NOSORTHEADER = &H8000 |
| |
| LVM |
LVM_DELETEALLITEMS = &H1009 |
|
LVM_INSERTCOLUMN = &H101B |
|
|
| LVN |
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 |
|
| LVIF |
|
| LVCFMT |
LVCFMT_BITMAP_ON_RIGHT = &H1000 |
|
LVCFMT_COL_HAS_IMAGES = &H8000 |
| |
| LVFI |
|
| LVNI |
|
| TVS |
TVS_DISABLEDRAGDROP = &H10 |
|
TVS_FULLROWSELECT = &H1000 |
|
TVS_NONEVENHEIGHT = &H4000 |
|
|
| TVM |
TVM_ENSUREVISIBLE = &H1114 |
|
|
| TVN |
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_GETINFOTIPA = &HFFFFFE63 |
|
TVN_GETINFOTIPW = &HFFFFFE62 |
|
TVN_SINGLEEXPAND = &HFFFFFE61 |
| |
| TVGN |
TVGN_PREVIOUSVISIBLE = &H7 |
|
|
| TVIF |
TVIF_SELECTEDIMAGE = &H20 |
|
|
| TVIS |
TVIS_STATEIMAGEMASK = &HF000 |
|
|
| ILCF |
|
| ILD |
|
| ILC |
|
| WinHDF |
HDF_BITMAP_ON_RIGHT = &H1000 |
|
|
| WinHDI |
|
| WinHDS |
|
| WinHDFT |
|
| WinHDM |
HDM_GETITEMCOUNT = &H1200 |
|
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 |
|
|
| 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_GETDISPINFOA = &HFFFFFECB |
|
HDN_GETDISPINFOW = &HFFFFFEB7 |
|
HDN_BEGINDRAG = &HFFFFFECA |
|
HDN_FILTERCHANGE = &HFFFFFEC8 |
|
HDN_FILTERBTNCLICK = &HFFFFFEC7 |
| |
| WinTCM |
TCM_GETIMAGELIST = &H1302 |
|
TCM_SETIMAGELIST = &H1303 |
|
TCM_GETITEMCOUNT = &H1304 |
|
TCM_DELETEALLITEMS = &H1309 |
|
TCM_SETITEMEXTRA = &H130E |
|
TCM_SETMINTABWIDTH = &H1331 |
|
TCM_HIGHLIGHTITEM = &H1333 |
|
TCM_SETEXTENDEDSTYLE = &H1334 |
|
TCM_GETEXTENDEDSTYLE = &H1335 |
|
TCM_SETUNICODEFORMAT = &H2005 |
|
TCM_GETUNICODEFORMAT = &H2006 |
| |
| WinTCS |
TCS_FORCELABELLEFT = &H20 |
|
TCS_FOCUSONBUTTONDOWN = &H1000 |
|
TCS_OWNERDRAWFIXED = &H2000 |
|
|
| WinTCIF |
|
| WinTCIS |
|
| WinTCS_EX |
TCS_EX_FLATSEPARATORS = &H1 |
|
TCS_EX_REGISTERDROP = &H2 |
| |
| WinTCN |
TCN_SELCHANGE = &HFFFFFDD9 |
|
TCN_SELCHANGING = &HFFFFFDD8 |
|
TCN_GETOBJECT = &HFFFFFDD7 |
| |
| WinUDM |
UDM_SETUNICODEFORMAT = &H2005 |
|
UDM_GETUNICODEFORMAT = &H2006 |
|
|
| WinUDS |
|
| WinUDN |
UDN_DELTAPOS = &HFFFFFD2E |
| |
| TBS |
TBS_ENABLESELRANGE = &H20 |
|
|
| TBM |
TBM_GETCHANNELRECT = &H41A |
|
TBM_SETTHUMBLENGTH = &H41B |
|
TBM_GETTHUMBLENGTH = &H41C |
|
|
| PBM |
|
| HKM |
|
| HOTKEYF |
HOTKEYF_SHIFTCONTROL = &H3 |
|
HOTKEYF_CONTROLALTSHIFT = &H7 |
| |
| WinMCM |
MCM_SETFIRSTDAYOFWEEK = &H100F |
|
MCM_GETFIRSTDAYOFWEEK = &H1010 |
| |
| WinMCS |
|
| WinMCSC |
|
| WinMCN |
MCN_SELCHANGE = &HFFFFFD13 |
|
MCN_GETDAYSTATE = &HFFFFFD15 |
|
|
| DTM |
DTM_GETSYSTEMTIME = &H1001 |
|
DTM_SETSYSTEMTIME = &H1002 |
|
|
| DTS |
DTS_SHORTDATEFORMAT = &H0 |
|
DTS_SHORTDATECENTURYFORMAT = &HC |
|
|
| DTN |
DTN_DATETIMECHANGE = &HFFFFFD09 |
|
DTN_DROPDOWN = &HFFFFFD0E |
|
|
| WinIPM |
|
| EWSB |
WSB_PROP_VBKGCOLOR = &H40 |
|
WSB_PROP_HBKGCOLOR = &H80 |
|
WSB_PROP_WINSTYLE = &H400 |
|
|
| EFSB |
|
| TTS |
|
| TTM |
TTM_UPDATETIPTEXTA = &H40C |
|
TTM_UPDATETIPTEXTW = &H439 |
|
TTM_GETCURRENTTOOLA = &H40F |
|
TTM_GETCURRENTTOOLW = &H43B |
|
TTM_WINDOWFROMPOINT = &H410 |
|
TTM_TRACKACTIVATE = &H411 |
|
TTM_TRACKPOSITION = &H412 |
|
TTM_SETTIPBKCOLOR = &H413 |
|
TTM_SETTIPTEXTCOLOR = &H414 |
|
TTM_GETTIPBKCOLOR = &H416 |
|
TTM_GETTIPTEXTCOLOR = &H417 |
|
TTM_SETMAXTIPWIDTH = &H418 |
|
TTM_GETMAXTIPWIDTH = &H419 |
|
TTM_GETBUBBLESIZE = &H41E |
|
TTM_UPDATETIPTEXT = &H40C |
|
TTM_GETCURRENTTOOL = &H40F |
|
|
| TTN |
TTN_GETDISPINFOA = &HFFFFFDF8 |
|
TTN_GETDISPINFOW = &HFFFFFDEE |
|
TTN_LINKCLICK = &HFFFFFDF5 |
|
TTN_GETDISPINFO = &HFFFFFDF8 |
|
TTN_NEEDTEXT = &HFFFFFDF8 |
|
TTN_NEEDTEXTA = &HFFFFFDF8 |
|
TTN_NEEDTEXTW = &HFFFFFDEE |
| |
| TTF |
|
| TTDT |
|
Types
| tINITCOMMONCONTROLSEX |
|
| DLLVERSIONINFO |
|
| NMHDR |
|
| NMTTDISPINFO |
|
| LVCOLUMN |
|
| LVITEM |
|
| LVFINDINFO |
|
| NMLISTVIEW |
|
| TVITEM |
|
| NMTREEVIEW |
|
| TVINSERTSTRUCT |
|
| HDTEXTFILTER |
|
| HDITEM |
|
| TCITEM |
|
| TCKEYDOWN |
|
| NMUPDOWN |
|
| UDACCEL |
|
| NMSELCHANGE |
|
| NMDATETIMECHANGE |
|
| TTTOOLINFO |
|
| TTGETTITLE |
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_INITIALIZATION = &H2 |
|
CDERR_LOADSTRFAILURE = &H5 |
|
CDERR_FINDRESFAILURE = &H6 |
|
CDERR_LOADRESFAILURE = &H7 |
|
CDERR_LOCKRESFAILURE = &H8 |
|
CDERR_MEMALLOCFAILURE = &H9 |
|
CDERR_MEMLOCKFAILURE = &HA |
|
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_NODEFAULTPRN = &H1008 |
|
PDERR_DNDMMISMATCH = &H1009 |
|
PDERR_CREATEICFAILURE = &H100A |
|
PDERR_PRINTERNOTFOUND = &H100B |
|
PDERR_DEFAULTDIFFERENT = &H100C |
|
CFERR_CHOOSEFONTCODES = &H2000 |
|
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_OVERWRITEPROMPT = &H2 |
|
OFN_ENABLETEMPLATE = &H40 |
|
OFN_ENABLETEMPLATEHANDLE = &H80 |
|
OFN_ALLOWMULTISELECT = &H200 |
|
OFN_EXTENSIONDIFFERENT = &H400 |
|
OFN_PATHMUSTEXIST = &H800 |
|
OFN_FILEMUSTEXIST = &H1000 |
|
OFN_CREATEPROMPT = &H2000 |
|
OFN_NOREADONLYRETURN = &H8000 |
|
OFN_NOTESTFILECREATE = &H10000 |
|
OFN_NONETWORKBUTTON = &H20000 |
|
OFN_NOLONGNAMES = &H40000 |
|
OFN_NODEREFERENCELINKS = &H100000 |
|
|
| CC |
CC_ENABLETEMPLATEHANDLE = &H40 |
|
|
| CF |
CF_ENABLETEMPLATEHANDLE = &H20 |
|
CF_INITTOLOGFONTSTRUCT = &H40 |
|
CF_NOSIMULATIONS = &H1000 |
|
CF_FIXEDPITCHONLY = &H4000 |
|
CF_FORCEFONTEXIST = &H10000 |
|
CF_SCALABLEONLY = &H20000 |
|
CF_SELECTSCRIPT = &H400000 |
|
CF_NOSCRIPTSEL = &H800000 |
|
CF_NOVERTFONTS = &H1000000 |
| |
| PD |
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 |
|
|
Types
| OPENFILENAME |
lpstrCustomFilter As Long |
|
nFileExtension As Integer |
|
|
| CHOOSECOLOR |
|
| CHOOSEFONT |
MISSING_ALIGNMENT As Integer |
|
|
| DEVMODEPRINTER |
dmDeviceName As Fixed Array |
|
dmDriverVersion As Integer |
|
dmDefaultSource As Integer |
|
dmPrintQuality As Integer |
|
dmFormName As Fixed Array |
|
dmDisplayFrequency As Long |
|
|
| PRINTPAGERANGE |
|
| PRINTDLG |
lpPrintTemplateName As Long |
|
lpSetupTemplateName As Long |
|
|
| PRINTDLGEX |
lpPrintTemplateName 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 |
|
| SAFEARRAY2D |
|
| SAFEARRAY3D |
|
| PICDESC |
|
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
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_VALIDATEFAILEDA = &H3 |
|
BFFM_VALIDATEFAILEDW = &H4 |
|
BFFM_SETSTATUSTEXTA = &H464 |
|
BFFM_SETSELECTIONA = &H466 |
|
BFFM_SETSELECTIONW = &H467 |
|
BFFM_SETSTATUSTEXTW = &H468 |
|
|
| NIM |
|
| NIF |
|
| NIIF |
|
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 |
szInfoTitle As Fixed Array |
|
|
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
Types
| BLENDFUNCTION |
SourceConstantAlpha 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_DOMAIN_CTRL = &H8 |
|
SV_TYPE_DOMAIN_BAKCTRL = &H10 |
|
SV_TYPE_TIME_SOURCE = &H20 |
|
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_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_CLUSTER_NT = &H1000000 |
|
SV_TYPE_TERMINALSERVER = &H2000000 |
|
SV_TYPE_CLUSTER_VS_NT = &H4000000 |
|
SV_TYPE_ALTERNATE_XPORT = &H20000000 |
|
SV_TYPE_LOCAL_LIST_ONLY = &H40000000 |
|
SV_TYPE_DOMAIN_ENUM = &H80000000 |
|
|
| WinNCBCommand |
|
Types
| WKSTA_INFO_100 |
wki100_platform_id As Long |
|
wki100_computername As Long |
|
|
| WKSTA_USER_INFO_1 |
wkui1_logon_domain As Long |
|
wkui1_oth_domains As Long |
|
wkui1_logon_server As Long |
| |
| ADAPTER_STATUS |
adapter_address As Fixed Array |
|
iframe_recv_err As Integer |
|
iframe_xmit_err As Integer |
|
recv_buff_unavail As Integer |
|
xmit_buf_unavail As Integer |
|
max_dgram_size As Integer |
|
max_sess_pkt_size As Integer |
|
|
| NCB |
ncb_callname As Fixed Array |
|
ncb_reserve As Fixed Array |
|
|
| NAME_BUFFER |
|
| ASTAT |
|
| LANA_ENUM |
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_LOOPBACK = &H18 |
|
|
Types
| IP_MASK_STRING |
|
| IP_ADDR_STRING |
|
| FIXED_INFO |
DomainName As Fixed Array |
|
DnsServerList As IP_ADDR_STRING |
|
|
| IP_ADAPTER_INFO |
AdapterName As Fixed Array |
|
Description As Fixed Array |
|
IpAddressList As IP_ADDR_STRING |
|
GatewayList As IP_ADDR_STRING |
|
DhcpServer As IP_ADDR_STRING |
|
PrimaryWinsServer As IP_ADDR_STRING |
|
SecondaryWinsServer As IP_ADDR_STRING |
|
|
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 |
|
| WSAProtocol |
|
| WSASockType |
|
Types
| WSAData |
szDescription As Fixed Array |
|
szSystemStatus As Fixed Array |
|
|
| HOSTENT |
|
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_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
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 |
NameFullyQualifiedDN = &H1 |
|
NameServicePrincipal = &HA |
|
|
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 | |