This file contains 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
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <comdef.h> | |
#include <process.h> | |
#include <list> | |
#include <string> | |
#include <sstream> | |
#include <Wincrypt.h> | |
#include <certenroll.h> | |
#include "certenrollui.h" |
This file contains 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
; To build the import library, run one of the following with this file under the Development Command prompt: | |
; lib /def:CertEnrollUI.def /out:CertEnrollUI.lib /machine:x64 | |
; The /machine switch can also be x86, arm, or arm64 | |
LIBRARY CertEnrollUI | |
EXPORTS | |
CreateUIObject @200 |
This file contains 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
package com.example; | |
import java.util.UUID; | |
class UUIDUtil | |
{ | |
static private final int []s_Shuffle = {32, 40, 48, 56, 16, 24, 0, 8}; | |
public static void UUIDToBytes(UUID g, byte[]b, int offset) | |
{ |
This file contains 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
{ | |
"$schema": "http://json-schema.org/draft-04/schema", | |
"id": "https://raw.githubusercontent.com/Microsoft/azure-pipelines-task-lib/master/tasks.schema.json", | |
"title": "Azure DevOps Tasks schema", | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"serverOwned":{"type":"boolean"}, | |
"contentsUploaded":{"type":"boolean"}, | |
"iconUrl":{ |
This file contains 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
create or alter function dbo.JSON_VALIDATE( | |
@doc nvarchar(max), -- JSON document to validate | |
@schema nvarchar(max), -- JSON schema to validate against | |
-- Pass nulls, those parameters are for recursive invokations | |
@res1 bit = null, | |
@res2 bit = null, | |
@schema_path nvarchar(max) = null, | |
@type tinyint = null, | |
@root nvarchar(max) = null) | |
returns @t table( |
This file contains 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
from sys import argv | |
from elftools.common.exceptions import ELFParseError | |
from elftools.dwarf.locationlists import LocationLists, LocationListsPair, LocationParser | |
from elftools.elf.elffile import ELFFile | |
from inspect import getframeinfo | |
from elftools.dwarf.dwarfinfo import DWARFInfo | |
def location_lists(self): | |
""" Get a LocationLists object representing the .debug_loc/debug_loclists section of | |
the DWARF data, or None if this section doesn't exist. |
This file contains 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 <windows.h> | |
static const GUID CLSID_B = | |
{ 0x51addb47, 0xd26a, 0x4f69, { 0xb9, 0x7b, 0x7e, 0x30, 0x62, 0x8d, 0xcf, 0x5b } }; | |
int APIENTRY wWinMain(_In_ HINSTANCE hInstance, | |
_In_opt_ HINSTANCE hPrevInstance, | |
_In_ LPWSTR lpCmdLine, | |
_In_ int nCmdShow) |
This file contains 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
param($Path, $Property, $Value) | |
$i = New-Object -COM "WindowsInstaller.Installer" | |
$db = $i.OpenDatabase($Path, 2) | |
$r = $i.CreateRecord(2) | |
$r.StringData(1) = $Value | |
$r.StringData(2) = $Property | |
$vw = $db.OpenView("update Property set Value=? where Property=?") | |
$vw.Execute($r) | |
$r = $null |
This file contains 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
#define INITGUID | |
#include <SDKDDKVer.h> | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <mfidl.h> | |
#include <mfapi.h> | |
#include <evr.h> | |
#include <cguid.h> | |
#include <propvarutil.h> | |
#include <comdef.h> |
This file contains 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 Microsoft.Win32.SafeHandles; | |
using System.Diagnostics; | |
using System.Text; | |
using System; | |
using System.Threading; | |
namespace COMNET | |
{ | |
public class Program | |
{ |
NewerOlder