Expand description
Windows API and GUI in safe, idiomatic Rust.
Crate • GitHub • Docs (stable) • Docs (master branch) • Examples
WinSafe has:
- low-level Win32 API constants, functions and structs;
- high-level structs to build native Win32 GUI applications.
§Usage
Add the dependency in your Cargo.toml:
[dependencies]
winsafe = { version = "0.0.27", features = [] }Then you must enable the Cargo features you want to be included – these modules are named after native Windows DLL and library names, mostly.
The following Cargo features are available so far:
| Feature | Description |
|---|---|
advapi | Advapi32.dll and Ktmw32.dll, advanced kernel functions |
comctl | ComCtl32.dll, the Common Controls |
dshow | DirectShow |
dwm | Desktop Window Manager |
dxgi | DirectX Graphics Infrastructure |
gdi | Gdi32.dll, the Windows GDI |
gui | The WinSafe high-level GUI abstractions |
kernel | Kernel32.dll, basic kernel functions |
mf | Media Foundation |
ole | Basic OLE/COM support |
oleaut | OLE Automation |
psapi | Process Status API |
raw-dylib | Enables raw-dylib linking |
shell | Shell32.dll, Shlwapi.dll, and Userenv.dll, the COM-based Windows Shell |
taskschd | Task Scheduler |
user | User32.dll and ComDlg32.dll, the basic Windows GUI support |
uxtheme | UxTheme.dll, extended window theming |
version | Version.dll, to manipulate *.exe version info |
wininet | Windows Internet |
winspool | Print Spooler API |
You can visualize the complete dependency graph here.
If you’re looking for a comprehensive Win32 coverage, take a look at winapi or windows crates, which are unsafe, but have everything.
§The GUI API
WinSafe features idiomatic bindings for the Win32 API, but on top of that, it features a set of high-level GUI structs, which scaffolds the boilerplate needed to build native Win32 GUI applications, event-oriented. Unless you’re doing something really specific, these high-level wrappers are highly recommended – you’ll usually start with the WindowMain.
One of the greatest strenghts of the GUI API is supporting the use of resource files, which can be created with a WYSIWYG resource editor.
GUI structs can be found in module gui.
§Native function calls
The best way to understand the idea behind WinSafe bindings is comparing them to the correspondent C code.
For example, take the following C code:
HWND hwnd = GetDesktopWindow();
SetFocus(hwnd);This is equivalent to:
use winsafe::{prelude::*, HWND};
let hwnd = HWND::GetDesktopWindow();
hwnd.SetFocus();Note how GetDesktopWindow is a static method of HWND, and SetFocus is an instance method called directly upon hwnd. All native handles (HWND, HDC, HINSTANCE, etc.) are structs, thus:
- native Win32 functions that return a handle are static methods in WinSafe;
- native Win32 functions whose first parameter is a handle are instance methods.
Now this C code:
PostQuitMessage(0);Is equivalent to:
use winsafe::PostQuitMessage;
PostQuitMessage(0);Since PostQuitMessage is a free function, it’s simply at the root of the crate.
Also note that some functions which require a cleanup routine – like BeginPaint, for example – will return the resource wrapped in a guard, which will perform the cleanup automatically. You’ll never have to manually call EndPaint.
Sending messages are a special case, see the msg module.
§Native constants
All native Win32 constants can be found in the co module. They’re all typed, what means that different constant types cannot be mixed (unless you explicitly say so).
Technically, each constant type is simply a newtype with a couple implementations, including those allowing bitflag operations. Also, all constant values can be converted to its underlying integer type.
The name of the constant type is often its prefix. For example, constants of MessageBox function, like MB_OKCANCEL, belong to a type called MB.
For example, take the following C code:
let hwnd = GetDesktopWindow();
MessageBox(hwnd, "Hello, world", "My hello", MB_OKCANCEL | MB_ICONINFORMATION);This is equivalent to:
use winsafe::{prelude::*, co::MB, HWND};
let hwnd = HWND::GetDesktopWindow();
hwnd.MessageBox("Hello, world", "Title", MB::OKCANCEL | MB::ICONINFORMATION)?;The method MessageBox, like most functions that can return errors, will return SysResult, which can contain an ERROR constant.
§Native structs
WinSafe implements native Win32 structs in a very restricted way. First off, fields which control the size of the struct – often named cbSize – are private and automatically set when the struct is instantiated.
Pointer fields are also private, and they can be set and retrieved only through getter and setter methods. In particular, when setting a string pointer field, you need to pass a reference to a WString buffer, which will keep the actual string contents.
For example, the following C code:
WNDCLASSEX wcx = {0};
wcx.cbSize = sizeof(WNDCLASSEX);
wcx.lpszClassName = "MY_WINDOW";
if (RegisterClassEx(&wcx) == 0) {
DWORD err = GetLastError();
// handle error...
}Is equivalent to:
use winsafe::{RegisterClassEx, WNDCLASSEX, WString};
let mut wcx = WNDCLASSEX::default();
let mut buf = WString::from_str("MY_WINDOW");
wcx.set_lpszClassName(Some(&mut buf));
if let Err(err) = RegisterClassEx(&wcx) {
// handle error...
}Note how you don’t need to call GetLastError to retrieve the error code: it’s returned by the method itself in the SysResult.
§Text encoding
Windows natively uses Unicode UTF-16.
WinSafe uses Unicode UTF-16 internally but exposes idiomatic UTF-8, performing conversions automatically when needed, so you don’t have to worry about OsString or any low-level conversion.
However, there are cases where a string conversion is still needed, like when dealing with native Win32 structs. In such cases, you can use the WString struct, which is also capable of working as a buffer to receive text from Win32 calls.
§Errors and result aliases
WinSafe declares a few Result aliases which are returned by its functions and methods:
| Alias | Error | Used for |
|---|---|---|
SysResult | ERROR | Standard system errors. |
HrResult | HRESULT | COM errors. |
AnyResult | Box<dyn Error + Send + Sync> | Holding different error types. All other Result aliases can be converted into it. |
§Utilities
Beyond the GUI API, WinSafe features a few high-level abstractions to deal with some particularly complex Win32 topics. Unless you need something specific, prefer using these over the raw, native calls:
| Utility | Used for |
|---|---|
Encoding | String encodings. |
File | File read/write and other operations. |
FileMapped | Memory-mapped file operations. |
path | File path operations. |
WString | Managing native wide strings. |
Modules§
- co
- Native constants.
- guard
- RAII implementation for various resources, which automatically perform cleanup routines when the object goes out of scope.
- gui
gui - High-level GUI abstractions for user windows and native controls. They can be created programmatically or by loading resources from a
.resfile. These files can be created with a WYSIWYG resource editor. - msg
user - Parameters of window messages.
- path
kernel - File path utilities.
- prelude
- The WinSafe prelude.
Macros§
- seq_ids
user - Generates sequential
u16constants starting from the given value.
Structs§
- ACCEL
user ACCELstruct.- ACL
kernel ACLstruct.- ACTCTX
kernel ACTCTXstruct.- ADDJOB_
INFO_ 1 winspool ADDJOB_INFO_1struct.- ALTTABINFO
user ALTTABINFOstruct.- AM_
MEDIA_ TYPE dshow AM_MEDIA_TYPEstruct.- ATOM
user ATOMreturned byRegisterClassEx.- BIND_
OPTS3 ole BIND_OPTS3struct.- BITMAP
gdi BITMAPstruct.- BITMAPFILEHEADER
gdi BITMAPFILEHEADERstruct.- BITMAPINFO
gdi BITMAPINFOstruct.- BITMAPINFOHEADER
gdi BITMAPINFOHEADERstruct.- BLENDFUNCTION
user BLENDFUNCTIONstruct.- BSTR
oleaut - A string data type used with COM automation.
- BUTTON_
IMAGELIST comctl BUTTON_IMAGELISTstruct.- BUTTON_
SPLITINFO comctl BUTTON_SPLITINFOstruct.- BY_
HANDLE_ FILE_ INFORMATION kernel BY_HANDLE_FILE_INFORMATIONstruct.- CHOOSECOLOR
user CHOOSECOLORstruct.- CLAIM_
SECURITY_ ATTRIBUTES_ INFORMATION advapi CLAIM_SECURITY_ATTRIBUTES_INFORMATIONstruct.- CLAIM_
SECURITY_ ATTRIBUTE_ FQBN_ VALUE kernel CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUEstruct.- CLAIM_
SECURITY_ ATTRIBUTE_ OCTET_ STRING_ VALUE kernel CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUEstruct.- CLAIM_
SECURITY_ ATTRIBUTE_ V1 kernel CLAIM_SECURITY_ATTRIBUTE_V1struct.- COAUTHIDENTITY
ole COAUTHIDENTITYstruct.- COAUTHINFO
ole COAUTHINFOstruct.- COLORREF
user COLORREFstruct.- COLORSCHEME
comctl COLORSCHEMEstruct.- COMBOBOXINFO
user COMBOBOXINFOstruct.- COMDLG_
FILTERSPEC shell COMDLG_FILTERSPECstruct.- COMPAREITEMSTRUCT
user COMPAREITEMSTRUCTstruct.- CONSOLE_
READCONSOLE_ CONTROL kernel CONSOLE_READCONSOLE_CONTROLstruct.- COSERVERINFO
ole COSERVERINFOstruct.- CREATESTRUCT
user CREATESTRUCTstruct.- CURSORINFO
user CURSORINFOstruct.- DATETIMEPICKERINFO
comctl DATETIMEPICKERINFOstruct.- DELETEITEMSTRUCT
user DELETEITEMSTRUCTstruct.- DEVMODE
user DEVMODEstruct.- DEV_
BROADCAST_ DEVICEINTERFACE advapi DEV_BROADCAST_DEVICEINTERFACEstruct.- DEV_
BROADCAST_ HANDLE advapi DEV_BROADCAST_HANDLEstruct.- DEV_
BROADCAST_ HDR kernel DEV_BROADCAST_HDRstruct.- DEV_
BROADCAST_ OEM advapi DEV_BROADCAST_OEMstruct.- DEV_
BROADCAST_ PORT advapi DEV_BROADCAST_PORTstruct.- DEV_
BROADCAST_ VOLUME advapi DEV_BROADCAST_VOLUMEstruct.- DISK_
SPACE_ INFORMATION kernel DISK_SPACE_INFORMATIONstruct.- DISPLAY_
DEVICE user DISPLAY_DEVICEstruct.- DISPPARAMS
oleaut DISPPARAMSstruct.- DLGITEMTEMPLATE
user DLGITEMTEMPLATEstruct.- DLGTEMPLATE
user DLGTEMPLATEstruct.- DRAWITEMSTRUCT
user DRAWITEMSTRUCTstruct.- DRAWTEXTPARAMS
user DRAWTEXTPARAMSstruct.- DVINFO
dshow DVINFOstruct.- DVTARGETDEVICE
ole DVTARGETDEVICEstruct.- DXGI_
ADAPTER_ DESC dxgi DXGI_ADAPTER_DESCstruct.- DXGI_
ADAPTER_ DESC1 dxgi DXGI_ADAPTER_DESC1struct.- DXGI_
ADAPTER_ DESC2 dxgi DXGI_ADAPTER_DESC2struct.- DXGI_
FRAME_ STATISTICS dxgi DXGI_FRAME_STATISTICSstruct.- DXGI_
GAMMA_ CONTROL dxgi DXGI_GAMMA_CONTROLstruct.- DXGI_
GAMMA_ CONTROL_ CAPABILITIES dxgi DXGI_GAMMA_CONTROL_CAPABILITIESstruct.- DXGI_
MAPPED_ RECT dxgi DXGI_MAPPED_RECTstruct.- DXGI_
MODE_ DESC dxgi DXGI_MODE_DESCstruct.- DXGI_
OUTPUT_ DESC dxgi DXGI_OUTPUT_DESCstruct.- DXGI_
RATIONAL dxgi DXGI_RATIONALstruct.- DXGI_
RGB dxgi DXGI_RGBstruct.- DXGI_
SAMPLE_ DESC dxgi DXGI_SAMPLE_DESCstruct.- DXGI_
SHARED_ RESOURCE dxgi DXGI_SHARED_RESOURCEstruct.- DXGI_
SURFACE_ DESC dxgi DXGI_SURFACE_DESCstruct.- DXGI_
SWAP_ CHAIN_ DESC dxgi DXGI_SWAP_CHAIN_DESCstruct.- EDITBALLOONTIP
comctl EDITBALLOONTIPstruct.- EXCEPINFO
oleaut EXCEPINFOstruct.- FILETIME
kernel FILETIMEstruct.- FILTER_
INFO dshow FILTER_INFOstruct.- FLASHWINFO
user FLASHWINFOstruct.- FORMATETC
ole FORMATETCstruct.- FORM_
INFO_ 1 winspool FORM_INFO_1struct.- FORM_
INFO_ 2 winspool FORM_INFO_2struct.- File
kernel - Manages an
HFILEhandle, which provides file read/write and other operations. It is closed automatically when the object goes out of scope. - File
Mapped kernel - Manages an
HFILEMAPhandle, which provides memory-mapped file operations, including read/write through slices. It is closed automatically when the object goes out of scope. - GUID
kernel GUIDstruct.- GUITHREADINFO
user GUITHREADINFOstruct.- HACCEL
user - Handle to an accelerator table.
- HACCESSTOKEN
advapi - Handle to an
access token.
Originally just a
HANDLE. - HACTCTX
kernel - Handle to an
activation context.
Originally just a
HANDLE. - HARDWAREINPUT
user HARDWAREINPUTstruct.- HBITMAP
user - Handle to a bitmap.
- HBRUSH
user - Handle to a brush.
- HCLIPBOARD
user - Handle to the clipboard.
- HCURSOR
user - Handle to a cursor.
- HDC
user - Handle to a device context.
- HDESK
user - Handle to a desktop.
- HDHITTESTINFO
comctl HDHITTESTINFOstruct.- HDITEM
comctl HDITEMstruct.- HDLAYOUT
comctl HDLAYOUTstruct.- HDROP
shell - Handle to an internal drop structure.
- HDWP
user - Handle to a deferred window position.
- HEAPLIS
T32 kernel HEAPLIST32struct.- HELPINFO
user HELPINFOstruct.- HENHMETAFILE
ole - Handle to an enhanced metafile.
- HEVENT
kernel - Handle to a named or unnamed
event
object. Originally just a
HANDLE. - HEVENTLOG
advapi - Handle to an
event log.
Originally just a
HANDLE. - HFILE
kernel - Handle to a
file.
Originally just a
HANDLE. - HFILEMAP
kernel - Handle to a
file mapping.
Originally just a
HANDLE. - HFILEMAPVIEW
kernel - Address of a
mapped view.
Originally just an
LPVOID. - HFINDFILE
kernel - Handle to a
file search.
Originally just a
HANDLE. - HFONT
gdi - Handle to a font.
- HGLOBAL
kernel - Handle to a
global memory block.
Originally just a
HANDLE. - HHEAP
kernel - Handle to a
heap object.
Originally just a
HANDLE. - HHOOK
user - Handle to a hook.
- HICON
user - Handle to an icon.
- HIMAGELIST
comctl - Handle to an image list.
- HINSTANCE
kernel - Handle to an
instance,
same as
HMODULE. - HINTERNET
wininet - Root Internet handle.
- HINTERNETREQUEST
wininet - Handle to an Internet request.
- HINTERNETSESSION
wininet - Handle to an Internet session.
- HKEY
advapi - Handle to a registry key.
- HLOCAL
kernel - Handle to a local memory block.
- HMENU
user - Handle to a menu.
- HMETAFILEPICT
ole - Handle to a metafile.
- HMONITOR
user - Handle to a display monitor.
- HPALETTE
user - Handle to a palette.
- HPEN
gdi - Handle to a pen GDI object.
- HPIPE
kernel - Handle to an
anonymous pipe.
Originally just a
HANDLE. - HPRINTER
winspool - Handle to a
printer.
Originally just a
HANDLE. - HPROCESS
kernel - Handle to a
process.
Originally just a
HANDLE. - HPROCESSLIST
kernel - Handle to a process list
snapshot.
Originally just a
HANDLE. - HPROPSHEETPAGE
comctl - Handle to a property sheet page.
- HRGN
user - Handle to a region GDI object.
- HRSRC
kernel - Handle to a
resource.
Originally just a
HANDLE. - HRSRCMEM
kernel - Handle to a resource
memory block.
Originally just an
HGLOBAL. - HSC
advapi - Handle to a
Service Control Manager.
Originally
SC_HANDLE. - HSERVICE
advapi - Handle to a
service.
Originally
SC_HANDLE. - HSERVICESTATUS
advapi - Handle to a
service status.
Originally
SERVICE_STATUS_HANDLE. - HSTD
kernel - Handle to a
standard device.
Originally just a
HANDLE. - HTHEME
uxtheme - Handle to a theme.
- HTHREAD
kernel - Handle to a
thread.
Originally just a
HANDLE. - HTRANSACTION
advapi - Handle to a
transaction.
Originally just a
HANDLE. - HTREEITEM
comctl - Handle to a tree view item.
- HUPDATERSRC
kernel - Handle to an
updateable resource.
Originally just a
HANDLE. - HVERSIONINFO
version - Handle to a version info block.
- HWND
user - Handle to a window.
- IAction
taskschd IActionCOM interface.- IAction
Collection taskschd IActionCollectionCOM interface.- IAdvise
Sink ole IAdviseSinkCOM interface.- IBase
Filter dshow IBaseFilterCOM interface.- IBind
Ctx ole IBindCtxCOM interface.- IBoot
Trigger taskschd IBootTriggerCOM interface.- ICONINFO
user ICONINFOstruct.- ICONINFOEX
user ICONINFOEXstruct.- ICom
Handler Action taskschd IComHandlerActionCOM interface.- IDXGI
Adapter dxgi IDXGIAdapterCOM interface.- IDXGI
Adapter1 dxgi IDXGIAdapter1COM interface.- IDXGI
Adapter2 dxgi IDXGIAdapter2COM interface.- IDXGI
Device dxgi IDXGIDeviceCOM interface.- IDXGI
Device SubObject dxgi IDXGIDeviceSubObjectCOM interface.- IDXGI
Factory dxgi IDXGIFactoryCOM interface.- IDXGI
Factory1 dxgi IDXGIFactory1COM interface.- IDXGI
Factory2 dxgi IDXGIFactory2COM interface.- IDXGI
Keyed Mutex dxgi IDXGIKeyedMutexCOM interface.- IDXGI
Object dxgi IDXGIObjectCOM interface.- IDXGI
Output dxgi IDXGIOutputCOM interface.- IDXGI
Resource dxgi IDXGIResourceCOM interface.- IDXGI
Surface dxgi IDXGISurfaceCOM interface.- IDXGI
Swap Chain dxgi IDXGISwapChainCOM interface.- IDaily
Trigger taskschd IDailyTriggerCOM interface.- IData
Object ole IDataObjectCOM interface.- IDispatch
oleaut IDispatchCOM interface.- IDrop
Target ole IDropTargetCOM interface.- IEmail
Action taskschd IEmailActionCOM interface.- IEnum
Filters dshow IEnumFiltersCOM interface.- IEnum
Media Types dshow IEnumMediaTypesCOM interface.- IEnum
Pins dshow IEnumPinsCOM interface.- IEnum
Shell Items shell IEnumShellItemsCOM interface.- IEvent
Trigger taskschd IEventTriggerCOM interface.- IExec
Action taskschd IExecActionCOM interface.- IFile
Dialog shell IFileDialogCOM interface.- IFile
Dialog Events shell IFileDialogEventsCOM interface.- IFile
Open Dialog shell IFileOpenDialogCOM interface.- IFile
Operation shell IFileOperationCOM interface.- IFile
Operation Progress Sink shell IFileOperationProgressSinkCOM interface.- IFile
Save Dialog shell IFileSaveDialogCOM interface.- IFile
Sink Filter dshow IFileSinkFilterCOM interface.- IFilter
Graph dshow IFilterGraphCOM interface.- IFilter
Graph2 dshow IFilterGraph2COM interface.- IGraph
Builder dshow IGraphBuilderCOM interface.- IIdle
Trigger taskschd IIdleTriggerCOM interface.- ILogon
Trigger taskschd ILogonTriggerCOM interface.- IMAGELISTDRAWPARAMS
comctlandgdi IMAGELISTDRAWPARAMSstruct.- IMFAsync
Callback mf IMFAsyncCallbackCOM interface.- IMFAsync
Result mf IMFAsyncResultCOM interface.- IMFAttributes
mf IMFAttributesCOM interface.- IMFByte
Stream mf IIMFByteStreamCOM interface.- IMFClock
mf IMFClockCOM interface.- IMFCollection
mf IMFCollectionCOM interface.- IMFGet
Service mf IMFGetServiceCOM interface.- IMFMedia
Event mf IMFMediaEventCOM interface.- IMFMedia
Event Generator mf IMFMediaEventGeneratorCOM interface.- IMFMedia
Session mf IMFMediaSessionCOM interface.- IMFMedia
Source mf IMFMediaSourceCOM interface.- IMFMedia
Type Handler mf IMFMediaTypeHandlerCOM interface.- IMFPresentation
Descriptor mf IMFPresentationDescriptorCOM interface.- IMFSource
Resolver mf IMFSourceResolverCOM interface.- IMFStream
Descriptor mf IMFStreamDescriptorCOM interface.- IMFTopology
mf IMFTopologyCOM interface.- IMFTopology
Node mf IMFTopologyNodeCOM interface.- IMFVideo
Display Control mf IMFVideoDisplayControlCOM interface.- IMedia
Control dshow IMediaControlCOM interface.- IMedia
Filter dshow IMediaFilterCOM interface.- IMedia
Seeking dshow IMediaSeekingCOM interface.- IModal
Window shell IModalWindowCOM interface.- IMoniker
ole IMonikerCOM interface.- INITCOMMONCONTROLSEX
comctl INITCOMMONCONTROLSEXstruct- INPUT
user INPUTstruct.- IOperations
Progress Dialog shell IOperationsProgressDialogCOM interface.- IPersist
ole IPersistCOM interface.- IPersist
File ole IPersistFileCOM interface.- IPersist
Stream ole IPersistStreamCOM interface.- IPicture
ole IPictureCOM interface.- IPin
dshow IPinCOM interface.- IPrincipal
taskschd IPrincipalCOM interface.- IProperty
Store oleaut IPropertyStoreCOM interface.- IRegistered
Task taskschd IRegisteredTaskCOM interface.- IRegistration
Info taskschd IRegistrationInfoCOM interface.- ISequential
Stream ole ISequentialStreamCOM interface.- IShell
Folder shell IShellFolderCOM interface.- IShell
Item shell IShellItemCOM interface.- IShell
Item2 shell IShellItem2COM interface.- IShell
Item Array shell IShellItemArrayCOM interface.- IShell
Item Filter shell IShellItemFilterCOM interface.- IShell
Link shell IShellLinkCOM interface.- IStorage
ole IStorageCOM interface.- IStream
ole IStreamCOM interface.- ITEMIDLIST
shell ITEMIDLISTstruct.- ITask
Definition taskschd ITaskDefinitionCOM interface.- ITask
Folder taskschd ITaskFolderCOM interface.- ITask
Service taskschd ITaskServiceCOM interface.- ITask
Settings taskschd ITaskSettingsCOM interface.- ITaskbar
List shell ITaskbarListCOM interface.- ITaskbar
List2 shell ITaskbarList2COM interface.- ITaskbar
List3 shell ITaskbarList3COM interface.- ITaskbar
List4 shell ITaskbarList4COM interface.- ITrigger
taskschd ITriggerCOM interface.- ITrigger
Collection taskschd ITriggerCollectionCOM interface.- IType
Info oleaut ITypeInfoCOM interface.- IUnknown
ole IUnknownCOM interface. It’s the base to all COM interfaces.- KBDLLHOOKSTRUCT
user KBDLLHOOKSTRUCTstruct.- KEYBDINPUT
user KEYBDINPUTstruct.- LANGID
kernel LANGIDlanguage identifier.- LASTINPUTINFO
user LASTINPUTINFOstruct.- LCID
kernel LCIDlocale identifier.- LITEM
comctl LITEMstruct.- LOGBRUSH
gdi LOGBRUSHstruct.- LOGFONT
gdi LOGFONTstruct.- LOGPALETTE
gdi LOGPALETTEstruct.- LOGPEN
gdi LOGPENstruct.- LUID
kernel LUIDidentifier.- LUID_
AND_ ATTRIBUTES advapi LUID_AND_ATTRIBUTESstruct.- LVBKIMAGE
comctl LVBKIMAGEstruct.- LVCOLUMN
comctl LVCOLUMNstruct.- LVFINDINFO
comctl LVFINDINFOstruct.- LVFOOTERINFO
comctl LVFOOTERINFOstruct.- LVFOOTERITEM
comctl LVFOOTERITEMstruct.- LVGROUP
comctl LVGROUPstruct.- LVGROUPMETRICS
comctl LVGROUPMETRICSstruct.- LVHITTESTINFO
comctl LVHITTESTINFOstruct.- LVINSERTGROUPSORTED
comctl LVINSERTGROUPSORTEDstruct.- LVINSERTMARK
comctl LVINSERTMARKstruct.- LVITEM
comctl LVITEMstruct.- LVITEMINDEX
comctl LVITEMINDEXstruct.- LVSETINFOTIP
comctl LVSETINFOTIPstruct.- LVTILEINFO
comctl LVTILEINFOstruct.- LVTILEVIEWINFO
comctl LVTILEVIEWINFOstruct.- MARGINS
uxtheme MARGINSstruct.- MCGRIDINFO
comctl MCGRIDINFOstruct.- MCHITTESTINFO
comctl MCHITTESTINFOstruct.- MEMORYSTATUSEX
kernel MEMORYSTATUSEXstruct.- MEMORY_
BASIC_ INFORMATION kernel MEMORY_BASIC_INFORMATIONstruct.- MENUBARINFO
user MENUBARINFOstruct.- MENUINFO
user MENUINFOstruct.- MENUITEMINFO
user MENUITEMINFOstruct.- MFCLOCK_
PROPERTIES mf MFCLOCK_PROPERTIESstruct.- MFVideo
Normalized Rect mf MFVideoNormalizedRectstruct.- MINMAXINFO
user MINMAXINFOstruct.- MODULEENTR
Y32 kernel MODULEENTRY32struct.- MODULEINFO
psapi MODULEINFOstruct.- MONITORINFOEX
user MONITORINFOEXstruct.- MONTHDAYSTATE
comctl MONTHDAYSTATEstruct.- MOUSEINPUT
user MOUSEINPUTstruct.- MSG
user MSGstruct.- NCCALCSIZE_
PARAMS user NCCALCSIZE_PARAMSstruct.- NMBCDROPDOWN
comctl NMBCDROPDOWNstruct.- NMBCHOTITEM
comctl NMBCHOTITEMstruct.- NMCHAR
comctl NMCHARstruct.- NMCUSTOMDRAW
comctl NMCUSTOMDRAWstruct.- NMDATETIMECHANGE
comctl NMDATETIMECHANGEstruct.- NMDATETIMEFORMAT
comctl NMDATETIMEFORMATstruct.- NMDATETIMEFORMATQUERY
comctl NMDATETIMEFORMATQUERYstruct.- NMDATETIMESTRING
comctl NMDATETIMESTRINGstruct.- NMDATETIMEWMKEYDOWN
comctl NMDATETIMEWMKEYDOWNstruct.- NMDAYSTATE
comctl NMDAYSTATEstruct.- NMHDDISPINFO
comctl NMHDDISPINFOstruct.- NMHDFILTERBTNCLICK
comctl NMHDFILTERBTNCLICKstruct.- NMHDR
comctl NMHDRstruct.- NMHEADER
comctl NMHEADERstruct.- NMIPADDRESS
comctl NMIPADDRESSstruct.- NMITEMACTIVATE
comctl NMITEMACTIVATEstruct.- NMLINK
comctl NMLINKstruct.- NMLISTVIEW
comctl NMLISTVIEWstruct.- NMLVCACHEHINT
comctl NMLVCACHEHINTstruct.- NMLVCUSTOMDRAW
comctl NMLVCUSTOMDRAWstruct.- NMLVDISPINFO
comctl NMLVDISPINFOstruct.- NMLVEMPTYMARKUP
comctl NMLVEMPTYMARKUPstruct.- NMLVFINDITEM
comctl NMLVFINDITEMstruct.- NMLVGETINFOTIP
comctl NMLVGETINFOTIPstruct.- NMLVKEYDOWN
comctl NMLVKEYDOWNstruct.- NMLVLINK
comctl NMLVLINKstruct.- NMLVODSTATECHANGE
comctl NMLVODSTATECHANGEstruct.- NMLVSCROLL
comctl NMLVSCROLLstruct.- NMMOUSE
comctl NMMOUSEstruct.- NMOBJECTNOTIFY
comctl NMOBJECTNOTIFYstruct.- NMSELCHANGE
comctl NMSELCHANGEstruct.- NMTCKEYDOWN
comctl NMTCKEYDOWNstruct.- NMTRBTHUMBPOSCHANGING
comctl NMTRBTHUMBPOSCHANGINGstruct.- NMTREEVIEW
comctl NMTREEVIEWstruct.- NMTVASYNCDRAW
comctlandgdi NMTVASYNCDRAWstruct.- NMTVCUSTOMDRAW
comctl NMTVCUSTOMDRAWstuct.- NMTVITEMCHANGE
comctl NMTVITEMCHANGEstruct.- NMUPDOWN
comctl NMUPDOWNstruct.- NMVIEWCHANGE
comctl NMVIEWCHANGEstruct.- NONCLIENTMETRICS
gdi NONCLIENTMETRICSstruct.- NOTIFYICONDATA
shell NOTIFYICONDATAstruct.- Nmhdr
Code comctl - Notification code returned in
NMHDRstruct. This code is convertible to/from the specific common control notification codes –LVN,TVN, etc. - OSVERSIONINFOEX
kernel OSVERSIONINFOEXstruct.- OVERLAPPED
kernel OVERLAPPEDstruct.- PAINTSTRUCT
user PAINTSTRUCTstruct.- PALETTEENTRY
gdi PALETTEENTRYstruct.- PBRANGE
comctl PBRANGEstruct.- PERFORMANCE_
INFORMATION psapi PERFORMANCE_INFORMATIONstruct.- PIDL
shell PIDLstruct.- PIN_
INFO dshow PIN_INFOstruct.- PIXELFORMATDESCRIPTOR
gdi PIXELFORMATDESCRIPTORstruct.- POINT
user POINTstruct.- POWERBROADCAST_
SETTING kernel POWERBROADCAST_SETTINGstruct.- PRINTER_
CONNECTION_ INFO_ 1 winspool PRINTER_CONNECTION_INFO_1struct.- PRINTER_
DEFAULTS winspool PRINTER_DEFAULTSstruct.- PRINTER_
INFO_ 2 winspool PRINTER_INFO_2struct.- PRINTER_
INFO_ 3 winspool PRINTER_INFO_3struct.- PRINTER_
INFO_ 4 winspool PRINTER_INFO_4struct.- PRINTER_
OPTIONS winspool PRINTER_OPTIONSstruct.- PROCESSENTR
Y32 kernel PROCESSENTRY32struct.- PROCESSOR_
NUMBER kernel PROCESSOR_NUMBERstruct.- PROCESS_
HEAP_ ENTRY kernel PROCESS_HEAP_ENTRYstruct.- PROCESS_
HEAP_ ENTRY_ Block kernel PROCESS_HEAP_ENTRYBlock.- PROCESS_
HEAP_ ENTRY_ Region kernel PROCESS_HEAP_ENTRYRegion.- PROCESS_
INFORMATION kernel PROCESS_INFORMATIONstruct.- PROCESS_
MEMORY_ COUNTERS_ EX psapi PROCESS_MEMORY_COUNTERS_EXstruct.- PROPSHEETHEADER
comctl PROPSHEETHEADERstruct.- PROPSHEETPAGE
comctl PROPSHEETPAGEstruct.- PROPVARIANT
oleaut PROPVARIANTstruct.- PSHNOTIFY
comctl PSHNOTIFYstruct.- RECT
user RECTstruct.- RGBQUAD
gdi RGBQUADstruct.- SCROLLINFO
user SCROLLINFOstruct.- SECURITY_
ATTRIBUTES kernel SECURITY_ATTRIBUTESstruct.- SECURITY_
DESCRIPTOR kernel SECURITY_DESCRIPTORstruct.- SERVICE_
STATUS advapi SERVICE_STATUSstruct.- SERVICE_
TIMECHANGE_ INFO advapi SERVICE_TIMECHANGE_INFOstruct.- SHELLEXECUTEINFO
advapiandshell SHELLEXECUTEINFOstruct.- SHFILEINFO
shell SHFILEINFOstruct.- SHFILEOPSTRUCT
shell SHFILEOPSTRUCTstruct.- SHITEMID
shell SHITEMIDstruct.- SHSTOCKICONINFO
shell SHSTOCKICONINFOstruct.- SID
advapi SIDstruct.- SID_
AND_ ATTRIBUTES advapi SID_AND_ATTRIBUTESstruct.- SID_
AND_ ATTRIBUTES_ HASH advapi SID_AND_ATTRIBUTES_HASHstruct.- SID_
IDENTIFIER_ AUTHORITY advapi SID_IDENTIFIER_AUTHORITYstruct.- SIZE
user SIZEstruct.- SNB
ole SNBstruct.- STARTUPINFO
kernel STARTUPINFOstruct.- STGMEDIUM
ole STGMEDIUMstruct.- STYLESTRUCT
user STYLESTRUCTstruct.- SYSTEMTIME
kernel SYSTEMTIMEstruct.- SYSTEM_
INFO kernel SYSTEM_INFOstruct.- TASKDIALOGCONFIG
comctl TASKDIALOGCONFIGstruct.- TBADDBITMAP
comctl TBADDBITMAPstruct.- TBBUTTON
comctl TBBUTTONstruct.- TBBUTTONINFO
comctl TBBUTTONINFOstruct.- TBINSERTMARK
comctl TBINSERTMARKstruct.- TBMETRICS
comctl TBMETRICSstruct.- TBREPLACEBITMAP
comctl TBREPLACEBITMAPstruct.- TBSAVEPARAMS
advapiandcomctl TBSAVEPARAMSstruct.- TCHITTESTINFO
comctl TCHITTESTINFOstruct.- TCITEM
comctl TCITEMstruct.- TEXTMETRIC
gdi TEXTMETRICstruct.- THREADENTR
Y32 kernel THREADENTRY32struct.- TIME_
ZONE_ INFORMATION kernel TIME_ZONE_INFORMATIONstruct.- TITLEBARINFOEX
user TITLEBARINFOEXstruct.- TOKEN_
ACCESS_ INFORMATION advapi TOKEN_ACCESS_INFORMATIONstruct.- TOKEN_
APPCONTAINER_ INFORMATION advapi TOKEN_APPCONTAINER_INFORMATIONstruct.- TOKEN_
DEFAULT_ DACL advapi TOKEN_DEFAULT_DACLstruct.- TOKEN_
ELEVATION advapi TOKEN_ELEVATIONstruct.- TOKEN_
GROUPS advapi TOKEN_GROUPSstruct.- TOKEN_
GROUPS_ AND_ PRIVILEGES advapi TOKEN_GROUPS_AND_PRIVILEGESstruct.- TOKEN_
LINKED_ TOKEN advapi TOKEN_LINKED_TOKENstruct.- TOKEN_
MANDATORY_ LABEL advapi TOKEN_MANDATORY_LABELstruct.- TOKEN_
MANDATORY_ POLICY advapi TOKEN_MANDATORY_POLICYstruct.- TOKEN_
ORIGIN advapi TOKEN_ORIGINstruct.- TOKEN_
OWNER advapi TOKEN_OWNERstruct.- TOKEN_
PRIMARY_ GROUP advapi TOKEN_PRIMARY_GROUPstruct.- TOKEN_
PRIVILEGES advapi TOKEN_PRIVILEGESstruct.- TOKEN_
SOURCE advapi TOKEN_SOURCEstruct.- TOKEN_
STATISTICS advapi TOKEN_STATISTICSstruct.- TOKEN_
USER advapi TOKEN_USERstruct.- TRACKMOUSEEVENT
user TRACKMOUSEEVENTstruct.- TVHITTESTINFO
comctl TVHITTESTINFOstruct.- TVINSERTSTRUCT
comctl TVINSERTSTRUCTstruct.- TVITEM
comctl TVITEMstruct.- TVITEMEX
comctl TVITEMEXstruct.- TVSORTCB
comctl TVSORTCBstruct.- UDACCEL
comctl UDACCELstruct.- URL_
COMPONENTS wininet URL_COMPONENTSstruct.- VALENT
advapi VALENTstruct.- VARIANT
oleaut VARIANTstruct.- VS_
FIXEDFILEINFO version VS_FIXEDFILEINFOstruct.- WIN32_
FILE_ ATTRIBUTE_ DATA kernel WIN32_FILE_ATTRIBUTE_DATAstruct.- WIN32_
FIND_ DATA kernel WIN32_FIND_DATAstruct.- WINDOWINFO
user WINDOWINFOstruct.- WINDOWPLACEMENT
user WINDOWPLACEMENTstruct.- WINDOWPOS
user WINDOWPOSstruct.- WNDCLASSEX
user WNDCLASSEXstruct.- WString
kernel - Stores a
[u16]buffer for a null-terminated Unicode UTF-16 wide string natively used by Windows. - WTSSESSION_
NOTIFICATION advapi WTSSESSION_NOTIFICATIONstruct.
Enums§
- Accel
Menu Ctrl user - Variant parameter for:
- AddrStr
kernel - Variable parameter for:
- AtomStr
user - Variant parameter for:
- BmpIcon
user - Variant parameter for:
- BmpIcon
CurMeta comctl - Variant parameter for:
- BmpIdb
Res comctl - Variant parameter for:
- BmpInst
Id comctl - Variant parameter for:
- BmpPtr
Str user - Variant parameter for:
- Claim
Security Attr kernel - Variable parameter for:
- ClrDef
None comctl - Variant parameter for:
- CurObj
gdi - Variant parameter for:
- Disab
Priv advapi - Variable parameter for:
- Dispf
Nup user - Variant parameter for:
- DwmAttr
dwm - Variant parameter for:
- Encoding
kernel - String encodings.
- File
Access kernel - Access types for
File::openandFileMapped::open. - Gmidx
Enum user - Variant parameter for:
- Http
Info wininet - Variant parameter for:
- HwKb
Mouse user - Variant parameter for:
- Hwnd
Focus user - Variant parameter for:
- Hwnd
Hmenu user - Variant parameter for:
- Hwnd
Place user - Variant parameter for:
- Hwnd
Point Id user - Variant parameter for:
- IcoMon
shell - Variable parameter for:
- IconId
comctl - Variant parameter for:
- Icon
IdTd comctl - Variant parameter for:
- IconRes
comctl - Variant parameter for:
- IdIdc
Str user - Variant parameter for:
- IdIdi
Str user - Variant parameter for:
- IdMenu
user - Variant parameter used in menu methods:
- IdObm
Str gdi - Variant parameter for:
- IdOcr
Str gdi - Variant parameter for:
- IdOic
Str gdi - Variant parameter for:
- IdPos
user - Variant parameter for:
- IdStr
kernel - A resource identifier.
- IdxCb
None comctl - Variant type for:
- IdxStr
comctl - Variant parameter for:
- Menu
Item user - Variant parameter for:
- Menu
Item Info user - Variant parameter for:
- Nccsp
Rect user - Variant parameter for:
- PidParent
kernel - Variant parameter for:
- Power
Setting kernel - Variant parameter for:
- Power
Setting Away Mode kernel - Variant parameter for:
- Power
Setting Lid kernel - Variant parameter for:
- Prop
Variant oleaut - High-level representation of the
PROPVARIANTstruct, which is automatically converted into its low-level representation when needed. - PtIdx
comctl - Variant parameter for:
- PtsRc
user - Variant parameter for:
- Registry
Value advapi - Registry value types.
- ResStrs
comctl - Variant parameter for:
- RtStr
kernel - A predefined resource identifier.
- Success
Timeout user - Variant parameter for:
- SvcCtl
advapi - Notification content for
HSERVICESTATUS::RegisterServiceCtrlHandlerExcallback, describingco::SERVICE_CONTROL. - SvcCtl
Device Event advapi - Notification content for
SvcCtl. - SvcCtl
Power Event advapi - Notification content for
SvcCtl. - Tdn
comctl - Variant parameter for:
- Token
Info advapi - Variant parameter for:
- Treeitem
Tvi comctl - Variant parameter for:
- Variant
oleaut - High-level representation of the
VARIANTstruct, which is automatically converted into its low-level representation when needed.
Functions§
- AddPort
winspool AddPortfunction.- AddPrinter
Connection winspool AddPrinterConnectionfunction.- Adjust
Window Rect Ex user AdjustWindowRectExfunction.- Adjust
Window Rect ExFor Dpi user AdjustWindowRectExForDpifunction.- Allocate
AndInitialize Sid advapi AllocateAndInitializeSidfunction.- Allow
SetForeground Window user AllowSetForegroundWindowfunction- AnyPopup
user AnyPopupfunction.- Attach
Console kernel AttachConsolefunction.- Attach
Thread Input user AttachThreadInputfunction.- Block
Input user BlockInputfunction.- Broadcast
System ⚠Message user BroadcastSystemMessagefunction.- CLSID
From ProgID ole CLSIDFromProgIDfunction.- CLSID
From ProgID Ex ole CLSIDFromProgIDExfunction.- CLSID
From String ole CLSIDFromStringfunction.- Call
Next Hook Ex user CallNextHookExfunction.- Change
Display Settings user ChangeDisplaySettingsfunction.- Change
Display Settings Ex user ChangeDisplaySettingsExfunction.- Choose
Color user ChooseColorfunction.- Clip
Cursor user ClipCursorfunction.- CoCreate
Guid ole CoCreateGuidfunction.- CoCreate
Instance ole CoCreateInstancefunction.- CoInitialize
Ex ole CoInitializeExfunction, which initializes the COM library. When succeeding, returns an informational error code.- CoLock
Object External ole CoLockObjectExternalfunction.- CoTask
MemAlloc ole CoTaskMemAllocfunction.- CoTask
MemRealloc ole CoTaskMemReallocfunction.- Comm
DlgExtended Error user CommDlgExtendedErrorfunction.- Command
Line ToArgv shell CommandLineToArgvfunction.- Configure
Port winspool ConfigurePortfunction.- Convert
SidTo String Sid advapi ConvertSidToStringSidfunction.- Convert
String SidTo Sid advapi ConvertStringSidToSidfunction.- Copy
File kernel CopyFilefunction.- CopySid
advapi CopySidfunction.- Create
Bind Ctx ole CreateBindCtxfunction.- Create
Class Moniker ole CreateClassMonikerfunction.- CreateDXGI
Factory dxgi CreateDXGIFactoryfunction.- CreateDXGI
Factory1 dxgi CreateDXGIFactory1function.- CreateDXGI
Factory2 dxgi CreateDXGIFactory2function.- Create
Directory kernel CreateDirectoryfunction.- Create
File Moniker ole CreateFileMonikerfunction.- Create
Item Moniker ole CreateItemMonikerfunction.- Create
Objref Moniker ole CreateObjrefMonikerfunction.- Create
Pointer Moniker ole CreatePointerMonikerfunction.- Create
Process kernel CreateProcessfunction.- Create
Well Known Sid advapi CreateWellKnownSidfunction.- Decrypt
File advapi DecryptFilefunction.- Delete
File kernel DeleteFilefunction.- Delete
Monitor winspool DeleteMonitorfunction.- Delete
Printer Connection winspool DeletePrinterConnectionfunction.- Dispatch
Message ⚠user DispatchMessagefunction.- DwmEnableMMCSS
dwm DwmEnableMMCSSfunction.- DwmFlush
dwm DwmFlushfunction.- DwmGet
Colorization Color dwm DwmGetColorizationColorfunction.- DwmIs
Composition Enabled dwm DwmIsCompositionEnabledfunction.- DwmShow
Contact dwm DwmShowContactfunction.- Encrypt
File advapi EncryptFilefunction.- Encryption
Disable advapi EncryptionDisablefunction.- EndMenu
user EndMenufunction.- Enum
Display Devices user EnumDisplayDevicesfunction.- Enum
Display Settings user EnumDisplaySettingsfunction.- Enum
Display Settings Ex user EnumDisplaySettingsExfunction.- Enum
Printers2 winspool EnumPrintersfunction for Level 2.- Enum
Printers4 winspool EnumPrintersfunction for Level 4.- Enum
Thread Windows user EnumThreadWindowsfunction.- Enum
Windows user EnumWindowsfunction.- Equal
Domain Sid advapi EqualDomainSidfunction.- Equal
Prefix Sid advapi EqualPrefixSidfunction.- Equal
Sid advapi EqualSidfunction.- Exit
Process kernel ExitProcessfunction.- Exit
Thread kernel ExitThreadfunction.- Exit
Windows Ex user ExitWindowsExfunction.- Expand
Environment Strings kernel ExpandEnvironmentStringsfunction.- File
Time ToSystem Time kernel FileTimeToSystemTimefunction.- Flash
Window Ex user FlashWindowExfunction.- Flush
Process Write Buffers kernel FlushProcessWriteBuffersfunction.- Format
Message ⚠kernel FormatMessagefunction.- GdiFlush
gdi GdiFlushfunction.- GdiGet
Batch Limit gdi GdiGetBatchLimitfunction.- GdiSet
Batch Limit gdi GdiSetBatchLimitfunction.- GetAll
Users Profile Directory shell GetAllUsersProfileDirectoryfunction.- GetAsync
KeyState user GetAsyncKeyStatefunction.- GetBinary
Type kernel GetBinaryTypefunction.- GetCaret
Blink Time user GetCaretBlinkTimefunction.- GetCaret
Pos user GetCaretPosfunction.- GetClip
Cursor user GetClipCursorfunction.- GetCommand
Line kernel GetCommandLinefunction.- GetComputer
Name kernel GetComputerNamefunction.- GetCurrent
Directory kernel GetCurrentDirectoryfunction.- GetCurrent
Process Explicit AppUser ModelID shell GetCurrentProcessExplicitAppUserModelIDfunction.- GetCurrent
Process Id kernel GetCurrentProcessIdfunction.- GetCurrent
Thread Id kernel GetCurrentThreadIdfunction.- GetCursor
Info user GetCursorInfofunction.- GetCursor
Pos user GetCursorPosfunction.- GetDefault
Printer winspool GetDefaultPrinterfunction.- GetDefault
User Profile Directory shell GetDefaultUserProfileDirectoryfunction.- GetDialog
Base Units user GetDialogBaseUnitsfunction.- GetDisk
Free Space Ex kernel GetDiskFreeSpaceExfunction.- GetDisk
Space Information kernel GetDiskSpaceInformationfunction.- GetDouble
Click Time user GetDoubleClickTimefunction.- GetDrive
Type kernel GetDriveTypefunction.- GetEnvironment
Strings kernel GetEnvironmentStringsfunction.- GetFile
Attributes kernel GetFileAttributesfunction.- GetFile
Attributes Ex kernel GetFileAttributesExfunction.- GetFirmware
Type kernel GetFirmwareTypefunction.- GetGUI
Thread Info user GetGUIThreadInfofunction.- GetKey
Name Text user GetKeyNameTextfunction.- GetLarge
Page Minimum kernel GetLargePageMinimumfunction.- GetLast
Error kernel GetLastErrorfunction.- GetLast
Input Info user GetLastInputInfofunction.- GetLength
Sid advapi GetLengthSidfunction.- GetLocal
Time kernel GetLocalTimefunction.- GetLogical
Drive Strings kernel GetLogicalDriveStringsfunction.- GetLogical
Drives kernel GetLogicalDrivesfunction.- GetLong
Path Name kernel GetLongPathNamefunction.- GetMenu
Check Mark Dimensions user GetMenuCheckMarkDimensionsfunction.- GetMessage
user GetMessagefunction.- GetMessage
Pos user GetMessagePosfunction.- GetNative
System Info kernel GetNativeSystemInfofunction.- GetPerformance
Info psapi GetPerformanceInfofunction.- GetPhysical
Cursor Pos user GetPhysicalCursorPosfunction.- GetPrivate
Profile Section kernel GetPrivateProfileSectionfunction.- GetPrivate
Profile Section Names kernel GetPrivateProfileSectionNamesfunction.- GetPrivate
Profile String kernel GetPrivateProfileStringfunction.- GetProcess
Default Layout user GetProcessDefaultLayoutfunction.- GetProfiles
Directory shell GetProfilesDirectoryfunction.- GetQueue
Status user GetQueueStatusfunction.- GetSid
Length Required advapi GetSidLengthRequiredfunction.- GetStartup
Info kernel GetStartupInfofunction.- GetSys
Color user GetSysColorfunction.- GetSystem
Directory kernel GetSystemDirectoryfunction.- GetSystem
File Cache Size kernel GetSystemFileCacheSizefunction.- GetSystem
Info kernel GetSystemInfofunction.- GetSystem
Metrics user GetSystemMetricsfunction.- GetSystem
Metrics ForDpi user GetSystemMetricsForDpifunction.- GetSystem
Time kernel GetSystemTimefunction.- GetSystem
Time AsFile Time kernel GetSystemTimeAsFileTimefunction.- GetSystem
Time Precise AsFile Time kernel GetSystemTimePreciseAsFileTimefunction.- GetSystem
Times kernel GetSystemTimesfunction.- GetTemp
File Name kernel GetTempFileNamefunction.- GetTemp
Path kernel GetTempPathfunction.- GetThread
DpiHosting Behavior user GetThreadDpiHostingBehaviorfunction.- GetTick
Count64 kernel GetTickCount64function.- GetUser
Name advapi GetUserNamefunction.- GetVolume
Information kernel GetVolumeInformationfunction.- GetVolume
Path Name kernel GetVolumePathNamefunction.- GetWindows
Account Domain Sid advapi GetWindowsAccountDomainSidfunction.- Global
Memory Status Ex kernel GlobalMemoryStatusExfunction.- HIBYTE
kernel HIBYTEmacro.- HIDWORD
kernel - Returns the high-order
u32of anu64. - HIWORD
kernel HIWORDmacro.- InSend
Message user InSendMessagefunction.- InSend
Message Ex userand 64-bit InSendMessageExfunction.- Inflate
Rect user InflateRectfunction.- Init
Common Controls comctl InitCommonControlsfunction.- Init
Common Controls Ex comctl InitCommonControlsExfunction.- InitMUI
Language comctl InitMUILanguagefunction.- Initialize
Security Descriptor advapi InitializeSecurityDescriptorfunction.- Initiate
System Shutdown advapi InitiateSystemShutdownfunction.- Initiate
System Shutdown Ex advapi InitiateSystemShutdownExfunction.- Internet
Canonicalize Url wininet InternetCanonicalizeUrlfunction.- Internet
Combine Url wininet InternetCombineUrlfunction.- Internet
Crack Url wininet InternetCrackUrlfunction.- Internet
Create Url wininet InternetCreateUrlfunction.- Internet
Time ToSystem Time wininet InternetTimeToSystemTimefunction.- Intersect
Rect user IntersectRectfunction.- IsApp
Themed uxtheme IsAppThemedfunction.- IsComposition
Active uxtheme IsCompositionActivefunction.- IsDebugger
Present kernel IsDebuggerPresentfunction.- IsGUI
Thread user IsGUIThreadfunction.- IsNative
VhdBoot kernel IsNativeVhdBootfunction.- IsRect
Empty user IsRectEmptyfunction.- IsTheme
Active uxtheme IsThemeActivefunction.- IsTheme
Dialog Texture Enabled uxthemeand 64-bit IsThemeDialogTextureEnabledfunction.- IsValid
Security Descriptor advapi IsValidSecurityDescriptorfunction.- IsValid
Sid advapi IsValidSidfunction.- IsWell
Known Sid advapi IsWellKnownSidfunction.- IsWindows7
OrGreater kernel IsWindows7OrGreaterfunction.- IsWindows8
OrGreater kernel IsWindows8OrGreaterfunction.- IsWindows8
Point1 OrGreater kernel IsWindows8Point1OrGreaterfunction.- IsWindows10
OrGreater kernel IsWindows10OrGreaterfunction.- IsWindows
Server kernel IsWindowsServerfunction.- IsWindows
Version OrGreater kernel IsWindowsVersionOrGreaterfunction.- IsWindows
Vista OrGreater kernel IsWindowsVistaOrGreaterfunction.- IsWow64
Message user IsWow64Messagefunction.- LOBYTE
kernel LOBYTEmacro.- LODWORD
kernel - Returns the low-order
u32of anu64. - LOWORD
kernel LOWORDmacro.- Lock
SetForeground Window user LockSetForegroundWindowfunction.- Lock
Work Station user LockWorkStationfunction.- Lookup
Account Name advapi LookupAccountNamefunction.- Lookup
Account Sid advapi LookupAccountSidfunction.- Lookup
Privilege Name advapi LookupPrivilegeNamefunction.- Lookup
Privilege Value advapi LookupPrivilegeValuefunction.- MAKEDWORD
kernel - Function analog to
MAKELONG,MAKEWPARAM, andMAKELPARAMmacros. - MAKEQWORD
kernel - Similar to
MAKEDWORD, but foru64. - MAKEWORD
kernel MAKEWORDmacro.- MFCreate
Async Result mf MFCreateAsyncResultfunction.- MFCreateMF
Byte Stream OnStream mf MFCreateMFByteStreamOnStreamfunction.- MFCreate
Media Session mf MFCreateMediaSessionfunction.- MFCreate
Source Resolver mf MFCreateSourceResolverfunction.- MFCreate
Topology mf MFCreateTopologyfunction.- MFCreate
Topology Node mf MFCreateTopologyNodefunction.- MFStartup
mf MFStartupfunction.- MapVirtual
Key user MapVirtualKeyfunction.- Message
Beep user MessageBeepfunction.- Move
File kernel MoveFilefunction.- Move
File Ex kernel MoveFileExfunction.- MulDiv
kernel MulDivfunction.- Multi
Byte ToWide Char kernel MultiByteToWideCharfunction.- Offset
Rect user OffsetRectfunction.- OleInitialize
ole OleInitializefunction, which callsCoInitializeExand enables OLE operations.- OleLoad
Picture oleaut OleLoadPicturefunction.- OleLoad
Picture Path oleaut OleLoadPicturePathfunction.- Output
Debug String kernel OutputDebugStringfunction.- PSGet
Name From Property Key oleaut PSGetNameFromPropertyKeyfunction.- Path
Combine shell PathCombinefunction.- Path
Common Prefix shell PathCommonPrefixfunction.- Path
Skip Root shell PathSkipRootfunction.- Path
Strip Path shell PathStripPathfunction.- Path
Undecorate shell PathUndecoratefunction.- Path
Unquote Spaces shell PathUnquoteSpacesfunction.- Peek
Message user PeekMessagefunction.- Post
Quit Message user PostQuitMessagefunction.- Post
Thread ⚠Message user PostThreadMessagefunction.- Property
Sheet ⚠comctl PropertySheetfunction.- PtIn
Rect user PtInRectfunction.- Query
Performance Counter kernel QueryPerformanceCounterfunction.- Query
Performance Frequency kernel QueryPerformanceFrequencyfunction.- Query
Unbiased Interrupt Time kernel QueryUnbiasedInterruptTimefunction.- RegDisable
Predefined Cache advapi RegDisablePredefinedCachefunction.- RegDisable
Predefined Cache Ex advapi RegDisablePredefinedCacheExfunction.- Register
Class ⚠Ex user RegisterClassExfunction.- Register
Window Message user RegisterWindowMessagefunction.- Replace
File kernel ReplaceFilefunction.- SHAdd
ToRecent ⚠Docs shell SHAddToRecentDocsfunction.- SHBind
ToParent shell SHBindToParentfunction.- SHCreate
Item FromID List shell SHCreateItemFromIDListfunction.- SHCreate
Item From Parsing Name shell SHCreateItemFromParsingNamefunction.- SHCreate
Item From Relative Name shell SHCreateItemFromRelativeNamefunction.- SHCreate
Item InKnown Folder shell SHCreateItemInKnownFolderfunction.- SHCreate
MemStream shell SHCreateMemStreamfunction.- SHCreate
Shell Item Array shell SHCreateShellItemArraymethod.- SHCreate
Shell Item Array From Shell Item shell SHCreateShellItemArrayFromShellItemfunction.- SHFile
Operation shell SHFileOperationfunction.- SHGet
File Info shell SHGetFileInfofunction.- SHGetID
List From Object shell SHGetIDListFromObjectfunction.- SHGet
Known Folder Path advapiandshell SHGetKnownFolderPathfunction.- SHGet
Property Store FromID List shell SHGetPropertyStoreFromIDListfunction.- SHGet
Property Store From Parsing Name shell SHGetPropertyStoreFromParsingNamefunction.- SHGet
Stock Icon Info shell SHGetStockIconInfofunction.- Send
Input user SendInputfunction.- SetCaret
Blink Time user SetCaretBlinkTimefunction.- SetCaret
Pos user SetCaretPosfunction.- SetCurrent
Directory kernel SetCurrentDirectoryfunction.- SetCurrent
Process Explicit AppUser ModelID shell SetCurrentProcessExplicitAppUserModelIDfunction.- SetCursor
Pos user SetCursorPosfunction.- SetDefault
Printer winspool SetDefaultPrinterfunction.- SetDouble
Click Time user SetDoubleClickTimefunction.- SetFile
Attributes kernel SetFileAttributesfunction.- SetLast
Error kernel SetLastErrorfunction.- SetPhysical
Cursor Pos user SetPhysicalCursorPosfunction.- SetProcessDPI
Aware user SetProcessDPIAwarefunction.- SetProcess
Default Layout user SetProcessDefaultLayoutfunction.- SetSys
Colors user SetSysColorsfunction.- SetThread
DpiHosting Behavior user SetThreadDpiHostingBehaviorfunction.- SetThread
Stack Guarantee kernel SetThreadStackGuaranteefunction.- Shell
Execute Ex advapiandshell ShellExecuteExfunction.- Shell_
Notify Icon shell Shell_NotifyIconfunction.- Show
Cursor user ShowCursorfunction.- Sleep
kernel Sleepfunction.- Sound
Sentry user SoundSentryfunction.- String
FromCLSID ole StringFromCLSIDfunction.- Subtract
Rect user SubtractRectfunction.- Swap
Mouse Button user SwapMouseButtonfunction.- Switch
ToThread kernel SwitchToThreadfunction.- System
Parameters ⚠Info user SystemParametersInfofunction.- System
Time ToFile Time kernel SystemTimeToFileTimefunction.- System
Time ToTz Specific Local Time kernel SystemTimeToTzSpecificLocalTimefunction.- System
Time ToVariant Time oleaut SystemTimeToVariantTimefunction.- Task
Dialog Indirect comctl TaskDialogIndirectfunction.- Track
Mouse Event user TrackMouseEventfunction.- Translate
Message user TranslateMessagefunction.- Union
Rect user UnionRectfunction.- Unregister
Class user UnregisterClassfunction.- Variant
Time ToSystem Time oleaut VariantTimeToSystemTimefunction.- VerSet
Condition Mask kernel VerSetConditionMaskfunction.- Verify
Version Info kernel VerifyVersionInfofunction.- Wait
Message user WaitMessagefunction.- Wide
Char ToMulti Byte kernel WideCharToMultiBytefunction.- Write
Private Profile String kernel WritePrivateProfileStringfunction.
Type Aliases§
- AnyResult
kernel - A
Resultalias which returns aBox<dyn Error + Send + Sync>on failure. - CCHOOKPROC
user - Type alias to
CCHOOKPROCcallback function. - DLGPROC
user - Type alias to
DLGPROCcallback function. - EDITWORDBREAKPROC
user - Type alias to
EDITWORDBREAKPROCcallback function. - HOOKPROC
user - Type alias to
HOOKPROCcallback function. - HrResult
ole - A
Resultalias for COM error codes, which returns anHRESULTon failure. - LPFNPSPCALLBACK
comctl - Type alias to
LPFNPSPCALLBACKcallback function. - PFNLVCOMPARE
comctl - Type alias to
PFNLVCOMPAREcallback function. - PFNLVGROUPCOMPARE
comctl - Type alias to
PFNLVGROUPCOMPAREcallback function. - PFNPROPSHEETCALLBACK
comctl - Type alias to
PFNPROPSHEETCALLBACKcallback function. - PFNTVCOMPARE
comctl - Type alias to
PFNTVCOMPAREcallback function. - PFTASKDIALOGCALLBACK
comctl - Type alias to
PFTASKDIALOGCALLBACKcalback function. - SUBCLASSPROC
comctl - Type alias to
SUBCLASSPROCcallback function. - SysResult
kernel - A
Resultalias for native system error codes, which returns anERRORon failure. - TIMERPROC
user - Type alias to
TIMERPROCcallback function. - WNDPROC
user - Type alias to
WNDPROCcallback function.