GetCurrentModule

by tsachi 14. March 2009 14:26

HMODULE GetCurrentModule()

{

MEMORY_BASIC_INFORMATION mbi;

static int dummy;

VirtualQuery( &dummy, &mbi, sizeof(mbi) );

return reinterpret_cast<HMODULE>(mbi.AllocationBase);

}

Tags: , ,

C/C++

Advertisements

About the author

9+ years experience in software, software engineering, software development, software architecture, software development methodology and practices, web, internet, intranet, distributed application, client/server, object-oriented analysis and design, requirements analysis and modeling, data modeling, and database design. Progressed through end-user application, servers and databases work to management positions. Held positions with management responsibility, including training and technological leading, for up to 5 employees. Engaged in computer applications development with focus over video streaming, web and security.