PDA

View Full Version : DLL - How do I identify the task calling it ?


Hawkwind
01-14-2008, 12:05 AM
New to writing DLLs.... succesfully written a simple DLL but need to identify the task which is calling the DLL so that I can keep a table of data in the DLL specific to that task.
There's got to be a simple way to do this, I'm using VISTA, not XP.
Thanks

Nick
01-14-2008, 12:28 AM
GetProcessName() (http://msdn2.microsoft.com/en-us/library/aa713349(VS.71).aspx)

Hawkwind
01-14-2008, 12:39 AM
Thanks, I'll try it out later.