This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use windows::core::*; | |
| use windows::Win32::System::Com::*; | |
| use windows::Win32::UI::Accessibility::*; | |
| use windows::Win32::UI::WindowsAndMessaging::*; | |
| fn main() -> Result<()> { | |
| unsafe { | |
| let mut acc: Option<IAccessible> = None; | |
| AccessibleObjectFromWindow( | |
| GetDesktopWindow(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [dependencies.windows] | |
| version = "0.52" | |
| features = [ | |
| "Win32_Foundation", | |
| "Win32_System_LibraryLoader", | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [dependencies.windows] | |
| version = "0.51" | |
| features = ["Win32_Foundation", "Win32_System_SystemInformation", "Wdk_System_SystemServices"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "pch.h" | |
| using namespace winrt; | |
| using namespace Windows::Foundation; | |
| IAsyncAction Sample() | |
| { | |
| throw winrt::hresult_invalid_argument(L"yolo"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![allow(non_snake_case)] | |
| use windows::{core::*, Win32::Foundation::*}; | |
| #[interface("17f409a1-f79d-45f6-962d-9db106cb7727")] | |
| unsafe trait ICompositor: IUnknown { | |
| unsafe fn CreateVisual(&self, value: u32, visual: *mut Option<IVisual>) -> HRESULT; | |
| unsafe fn RenderVisual(&self, visual: std::mem::ManuallyDrop<Option<IVisual>>) -> HRESULT; | |
| } | |
| #[interface("34e49797-1302-4ad6-8975-dd7c5b286e72")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [dependencies.windows] | |
| version = "0.51" | |
| features = [ | |
| "implement", | |
| "Win32_Foundation", | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use windows::{ | |
| core::HSTRING, | |
| w, | |
| Win32::{ | |
| System::Com::CoInitialize, | |
| UI::Shell::{ | |
| Common::ITEMIDLIST, ILCreateFromPathW, SHCreateShellItemArray, SIGDN_FILESYSPATH, | |
| }, | |
| }, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. ACCEPT_SECURITY_CONTEXT_FN | |
| Windows.Wdk.Storage.FileSystem | |
| Windows.Win32.Security.Authentication.Identity | |
| 2. ACCESS_ALLOWED_ACE | |
| Windows.Wdk.Storage.FileSystem | |
| Windows.Win32.Security | |
| 3. ACCESS_ALLOWED_ACE_TYPE | |
| Windows.Wdk.Storage.FileSystem | |
| Windows.Win32.System.SystemServices | |
| 4. ACCESS_ALLOWED_CALLBACK_ACE_TYPE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use windows_metadata::reader::*; | |
| fn main() { | |
| let files = File::with_default(&[]).unwrap(); | |
| let reader = &Reader::new(&files); | |
| let mut collisions = std::collections::BTreeMap::<(&str, bool), Vec<&str>>::new(); | |
| for namespace in reader.namespaces() { | |
| if namespace.starts_with("Windows.Wdk") { | |
| continue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ACCEPT_SECURITY_CONTEXT_FN | |
| Windows.Win32.Security.Authentication.Identity | |
| Windows.Wdk.Storage.FileSystem | |
| ACCESS_ALLOWED_ACE | |
| Windows.Win32.Security | |
| Windows.Wdk.Storage.FileSystem | |
| ACCESS_DENIED_ACE | |
| Windows.Win32.Security | |
| Windows.Wdk.Storage.FileSystem | |
| ACCESS_REASONS |