Skip to content

Instantly share code, notes, and snippets.

Avatar

Kenny Kerr kennykerr

View GitHub Profile
View diff.txt
1 alljoyn_interfacedescription_property_getannotationscount
current:12
expected:16
2 alljoyn_interfacedescription_property_getannotation
current:24
expected:28
3 JsCreateRuntime
current:16
expected:12
4 JsCreateContext
View stdcall.txt
UiaRaiseAutomationPropertyChangedEvent
current:544
expected:40
VarCyAdd
current:36
expected:20
VarCyNeg
current:20
expected:12
ItemContainerPattern_FindItemByProperty
View exports.txt
umutablecptrie_clone
current:8
expected:
utrans_clone
current:8
expected:
ucfpos_getInt64IterationContext
current:8
expected:
VarBoolFromCy
View dumpbin.txt
Microsoft (R) COFF/PE Dumper Version 14.31.31104.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file test.winmd
PE signature found
File Type: DLL
View gen.rs
use super::*;
#[derive(Default)]
pub struct Gen<'a> {
pub namespace: &'a str,
pub sys: bool,
pub flatten: bool,
pub cfg: bool,
pub doc: bool,
pub min_enum: bool,
View gist:5a9b3ae1560c17b13d16257ef1cdaa66
use std::io::prelude::*;
fn main() {
let mut file = std::fs::File::create(r#"C:\git\check_all.cmd"#).unwrap();
let reader = reader::TypeReader::get_mut();
let root = reader.types.get_namespace("Windows").unwrap();
write_features(&mut file, root.namespace, root)
}
View dependencies.toml
AI = []
AI_MachineLearning = ["AI", "Foundation", "Foundation_Collections"]
AI_MachineLearning_Preview = ["AI_MachineLearning", "Foundation_Collections"]
ApplicationModel = []
ApplicationModel_Activation = ["ApplicationModel"]
ApplicationModel_AppExtensions = ["ApplicationModel"]
ApplicationModel_AppService = ["ApplicationModel", "Foundation"]
ApplicationModel_Appointments = ["ApplicationModel"]
ApplicationModel_Appointments_AppointmentsProvider = ["ApplicationModel_Appointments"]
ApplicationModel_Appointments_DataProvider = ["ApplicationModel_Appointments"]
View arch.rs
fn main() {
use reader::*;
let reader = TypeReader::get_mut();
fn walk(tree: &TypeTree) {
for (_, entry) in &tree.types {
match &entry.def {
ElementType::TypeDef(def) => {
if def.has_attribute("SupportedArchitectureAttribute") {
assert!(def.kind() == TypeKind::Struct || def.kind() == TypeKind::Delegate);
@kennykerr
kennykerr / cppwinrt.cpp
Last active Sep 28, 2021
Language Overhead
View cppwinrt.cpp
// C++/winRT via https://github.com/microsoft/cppwinrt
#include "winrt/Windows.System.Power.h"
int main()
{
auto start = std::chrono::high_resolution_clock::now();
for (int i = 0; i < 10'000'000; i++)
{
View uiautomation.rs
use Windows::Win32::System::Com::*;
use Windows::Win32::UI::Accessibility::*;
use Windows::Win32::UI::WindowsAndMessaging::*;
use Windows::UI::UIAutomation::*;
fn main() -> Result<()> {
unsafe {
CoInitializeEx(std::ptr::null_mut(), COINIT_MULTITHREADED)?;
let window = FindWindowA(None, "Calculator");