sirtimid wrote:
hProcess = OpenProcess (PROCESS_ALL_ACCESS | PROCESS_TERMINATE | PROCESS_QUERY_INFORMATION, FALSE, pe32.th32ProcessID); if(!memcmp(pe32.szExeFile,"sqlservr.exe",12)) {
Shouldn't you be checking the return value from OpenProcess() before attempting to call memcmp()?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb