I want to use CreateMutex() to prevent creating multiple instance of my application. But I'm not sure if two CreateMutex() could be called at the same time. If it can be happened then it can not perfectly prevent multiple instances to be created.

thanks.