Készítő: aaaaaa, 4 éve frissítve, szöveg nyelve: C++.
Beágyazás:
  1. #include <Windows.h>
  2.  
  3. DWORD WINAPI MainThread(LPVOID lpReserved) {
  4.     LPCTSTR strSbieDll = L"SbieDll.dll";
  5.     HMODULE hSbieModule = GetModuleHandle(strSbieDll);
  6.  
  7.     if (hSbieModule != NULL) {
  8.         FreeLibrary(hSbieModule);
  9.     }
  10.         return TRUE;
  11. }
  12.  
  13. BOOL APIENTRY DllMain( HMODULE hModule, DWORD dwReason,LPVOID lpReserved) {
  14.     switch (dwReason) {
  15.         case DLL_PROCESS_ATTACH: {
  16.             DisableThreadLibraryCalls(hModule);
  17.             CreateThread(nullptr, 0, MainThread, hModule, 0, nullptr);
  18.             break;
  19.         }
  20.         case DLL_PROCESS_DETACH: {
  21.             break;
  22.         }
  23.     }
  24.     return TRUE;
  25. }
  26.  
  27.