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