Click here to Skip to main content
15,893,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help me pls Pin
Christian Graus6-Apr-06 19:02
protectorChristian Graus6-Apr-06 19:02 
AnswerRe: Help me pls Pin
Stephen Hewitt6-Apr-06 19:48
Stephen Hewitt6-Apr-06 19:48 
QuestionPrintable MSDN Winsock 2 Reference? Pin
CNewbie6-Apr-06 18:23
CNewbie6-Apr-06 18:23 
AnswerRe: Printable MSDN Winsock 2 Reference? Pin
includeh106-Apr-06 19:05
includeh106-Apr-06 19:05 
AnswerRe: Printable MSDN Winsock 2 Reference? Pin
Xing Chen6-Apr-06 22:43
Xing Chen6-Apr-06 22:43 
AnswerRe: Printable MSDN Winsock 2 Reference? Pin
Trollslayer7-Apr-06 1:45
mentorTrollslayer7-Apr-06 1:45 
AnswerRe: Printable MSDN Winsock 2 Reference? Pin
Mike O'Neill9-Apr-06 12:24
Mike O'Neill9-Apr-06 12:24 
QuestionProgramatically get filename of loaded dll in a running process Pin
kanad6-Apr-06 17:41
kanad6-Apr-06 17:41 
I have developed a dll say MyExtension.dll which is in folder say c:\data\ but it can be really anywhere. ( One step beyond this is that the dll filename can be renamed to anything)

This dll is loaded by another process SomeProcess.exe which is running from say c:\windows. This process and its code is not in my control.

From within the code in my dll can I programatically determine the name of the dll and the path from which the dll is located (i.e I want to find the current executing code resides in c:\data\MyExtension.dll.)

The best I can think of is using toolhelp api to take a snapshot of all modules in the current process. Then search by my module name by iterating over the MODULEENTRY32 data structure. But this means that I have to hardcode atleast the module (dll) name to search. Is there any other way to basically determine the filename of the dll under which the code is executing.

(From a real world perepective I am developing a ISAPI extension dll loaded by IIS worker process. The file name and path is mapped using IIS configuration)

AnswerRe: Programatically get filename of loaded dll in a running process Pin
Stephen Hewitt6-Apr-06 17:47
Stephen Hewitt6-Apr-06 17:47 
GeneralRe: Programatically get filename of loaded dll in a running process Pin
kanad6-Apr-06 18:28
kanad6-Apr-06 18:28 
GeneralRe: Programatically get filename of loaded dll in a running process Pin
Stephen Hewitt6-Apr-06 18:34
Stephen Hewitt6-Apr-06 18:34 
GeneralRe: Programatically get filename of loaded dll in a running process Pin
kanad6-Apr-06 19:34
kanad6-Apr-06 19:34 
GeneralRe: Programatically get filename of loaded dll in a running process Pin
Stephen Hewitt6-Apr-06 19:38
Stephen Hewitt6-Apr-06 19:38 
AnswerRe: Programatically get filename of loaded dll in a running process Pin
Naveen6-Apr-06 18:36
Naveen6-Apr-06 18:36 
QuestionHow to use memcpy() efficiently? Pin
pavanbabut6-Apr-06 16:56
pavanbabut6-Apr-06 16:56 
AnswerRe: How to use memcpy() efficiently? Pin
El Corazon6-Apr-06 17:32
El Corazon6-Apr-06 17:32 
GeneralRe: How to use memcpy() efficiently? Pin
pavanbabut6-Apr-06 18:07
pavanbabut6-Apr-06 18:07 
GeneralRe: How to use memcpy() efficiently? Pin
Blake Miller7-Apr-06 4:15
Blake Miller7-Apr-06 4:15 
GeneralRe: How to use memcpy() efficiently? Pin
pavanbabut7-Apr-06 5:05
pavanbabut7-Apr-06 5:05 
QuestionOpen a zip File Pin
lekshmipriya6-Apr-06 15:12
lekshmipriya6-Apr-06 15:12 
AnswerRe: Open a zip File Pin
Hamid_RT6-Apr-06 19:14
Hamid_RT6-Apr-06 19:14 
GeneralRe: Open a zip File Pin
lekshmipriya7-Apr-06 4:28
lekshmipriya7-Apr-06 4:28 
GeneralRe: Open a zip File Pin
Hamid_RT7-Apr-06 5:15
Hamid_RT7-Apr-06 5:15 
QuestionDLL in DLL Pin
_anil_6-Apr-06 14:42
_anil_6-Apr-06 14:42 
AnswerRe: DLL in DLL Pin
John R. Shaw6-Apr-06 15:25
John R. Shaw6-Apr-06 15:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.