I
izik l
I have made the following main:
void main()
{
HANDLE myMutex = CreateMutex( NULL, false, NULL );
WaitForSingleObject(myMutex, INFINITE);
printf("should never appeared");
}
the program prints the messgae "should never appeared" and quit.
Is it not suppose to wait forever until myMutex will be released?
After running this program I have tried to change CreateMutex's second
argument into true but it had no affect.
thanks in advance,
void main()
{
HANDLE myMutex = CreateMutex( NULL, false, NULL );
WaitForSingleObject(myMutex, INFINITE);
printf("should never appeared");
}
the program prints the messgae "should never appeared" and quit.
Is it not suppose to wait forever until myMutex will be released?
After running this program I have tried to change CreateMutex's second
argument into true but it had no affect.
thanks in advance,