Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++ program that finds the MySQL PID file and prints its contents. Assume that your application will run on the same system running MySQL.


can any one help me to write this program??????????
Posted

You can use CreateToolhelp32Snapshot and Process32Next.
If that didn't work for some strange reason, then you could use EnumWindows.
 
Share this answer
 
Comments
suman kumar patro 3-Jan-11 9:11am    
i need a program ,which will do this.
can u help me on that?
T2102 3-Jan-11 9:27am    
Sorry, I am not sure I read your question right. I thought that you were looking for the Process ID (PID), but am not sure if that is your question. Could you confirm if you want the PID or something else?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900