Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 18:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Tutorial] Unload Module DLL C++

Discussion on [Tutorial] Unload Module DLL C++ within the C/C++ forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2012
Posts: 222
Received Thanks: 1,821
[Tutorial] Unload Module DLL C++

Yo,
How,
Code:
Run VC++ 2008
Create Project -> Win32 -> Win32 Project -> Next -> App Type:DLL
->Empty Project -> Click Finish!
Add Main.h - Header Files
Add ***.cpp - Sources Files
Debug it - > Thanks
Unload DLL Module

Main.h
Code:
#include <Windows.h>
***.cpp
Code:
#include "Main.h"
void UnDllModule(HMODULE DLL)
{
HMODULE UnDllM = GetModuleHandle(LPCWSTR("kernel32.dll"));
 void* HMODULE  = (void*)GetProcAddress(UnDllM,LPCSTR("ExitThread"));
      _asm
   {
	jmp [FreeLibrary]
   }
}
BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)
{
	DisableThreadLibraryCalls(module);
  if(dwReason == DLL_PROCESS_ATTACH)
  {  
	  MessageBox(0,L"Unloaded!",L"Psapi",0);
	  HMODULE DLLX = GetModuleHandle(LPCWSTR("Psapi.dll"));
	   UnDllModule(DLLX);
  }   
return TRUE;
}
Unload your Dll use
Code:
UnDllModule(module);
Attached Files
File Type: rar Module.rar (66.7 KB, 100 views)
JohnAndersn is offline  
Thanks
1 User
Old 05/30/2013, 18:09   #2
 
Raz9r's Avatar
 
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
oder reichen vollkommen...
Raz9r is offline  
Old 05/30/2013, 18:22   #3
 
elite*gold: 0
Join Date: Aug 2012
Posts: 222
Received Thanks: 1,821
Quote:
Originally Posted by Raz9r View Post
oder reichen vollkommen...
My Code is Better
JohnAndersn is offline  
Old 05/30/2013, 18:26   #4


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
Nope, it wouldn't even compile.
MrSm!th is offline  
Closed Thread


Similar Threads Similar Threads
LOOKING FOR VB module for TRAINER
06/26/2013 - Cabal Online - 1 Replies
as title it says :) who has a working module for visual basic for game trainer making??TIA
The module
10/30/2012 - DarkOrbit - 26 Replies
Hey look http://img594.imageshack.us/img594/5807/newfv.png http://img94.imageshack.us/img94/4738/iseeyoux.jp g 2012-10-29 18:03:53 You received a Module for a Battle Station: Damage Booster Module. 2012-10-29 18:03:52 Booty key used 2012-10-29 18:03:06
Module Memoryread
05/19/2011 - AutoIt - 0 Replies
Heyho ich hab ein Problem. Wenn ihr z.B. die adresse aus einem game auslesen möchtet, nimmt ja normalerweise eine .exe Aber wie sieht es aus wenn man ein modul aus diesem prozess per memory auslesen oder bearbeiten will. Hier der copy aus Cheat Engine: <CheatTable>



All times are GMT +1. The time now is 18:56.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.