winrt topic
Windows Runtime API
The Windows Runtime provides the latest generation of Windows APIs to apps running on Windows 8 or later. WinRT is an evolution of COM and the flat Win32 APIs that came before it, and is designed for projection into a variety of languages.
Classes
- BatteryReport winrt Class
- Provides properties that indicate the charge, capacity, and status of the battery.
- BatteryReport winrt Class
- Provides properties that indicate the charge, capacity, and status of the battery.
- Calendar winrt Class
-
Manipulates the representation of a
DateTime
within a given calendar and clock. - Calendar winrt Class
-
Manipulates the representation of a
DateTime
within a given calendar and clock. - DevicePicker winrt Class
- DevicePicker winrt Class
- DevicePickerFilter winrt Class
- Represents the filter used to determine which devices to show in the device picker. The filter parameters are OR-ed together to build the resulting filter.
- DevicePickerFilter winrt Class
- Represents the filter used to determine which devices to show in the device picker. The filter parameters are OR-ed together to build the resulting filter.
- FileOpenPicker winrt Class
- Represents a UI element that lets the user choose and open files. In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle.
- FileOpenPicker winrt Class
- Represents a UI element that lets the user choose and open files. In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle.
- Gamepad winrt Class
- Represents a gamepad.
- Gamepad winrt Class
- Represents a gamepad.
- Headset winrt Class
- Contains information about an audio headset attached to a gamepad.
- Headset winrt Class
- Contains information about an audio headset attached to a gamepad.
- HostName winrt Class
- Provides data for a hostname or an IP address.
- HostName winrt Class
- Provides data for a hostname or an IP address.
- IAsyncAction winrt Interface
- IAsyncAction winrt Interface
- IAsyncInfo winrt Interface
-
Supports asynchronous actions and operations.
IAsyncInfo
is a base interface forIAsyncAction
,IAsyncActionWithProgress<TProgress>
,IAsyncOperation<TResult>
andIAsyncOperationWithProgress<TResult,TProgress>
, each of which support combinations of return type and progress for an asynchronous method. - IAsyncInfo winrt Interface
-
Supports asynchronous actions and operations.
IAsyncInfo
is a base interface forIAsyncAction
,IAsyncActionWithProgress<TProgress>
,IAsyncOperation<TResult>
andIAsyncOperationWithProgress<TResult,TProgress>
, each of which support combinations of return type and progress for an asynchronous method. - IBatteryReport winrt Interface
- IBatteryReport winrt Interface
- ICalendar winrt Interface
- ICalendar winrt Interface
- IDevicePicker winrt Interface
- IDevicePicker winrt Interface
- IDevicePickerFilter winrt Interface
- IDevicePickerFilter winrt Interface
- IFileOpenPicker winrt Interface
- IFileOpenPicker winrt Interface
- IGameController winrt Interface
- IGameController winrt Interface
- IGameControllerBatteryInfo winrt Interface
- IGameControllerBatteryInfo winrt Interface
- IGamepad winrt Interface
- IGamepad winrt Interface
- IHeadset winrt Interface
- IHeadset winrt Interface
- IHostName winrt Interface
- IHostName winrt Interface
-
IIterable<
T> winrt Interface - Exposes an iterator that supports simple iteration over a collection of a specified type.
-
IIterable<
T> winrt Interface - Exposes an iterator that supports simple iteration over a collection of a specified type.
-
IIterator<
T> winrt Interface - Supports simple iteration over a collection.
-
IIterator<
T> winrt Interface - Supports simple iteration over a collection.
- IJsonArray winrt Interface
- IJsonArray winrt Interface
- IJsonObject winrt Interface
- IJsonObject winrt Interface
- IJsonObjectWithDefaultValues winrt Interface
- IJsonObjectWithDefaultValues winrt Interface
- IJsonValue winrt Interface
- IJsonValue winrt Interface
-
IKeyValuePair<
K, V> winrt Interface - Represents a key-value pair.
-
IKeyValuePair<
K, V> winrt Interface - Represents a key-value pair.
-
IMap<
K, V> winrt Interface - Represents an associative collection, also known as a map or a dictionary.
-
IMap<
K, V> winrt Interface - Represents an associative collection, also known as a map or a dictionary.
-
IMapView<
K, V> winrt Interface - Represents an immutable view into a map.
-
IMapView<
K, V> winrt Interface - Represents an immutable view into a map.
- INetworkAdapter winrt Interface
- INetworkAdapter winrt Interface
- INetworkInformationStatics winrt Interface
- INetworkInformationStatics winrt Interface
- INetworkItem winrt Interface
- INetworkItem winrt Interface
- IPedometerReading winrt Interface
- IPedometerReading winrt Interface
- IPhoneNumberFormatter winrt Interface
- IPhoneNumberFormatter winrt Interface
- IPInformation winrt Class
- Represents the association between an IP address and an adapter on the network.
- IPInformation winrt Class
- Represents the association between an IP address and an adapter on the network.
- IPrinting3DMultiplePropertyMaterial winrt Interface
- IPrinting3DMultiplePropertyMaterial winrt Interface
- IPropertySet winrt Interface
- Represents a collection of key-value pairs, correlating several other collection interfaces.
- IPropertySet winrt Interface
- Represents a collection of key-value pairs, correlating several other collection interfaces.
- IPropertyValue winrt Interface
- Represents a value in a property store.
- IPropertyValue winrt Interface
- Represents a value in a property store.
-
IReference<
T> winrt Interface - Enables arbitrary enumerations, structures, and delegate types to be used as property values.
-
IReference<
T> winrt Interface - Enables arbitrary enumerations, structures, and delegate types to be used as property values.
- IStorageItem winrt Interface
- Manipulates storage items (files and folders) and their contents, and provides information about them.
- IStorageItem winrt Interface
- Manipulates storage items (files and folders) and their contents, and provides information about them.
- IToastNotificationFactory winrt Interface
- IToastNotificationFactory winrt Interface
- IToastNotificationManagerStatics winrt Interface
- IToastNotificationManagerStatics winrt Interface
- IUISettings winrt Interface
- IUISettings winrt Interface
- IUserDataPathsStatics winrt Interface
- IUserDataPathsStatics winrt Interface
-
IVector<
T> winrt Interface - Represents a random-access collection of elements.
-
IVector<
T> winrt Interface - Represents a random-access collection of elements.
-
IVectorView<
T> winrt Interface - Represents an immutable view into a vector.
-
IVectorView<
T> winrt Interface - Represents an immutable view into a vector.
- JsonArray winrt Class
- Represents a JSON array.
- JsonArray winrt Class
- Represents a JSON array.
- JsonObject winrt Class
- Represents a JSON object containing a collection of name and JsonValue pairs.
- JsonObject winrt Class
- Represents a JSON object containing a collection of name and JsonValue pairs.
- JsonValue winrt Class
- Implements the IJsonValue interface which represents a JSON value.
- JsonValue winrt Class
- Implements the IJsonValue interface which represents a JSON value.
- MediaPropertySet winrt Class
- Represents a set of media properties.
- MediaPropertySet winrt Class
- Represents a set of media properties.
- NetworkAdapter winrt Class
- Represents a network adapter.
- NetworkAdapter winrt Class
- Represents a network adapter.
- NetworkItem winrt Class
- Represents a connected network.
- NetworkItem winrt Class
- Represents a connected network.
- PedometerReading winrt Class
- Provides an interface for a pedometer to measure the number of steps taken.
- PedometerReading winrt Class
- Provides an interface for a pedometer to measure the number of steps taken.
- PhoneNumberFormatter winrt Class
- Formats phone numbers.
- PhoneNumberFormatter winrt Class
- Formats phone numbers.
- Printing3DMultiplePropertyMaterial winrt Class
-
Represents a combination of properties and/or materials from the
material groups specified in
MaterialGroupIndices
. - Printing3DMultiplePropertyMaterial winrt Class
-
Represents a combination of properties and/or materials from the
material groups specified in
MaterialGroupIndices
. - PropertySet winrt Class
- Represents a property set, which is a set of PropertyValue objects with string keys.
- PropertySet winrt Class
- Represents a property set, which is a set of PropertyValue objects with string keys.
- PropertyValue winrt Class
- Represents a value in a property store (such as a PropertySet instance).
- PropertyValue winrt Class
- Represents a value in a property store (such as a PropertySet instance).
- StringMap winrt Class
- An associative collection, also known as a map or a dictionary.
- StringMap winrt Class
- An associative collection, also known as a map or a dictionary.
- ToastNotification winrt Class
- ToastNotification winrt Class
- UISettings winrt Class
- Contains a set of common app user interface settings and operations.
- UISettings winrt Class
- Contains a set of common app user interface settings and operations.
- UserDataPaths winrt Class
- Returns full paths for common user data folders. User data folders are based on the KNOWNFOLDERID naming pattern.
- UserDataPaths winrt Class
- Returns full paths for common user data folders. User data folders are based on the KNOWNFOLDERID naming pattern.
- ValueSet winrt Class
-
Implements a map with keys of type String and values of type Object.
Object must be a WinRT PropertyValue or ValueSet. As a
PropertyValue, it can be any type except PropertyType
InspectableArray
. This limitation exists to ensure that the value can be serialized; passed by value across a process boundary. - ValueSet winrt Class
-
Implements a map with keys of type String and values of type Object.
Object must be a WinRT PropertyValue or ValueSet. As a
PropertyValue, it can be any type except PropertyType
InspectableArray
. This limitation exists to ensure that the value can be serialized; passed by value across a process boundary.
Mixins
-
IAsyncOperation<
TResult> winrt Interface -
IAsyncOperation<
TResult> winrt Interface
Functions
-
convertFromHString(
int hstring) → String winrt -
Takes a
HSTRING
(a WinRT String handle), and converts it to a DartString
. -
convertFromHString(
int hstring) → String winrt -
Takes a
HSTRING
(a WinRT String handle), and converts it to a DartString
. -
convertFromHString(
int hstring) → String winrt -
Takes a
HSTRING
(a WinRT String handle), and converts it to a DartString
. -
convertToHString(
String string) → int winrt -
Takes a Dart String and converts it to an
HSTRING
(a WinRT String), returning an integer handle. -
convertToHString(
String string) → int winrt -
Takes a Dart String and converts it to an
HSTRING
(a WinRT String), returning an integer handle. -
convertToHString(
String string) → int winrt -
Takes a Dart String and converts it to an
HSTRING
(a WinRT String), returning an integer handle. -
CreateActivationFactory(
String className, String iid, {Allocator allocator = calloc}) → Pointer< winrtCOMObject> -
Creates the activation factory for the specified runtime class using the
className
andiid
. -
CreateActivationFactory(
String className, String iid, {Allocator allocator = calloc}) → Pointer< winrtCOMObject> -
Creates the activation factory for the specified runtime class using the
className
andiid
. -
CreateObject(
String className, String iid) → Pointer< winrtCOMObject> - Creates a WinRT object.
-
CreateObject(
String className, String iid) → Pointer< winrtCOMObject> - Creates a WinRT object.
-
MetaDataGetDispenser(
Pointer< winrtGUID> rclsid, Pointer<GUID> riid, Pointer<Pointer< ppv) → intNativeType> > - Creates a dispenser class.
-
MetaDataGetDispenser(
Pointer< winrtGUID> rclsid, Pointer<GUID> riid, Pointer<Pointer< ppv) → intNativeType> > - Creates a dispenser class.
-
MetaDataGetDispenser(
Pointer< winrtGUID> rclsid, Pointer<GUID> riid, Pointer<Pointer< ppv) → intNativeType> > - Creates a dispenser class.
-
RoActivateInstance(
int activatableClassId, Pointer< winrtPointer< instance) → intCOMObject> > - Activates the specified Windows Runtime class.
-
RoActivateInstance(
int activatableClassId, Pointer< winrtPointer< instance) → intCOMObject> > - Activates the specified Windows Runtime class.
-
RoActivateInstance(
int activatableClassId, Pointer< winrtPointer< instance) → intCOMObject> > - Activates the specified Windows Runtime class.
-
RoGetActivationFactory(
int activatableClassId, Pointer< winrtGUID> iid, Pointer<Pointer< factory) → intNativeType> > - Gets the activation factory for the specified runtime class.
-
RoGetActivationFactory(
int activatableClassId, Pointer< winrtGUID> iid, Pointer<Pointer< factory) → intNativeType> > - Gets the activation factory for the specified runtime class.
-
RoGetActivationFactory(
int activatableClassId, Pointer< winrtGUID> iid, Pointer<Pointer< factory) → intNativeType> > - Gets the activation factory for the specified runtime class.
-
RoGetApartmentIdentifier(
Pointer< winrtUint64> apartmentIdentifier) → int - Gets a unique identifier for the current apartment.
-
RoGetApartmentIdentifier(
Pointer< winrtUint64> apartmentIdentifier) → int - Gets a unique identifier for the current apartment.
-
RoGetApartmentIdentifier(
Pointer< winrtUint64> apartmentIdentifier) → int - Gets a unique identifier for the current apartment.
-
RoGetMetaDataFile(
int name, Pointer< winrtIntPtr> metaDataDispenser, Pointer<IntPtr> metaDataFilePath, Pointer<Pointer< metaDataImport, Pointer<NativeType> >Uint32> typeDefToken) → int - Locates and retrieves the metadata file that describes the Application Binary Interface (ABI) for the specified typename.
-
RoGetMetaDataFile(
int name, Pointer< winrtIntPtr> metaDataDispenser, Pointer<IntPtr> metaDataFilePath, Pointer<Pointer< metaDataImport, Pointer<NativeType> >Uint32> typeDefToken) → int - Locates and retrieves the metadata file that describes the Application Binary Interface (ABI) for the specified typename.
-
RoGetMetaDataFile(
int name, Pointer< winrtIntPtr> metaDataDispenser, Pointer<IntPtr> metaDataFilePath, Pointer<Pointer< metaDataImport, Pointer<NativeType> >Uint32> typeDefToken) → int - Locates and retrieves the metadata file that describes the Application Binary Interface (ABI) for the specified typename.
-
RoInitialize(
int initType) → int winrt - Initializes the Windows Runtime on the current thread with the specified concurrency model.
-
RoInitialize(
int initType) → int winrt - Initializes the Windows Runtime on the current thread with the specified concurrency model.
-
RoInitialize(
int initType) → int winrt - Initializes the Windows Runtime on the current thread with the specified concurrency model.
-
RoIsApiContractMajorVersionPresent(
Pointer< winrtUtf16> name, int majorVersion, Pointer<BOOL> present) → int - Returns true or false to indicate whether the API contract with the specified name and major version number is present.
-
RoIsApiContractMajorVersionPresent(
Pointer< winrtUtf16> name, int majorVersion, Pointer<BOOL> present) → int - Returns true or false to indicate whether the API contract with the specified name and major version number is present.
-
RoIsApiContractMajorVersionPresent(
Pointer< winrtUtf16> name, int majorVersion, Pointer<BOOL> present) → int - Returns true or false to indicate whether the API contract with the specified name and major version number is present.
-
RoIsApiContractPresent(
Pointer< winrtUtf16> name, int majorVersion, int minorVersion, Pointer<BOOL> present) → int - Returns true or false to indicate whether the API contract with the specified name and major and minor version number is present.
-
RoIsApiContractPresent(
Pointer< winrtUtf16> name, int majorVersion, int minorVersion, Pointer<BOOL> present) → int - Returns true or false to indicate whether the API contract with the specified name and major and minor version number is present.
-
RoIsApiContractPresent(
Pointer< winrtUtf16> name, int majorVersion, int minorVersion, Pointer<BOOL> present) → int - Returns true or false to indicate whether the API contract with the specified name and major and minor version number is present.
-
RoUninitialize(
) → void winrt - Closes the Windows Runtime on the current thread.
-
RoUninitialize(
) → void winrt - Closes the Windows Runtime on the current thread.
-
RoUninitialize(
) → void winrt - Closes the Windows Runtime on the current thread.
-
WindowsCompareStringOrdinal(
int string1, int string2, Pointer< winrtInt32> result) → int - Compares two specified HSTRING objects and returns an integer that indicates their relative position in a sort order.
-
WindowsCompareStringOrdinal(
int string1, int string2, Pointer< winrtInt32> result) → int - Compares two specified HSTRING objects and returns an integer that indicates their relative position in a sort order.
-
WindowsCompareStringOrdinal(
int string1, int string2, Pointer< winrtInt32> result) → int - Compares two specified HSTRING objects and returns an integer that indicates their relative position in a sort order.
-
WindowsConcatString(
int string1, int string2, Pointer< winrtIntPtr> newString) → int - Concatenates two specified strings.
-
WindowsConcatString(
int string1, int string2, Pointer< winrtIntPtr> newString) → int - Concatenates two specified strings.
-
WindowsConcatString(
int string1, int string2, Pointer< winrtIntPtr> newString) → int - Concatenates two specified strings.
-
WindowsCreateString(
Pointer< winrtUtf16> sourceString, int length, Pointer<IntPtr> string) → int - Creates a new HSTRING based on the specified source string.
-
WindowsCreateString(
Pointer< winrtUtf16> sourceString, int length, Pointer<IntPtr> string) → int - Creates a new HSTRING based on the specified source string.
-
WindowsCreateString(
Pointer< winrtUtf16> sourceString, int length, Pointer<IntPtr> string) → int - Creates a new HSTRING based on the specified source string.
-
WindowsDeleteString(
int string) → int winrt - Decrements the reference count of a string buffer.
-
WindowsDeleteString(
int string) → int winrt - Decrements the reference count of a string buffer.
-
WindowsDeleteString(
int string) → int winrt - Decrements the reference count of a string buffer.
-
WindowsDeleteStringBuffer(
int bufferHandle) → int winrt - Discards a preallocated string buffer if it was not promoted to an HSTRING.
-
WindowsDeleteStringBuffer(
int bufferHandle) → int winrt - Discards a preallocated string buffer if it was not promoted to an HSTRING.
-
WindowsDeleteStringBuffer(
int bufferHandle) → int winrt - Discards a preallocated string buffer if it was not promoted to an HSTRING.
-
WindowsDuplicateString(
int string, Pointer< winrtIntPtr> newString) → int - Creates a copy of the specified string.
-
WindowsDuplicateString(
int string, Pointer< winrtIntPtr> newString) → int - Creates a copy of the specified string.
-
WindowsDuplicateString(
int string, Pointer< winrtIntPtr> newString) → int - Creates a copy of the specified string.
-
WindowsGetStringLen(
int string) → int winrt - Gets the length, in Unicode characters, of the specified string.
-
WindowsGetStringLen(
int string) → int winrt - Gets the length, in Unicode characters, of the specified string.
-
WindowsGetStringLen(
int string) → int winrt - Gets the length, in Unicode characters, of the specified string.
-
WindowsGetStringRawBuffer(
int string, Pointer< winrtUint32> length) → Pointer<Utf16> - Retrieves the backing buffer for the specified string.
-
WindowsGetStringRawBuffer(
int string, Pointer< winrtUint32> length) → Pointer<Utf16> - Retrieves the backing buffer for the specified string.
-
WindowsGetStringRawBuffer(
int string, Pointer< winrtUint32> length) → Pointer<Utf16> - Retrieves the backing buffer for the specified string.
-
WindowsIsStringEmpty(
int string) → int winrt - Indicates whether the specified string is the empty string.
-
WindowsIsStringEmpty(
int string) → int winrt - Indicates whether the specified string is the empty string.
-
WindowsIsStringEmpty(
int string) → int winrt - Indicates whether the specified string is the empty string.
-
WindowsPreallocateStringBuffer(
int length, Pointer< winrtPointer< charBuffer, Pointer<Uint16> >IntPtr> bufferHandle) → int - Allocates a mutable character buffer for use in HSTRING creation.
-
WindowsPreallocateStringBuffer(
int length, Pointer< winrtPointer< charBuffer, Pointer<Uint16> >IntPtr> bufferHandle) → int - Allocates a mutable character buffer for use in HSTRING creation.
-
WindowsPreallocateStringBuffer(
int length, Pointer< winrtPointer< charBuffer, Pointer<Uint16> >IntPtr> bufferHandle) → int - Allocates a mutable character buffer for use in HSTRING creation.
-
WindowsPromoteStringBuffer(
int bufferHandle, Pointer< winrtIntPtr> string) → int - Creates an HSTRING from the specified HSTRING_BUFFER.
-
WindowsPromoteStringBuffer(
int bufferHandle, Pointer< winrtIntPtr> string) → int - Creates an HSTRING from the specified HSTRING_BUFFER.
-
WindowsPromoteStringBuffer(
int bufferHandle, Pointer< winrtIntPtr> string) → int - Creates an HSTRING from the specified HSTRING_BUFFER.
-
WindowsReplaceString(
int string, int stringReplaced, int stringReplaceWith, Pointer< winrtIntPtr> newString) → int - Replaces all occurrences of a set of characters in the specified string with another set of characters to create a new string.
-
WindowsReplaceString(
int string, int stringReplaced, int stringReplaceWith, Pointer< winrtIntPtr> newString) → int - Replaces all occurrences of a set of characters in the specified string with another set of characters to create a new string.
-
WindowsReplaceString(
int string, int stringReplaced, int stringReplaceWith, Pointer< winrtIntPtr> newString) → int - Replaces all occurrences of a set of characters in the specified string with another set of characters to create a new string.
-
WindowsStringHasEmbeddedNull(
int string, Pointer< winrtInt32> hasEmbedNull) → int - Indicates whether the specified string has embedded null characters.
-
WindowsStringHasEmbeddedNull(
int string, Pointer< winrtInt32> hasEmbedNull) → int - Indicates whether the specified string has embedded null characters.
-
WindowsStringHasEmbeddedNull(
int string, Pointer< winrtInt32> hasEmbedNull) → int - Indicates whether the specified string has embedded null characters.
-
WindowsSubstring(
int string, int startIndex, Pointer< winrtIntPtr> newString) → int - Retrieves a substring from the specified string. The substring starts at the specified character position.
-
WindowsSubstring(
int string, int startIndex, Pointer< winrtIntPtr> newString) → int - Retrieves a substring from the specified string. The substring starts at the specified character position.
-
WindowsSubstring(
int string, int startIndex, Pointer< winrtIntPtr> newString) → int - Retrieves a substring from the specified string. The substring starts at the specified character position.
-
WindowsSubstringWithSpecifiedLength(
int string, int startIndex, int length, Pointer< winrtIntPtr> newString) → int - Retrieves a substring from the specified string. The substring starts at a specified character position and has a specified length.
-
WindowsSubstringWithSpecifiedLength(
int string, int startIndex, int length, Pointer< winrtIntPtr> newString) → int - Retrieves a substring from the specified string. The substring starts at a specified character position and has a specified length.
-
WindowsSubstringWithSpecifiedLength(
int string, int startIndex, int length, Pointer< winrtIntPtr> newString) → int - Retrieves a substring from the specified string. The substring starts at a specified character position and has a specified length.
-
WindowsTrimStringEnd(
int string, int trimString, Pointer< winrtIntPtr> newString) → int - Removes all trailing occurrences of a specified set of characters from the source string.
-
WindowsTrimStringEnd(
int string, int trimString, Pointer< winrtIntPtr> newString) → int - Removes all trailing occurrences of a specified set of characters from the source string.
-
WindowsTrimStringEnd(
int string, int trimString, Pointer< winrtIntPtr> newString) → int - Removes all trailing occurrences of a specified set of characters from the source string.
-
WindowsTrimStringStart(
int string, int trimString, Pointer< winrtIntPtr> newString) → int - Removes all leading occurrences of a specified set of characters from the source string.
-
WindowsTrimStringStart(
int string, int trimString, Pointer< winrtIntPtr> newString) → int - Removes all leading occurrences of a specified set of characters from the source string.
-
WindowsTrimStringStart(
int string, int trimString, Pointer< winrtIntPtr> newString) → int - Removes all leading occurrences of a specified set of characters from the source string.
-
winrtInitialize(
) → void winrt - Initializes the Windows Runtime on the current thread with a single-threaded concurrency model.
-
winrtInitialize(
) → void winrt - Initializes the Windows Runtime on the current thread with a single-threaded concurrency model.
-
winrtUninitialize(
) → void winrt - Closes the Windows Runtime on the current thread.
-
winrtUninitialize(
) → void winrt - Closes the Windows Runtime on the current thread.