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
[DllImport("gdiplus.dll", ExactSpelling = true)] | |
internal static extern int GdipCreateBitmapFromStream(IStream stream, out IntPtr bitmap); |
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
// Licensed to the .NET Foundation under one or more agreements. | |
// The .NET Foundation licenses this file to you under the MIT license. | |
// See the LICENSE file in the project root for more information. | |
using System; | |
using System.Runtime.InteropServices; | |
internal static partial class Interop | |
{ | |
internal static partial class Ole32 |
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
#!/usr/bin/env python3 | |
import re | |
import sys | |
import xml.etree.ElementTree as ET | |
########################################### | |
def to_dot(fd): | |
'''TODO | |
''' |
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
[ComImport] | |
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | |
[Guid("0000001d-0000-0000-C000-000000000046")] | |
public interface IMallocSpy | |
{ | |
[PreserveSig] | |
uint PreAlloc(uint cbRequest); | |
[PreserveSig] | |
void* PostAlloc(void* pActual); | |
[PreserveSig] |
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
// * Summary * | |
BenchmarkDotNet=v0.12.1.20210402-develop, OS=Windows 10.0.19042.867 (20H2/October2020Update) | |
Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores | |
.NET SDK=5.0.201 | |
[Host] : .NET 5.0.4 (5.0.421.11614), X64 RyuJIT | |
ShortRun : .NET 6.0.0-preview.4.21175.3, X64 AOT | |
| ORM | Method | Return | Mean | StdDev | Error | Gen 0 | Gen 1 | Gen 2 | Allocated | |
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
using System; | |
Console.WriteLine("Hello UEFI!"); |
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
namespace Internal.Runtime.CompilerHelpers | |
{ | |
internal partial class StartupCodeHelpers | |
{ | |
internal static unsafe void InitializeCommandLineArgsW( | |
int argc, char** argv) | |
{ | |
} | |
internal static unsafe void InitializeCommandLineArgs( |
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
using Internal.Runtime.CompilerHelpers; | |
// .... | |
int main(int argc, char** argv) | |
{ | |
StartupCodeHelpers.InitializeCommandLineArgsW(argc, argv); | |
String[] arguments = StartupCodeHelpers.GetMainMethodArguments(); | |
int exitCode = __managed_Main(arguments); | |
StartupCodeHelpers.SetLatchedExitCode(exitCode); |
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
/// <reference types="jquery" /> | |
declare interface JQuery { | |
on(events: ':passageinit', handler: (this: JQuery, t: x, ...args: any[]) => any): this; | |
} |
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
New-VM -Name SeeSharpSnake -MemoryStartupBytes 32MB -Generation 2 -VHDPath "bin\x64\Release\netcoreapp3.1\win-x64\native\seesharpsnake.vhdx" | |
Set-VMFirmware -VMName SeeSharpSnake -EnableSecureBoot Off | |
Set-VM -Name SeeSharpSnake -AutomaticCheckpointsEnabled $false -CheckpointType Disabled |