]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Win32/System/WinRT/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Win32 / System / WinRT / mod.rs
1 #[cfg(feature = "Win32_System_WinRT_AllJoyn")]
2 pub mod AllJoyn;
3 #[cfg(feature = "Win32_System_WinRT_Composition")]
4 pub mod Composition;
5 #[cfg(feature = "Win32_System_WinRT_CoreInputView")]
6 pub mod CoreInputView;
7 #[cfg(feature = "Win32_System_WinRT_Direct3D11")]
8 pub mod Direct3D11;
9 #[cfg(feature = "Win32_System_WinRT_Display")]
10 pub mod Display;
11 #[cfg(feature = "Win32_System_WinRT_Graphics")]
12 pub mod Graphics;
13 #[cfg(feature = "Win32_System_WinRT_Holographic")]
14 pub mod Holographic;
15 #[cfg(feature = "Win32_System_WinRT_Isolation")]
16 pub mod Isolation;
17 #[cfg(feature = "Win32_System_WinRT_ML")]
18 pub mod ML;
19 #[cfg(feature = "Win32_System_WinRT_Media")]
20 pub mod Media;
21 #[cfg(feature = "Win32_System_WinRT_Pdf")]
22 pub mod Pdf;
23 #[cfg(feature = "Win32_System_WinRT_Printing")]
24 pub mod Printing;
25 #[cfg(feature = "Win32_System_WinRT_Shell")]
26 pub mod Shell;
27 #[cfg(feature = "Win32_System_WinRT_Storage")]
28 pub mod Storage;
29 #[cfg(feature = "Win32_System_WinRT_Xaml")]
30 pub mod Xaml;
31 #[link(name = "windows")]
32 extern "system" {
33 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
34 pub fn CoDecodeProxy(dwclientpid: u32, ui64proxyaddress: u64, pserverinformation: *mut ServerInformation) -> ::windows_sys::core::HRESULT;
35 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
36 pub fn CreateControlInput(riid: *const ::windows_sys::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
37 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
38 pub fn CreateControlInputEx(pcorewindow: ::windows_sys::core::IUnknown, riid: *const ::windows_sys::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
39 #[doc = "*Required features: `\"Win32_System_WinRT\"`, `\"System\"`*"]
40 #[cfg(feature = "System")]
41 pub fn CreateDispatcherQueueController(options: DispatcherQueueOptions, dispatcherqueuecontroller: *mut super::super::super::System::DispatcherQueueController) -> ::windows_sys::core::HRESULT;
42 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
43 pub fn CreateRandomAccessStreamOnFile(filepath: ::windows_sys::core::PCWSTR, accessmode: u32, riid: *const ::windows_sys::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
44 #[doc = "*Required features: `\"Win32_System_WinRT\"`, `\"Win32_System_Com\"`*"]
45 #[cfg(feature = "Win32_System_Com")]
46 pub fn CreateRandomAccessStreamOverStream(stream: super::Com::IStream, options: BSOS_OPTIONS, riid: *const ::windows_sys::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
47 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
48 pub fn CreateStreamOverRandomAccessStream(randomaccessstream: ::windows_sys::core::IUnknown, riid: *const ::windows_sys::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
49 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
50 pub fn GetRestrictedErrorInfo(pprestrictederrorinfo: *mut IRestrictedErrorInfo) -> ::windows_sys::core::HRESULT;
51 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
52 pub fn HSTRING_UserFree(param0: *const u32, param1: *const ::windows_sys::core::HSTRING);
53 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
54 pub fn HSTRING_UserFree64(param0: *const u32, param1: *const ::windows_sys::core::HSTRING);
55 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
56 pub fn HSTRING_UserMarshal(param0: *const u32, param1: *mut u8, param2: *const ::windows_sys::core::HSTRING) -> *mut u8;
57 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
58 pub fn HSTRING_UserMarshal64(param0: *const u32, param1: *mut u8, param2: *const ::windows_sys::core::HSTRING) -> *mut u8;
59 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
60 pub fn HSTRING_UserSize(param0: *const u32, param1: u32, param2: *const ::windows_sys::core::HSTRING) -> u32;
61 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
62 pub fn HSTRING_UserSize64(param0: *const u32, param1: u32, param2: *const ::windows_sys::core::HSTRING) -> u32;
63 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
64 pub fn HSTRING_UserUnmarshal(param0: *const u32, param1: *const u8, param2: *mut ::windows_sys::core::HSTRING) -> *mut u8;
65 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
66 pub fn HSTRING_UserUnmarshal64(param0: *const u32, param1: *const u8, param2: *mut ::windows_sys::core::HSTRING) -> *mut u8;
67 #[doc = "*Required features: `\"Win32_System_WinRT\"`, `\"Win32_Foundation\"`*"]
68 #[cfg(feature = "Win32_Foundation")]
69 pub fn IsErrorPropagationEnabled() -> super::super::Foundation::BOOL;
70 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
71 pub fn MetaDataGetDispenser(rclsid: *const ::windows_sys::core::GUID, riid: *const ::windows_sys::core::GUID, ppv: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
72 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
73 pub fn RoActivateInstance(activatableclassid: ::windows_sys::core::HSTRING, instance: *mut ::windows_sys::core::IInspectable) -> ::windows_sys::core::HRESULT;
74 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
75 pub fn RoCaptureErrorContext(hr: ::windows_sys::core::HRESULT) -> ::windows_sys::core::HRESULT;
76 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
77 pub fn RoClearError();
78 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
79 pub fn RoFailFastWithErrorContext(hrerror: ::windows_sys::core::HRESULT);
80 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
81 pub fn RoFreeParameterizedTypeExtra(extra: ROPARAMIIDHANDLE);
82 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
83 pub fn RoGetActivationFactory(activatableclassid: ::windows_sys::core::HSTRING, iid: *const ::windows_sys::core::GUID, factory: *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT;
84 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
85 pub fn RoGetAgileReference(options: AgileReferenceOptions, riid: *const ::windows_sys::core::GUID, punk: ::windows_sys::core::IUnknown, ppagilereference: *mut IAgileReference) -> ::windows_sys::core::HRESULT;
86 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
87 pub fn RoGetApartmentIdentifier(apartmentidentifier: *mut u64) -> ::windows_sys::core::HRESULT;
88 #[doc = "*Required features: `\"Win32_System_WinRT\"`, `\"Win32_System_Com_Marshal\"`*"]
89 #[cfg(feature = "Win32_System_Com_Marshal")]
90 pub fn RoGetBufferMarshaler(buffermarshaler: *mut super::Com::Marshal::IMarshal) -> ::windows_sys::core::HRESULT;
91 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
92 pub fn RoGetErrorReportingFlags(pflags: *mut u32) -> ::windows_sys::core::HRESULT;
93 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
94 pub fn RoGetMatchingRestrictedErrorInfo(hrin: ::windows_sys::core::HRESULT, pprestrictederrorinfo: *mut IRestrictedErrorInfo) -> ::windows_sys::core::HRESULT;
95 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
96 pub fn RoGetParameterizedTypeInstanceIID(nameelementcount: u32, nameelements: *const ::windows_sys::core::PWSTR, metadatalocator: IRoMetaDataLocator, iid: *mut ::windows_sys::core::GUID, pextra: *mut ROPARAMIIDHANDLE) -> ::windows_sys::core::HRESULT;
97 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
98 pub fn RoGetServerActivatableClasses(servername: ::windows_sys::core::HSTRING, activatableclassids: *mut *mut ::windows_sys::core::HSTRING, count: *mut u32) -> ::windows_sys::core::HRESULT;
99 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
100 pub fn RoInitialize(inittype: RO_INIT_TYPE) -> ::windows_sys::core::HRESULT;
101 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
102 pub fn RoInspectCapturedStackBackTrace(targeterrorinfoaddress: usize, machine: u16, readmemorycallback: PINSPECT_MEMORY_CALLBACK, context: *const ::core::ffi::c_void, framecount: *mut u32, targetbacktraceaddress: *mut usize) -> ::windows_sys::core::HRESULT;
103 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
104 pub fn RoInspectThreadErrorInfo(targettebaddress: usize, machine: u16, readmemorycallback: PINSPECT_MEMORY_CALLBACK, context: *const ::core::ffi::c_void, targeterrorinfoaddress: *mut usize) -> ::windows_sys::core::HRESULT;
105 #[doc = "*Required features: `\"Win32_System_WinRT\"`, `\"Win32_Foundation\"`*"]
106 #[cfg(feature = "Win32_Foundation")]
107 pub fn RoOriginateError(error: ::windows_sys::core::HRESULT, message: ::windows_sys::core::HSTRING) -> super::super::Foundation::BOOL;
108 #[doc = "*Required features: `\"Win32_System_WinRT\"`, `\"Win32_Foundation\"`*"]
109 #[cfg(feature = "Win32_Foundation")]
110 pub fn RoOriginateErrorW(error: ::windows_sys::core::HRESULT, cchmax: u32, message: ::windows_sys::core::PCWSTR) -> super::super::Foundation::BOOL;
111 #[doc = "*Required features: `\"Win32_System_WinRT\"`, `\"Win32_Foundation\"`*"]
112 #[cfg(feature = "Win32_Foundation")]
113 pub fn RoOriginateLanguageException(error: ::windows_sys::core::HRESULT, message: ::windows_sys::core::HSTRING, languageexception: ::windows_sys::core::IUnknown) -> super::super::Foundation::BOOL;
114 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
115 pub fn RoParameterizedTypeExtraGetTypeSignature(extra: ROPARAMIIDHANDLE) -> ::windows_sys::core::PSTR;
116 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
117 pub fn RoRegisterActivationFactories(activatableclassids: *const ::windows_sys::core::HSTRING, activationfactorycallbacks: *const isize, count: u32, cookie: *mut isize) -> ::windows_sys::core::HRESULT;
118 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
119 pub fn RoRegisterForApartmentShutdown(callbackobject: IApartmentShutdown, apartmentidentifier: *mut u64, regcookie: *mut APARTMENT_SHUTDOWN_REGISTRATION_COOKIE) -> ::windows_sys::core::HRESULT;
120 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
121 pub fn RoReportFailedDelegate(punkdelegate: ::windows_sys::core::IUnknown, prestrictederrorinfo: IRestrictedErrorInfo) -> ::windows_sys::core::HRESULT;
122 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
123 pub fn RoReportUnhandledError(prestrictederrorinfo: IRestrictedErrorInfo) -> ::windows_sys::core::HRESULT;
124 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
125 pub fn RoResolveRestrictedErrorInfoReference(reference: ::windows_sys::core::PCWSTR, pprestrictederrorinfo: *mut IRestrictedErrorInfo) -> ::windows_sys::core::HRESULT;
126 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
127 pub fn RoRevokeActivationFactories(cookie: isize);
128 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
129 pub fn RoSetErrorReportingFlags(flags: u32) -> ::windows_sys::core::HRESULT;
130 #[doc = "*Required features: `\"Win32_System_WinRT\"`, `\"Win32_Foundation\"`*"]
131 #[cfg(feature = "Win32_Foundation")]
132 pub fn RoTransformError(olderror: ::windows_sys::core::HRESULT, newerror: ::windows_sys::core::HRESULT, message: ::windows_sys::core::HSTRING) -> super::super::Foundation::BOOL;
133 #[doc = "*Required features: `\"Win32_System_WinRT\"`, `\"Win32_Foundation\"`*"]
134 #[cfg(feature = "Win32_Foundation")]
135 pub fn RoTransformErrorW(olderror: ::windows_sys::core::HRESULT, newerror: ::windows_sys::core::HRESULT, cchmax: u32, message: ::windows_sys::core::PCWSTR) -> super::super::Foundation::BOOL;
136 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
137 pub fn RoUninitialize();
138 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
139 pub fn RoUnregisterForApartmentShutdown(regcookie: APARTMENT_SHUTDOWN_REGISTRATION_COOKIE) -> ::windows_sys::core::HRESULT;
140 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
141 pub fn SetRestrictedErrorInfo(prestrictederrorinfo: IRestrictedErrorInfo) -> ::windows_sys::core::HRESULT;
142 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
143 pub fn WindowsCompareStringOrdinal(string1: ::windows_sys::core::HSTRING, string2: ::windows_sys::core::HSTRING, result: *mut i32) -> ::windows_sys::core::HRESULT;
144 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
145 pub fn WindowsConcatString(string1: ::windows_sys::core::HSTRING, string2: ::windows_sys::core::HSTRING, newstring: *mut ::windows_sys::core::HSTRING) -> ::windows_sys::core::HRESULT;
146 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
147 pub fn WindowsCreateString(sourcestring: ::windows_sys::core::PCWSTR, length: u32, string: *mut ::windows_sys::core::HSTRING) -> ::windows_sys::core::HRESULT;
148 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
149 pub fn WindowsCreateStringReference(sourcestring: ::windows_sys::core::PCWSTR, length: u32, hstringheader: *mut HSTRING_HEADER, string: *mut ::windows_sys::core::HSTRING) -> ::windows_sys::core::HRESULT;
150 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
151 pub fn WindowsDeleteString(string: ::windows_sys::core::HSTRING) -> ::windows_sys::core::HRESULT;
152 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
153 pub fn WindowsDeleteStringBuffer(bufferhandle: HSTRING_BUFFER) -> ::windows_sys::core::HRESULT;
154 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
155 pub fn WindowsDuplicateString(string: ::windows_sys::core::HSTRING, newstring: *mut ::windows_sys::core::HSTRING) -> ::windows_sys::core::HRESULT;
156 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
157 pub fn WindowsGetStringLen(string: ::windows_sys::core::HSTRING) -> u32;
158 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
159 pub fn WindowsGetStringRawBuffer(string: ::windows_sys::core::HSTRING, length: *mut u32) -> ::windows_sys::core::PWSTR;
160 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
161 pub fn WindowsInspectString(targethstring: usize, machine: u16, callback: PINSPECT_HSTRING_CALLBACK, context: *const ::core::ffi::c_void, length: *mut u32, targetstringaddress: *mut usize) -> ::windows_sys::core::HRESULT;
162 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
163 pub fn WindowsInspectString2(targethstring: u64, machine: u16, callback: PINSPECT_HSTRING_CALLBACK2, context: *const ::core::ffi::c_void, length: *mut u32, targetstringaddress: *mut u64) -> ::windows_sys::core::HRESULT;
164 #[doc = "*Required features: `\"Win32_System_WinRT\"`, `\"Win32_Foundation\"`*"]
165 #[cfg(feature = "Win32_Foundation")]
166 pub fn WindowsIsStringEmpty(string: ::windows_sys::core::HSTRING) -> super::super::Foundation::BOOL;
167 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
168 pub fn WindowsPreallocateStringBuffer(length: u32, charbuffer: *mut *mut u16, bufferhandle: *mut HSTRING_BUFFER) -> ::windows_sys::core::HRESULT;
169 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
170 pub fn WindowsPromoteStringBuffer(bufferhandle: HSTRING_BUFFER, string: *mut ::windows_sys::core::HSTRING) -> ::windows_sys::core::HRESULT;
171 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
172 pub fn WindowsReplaceString(string: ::windows_sys::core::HSTRING, stringreplaced: ::windows_sys::core::HSTRING, stringreplacewith: ::windows_sys::core::HSTRING, newstring: *mut ::windows_sys::core::HSTRING) -> ::windows_sys::core::HRESULT;
173 #[doc = "*Required features: `\"Win32_System_WinRT\"`, `\"Win32_Foundation\"`*"]
174 #[cfg(feature = "Win32_Foundation")]
175 pub fn WindowsStringHasEmbeddedNull(string: ::windows_sys::core::HSTRING, hasembednull: *mut super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT;
176 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
177 pub fn WindowsSubstring(string: ::windows_sys::core::HSTRING, startindex: u32, newstring: *mut ::windows_sys::core::HSTRING) -> ::windows_sys::core::HRESULT;
178 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
179 pub fn WindowsSubstringWithSpecifiedLength(string: ::windows_sys::core::HSTRING, startindex: u32, length: u32, newstring: *mut ::windows_sys::core::HSTRING) -> ::windows_sys::core::HRESULT;
180 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
181 pub fn WindowsTrimStringEnd(string: ::windows_sys::core::HSTRING, trimstring: ::windows_sys::core::HSTRING, newstring: *mut ::windows_sys::core::HSTRING) -> ::windows_sys::core::HRESULT;
182 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
183 pub fn WindowsTrimStringStart(string: ::windows_sys::core::HSTRING, trimstring: ::windows_sys::core::HSTRING, newstring: *mut ::windows_sys::core::HSTRING) -> ::windows_sys::core::HRESULT;
184 }
185 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
186 pub type ACTIVATIONTYPE = i32;
187 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
188 pub const ACTIVATIONTYPE_UNCATEGORIZED: ACTIVATIONTYPE = 0i32;
189 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
190 pub const ACTIVATIONTYPE_FROM_MONIKER: ACTIVATIONTYPE = 1i32;
191 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
192 pub const ACTIVATIONTYPE_FROM_DATA: ACTIVATIONTYPE = 2i32;
193 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
194 pub const ACTIVATIONTYPE_FROM_STORAGE: ACTIVATIONTYPE = 4i32;
195 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
196 pub const ACTIVATIONTYPE_FROM_STREAM: ACTIVATIONTYPE = 8i32;
197 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
198 pub const ACTIVATIONTYPE_FROM_FILE: ACTIVATIONTYPE = 16i32;
199 pub type APARTMENT_SHUTDOWN_REGISTRATION_COOKIE = isize;
200 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
201 pub type AgileReferenceOptions = i32;
202 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
203 pub const AGILEREFERENCE_DEFAULT: AgileReferenceOptions = 0i32;
204 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
205 pub const AGILEREFERENCE_DELAYEDMARSHAL: AgileReferenceOptions = 1i32;
206 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
207 pub type BSOS_OPTIONS = i32;
208 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
209 pub const BSOS_DEFAULT: BSOS_OPTIONS = 0i32;
210 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
211 pub const BSOS_PREFERDESTINATIONSTREAM: BSOS_OPTIONS = 1i32;
212 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
213 pub type CASTING_CONNECTION_ERROR_STATUS = i32;
214 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
215 pub const CASTING_CONNECTION_ERROR_STATUS_SUCCEEDED: CASTING_CONNECTION_ERROR_STATUS = 0i32;
216 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
217 pub const CASTING_CONNECTION_ERROR_STATUS_DEVICE_DID_NOT_RESPOND: CASTING_CONNECTION_ERROR_STATUS = 1i32;
218 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
219 pub const CASTING_CONNECTION_ERROR_STATUS_DEVICE_ERROR: CASTING_CONNECTION_ERROR_STATUS = 2i32;
220 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
221 pub const CASTING_CONNECTION_ERROR_STATUS_DEVICE_LOCKED: CASTING_CONNECTION_ERROR_STATUS = 3i32;
222 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
223 pub const CASTING_CONNECTION_ERROR_STATUS_PROTECTED_PLAYBACK_FAILED: CASTING_CONNECTION_ERROR_STATUS = 4i32;
224 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
225 pub const CASTING_CONNECTION_ERROR_STATUS_INVALID_CASTING_SOURCE: CASTING_CONNECTION_ERROR_STATUS = 5i32;
226 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
227 pub const CASTING_CONNECTION_ERROR_STATUS_UNKNOWN: CASTING_CONNECTION_ERROR_STATUS = 6i32;
228 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
229 pub type CASTING_CONNECTION_STATE = i32;
230 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
231 pub const CASTING_CONNECTION_STATE_DISCONNECTED: CASTING_CONNECTION_STATE = 0i32;
232 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
233 pub const CASTING_CONNECTION_STATE_CONNECTED: CASTING_CONNECTION_STATE = 1i32;
234 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
235 pub const CASTING_CONNECTION_STATE_RENDERING: CASTING_CONNECTION_STATE = 2i32;
236 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
237 pub const CASTING_CONNECTION_STATE_DISCONNECTING: CASTING_CONNECTION_STATE = 3i32;
238 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
239 pub const CASTING_CONNECTION_STATE_CONNECTING: CASTING_CONNECTION_STATE = 4i32;
240 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
241 pub const CastingSourceInfo_Property_CastingTypes: &str = "CastingTypes";
242 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
243 pub const CastingSourceInfo_Property_PreferredSourceUriScheme: &str = "PreferredSourceUriScheme";
244 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
245 pub const CastingSourceInfo_Property_ProtectedMedia: &str = "ProtectedMedia";
246 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
247 pub type DISPATCHERQUEUE_THREAD_APARTMENTTYPE = i32;
248 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
249 pub const DQTAT_COM_NONE: DISPATCHERQUEUE_THREAD_APARTMENTTYPE = 0i32;
250 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
251 pub const DQTAT_COM_ASTA: DISPATCHERQUEUE_THREAD_APARTMENTTYPE = 1i32;
252 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
253 pub const DQTAT_COM_STA: DISPATCHERQUEUE_THREAD_APARTMENTTYPE = 2i32;
254 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
255 pub type DISPATCHERQUEUE_THREAD_TYPE = i32;
256 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
257 pub const DQTYPE_THREAD_DEDICATED: DISPATCHERQUEUE_THREAD_TYPE = 1i32;
258 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
259 pub const DQTYPE_THREAD_CURRENT: DISPATCHERQUEUE_THREAD_TYPE = 2i32;
260 #[repr(C)]
261 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
262 pub struct DispatcherQueueOptions {
263 pub dwSize: u32,
264 pub threadType: DISPATCHERQUEUE_THREAD_TYPE,
265 pub apartmentType: DISPATCHERQUEUE_THREAD_APARTMENTTYPE,
266 }
267 impl ::core::marker::Copy for DispatcherQueueOptions {}
268 impl ::core::clone::Clone for DispatcherQueueOptions {
269 fn clone(&self) -> Self {
270 *self
271 }
272 }
273 #[repr(C)]
274 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
275 pub struct EventRegistrationToken {
276 pub value: i64,
277 }
278 impl ::core::marker::Copy for EventRegistrationToken {}
279 impl ::core::clone::Clone for EventRegistrationToken {
280 fn clone(&self) -> Self {
281 *self
282 }
283 }
284 pub type HSTRING_BUFFER = isize;
285 #[repr(C)]
286 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
287 pub struct HSTRING_HEADER {
288 pub flags: u32,
289 pub length: u32,
290 pub padding1: u32,
291 pub padding2: u32,
292 pub data: isize,
293 }
294 impl ::core::marker::Copy for HSTRING_HEADER {}
295 impl ::core::clone::Clone for HSTRING_HEADER {
296 fn clone(&self) -> Self {
297 *self
298 }
299 }
300 pub type IAccountsSettingsPaneInterop = *mut ::core::ffi::c_void;
301 pub type IActivationFactory = *mut ::core::ffi::c_void;
302 pub type IAgileReference = *mut ::core::ffi::c_void;
303 pub type IApartmentShutdown = *mut ::core::ffi::c_void;
304 pub type IAppServiceConnectionExtendedExecution = *mut ::core::ffi::c_void;
305 pub type IBufferByteAccess = *mut ::core::ffi::c_void;
306 pub type ICastingController = *mut ::core::ffi::c_void;
307 pub type ICastingEventHandler = *mut ::core::ffi::c_void;
308 pub type ICastingSourceInfo = *mut ::core::ffi::c_void;
309 pub type ICoreInputInterop = *mut ::core::ffi::c_void;
310 pub type ICoreWindowAdapterInterop = *mut ::core::ffi::c_void;
311 pub type ICoreWindowComponentInterop = *mut ::core::ffi::c_void;
312 pub type ICoreWindowInterop = *mut ::core::ffi::c_void;
313 pub type ICorrelationVectorInformation = *mut ::core::ffi::c_void;
314 pub type ICorrelationVectorSource = *mut ::core::ffi::c_void;
315 pub type IDragDropManagerInterop = *mut ::core::ffi::c_void;
316 pub type IHolographicSpaceInterop = *mut ::core::ffi::c_void;
317 pub type IInputPaneInterop = *mut ::core::ffi::c_void;
318 pub type ILanguageExceptionErrorInfo = *mut ::core::ffi::c_void;
319 pub type ILanguageExceptionErrorInfo2 = *mut ::core::ffi::c_void;
320 pub type ILanguageExceptionStackBackTrace = *mut ::core::ffi::c_void;
321 pub type ILanguageExceptionTransform = *mut ::core::ffi::c_void;
322 pub type IMemoryBufferByteAccess = *mut ::core::ffi::c_void;
323 pub type IMessageDispatcher = *mut ::core::ffi::c_void;
324 pub type IPlayToManagerInterop = *mut ::core::ffi::c_void;
325 pub type IRestrictedErrorInfo = *mut ::core::ffi::c_void;
326 pub type IRoMetaDataLocator = *mut ::core::ffi::c_void;
327 pub type IRoSimpleMetaDataBuilder = *mut ::core::ffi::c_void;
328 pub type IShareWindowCommandEventArgsInterop = *mut ::core::ffi::c_void;
329 pub type IShareWindowCommandSourceInterop = *mut ::core::ffi::c_void;
330 pub type ISpatialInteractionManagerInterop = *mut ::core::ffi::c_void;
331 pub type ISystemMediaTransportControlsInterop = *mut ::core::ffi::c_void;
332 pub type IUIViewSettingsInterop = *mut ::core::ffi::c_void;
333 pub type IUserActivityInterop = *mut ::core::ffi::c_void;
334 pub type IUserActivityRequestManagerInterop = *mut ::core::ffi::c_void;
335 pub type IUserActivitySourceHostInterop = *mut ::core::ffi::c_void;
336 pub type IUserConsentVerifierInterop = *mut ::core::ffi::c_void;
337 pub type IWeakReference = *mut ::core::ffi::c_void;
338 pub type IWeakReferenceSource = *mut ::core::ffi::c_void;
339 pub type IWebAuthenticationCoreManagerInterop = *mut ::core::ffi::c_void;
340 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
341 pub const MAX_ERROR_MESSAGE_CHARS: u32 = 512u32;
342 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
343 pub type PINSPECT_HSTRING_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, readaddress: usize, length: u32, buffer: *mut u8) -> ::windows_sys::core::HRESULT>;
344 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
345 pub type PINSPECT_HSTRING_CALLBACK2 = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, readaddress: u64, length: u32, buffer: *mut u8) -> ::windows_sys::core::HRESULT>;
346 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
347 pub type PINSPECT_MEMORY_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, readaddress: usize, length: u32, buffer: *mut u8) -> ::windows_sys::core::HRESULT>;
348 pub type ROPARAMIIDHANDLE = isize;
349 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
350 pub type RO_ERROR_REPORTING_FLAGS = u32;
351 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
352 pub const RO_ERROR_REPORTING_NONE: RO_ERROR_REPORTING_FLAGS = 0u32;
353 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
354 pub const RO_ERROR_REPORTING_SUPPRESSEXCEPTIONS: RO_ERROR_REPORTING_FLAGS = 1u32;
355 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
356 pub const RO_ERROR_REPORTING_FORCEEXCEPTIONS: RO_ERROR_REPORTING_FLAGS = 2u32;
357 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
358 pub const RO_ERROR_REPORTING_USESETERRORINFO: RO_ERROR_REPORTING_FLAGS = 4u32;
359 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
360 pub const RO_ERROR_REPORTING_SUPPRESSSETERRORINFO: RO_ERROR_REPORTING_FLAGS = 8u32;
361 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
362 pub type RO_INIT_TYPE = i32;
363 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
364 pub const RO_INIT_SINGLETHREADED: RO_INIT_TYPE = 0i32;
365 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
366 pub const RO_INIT_MULTITHREADED: RO_INIT_TYPE = 1i32;
367 #[repr(C)]
368 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
369 pub struct ServerInformation {
370 pub dwServerPid: u32,
371 pub dwServerTid: u32,
372 pub ui64ServerAddress: u64,
373 }
374 impl ::core::marker::Copy for ServerInformation {}
375 impl ::core::clone::Clone for ServerInformation {
376 fn clone(&self) -> Self {
377 *self
378 }
379 }
380 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
381 pub type TrustLevel = i32;
382 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
383 pub const BaseTrust: TrustLevel = 0i32;
384 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
385 pub const PartialTrust: TrustLevel = 1i32;
386 #[doc = "*Required features: `\"Win32_System_WinRT\"`*"]
387 pub const FullTrust: TrustLevel = 2i32;
388 #[repr(C)]
389 pub struct _RO_REGISTRATION_COOKIE(pub u8);