Login Register


Modified jhProtominer Source Code filter_list
Author
Message
RE: Modified jhProtominer Source Code #5
(06-10-2014, 10:05 AM)xornull Wrote: May I ask why there is no part of the code that prevents it from executing itself multiple times?

all it takes is this

Code:
void check_already_running(wchar_t *cMutexName, HANDLE *hMutex) { *hMutex = CreateMutexW(NULL, true, cMutexName); if(ERROR_ALREADY_EXISTS == GetLastError()) ExitProcess(NULL); }

ExitProcess takes a UINT as a parameter, not a pointer type -- NULL.

Reply





Messages In This Thread
Modified jhProtominer Source Code - by Hellborn - 01-21-2014, 12:57 AM
RE: Modified jhProtominer Source Code - by 0xDEAD10CC - 06-30-2014, 12:24 AM



Users browsing this thread: 1 Guest(s)