mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Gabriel Ilardi ([email protected])
- Allow only one instance of Task-Manager to be run at the same time See issue #3976 for more details. svn path=/trunk/; revision=39353
This commit is contained in:
@@ -51,6 +51,12 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
||||
HANDLE hProcess;
|
||||
HANDLE hToken;
|
||||
TOKEN_PRIVILEGES tkp;
|
||||
HANDLE hMutex;
|
||||
|
||||
/* check wether we're already running or not */
|
||||
hMutex = CreateMutexW(NULL, TRUE, L"taskmgrros");
|
||||
if ((!hMutex) || (GetLastError() == ERROR_ALREADY_EXISTS))
|
||||
return 1;
|
||||
|
||||
/* Initialize global variables */
|
||||
hInst = hInstance;
|
||||
|
||||
Reference in New Issue
Block a user