Shim Test Files
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
+19
@@ -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;
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
+20
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user