Shim Test Files

This commit is contained in:
caseysmithrc
2017-12-06 14:52:06 -07:00
parent 8cba9e39ec
commit 14f2a68a96
5 changed files with 39 additions and 0 deletions
Binary file not shown.
Binary file not shown.
+19
View File
@@ -0,0 +1,19 @@
using System;
// C:\Users\subTee\Downloads\Shims>c:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /platform:x86 AtomicTest.cs
// From Elevated Prompt
// sdbinst.exe AtomicShim.sdb
public class AtomicTest
{
public static void Main()
{
Console.WriteLine("Boom!");
}
public static bool Thing()
{
Console.WriteLine("Things!");
return true;
}
}
Binary file not shown.
+20
View File
@@ -0,0 +1,20 @@
// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include <windows.h>
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
MessageBox(0, L"Atomic Shim DLL Test!", 0, 0);
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}