Listing 4: sample.c Sample doomed application
/* Sample app to load SampDll to demonstrate DllMain behavior */ #include <windows.h> int __declspec(dllimport) SampDllFunc(void); int main(int argc, char* argv[]) { int i = SampDllFunc(); Sleep(INFINITE); return 0; } /* End of File */