#include "windows.h"
#include <iostream.h>
int main(int argc, char* argv[])
{
HANDLE hMutex=CreateMutex(NULL,TRUE,"test");
if (hMutex)
{
if (ERROR_ALREADY_EXISTS==GetLastError())
{
MessageBox(NULL,"already running","",MB_OK);
return 0;
}
}
while (1)
{
}
return 0;
}