Available on crate feature
kernel
only.Expand description
The WinSafe prelude.
The purpose of this module is to alleviate imports of many common traits. To use it, add a glob import to the top of all your modules that use the library:
use winsafe::prelude::*;
Traits§
- A system error which can be formatted with
FormatMessage
. - GdiObject
gdi
This trait is enabled with thegdi
feature, and implements methods for anyHGDIOBJ
handle, which is the base handle for GDI objects. - This trait is enabled with the
gdi
feature, and implements methods for anyHGDIOBJ
handle which can be passed toHDC::SelectObject
. - GuiChild
gui
Any child window. - Any child window which can be focused.
- GuiEvents
gui
Exposes methods to handle the basic window messages. - GuiEventsAll
gui
Exposes methods to handle the basic window messages, plus timer and native control notifications. - Any native control, which can be subclassed.
- Events of a native control.
- GuiParent
gui
Any window which can host child controls. - GuiTab
gui
Any window which can be rendered inside a nativeTab
control. - GuiThread
gui
Allows a window to spawn new threads which can return errors, and run closures in the original UI thread. - GuiWindow
gui
Any window. Exposes the underlying window handle. - Any window which can get/set text.
- A native handle, implemented by all handle types.
- A type which has a primitive integer as its underlying type.
- MsgSend
user
Parameters of a message which can be sent. Implemented by all defined messages. - MsgSendRecv
user
- A native typed bitflag constant.
- A native typed constant.
- A native typed constant mapped to a string.
- A struct natively defined with its last element being an 1-element array. The struct is dynamically allocated to accomodate a variable number of elements, whose amount is stored in a specific field. The elements are accessed by reaching the past-struct memory room.
- comctl_Himagelist
comctl
This trait is enabled with thecomctl
feature, and provides methods forHIMAGELIST
. - comctl_Hwnd
comctl
This trait is enabled with thecomctl
feature, and provides methods forHWND
. - comctl_shell_Himagelist
comctl
andshell
- dshow_IBaseFilter
dshow
This trait is enabled with thedshow
feature, and provides methods forIBaseFilter
. - dshow_IEnumFilters
dshow
This trait is enabled with thedshow
feature, and provides methods forIEnumFilters
. - This trait is enabled with the
dshow
feature, and provides methods forIEnumMediaTypes
. - dshow_IEnumPins
dshow
This trait is enabled with thedshow
feature, and provides methods forIEnumPins
. - This trait is enabled with the
dshow
feature, and provides methods forIFileSinkFilter
. - dshow_IFilterGraph
dshow
This trait is enabled with thedshow
feature, and provides methods forIFilterGraph
. - dshow_IFilterGraph2
dshow
This trait is enabled with thedshow
feature, and provides methods forIFilterGraph2
. - dshow_IGraphBuilder
dshow
This trait is enabled with thedshow
feature, and provides methods forIGraphBuilder
. - dshow_IMediaControl
dshow
This trait is enabled with thedshow
feature, and provides methods forIMediaControl
. - dshow_IMediaFilter
dshow
This trait is enabled with thedshow
feature, and provides methods forIMediaFilter
. - dshow_IMediaSeeking
dshow
This trait is enabled with thedshow
feature, and provides methods forIMediaSeeking
. - dshow_IPin
dshow
This trait is enabled with thedshow
feature, and provides methods forIPin
. - dwm_Hwnd
dwm
This trait is enabled with thedwm
feature, and provides methods forHWND
. - This trait is enabled with the
dxgi
feature, and provides methods forIDXGIAdapter
. - dxgi_IDXGIDevice
dxgi
This trait is enabled with thedxgi
feature, and provides methods forIDXGIDevice
. - This trait is enabled with the
dxgi
feature, and provides methods forIDXGIDeviceSubObject
. - This trait is enabled with the
dxgi
feature, and provides methods forIDXGIFactory
. - dxgi_IDXGIObject
dxgi
This trait is enabled with thedxgi
feature, and provides methods forIDXGIObject
. - dxgi_IDXGIOutput
dxgi
This trait is enabled with thedxgi
feature, and provides methods forIDXGIOutput
. - This trait is enabled with the
dxgi
feature, and provides methods forIDXGIResource
. - This trait is enabled with the
dxgi
feature, and provides methods forIDXGISurface
. - This trait is enabled with the
dxgi
feature, and provides methods forIDXGISwapChain
. - gdi_Hbitmap
gdi
This trait is enabled with thegdi
feature, and provides methods forHBITMAP
. - gdi_Hbrush
gdi
This trait is enabled with thegdi
feature, and provides methods forHBRUSH
. - gdi_Hdc
gdi
This trait is enabled with thegdi
feature, and provides methods forHDC
. - gdi_Hfont
gdi
This trait is enabled with thegdi
feature, and provides methods forHFONT
. - This trait is enabled with the
gdi
feature, and provides methods forHINSTANCE
. - gdi_Hpalette
gdi
This trait is enabled with thegdi
feature, and provides methods forHFONT
. - gdi_Hpen
gdi
This trait is enabled with thegdi
feature, and provides methods forHPEN
. - gdi_Hrgn
gdi
This trait is enabled with thegdi
feature, and provides methods forHRGN
. - gdi_mf_IMFVideoDisplayControl
gdi
andmf
- This trait is enabled with the
kernel
feature, and provides methods forHACCESSTOKEN
. - This trait is enabled with the
kernel
feature, and provides methods forHEVENT
. - This trait is enabled with the
kernel
feature, and provides methods forHEVENTLOG
. - This trait is enabled with the
kernel
feature, and provides methods forHFILE
. - This trait is enabled with the
kernel
feature, and provides methods forHFILEMAP
. - This trait is enabled with the
kernel
feature, and provides methods forHFILEMAPVIEW
. - This trait is enabled with the
kernel
feature, and provides methods forHFINDFILE
. - This trait is enabled with the
kernel
feature, and provides methods forHGLOBAL
. - This trait is enabled with the
kernel
feature, and provides methods forHHEAP
. - This trait is enabled with the
kernel
feature, and provides methods forHINSTANCE
. - This trait is enabled with the
kernel
feature, and provides methods forHKEY
. - This trait is enabled with the
kernel
feature, and provides methods forHLOCAL
. - This trait is enabled with the
kernel
feature, and provides methods forHPIPE
. - This trait is enabled with the
kernel
feature, and provides methods forHPROCESS
. - This trait is enabled with the
kernel
feature, and provides methods forHPROCESSLIST
. - This trait is enabled with the
kernel
feature, and provides methods forHSC
. - This trait is enabled with the
kernel
feature, and provides methods forHSERVICE
. - This trait is enabled with the
kernel
feature, and provides methods forHSERVICESTATUS
. - This trait is enabled with the
kernel
feature, and provides methods forHSTD
. - This trait is enabled with the
kernel
feature, and provides methods forHTHREAD
. - This trait is enabled with the
kernel
feature, and provides methods forHTRANSACTION
. - This trait is enabled with the
kernel
feature, and provides methods forHUPDATERSRC
. - This trait is enabled with the
mf
feature, and provides methods forIMFAsyncCallback
. - This trait is enabled with the
mf
feature, and provides methods forIMFAsyncResult
. - This trait is enabled with the
mf
feature, and provides methods forIMFAttributes
. - This trait is enabled with the
mf
feature, and provides methods forIMFClock
. - This trait is enabled with the
mf
feature, and provides methods forIMFGetService
. - This trait is enabled with the
mf
feature, and provides methods forIMFMediaEvent
. - This trait is enabled with the
mf
feature, and provides methods forIMFMediaEventGenerator
. - This trait is enabled with the
mf
feature, and provides methods forIMFMediaSession
. - This trait is enabled with the
mf
feature, and provides methods forIMFMediaSource
. - This trait is enabled with the
mf
feature, and provides methods forIMFPresentationDescriptor
. - This trait is enabled with the
mf
feature, and provides methods forIMFSourceResolver
. - This trait is enabled with the
mf
feature, and provides methods forIMFTopology
. - This trait is enabled with the
mf
feature, and provides methods forIMFTopologyNode
. - This trait is enabled with the
mf
feature, and provides methods forIMFVideoDisplayControl
. - ole_Hwnd
ole
This trait is enabled with theole
feature, and provides methods forHWND
. - This trait is enabled with the
ole
feature, and provides methods forIAdviseSink
. - ole_IBindCtx
ole
This trait is enabled with theole
feature, and provides methods forIBindCtx
. - This trait is enabled with the
ole
feature, and provides methods forIDataObject
. - This trait is enabled with the
ole
feature, and provides methods forIDropTarget
. - ole_IMoniker
ole
This trait is enabled with theole
feature, and provides methods forIMoniker
. - ole_IPersist
ole
This trait is enabled with theole
feature, and provides methods forIPersist
. - This trait is enabled with the
ole
feature, and provides methods forIPersistFile
. - This trait is enabled with the
ole
feature, and provides methods forIPersistStream
. - ole_IPicture
ole
This trait is enabled with theole
feature, and provides methods forIPicture
. - This trait is enabled with the
ole
feature, and provides methods forISequentialStream
. - ole_IStorage
ole
This trait is enabled with theole
feature, and provides methods forIStorage
. - ole_IStream
ole
IStream
methods fromole
feature. - ole_IUnknown
ole
This trait is enabled with theole
feature, and provides methods forIUnknown
. It is the base trait for all COM traits. - oleaut_IDispatch
oleaut
This trait is enabled with theoleaut
feature, and provides methods forIDispatch
. - oleaut_IPropertyStore
oleaut
This trait is enabled with theoleaut
feature, and provides methods forIPropertyStore
. - oleaut_ITypeInfo
oleaut
This trait is enabled with theoleaut
feature, and provides methods forITypeInfo
. - oleaut_Variant
oleaut
This trait is enabled with theoleaut
feature, and provides common methods forVARIANT
andPROPVARIANT
. - shell_Hdrop
shell
This trait is enabled with theshell
feature, and provides methods forHDROP
. - shell_Hwnd
shell
This trait is enabled with theshell
feature, and provides methods forHWND
. - This trait is enabled with the
shell
feature, and provides methods forIEnumShellItems
. - shell_IFileDialog
shell
This trait is enabled with theshell
feature, and provides methods forIFileDialog
. - This trait is enabled with the
shell
feature, and provides methods forIFileDialogEvents
. - This trait is enabled with the
shell
feature, and provides methods forIFileOpenDialog
. - This trait is enabled with the
shell
feature, and provides methods forIFileSaveDialog
. - shell_IModalWindow
shell
This trait is enabled with theshell
feature, and provides methods forIModalWindow
. - shell_IShellItem
shell
This trait is enabled with theshell
feature, and provides methods forIShellItem
. - shell_IShellItem2
shell
This trait is enabled with theshell
feature, and provides methods forIShellItem2
. - This trait is enabled with the
shell
feature, and provides methods forIShellItemArray
. - shell_IShellLink
shell
This trait is enabled with theshell
feature, and provides methods forIShellLink
. - shell_ITaskbarList
shell
This trait is enabled with theshell
feature, and provides methods forITaskbarList
. - shell_ITaskbarList2
shell
This trait is enabled with theshell
feature, and provides methods forITaskbarList2
. - shell_ITaskbarList3
shell
This trait is enabled with theshell
feature, and provides methods forITaskbarList3
. - shell_ITaskbarList4
shell
This trait is enabled with theshell
feature, and provides methods forITaskbarList4
. - taskschd_IAction
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forIAction
. - taskschd_IActionCollection
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forIActionCollection
. - taskschd_IBootTrigger
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forIBootTrigger
. - taskschd_IComHandlerAction
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forIComHandlerAction
. - taskschd_IDailyTrigger
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forIDailyTrigger
. - taskschd_IEmailAction
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forIEmailAction
. - taskschd_IEventTrigger
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forIEventTrigger
. - taskschd_IExecAction
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forIExecAction
. - taskschd_IIdleTrigger
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forIIdleTrigger
. - taskschd_ILogonTrigger
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forILogonTrigger
. - taskschd_IRegisteredTask
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forIRegisteredTask
. - taskschd_IRegistrationInfo
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forIRegistrationInfo
. - taskschd_ITaskDefinition
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forITaskDefinition
. - taskschd_ITaskFolder
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forITaskFolder
. - taskschd_ITaskService
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forITaskService
. - taskschd_ITrigger
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forITriggerCollection
. - taskschd_ITriggerCollection
taskschd
This trait is enabled with thetaskschd
feature, and provides methods forITriggerCollection
. - user_Haccel
user
This trait is enabled with theuser
feature, and provides methods forHACCEL
. - user_Hcursor
user
This trait is enabled with theuser
feature, and provides methods forHCURSOR
. - user_Hdc
user
This trait is enabled with theuser
feature, and provides methods forHDC
. - user_Hdesk
user
This trait is enabled with theuser
feature, and provides methods forHDESK
. - user_Hdwp
user
This trait is enabled with theuser
feature, and provides methods forHDWP
. - user_Hhook
user
This trait is enabled with theuser
feature, and provides methods forHHOOK
. - user_Hicon
user
This trait is enabled with theuser
feature, and provides methods forHICON
. - user_Hinstance
user
This trait is enabled with theuser
feature, and provides methods forHINSTANCE
. - user_Hmenu
user
This trait is enabled with theuser
feature, and provides methods forHMENU
. - user_Hmonitor
user
This trait is enabled with theuser
feature, and provides methods forHMONITOR
. - user_Hprocess
user
This trait is enabled with theuser
feature, and provides methods forHPROCESS
. - user_Hwnd
user
This trait is enabled with theuser
feature, and provides methods forHWND
. - uxtheme_Htheme
uxtheme
This trait is enabled with theuxtheme
feature, and provides methods forHTHEME
. - uxtheme_Hwnd
uxtheme
This trait is enabled with theuxtheme
feature, and provides methods forHWND
. - version_Hversioninfo
version
This trait is enabled with theversion
feature, and provides methods forHVERSIONINFO
.