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.
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
. -
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. -
GetRestrictedErrorInfo(
Pointer< winrtPointer< ppRestrictedErrorInfo) → intCOMObject> > - Gets the restricted error information object set by a previous call to SetRestrictedErrorInfo in the current logical thread.
-
GetRestrictedErrorInfo(
Pointer< winrtPointer< ppRestrictedErrorInfo) → intCOMObject> > - Gets the restricted error information object set by a previous call to SetRestrictedErrorInfo in the current logical thread.
-
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.
-
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.
-
RoGetMetaDataFile(
int name, Pointer< winrtCOMObject> metaDataDispenser, Pointer<IntPtr> metaDataFilePath, Pointer<Pointer< metaDataImport, Pointer<COMObject> >Uint32> typeDefToken) → int - Locates and retrieves the metadata file that describes the Application Binary Interface (ABI) for the specified typename.
-
RoGetMetaDataFile(
int name, Pointer< winrtCOMObject> metaDataDispenser, Pointer<IntPtr> metaDataFilePath, Pointer<Pointer< metaDataImport, Pointer<COMObject> >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.
-
RoIsApiContractMajorVersionPresent(
Pointer< winrtUtf16> name, int majorVersion, Pointer<Int32> 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<Int32> 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<Int32> 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<Int32> 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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.