Skip to content

Instantly share code, notes, and snippets.

View pavel-a's full-sized avatar

Pavel A. pavel-a

View GitHub Profile
@pavel-a
pavel-a / README.md
Last active March 17, 2020 05:53
Small utility to detect when a VC++ program cannot start because runtime libs or some other DLL is missing.

Launcher-vc

This is a small utility to detect when a program cannot start because VC++ runtime or .NET, or some DLL is missing. It can be useful for verifying automated builds or deployment.

No popups like "Application error... The application failed to initialize properly..." should be displayed. If the app cannot initialize, there will be a plain message printed saying so, and errorlevel will be set.

@pavel-a
pavel-a / targetver.h
Last active December 8, 2020 04:57
Writable code section fixer
#pragma once
#define _WIN32_WINNT NTDDI_WINXP
#include <SDKDDKVer.h>
@pavel-a
pavel-a / autorun.inf
Created September 17, 2015 01:14
Autorun.inf file for USB drives . Shows custom label in Windows explorer (some Linuxes too)
[AutoRun]
label=RETURN TO ME!
[IgnoreContentPaths]
*
@pavel-a
pavel-a / build_box_wdk.cmd
Last active May 8, 2022 14:44
Set of scripts for building Windows Driver Kit projects (pre-Win8 WDKs)
:: Replacement for WDK build env shortcuts
:: Opens interactive cmd box for WDK build.
:: This is *not* intended to run build from Visual Studio!
:: Rev.b 08-may-2009 [email protected] -- for WDK 7600 (7.1.0) or 6xxx
@echo off
@IF NOT CMDEXTVERSION 2 EXIT
set BASEDIR=%~dp0
: *** SET BASEDIR TO YOUR WDK PATH if this file is not there ***
@pavel-a
pavel-a / wifi_scan.m
Created March 12, 2015 12:02
Wi-Fi scan for Apple OS X (maybe works for iOS too)
/* The official example for CoreWLAN is now obsolete,
so here's a small command-line example that works with Xcode 6 and Yosemite.
It only demonstrates how to get basic wi-fi connection properties and scan.
Enjoy!
[email protected] 01-Mar-2015
*/
#import <Foundation/Foundation.h>
#import <CoreWLAN/CoreWLAN.h>
#include <stdio.h>