Crate winsafe

Crate winsafe 

Source
Expand description

Windows API and GUI in safe, idiomatic Rust.

CrateGitHubDocs (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:

FeatureDescription
advapiAdvapi32.dll and Ktmw32.dll, advanced kernel functions
comctlComCtl32.dll, the Common Controls
dshowDirectShow
dwmDesktop Window Manager
dxgiDirectX Graphics Infrastructure
gdiGdi32.dll, the Windows GDI
guiThe WinSafe high-level GUI abstractions
kernelKernel32.dll, basic kernel functions
mfMedia Foundation
oleBasic OLE/COM support
oleautOLE Automation
psapiProcess Status API
raw-dylibEnables raw-dylib linking
shellShell32.dll, Shlwapi.dll, and Userenv.dll, the COM-based Windows Shell
taskschdTask Scheduler
userUser32.dll and ComDlg32.dll, the basic Windows GUI support
uxthemeUxTheme.dll, extended window theming
versionVersion.dll, to manipulate *.exe version info
wininetWindows Internet
winspoolPrint 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:

AliasErrorUsed for
SysResultERRORStandard system errors.
HrResultHRESULTCOM errors.
AnyResultBox<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:

UtilityUsed for
EncodingString encodings.
FileFile read/write and other operations.
FileMappedMemory-mapped file operations.
pathFile path operations.
WStringManaging 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 .res file. 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 u16 constants starting from the given value.

Structs§

ACCEL
ACCEL struct.
ACL
ACL struct.
ACTCTX
ACTCTX struct.
ADDJOB_INFO_1
ADDJOB_INFO_1 struct.
ALTTABINFO
ALTTABINFO struct.
AM_MEDIA_TYPE
AM_MEDIA_TYPE struct.
ATOM
ATOM returned by RegisterClassEx.
BIND_OPTS3
BIND_OPTS3 struct.
BITMAP
BITMAP struct.
BITMAPFILEHEADER
BITMAPFILEHEADER struct.
BITMAPINFO
BITMAPINFO struct.
BITMAPINFOHEADER
BITMAPINFOHEADER struct.
BLENDFUNCTION
BLENDFUNCTION struct.
BSTR
A string data type used with COM automation.
BUTTON_IMAGELIST
BUTTON_IMAGELIST struct.
BUTTON_SPLITINFO
BUTTON_SPLITINFO struct.
BY_HANDLE_FILE_INFORMATION
BY_HANDLE_FILE_INFORMATION struct.
CHOOSECOLOR
CHOOSECOLOR struct.
CLAIM_SECURITY_ATTRIBUTES_INFORMATION
CLAIM_SECURITY_ATTRIBUTES_INFORMATION struct.
CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE
CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE struct.
CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE
CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE struct.
CLAIM_SECURITY_ATTRIBUTE_V1
CLAIM_SECURITY_ATTRIBUTE_V1 struct.
COAUTHIDENTITY
COAUTHIDENTITY struct.
COAUTHINFO
COAUTHINFO struct.
COLORREF
COLORREF struct.
COLORSCHEME
COLORSCHEME struct.
COMBOBOXINFO
COMBOBOXINFO struct.
COMDLG_FILTERSPEC
COMDLG_FILTERSPEC struct.
COMPAREITEMSTRUCT
COMPAREITEMSTRUCT struct.
CONSOLE_READCONSOLE_CONTROL
CONSOLE_READCONSOLE_CONTROL struct.
COSERVERINFO
COSERVERINFO struct.
CREATESTRUCT
CREATESTRUCT struct.
CURSORINFO
CURSORINFO struct.
DATETIMEPICKERINFO
DATETIMEPICKERINFO struct.
DELETEITEMSTRUCT
DELETEITEMSTRUCT struct.
DEVMODE
DEVMODE struct.
DEV_BROADCAST_DEVICEINTERFACE
DEV_BROADCAST_DEVICEINTERFACE struct.
DEV_BROADCAST_HANDLE
DEV_BROADCAST_HANDLE struct.
DEV_BROADCAST_HDR
DEV_BROADCAST_HDR struct.
DEV_BROADCAST_OEM
DEV_BROADCAST_OEM struct.
DEV_BROADCAST_PORT
DEV_BROADCAST_PORT struct.
DEV_BROADCAST_VOLUME
DEV_BROADCAST_VOLUME struct.
DISK_SPACE_INFORMATION
DISK_SPACE_INFORMATION struct.
DISPLAY_DEVICE
DISPLAY_DEVICE struct.
DISPPARAMS
DISPPARAMS struct.
DLGITEMTEMPLATE
DLGITEMTEMPLATE struct.
DLGTEMPLATE
DLGTEMPLATE struct.
DRAWITEMSTRUCT
DRAWITEMSTRUCT struct.
DRAWTEXTPARAMS
DRAWTEXTPARAMS struct.
DVINFO
DVINFO struct.
DVTARGETDEVICE
DVTARGETDEVICE struct.
DXGI_ADAPTER_DESC
DXGI_ADAPTER_DESC struct.
DXGI_ADAPTER_DESC1
DXGI_ADAPTER_DESC1 struct.
DXGI_ADAPTER_DESC2
DXGI_ADAPTER_DESC2 struct.
DXGI_FRAME_STATISTICS
DXGI_FRAME_STATISTICS struct.
DXGI_GAMMA_CONTROL
DXGI_GAMMA_CONTROL struct.
DXGI_GAMMA_CONTROL_CAPABILITIES
DXGI_GAMMA_CONTROL_CAPABILITIES struct.
DXGI_MAPPED_RECT
DXGI_MAPPED_RECT struct.
DXGI_MODE_DESC
DXGI_MODE_DESC struct.
DXGI_OUTPUT_DESC
DXGI_OUTPUT_DESC struct.
DXGI_RATIONAL
DXGI_RATIONAL struct.
DXGI_RGB
DXGI_RGB struct.
DXGI_SAMPLE_DESC
DXGI_SAMPLE_DESC struct.
DXGI_SHARED_RESOURCE
DXGI_SHARED_RESOURCE struct.
DXGI_SURFACE_DESC
DXGI_SURFACE_DESC struct.
DXGI_SWAP_CHAIN_DESC
DXGI_SWAP_CHAIN_DESC struct.
EDITBALLOONTIP
EDITBALLOONTIP struct.
EXCEPINFO
EXCEPINFO struct.
FILETIME
FILETIME struct.
FILTER_INFO
FILTER_INFO struct.
FLASHWINFO
FLASHWINFO struct.
FORMATETC
FORMATETC struct.
FORM_INFO_1
FORM_INFO_1 struct.
FORM_INFO_2
FORM_INFO_2 struct.
File
Manages an HFILE handle, which provides file read/write and other operations. It is closed automatically when the object goes out of scope.
FileMapped
Manages an HFILEMAP handle, which provides memory-mapped file operations, including read/write through slices. It is closed automatically when the object goes out of scope.
GUID
GUID struct.
GUITHREADINFO
GUITHREADINFO struct.
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
HARDWAREINPUT struct.
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
HDHITTESTINFO struct.
HDITEM
HDITEM struct.
HDLAYOUT
HDLAYOUT struct.
HDROP
Handle to an internal drop structure.
HDWP
Handle to a deferred window position.
HEAPLIST32
HEAPLIST32 struct.
HELPINFO
HELPINFO struct.
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
IAction COM interface.
IActionCollection
IActionCollection COM interface.
IAdviseSink
IAdviseSink COM interface.
IBaseFilter
IBaseFilter COM interface.
IBindCtx
IBindCtx COM interface.
IBootTrigger
IBootTrigger COM interface.
ICONINFO
ICONINFO struct.
ICONINFOEX
ICONINFOEX struct.
IComHandlerAction
IComHandlerAction COM interface.
IDXGIAdapter
IDXGIAdapter COM interface.
IDXGIAdapter1
IDXGIAdapter1 COM interface.
IDXGIAdapter2
IDXGIAdapter2 COM interface.
IDXGIDevice
IDXGIDevice COM interface.
IDXGIDeviceSubObject
IDXGIDeviceSubObject COM interface.
IDXGIFactory
IDXGIFactory COM interface.
IDXGIFactory1
IDXGIFactory1 COM interface.
IDXGIKeyedMutex
IDXGIKeyedMutex COM interface.
IDXGIObject
IDXGIObject COM interface.
IDXGIOutput
IDXGIOutput COM interface.
IDXGIResource
IDXGIResource COM interface.
IDXGISurface
IDXGISurface COM interface.
IDXGISwapChain
IDXGISwapChain COM interface.
IDailyTrigger
IDailyTrigger COM interface.
IDataObject
IDataObject COM interface.
IDispatch
IDispatch COM interface.
IDropTarget
IDropTarget COM interface.
IEmailAction
IEmailAction COM interface.
IEnumFilters
IEnumFilters COM interface.
IEnumMediaTypes
IEnumMediaTypes COM interface.
IEnumPins
IEnumPins COM interface.
IEnumShellItems
IEnumShellItems COM interface.
IEventTrigger
IEventTrigger COM interface.
IExecAction
IExecAction COM interface.
IFileDialog
IFileDialog COM interface.
IFileDialogEvents
IFileDialogEvents COM interface.
IFileOpenDialog
IFileOpenDialog COM interface.
IFileOperation
IFileOperation COM interface.
IFileOperationProgressSink
IFileOperationProgressSink COM interface.
IFileSaveDialog
IFileSaveDialog COM interface.
IFileSinkFilter
IFileSinkFilter COM interface.
IFilterGraph
IFilterGraph COM interface.
IFilterGraph2
IFilterGraph2 COM interface.
IGraphBuilder
IGraphBuilder COM interface.
IIdleTrigger
IIdleTrigger COM interface.
ILogonTrigger
ILogonTrigger COM interface.
IMAGELISTDRAWPARAMS
IMAGELISTDRAWPARAMS struct.
IMFAsyncCallback
IMFAsyncCallback COM interface.
IMFAsyncResult
IMFAsyncResult COM interface.
IMFAttributes
IMFAttributes COM interface.
IMFByteStream
IIMFByteStream COM interface.
IMFClock
IMFClock COM interface.
IMFCollection
IMFCollection COM interface.
IMFGetService
IMFGetService COM interface.
IMFMediaEvent
IMFMediaEvent COM interface.
IMFMediaEventGenerator
IMFMediaEventGenerator COM interface.
IMFMediaSession
IMFMediaSession COM interface.
IMFMediaSource
IMFMediaSource COM interface.
IMFMediaTypeHandler
IMFMediaTypeHandler COM interface.
IMFPresentationDescriptor
IMFPresentationDescriptor COM interface.
IMFSourceResolver
IMFSourceResolver COM interface.
IMFStreamDescriptor
IMFStreamDescriptor COM interface.
IMFTopology
IMFTopology COM interface.
IMFTopologyNode
IMFTopologyNode COM interface.
IMFVideoDisplayControl
IMFVideoDisplayControl COM interface.
IMediaControl
IMediaControl COM interface.
IMediaFilter
IMediaFilter COM interface.
IMediaSeeking
IMediaSeeking COM interface.
IModalWindow
IModalWindow COM interface.
IMoniker
IMoniker COM interface.
INITCOMMONCONTROLSEX
INITCOMMONCONTROLSEX struct
INPUT
INPUT struct.
IOperationsProgressDialog
IOperationsProgressDialog COM interface.
IPersist
IPersist COM interface.
IPersistFile
IPersistFile COM interface.
IPersistStream
IPersistStream COM interface.
IPicture
IPicture COM interface.
IPin
IPin COM interface.
IPrincipal
IPrincipal COM interface.
IPropertyStore
IPropertyStore COM interface.
IRegisteredTask
IRegisteredTask COM interface.
IRegistrationInfo
IRegistrationInfo COM interface.
ISequentialStream
ISequentialStream COM interface.
IShellFolder
IShellFolder COM interface.
IShellItem
IShellItem COM interface.
IShellItem2
IShellItem2 COM interface.
IShellItemArray
IShellItemArray COM interface.
IShellItemFilter
IShellItemFilter COM interface.
IShellLink
IShellLink COM interface.
IStorage
IStorage COM interface.
IStream
IStream COM interface.
ITEMIDLIST
ITEMIDLIST struct.
ITaskDefinition
ITaskDefinition COM interface.
ITaskFolder
ITaskFolder COM interface.
ITaskService
ITaskService COM interface.
ITaskbarList
ITaskbarList COM interface.
ITaskbarList2
ITaskbarList2 COM interface.
ITaskbarList3
ITaskbarList3 COM interface.
ITaskbarList4
ITaskbarList4 COM interface.
ITrigger
ITrigger COM interface.
ITriggerCollection
ITriggerCollection COM interface.
ITypeInfo
ITypeInfo COM interface.
IUnknown
IUnknown COM interface. It’s the base to all COM interfaces.
KEYBDINPUT
KEYBDINPUT struct.
LANGID
LANGID language identifier.
LASTINPUTINFO
LASTINPUTINFO struct.
LCID
LCID locale identifier.
LITEM
LITEM struct.
LOGBRUSH
LOGBRUSH struct.
LOGFONT
LOGFONT struct.
LOGPALETTE
LOGPALETTE struct.
LOGPEN
LOGPEN struct.
LUID
LUID identifier.
LUID_AND_ATTRIBUTES
LUID_AND_ATTRIBUTES struct.
LVBKIMAGE
LVBKIMAGE struct.
LVCOLUMN
LVCOLUMN struct.
LVFINDINFO
LVFINDINFO struct.
LVFOOTERINFO
LVFOOTERINFO struct.
LVFOOTERITEM
LVFOOTERITEM struct.
LVGROUP
LVGROUP struct.
LVGROUPMETRICS
LVGROUPMETRICS struct.
LVHITTESTINFO
LVHITTESTINFO struct.
LVINSERTGROUPSORTED
LVINSERTGROUPSORTED struct.
LVINSERTMARK
LVINSERTMARK struct.
LVITEM
LVITEM struct.
LVITEMINDEX
LVITEMINDEX struct.
LVSETINFOTIP
LVSETINFOTIP struct.
LVTILEINFO
LVTILEINFO struct.
LVTILEVIEWINFO
LVTILEVIEWINFO struct.
MARGINS
MARGINS struct.
MCGRIDINFO
MCGRIDINFO struct.
MCHITTESTINFO
MCHITTESTINFO struct.
MEMORYSTATUSEX
MEMORYSTATUSEX struct.
MEMORY_BASIC_INFORMATION
MEMORY_BASIC_INFORMATION struct.
MENUBARINFO
MENUBARINFO struct.
MENUINFO
MENUINFO struct.
MENUITEMINFO
MENUITEMINFO struct.
MFCLOCK_PROPERTIES
MFCLOCK_PROPERTIES struct.
MFVideoNormalizedRect
MFVideoNormalizedRect struct.
MINMAXINFO
MINMAXINFO struct.
MODULEENTRY32
MODULEENTRY32 struct.
MODULEINFO
MODULEINFO struct.
MONITORINFOEX
MONITORINFOEX struct.
MONTHDAYSTATE
MONTHDAYSTATE struct.
MOUSEINPUT
MOUSEINPUT struct.
MSG
MSG struct.
NCCALCSIZE_PARAMS
NCCALCSIZE_PARAMS struct.
NMBCDROPDOWN
NMBCDROPDOWN struct.
NMBCHOTITEM
NMBCHOTITEM struct.
NMCHAR
NMCHAR struct.
NMCUSTOMDRAW
NMCUSTOMDRAW struct.
NMDATETIMECHANGE
NMDATETIMECHANGE struct.
NMDATETIMEFORMAT
NMDATETIMEFORMAT struct.
NMDATETIMEFORMATQUERY
NMDATETIMEFORMATQUERY struct.
NMDATETIMESTRING
NMDATETIMESTRING struct.
NMDATETIMEWMKEYDOWN
NMDATETIMEWMKEYDOWN struct.
NMDAYSTATE
NMDAYSTATE struct.
NMHDDISPINFO
NMHDDISPINFO struct.
NMHDFILTERBTNCLICK
NMHDFILTERBTNCLICK struct.
NMHDR
NMHDR struct.
NMHEADER
NMHEADER struct.
NMIPADDRESS
NMIPADDRESS struct.
NMITEMACTIVATE
NMITEMACTIVATE struct.
NMLINK
NMLINK struct.
NMLISTVIEW
NMLISTVIEW struct.
NMLVCACHEHINT
NMLVCACHEHINT struct.
NMLVCUSTOMDRAW
NMLVCUSTOMDRAW struct.
NMLVDISPINFO
NMLVDISPINFO struct.
NMLVEMPTYMARKUP
NMLVEMPTYMARKUP struct.
NMLVFINDITEM
NMLVFINDITEM struct.
NMLVGETINFOTIP
NMLVGETINFOTIP struct.
NMLVKEYDOWN
NMLVKEYDOWN struct.
NMLVLINK
NMLVLINK struct.
NMLVODSTATECHANGE
NMLVODSTATECHANGE struct.
NMLVSCROLL
NMLVSCROLL struct.
NMMOUSE
NMMOUSE struct.
NMOBJECTNOTIFY
NMOBJECTNOTIFY struct.
NMSELCHANGE
NMSELCHANGE struct.
NMTCKEYDOWN
NMTCKEYDOWN struct.
NMTRBTHUMBPOSCHANGING
NMTRBTHUMBPOSCHANGING struct.
NMTREEVIEW
NMTREEVIEW struct.
NMTVASYNCDRAW
NMTVASYNCDRAW struct.
NMTVCUSTOMDRAW
NMTVCUSTOMDRAW stuct.
NMTVITEMCHANGE
NMTVITEMCHANGE struct.
NMUPDOWN
NMUPDOWN struct.
NMVIEWCHANGE
NMVIEWCHANGE struct.
NONCLIENTMETRICS
NONCLIENTMETRICS struct.
NOTIFYICONDATA
NOTIFYICONDATA struct.
NmhdrCode
Notification code returned in NMHDR struct. This code is convertible to/from the specific common control notification codes – LVN, TVN, etc.
OSVERSIONINFOEX
OSVERSIONINFOEX struct.
OVERLAPPED
OVERLAPPED struct.
PAINTSTRUCT
PAINTSTRUCT struct.
PALETTEENTRY
PALETTEENTRY struct.
PBRANGE
PBRANGE struct.
PERFORMANCE_INFORMATION
PERFORMANCE_INFORMATION struct.
PIDL
PIDL struct.
PIN_INFO
PIN_INFO struct.
PIXELFORMATDESCRIPTOR
PIXELFORMATDESCRIPTOR struct.
POINT
POINT struct.
POWERBROADCAST_SETTING
POWERBROADCAST_SETTING struct.
PRINTER_CONNECTION_INFO_1
PRINTER_CONNECTION_INFO_1 struct.
PRINTER_DEFAULTS
PRINTER_DEFAULTS struct.
PRINTER_INFO_2
PRINTER_INFO_2 struct.
PRINTER_INFO_3
PRINTER_INFO_3 struct.
PRINTER_INFO_4
PRINTER_INFO_4 struct.
PRINTER_OPTIONS
PRINTER_OPTIONS struct.
PROCESSENTRY32
PROCESSENTRY32 struct.
PROCESSOR_NUMBER
PROCESSOR_NUMBER struct.
PROCESS_HEAP_ENTRY
PROCESS_HEAP_ENTRY struct.
PROCESS_HEAP_ENTRY_Block
PROCESS_HEAP_ENTRY Block.
PROCESS_HEAP_ENTRY_Region
PROCESS_HEAP_ENTRY Region.
PROCESS_INFORMATION
PROCESS_INFORMATION struct.
PROCESS_MEMORY_COUNTERS_EX
PROCESS_MEMORY_COUNTERS_EX struct.
PROPSHEETHEADER
PROPSHEETHEADER struct.
PROPSHEETPAGE
PROPSHEETPAGE struct.
PROPVARIANT
PROPVARIANT struct.
PSHNOTIFY
PSHNOTIFY struct.
RECT
RECT struct.
RGBQUAD
RGBQUAD struct.
SCROLLINFO
SCROLLINFO struct.
SECURITY_ATTRIBUTES
SECURITY_ATTRIBUTES struct.
SECURITY_DESCRIPTOR
SECURITY_DESCRIPTOR struct.
SERVICE_STATUS
SERVICE_STATUS struct.
SERVICE_TIMECHANGE_INFO
SERVICE_TIMECHANGE_INFO struct.
SHELLEXECUTEINFO
SHELLEXECUTEINFO struct.
SHFILEINFO
SHFILEINFO struct.
SHFILEOPSTRUCT
SHFILEOPSTRUCT struct.
SHITEMID
SHITEMID struct.
SHSTOCKICONINFO
SHSTOCKICONINFO struct.
SID
SID struct.
SID_AND_ATTRIBUTES
SID_AND_ATTRIBUTES struct.
SID_AND_ATTRIBUTES_HASH
SID_AND_ATTRIBUTES_HASH struct.
SID_IDENTIFIER_AUTHORITY
SID_IDENTIFIER_AUTHORITY struct.
SIZE
SIZE struct.
SNB
SNB struct.
STARTUPINFO
STARTUPINFO struct.
STGMEDIUM
STGMEDIUM struct.
STYLESTRUCT
STYLESTRUCT struct.
SYSTEMTIME
SYSTEMTIME struct.
SYSTEM_INFO
SYSTEM_INFO struct.
TASKDIALOGCONFIG
TASKDIALOGCONFIG struct.
TBADDBITMAP
TBADDBITMAP struct.
TBBUTTON
TBBUTTON struct.
TBBUTTONINFO
TBBUTTONINFO struct.
TBINSERTMARK
TBINSERTMARK struct.
TBMETRICS
TBMETRICS struct.
TBREPLACEBITMAP
TBREPLACEBITMAP struct.
TBSAVEPARAMS
TBSAVEPARAMS struct.
TCHITTESTINFO
TCHITTESTINFO struct.
TCITEM
TCITEM struct.
TEXTMETRIC
TEXTMETRIC struct.
THREADENTRY32
THREADENTRY32 struct.
TIME_ZONE_INFORMATION
TIME_ZONE_INFORMATION struct.
TITLEBARINFOEX
TITLEBARINFOEX struct.
TOKEN_ACCESS_INFORMATION
TOKEN_ACCESS_INFORMATION struct.
TOKEN_APPCONTAINER_INFORMATION
TOKEN_APPCONTAINER_INFORMATION struct.
TOKEN_DEFAULT_DACL
TOKEN_DEFAULT_DACL struct.
TOKEN_ELEVATION
TOKEN_ELEVATION struct.
TOKEN_GROUPS
TOKEN_GROUPS struct.
TOKEN_GROUPS_AND_PRIVILEGES
TOKEN_GROUPS_AND_PRIVILEGES struct.
TOKEN_LINKED_TOKEN
TOKEN_LINKED_TOKEN struct.
TOKEN_MANDATORY_LABEL
TOKEN_MANDATORY_LABEL struct.
TOKEN_MANDATORY_POLICY
TOKEN_MANDATORY_POLICY struct.
TOKEN_ORIGIN
TOKEN_ORIGIN struct.
TOKEN_OWNER
TOKEN_OWNER struct.
TOKEN_PRIMARY_GROUP
TOKEN_PRIMARY_GROUP struct.
TOKEN_PRIVILEGES
TOKEN_PRIVILEGES struct.
TOKEN_SOURCE
TOKEN_SOURCE struct.
TOKEN_STATISTICS
TOKEN_STATISTICS struct.
TOKEN_USER
TOKEN_USER struct.
TRACKMOUSEEVENT
TRACKMOUSEEVENT struct.
TVHITTESTINFO
TVHITTESTINFO struct.
TVINSERTSTRUCT
TVINSERTSTRUCT struct.
TVITEM
TVITEM struct.
TVITEMEX
TVITEMEX struct.
TVSORTCB
TVSORTCB struct.
UDACCEL
UDACCEL struct.
URL_COMPONENTS
URL_COMPONENTS struct.
VALENT
VALENT struct.
VARIANT
VARIANT struct.
VS_FIXEDFILEINFO
VS_FIXEDFILEINFO struct.
WIN32_FILE_ATTRIBUTE_DATA
WIN32_FILE_ATTRIBUTE_DATA struct.
WIN32_FIND_DATA
WIN32_FIND_DATA struct.
WINDOWINFO
WINDOWINFO struct.
WINDOWPLACEMENT
WINDOWPLACEMENT struct.
WINDOWPOS
WINDOWPOS struct.
WNDCLASSEX
WNDCLASSEX struct.
WString
Stores a [u16] buffer for a null-terminated Unicode UTF-16 wide string natively used by Windows.
WTSSESSION_NOTIFICATION
WTSSESSION_NOTIFICATION struct.

Enums§

AccelMenuCtrl
Variant parameter for:
AddrStr
Variable parameter for:
AtomStr
Variant parameter for:
BmpIcon
Variant parameter for:
BmpIconCurMeta
Variant parameter for:
BmpIdbRes
Variant parameter for:
BmpInstId
Variant parameter for:
BmpPtrStr
Variant parameter for:
ClaimSecurityAttr
Variable parameter for:
ClrDefNone
Variant parameter for:
CurObj
Variant parameter for:
DisabPriv
Variable parameter for:
DispfNup
Variant parameter for:
DwmAttr
Variant parameter for:
Encoding
String encodings.
FileAccess
Access types for File::open and FileMapped::open.
GmidxEnum
Variant parameter for:
HttpInfo
Variant parameter for:
HwKbMouse
Variant parameter for:
HwndFocus
Variant parameter for:
HwndHmenu
Variant parameter for:
HwndPlace
Variant parameter for:
HwndPointId
Variant parameter for:
IcoMon
Variable parameter for:
IconId
Variant parameter for:
IconIdTd
Variant parameter for:
IconRes
Variant parameter for:
IdIdcStr
Variant parameter for:
IdIdiStr
Variant parameter for:
IdMenu
Variant parameter used in menu methods:
IdObmStr
Variant parameter for:
IdOcrStr
Variant parameter for:
IdOicStr
Variant parameter for:
IdPos
Variant parameter for:
IdStr
A resource identifier.
IdxCbNone
Variant type for:
IdxStr
Variant parameter for:
MenuItem
Variant parameter for:
MenuItemInfo
Variant parameter for:
NccspRect
Variant parameter for:
PidParent
Variant parameter for:
PowerSetting
Variant parameter for:
PowerSettingAwayMode
Variant parameter for:
PowerSettingLid
Variant parameter for:
PropVariant
High-level representation of the PROPVARIANT struct, which is automatically converted into its low-level representation when needed.
PtIdx
Variant parameter for:
PtsRc
Variant parameter for:
RegistryValue
Registry value types.
ResStrs
Variant parameter for:
RtStr
A predefined resource identifier.
SuccessTimeout
Variant parameter for:
SvcCtl
Notification content for HSERVICESTATUS::RegisterServiceCtrlHandlerEx callback, describing co::SERVICE_CONTROL.
SvcCtlDeviceEvent
Notification content for SvcCtl.
SvcCtlPowerEvent
Notification content for SvcCtl.
Tdn
Variant parameter for:
TokenInfo
Variant parameter for:
TreeitemTvi
Variant parameter for:
Variant
High-level representation of the VARIANT struct, which is automatically converted into its low-level representation when needed.

Functions§

AddPort
AddPort function.
AddPrinterConnection
AddPrinterConnection function.
AdjustWindowRectEx
AdjustWindowRectEx function.
AdjustWindowRectExForDpi
AdjustWindowRectExForDpi function.
AllocateAndInitializeSid
AllocateAndInitializeSid function.
AllowSetForegroundWindow
AllowSetForegroundWindow function
AnyPopup
AnyPopup function.
AttachConsole
AttachConsole function.
AttachThreadInput
AttachThreadInput function.
BlockInput
BlockInput function.
BroadcastSystemMessage
BroadcastSystemMessage function.
CLSIDFromProgID
CLSIDFromProgID function.
CLSIDFromProgIDEx
CLSIDFromProgIDEx function.
CLSIDFromString
CLSIDFromString function.
CallNextHookEx
CallNextHookEx function.
ChangeDisplaySettings
ChangeDisplaySettings function.
ChangeDisplaySettingsEx
ChangeDisplaySettingsEx function.
ChooseColor
ChooseColor function.
ClipCursor
ClipCursor function.
CoCreateGuid
CoCreateGuid function.
CoCreateInstance
CoCreateInstance function.
CoInitializeEx
CoInitializeEx function, which initializes the COM library. When succeeding, returns an informational error code.
CoLockObjectExternal
CoLockObjectExternal function.
CoTaskMemAlloc
CoTaskMemAlloc function.
CoTaskMemRealloc
CoTaskMemRealloc function.
CommDlgExtendedError
CommDlgExtendedError function.
CommandLineToArgv
CommandLineToArgv function.
ConfigurePort
ConfigurePort function.
ConvertSidToStringSid
ConvertSidToStringSid function.
ConvertStringSidToSid
ConvertStringSidToSid function.
CopyFile
CopyFile function.
CopySid
CopySid function.
CreateBindCtx
CreateBindCtx function.
CreateClassMoniker
CreateClassMoniker function.
CreateDXGIFactory
CreateDXGIFactory function.
CreateDXGIFactory1
CreateDXGIFactory1 function.
CreateDirectory
CreateDirectory function.
CreateFileMoniker
CreateFileMoniker function.
CreateItemMoniker
CreateItemMoniker function.
CreateObjrefMoniker
CreateObjrefMoniker function.
CreatePointerMoniker
CreatePointerMoniker function.
CreateProcess
CreateProcess function.
CreateWellKnownSid
CreateWellKnownSid function.
DecryptFile
DecryptFile function.
DeleteFile
DeleteFile function.
DeleteMonitor
DeleteMonitor function.
DeletePrinterConnection
DeletePrinterConnection function.
DispatchMessage
DispatchMessage function.
DwmEnableMMCSS
DwmEnableMMCSS function.
DwmFlush
DwmFlush function.
DwmGetColorizationColor
DwmGetColorizationColor function.
DwmIsCompositionEnabled
DwmIsCompositionEnabled function.
DwmShowContact
DwmShowContact function.
EncryptFile
EncryptFile function.
EncryptionDisable
EncryptionDisable function.
EndMenu
EndMenu function.
EnumDisplayDevices
EnumDisplayDevices function.
EnumDisplaySettings
EnumDisplaySettings function.
EnumDisplaySettingsEx
EnumDisplaySettingsEx function.
EnumPrinters2
EnumPrinters function for Level 2.
EnumPrinters4
EnumPrinters function for Level 4.
EnumThreadWindows
EnumThreadWindows function.
EnumWindows
EnumWindows function.
EqualDomainSid
EqualDomainSid function.
EqualPrefixSid
EqualPrefixSid function.
EqualSid
EqualSid function.
ExitProcess
ExitProcess function.
ExitThread
ExitThread function.
ExitWindowsEx
ExitWindowsEx function.
ExpandEnvironmentStrings
ExpandEnvironmentStrings function.
FileTimeToSystemTime
FileTimeToSystemTime function.
FlashWindowEx
FlashWindowEx function.
FlushProcessWriteBuffers
FlushProcessWriteBuffers function.
FormatMessage
FormatMessage function.
GdiFlush
GdiFlush function.
GdiGetBatchLimit
GdiGetBatchLimit function.
GdiSetBatchLimit
GdiSetBatchLimit function.
GetAllUsersProfileDirectory
GetAllUsersProfileDirectory function.
GetAsyncKeyState
GetAsyncKeyState function.
GetBinaryType
GetBinaryType function.
GetCaretBlinkTime
GetCaretBlinkTime function.
GetCaretPos
GetCaretPos function.
GetClipCursor
GetClipCursor function.
GetCommandLine
GetCommandLine function.
GetComputerName
GetComputerName function.
GetCurrentDirectory
GetCurrentDirectory function.
GetCurrentProcessExplicitAppUserModelID
GetCurrentProcessExplicitAppUserModelID function.
GetCurrentProcessId
GetCurrentProcessId function.
GetCurrentThreadId
GetCurrentThreadId function.
GetCursorInfo
GetCursorInfo function.
GetCursorPos
GetCursorPos function.
GetDefaultPrinter
GetDefaultPrinter function.
GetDefaultUserProfileDirectory
GetDefaultUserProfileDirectory function.
GetDialogBaseUnits
GetDialogBaseUnits function.
GetDiskFreeSpaceEx
GetDiskFreeSpaceEx function.
GetDiskSpaceInformation
GetDiskSpaceInformation function.
GetDoubleClickTime
GetDoubleClickTime function.
GetDriveType
GetDriveType function.
GetEnvironmentStrings
GetEnvironmentStrings function.
GetFileAttributes
GetFileAttributes function.
GetFileAttributesEx
GetFileAttributesEx function.
GetFirmwareType
GetFirmwareType function.
GetGUIThreadInfo
GetGUIThreadInfo function.
GetLargePageMinimum
GetLargePageMinimum function.
GetLastError
GetLastError function.
GetLastInputInfo
GetLastInputInfo function.
GetLengthSid
GetLengthSid function.
GetLocalTime
GetLocalTime function.
GetLogicalDriveStrings
GetLogicalDriveStrings function.
GetLogicalDrives
GetLogicalDrives function.
GetLongPathName
GetLongPathName function.
GetMenuCheckMarkDimensions
GetMenuCheckMarkDimensions function.
GetMessage
GetMessage function.
GetMessagePos
GetMessagePos function.
GetNativeSystemInfo
GetNativeSystemInfo function.
GetPerformanceInfo
GetPerformanceInfo function.
GetPhysicalCursorPos
GetPhysicalCursorPos function.
GetPrivateProfileSection
GetPrivateProfileSection function.
GetPrivateProfileSectionNames
GetPrivateProfileSectionNames function.
GetPrivateProfileString
GetPrivateProfileString function.
GetProcessDefaultLayout
GetProcessDefaultLayout function.
GetProfilesDirectory
GetProfilesDirectory function.
GetQueueStatus
GetQueueStatus function.
GetSidLengthRequired
GetSidLengthRequired function.
GetStartupInfo
GetStartupInfo function.
GetSysColor
GetSysColor function.
GetSystemDirectory
GetSystemDirectory function.
GetSystemFileCacheSize
GetSystemFileCacheSize function.
GetSystemInfo
GetSystemInfo function.
GetSystemMetrics
GetSystemMetrics function.
GetSystemMetricsForDpi
GetSystemMetricsForDpi function.
GetSystemTime
GetSystemTime function.
GetSystemTimeAsFileTime
GetSystemTimeAsFileTime function.
GetSystemTimePreciseAsFileTime
GetSystemTimePreciseAsFileTime function.
GetSystemTimes
GetSystemTimes function.
GetTempFileName
GetTempFileName function.
GetTempPath
GetTempPath function.
GetThreadDpiHostingBehavior
GetThreadDpiHostingBehavior function.
GetTickCount64
GetTickCount64 function.
GetUserName
GetUserName function.
GetVolumeInformation
GetVolumeInformation function.
GetVolumePathName
GetVolumePathName function.
GetWindowsAccountDomainSid
GetWindowsAccountDomainSid function.
GlobalMemoryStatusEx
GlobalMemoryStatusEx function.
HIBYTE
HIBYTE macro.
HIDWORD
Returns the high-order u32 of an u64.
HIWORD
HIWORD macro.
InSendMessage
InSendMessage function.
InSendMessageEx
InSendMessageEx function.
InflateRect
InflateRect function.
InitCommonControls
InitCommonControls function.
InitCommonControlsEx
InitCommonControlsEx function.
InitMUILanguage
InitMUILanguage function.
InitializeSecurityDescriptor
InitializeSecurityDescriptor function.
InitiateSystemShutdown
InitiateSystemShutdown function.
InitiateSystemShutdownEx
InitiateSystemShutdownEx function.
InternetCanonicalizeUrl
InternetCanonicalizeUrl function.
InternetCombineUrl
InternetCombineUrl function.
InternetCrackUrl
InternetCrackUrl function.
InternetCreateUrl
InternetCreateUrl function.
InternetTimeToSystemTime
InternetTimeToSystemTime function.
IntersectRect
IntersectRect function.
IsAppThemed
IsAppThemed function.
IsCompositionActive
IsCompositionActive function.
IsDebuggerPresent
IsDebuggerPresent function.
IsGUIThread
IsGUIThread function.
IsNativeVhdBoot
IsNativeVhdBoot function.
IsRectEmpty
IsRectEmpty function.
IsThemeActive
IsThemeActive function.
IsThemeDialogTextureEnabled
IsThemeDialogTextureEnabled function.
IsValidSecurityDescriptor
IsValidSecurityDescriptor function.
IsValidSid
IsValidSid function.
IsWellKnownSid
IsWellKnownSid function.
IsWindows7OrGreater
IsWindows7OrGreater function.
IsWindows8OrGreater
IsWindows8OrGreater function.
IsWindows8Point1OrGreater
IsWindows8Point1OrGreater function.
IsWindows10OrGreater
IsWindows10OrGreater function.
IsWindowsServer
IsWindowsServer function.
IsWindowsVersionOrGreater
IsWindowsVersionOrGreater function.
IsWindowsVistaOrGreater
IsWindowsVistaOrGreater function.
IsWow64Message
IsWow64Message function.
LOBYTE
LOBYTE macro.
LODWORD
Returns the low-order u32 of an u64.
LOWORD
LOWORD macro.
LockSetForegroundWindow
LockSetForegroundWindow function.
LockWorkStation
LockWorkStation function.
LookupAccountName
LookupAccountName function.
LookupAccountSid
LookupAccountSid function.
LookupPrivilegeName
LookupPrivilegeName function.
LookupPrivilegeValue
LookupPrivilegeValue function.
MAKEDWORD
Function analog to MAKELONG, MAKEWPARAM, and MAKELPARAM macros.
MAKEQWORD
Similar to MAKEDWORD, but for u64.
MAKEWORD
MAKEWORD macro.
MFCreateAsyncResult
MFCreateAsyncResult function.
MFCreateMFByteStreamOnStream
MFCreateMFByteStreamOnStream function.
MFCreateMediaSession
MFCreateMediaSession function.
MFCreateSourceResolver
MFCreateSourceResolver function.
MFCreateTopology
MFCreateTopology function.
MFCreateTopologyNode
MFCreateTopologyNode function.
MFStartup
MFStartup function.
MessageBeep
MessageBeep function.
MoveFile
MoveFile function.
MoveFileEx
MoveFileEx function.
MulDiv
MulDiv function.
MultiByteToWideChar
MultiByteToWideChar function.
OffsetRect
OffsetRect function.
OleInitialize
OleInitialize function, which calls CoInitializeEx and enables OLE operations.
OleLoadPicture
OleLoadPicture function.
OleLoadPicturePath
OleLoadPicturePath function.
OutputDebugString
OutputDebugString function.
PSGetNameFromPropertyKey
PSGetNameFromPropertyKey function.
PathCombine
PathCombine function.
PathCommonPrefix
PathCommonPrefix function.
PathSkipRoot
PathSkipRoot function.
PathStripPath
PathStripPath function.
PathUndecorate
PathUndecorate function.
PathUnquoteSpaces
PathUnquoteSpaces function.
PeekMessage
PeekMessage function.
PostQuitMessage
PostQuitMessage function.
PostThreadMessage
PostThreadMessage function.
PropertySheet
PropertySheet function.
PtInRect
PtInRect function.
QueryPerformanceCounter
QueryPerformanceCounter function.
QueryPerformanceFrequency
QueryPerformanceFrequency function.
QueryUnbiasedInterruptTime
QueryUnbiasedInterruptTime function.
RegDisablePredefinedCache
RegDisablePredefinedCache function.
RegDisablePredefinedCacheEx
RegDisablePredefinedCacheEx function.
RegisterClassEx
RegisterClassEx function.
RegisterWindowMessage
RegisterWindowMessage function.
ReplaceFile
ReplaceFile function.
SHAddToRecentDocs
SHAddToRecentDocs function.
SHBindToParent
SHBindToParent function.
SHCreateItemFromIDList
SHCreateItemFromIDList function.
SHCreateItemFromParsingName
SHCreateItemFromParsingName function.
SHCreateItemFromRelativeName
SHCreateItemFromRelativeName function.
SHCreateItemInKnownFolder
SHCreateItemInKnownFolder function.
SHCreateMemStream
SHCreateMemStream function.
SHCreateShellItemArray
SHCreateShellItemArray method.
SHCreateShellItemArrayFromShellItem
SHCreateShellItemArrayFromShellItem function.
SHFileOperation
SHFileOperation function.
SHGetFileInfo
SHGetFileInfo function.
SHGetIDListFromObject
SHGetIDListFromObject function.
SHGetKnownFolderPath
SHGetKnownFolderPath function.
SHGetPropertyStoreFromIDList
SHGetPropertyStoreFromIDList function.
SHGetPropertyStoreFromParsingName
SHGetPropertyStoreFromParsingName function.
SHGetStockIconInfo
SHGetStockIconInfo function.
SendInput
SendInput function.
SetCaretBlinkTime
SetCaretBlinkTime function.
SetCaretPos
SetCaretPos function.
SetCurrentDirectory
SetCurrentDirectory function.
SetCurrentProcessExplicitAppUserModelID
SetCurrentProcessExplicitAppUserModelID function.
SetCursorPos
SetCursorPos function.
SetDefaultPrinter
SetDefaultPrinter function.
SetDoubleClickTime
SetDoubleClickTime function.
SetFileAttributes
SetFileAttributes function.
SetLastError
SetLastError function.
SetPhysicalCursorPos
SetPhysicalCursorPos function.
SetProcessDPIAware
SetProcessDPIAware function.
SetProcessDefaultLayout
SetProcessDefaultLayout function.
SetSysColors
SetSysColors function.
SetThreadDpiHostingBehavior
SetThreadDpiHostingBehavior function.
SetThreadStackGuarantee
SetThreadStackGuarantee function.
ShellExecuteEx
ShellExecuteEx function.
Shell_NotifyIcon
Shell_NotifyIcon function.
ShowCursor
ShowCursor function.
Sleep
Sleep function.
SoundSentry
SoundSentry function.
StringFromCLSID
StringFromCLSID function.
SubtractRect
SubtractRect function.
SwapMouseButton
SwapMouseButton function.
SwitchToThread
SwitchToThread function.
SystemParametersInfo
SystemParametersInfo function.
SystemTimeToFileTime
SystemTimeToFileTime function.
SystemTimeToTzSpecificLocalTime
SystemTimeToTzSpecificLocalTime function.
SystemTimeToVariantTime
SystemTimeToVariantTime function.
TaskDialogIndirect
TaskDialogIndirect function.
TrackMouseEvent
TrackMouseEvent function.
TranslateMessage
TranslateMessage function.
UnionRect
UnionRect function.
UnregisterClass
UnregisterClass function.
VariantTimeToSystemTime
VariantTimeToSystemTime function.
VerSetConditionMask
VerSetConditionMask function.
VerifyVersionInfo
VerifyVersionInfo function.
WaitMessage
WaitMessage function.
WideCharToMultiByte
WideCharToMultiByte function.
WritePrivateProfileString
WritePrivateProfileString function.

Type Aliases§

AnyResult
A Result alias which returns a Box<dyn Error + Send + Sync> on failure.
CCHOOKPROC
Type alias to CCHOOKPROC callback function.
DLGPROC
Type alias to DLGPROC callback function.
EDITWORDBREAKPROC
Type alias to EDITWORDBREAKPROC callback function.
HOOKPROC
Type alias to HOOKPROC callback function.
HrResult
A Result alias for COM error codes, which returns an HRESULT on failure.
LPFNPSPCALLBACK
Type alias to LPFNPSPCALLBACK callback function.
PFNLVCOMPARE
Type alias to PFNLVCOMPARE callback function.
PFNLVGROUPCOMPARE
Type alias to PFNLVGROUPCOMPARE callback function.
PFNPROPSHEETCALLBACK
Type alias to PFNPROPSHEETCALLBACK callback function.
PFNTVCOMPARE
Type alias to PFNTVCOMPARE callback function.
PFTASKDIALOGCALLBACK
Type alias to PFTASKDIALOGCALLBACK calback function.
SUBCLASSPROC
Type alias to SUBCLASSPROC callback function.
SysResult
A Result alias for native system error codes, which returns an ERROR on failure.
TIMERPROC
Type alias to TIMERPROC callback function.
WNDPROC
Type alias to WNDPROC callback function.