Hi
//------------------------------------------------------------
//make sure only one instance of the application can be open at a time
hOBSMutex = CreateMutex(NULL, TRUE, TEXT("OBSMutex"));
if(!bDisableMutex && GetLastError() == ERROR_ALREADY_EXISTS)
{
hwndMain = FindWindow(OBS_WINDOW_CLASS, NULL);
if(hwndMain)
SetForegroundWindow(hwndMain);
CloseHandle(hOBSMutex);
return 0;
}
//------------------------------------------------------------
why just one instance of the application can be open at one time ?
can I delete this to open Multiple instance of the application at one time .
-----------------
why do this ,bcs i want to capture Multiple streams to stream service.
can i do this?if not,pls tell me why.
thx very much.
//------------------------------------------------------------
//make sure only one instance of the application can be open at a time
hOBSMutex = CreateMutex(NULL, TRUE, TEXT("OBSMutex"));
if(!bDisableMutex && GetLastError() == ERROR_ALREADY_EXISTS)
{
hwndMain = FindWindow(OBS_WINDOW_CLASS, NULL);
if(hwndMain)
SetForegroundWindow(hwndMain);
CloseHandle(hOBSMutex);
return 0;
}
//------------------------------------------------------------
why just one instance of the application can be open at one time ?
can I delete this to open Multiple instance of the application at one time .
-----------------
why do this ,bcs i want to capture Multiple streams to stream service.
can i do this?if not,pls tell me why.
thx very much.