約4,050件1ページ目

日本語のみで絞り込む

The code below demonstrates the use of the CreateMutex function which checks for a previous instance of your application in the memory.

The last time I used this technique, I called CreateMutex which has a wrapper function in Delphi's RTL (see this forum for an example). While reading about ...

Call Create to create a TMutex object. The first version of the constructor creates an unnamed mutex with the default security descriptor, and it establishes ...

2013/12/18 -If CreateMutex() fails, or the mutex already exists, exit the app. Your change would bypass the "already exists" check if the mutex handle is ...

2023/2/8 -Creates or opens a named or unnamed mutex object. To specify an access mask for the object, use the CreateMutexEx function.

2023/10/24 -You should also set the bInitialOwner parameter to False in the CreateMutex() call. You don't need ownership of the mutex just to create it and ...

2020/9/19 -Anyone know a better way to prevent multiple instances in Delphi? ... CreateMutex(nil, false, 'YourNameOfTheMutex');. Test return value ...

2020/1/5 -CreateMutex creates a new mutex object with specified name. · OpenMutex will get the handle to already running mutex by its name.

If this value is TRUE and the caller created the mutex, the calling thread obtains ownership of the mutex object. Otherwise, the calling thread does not obtain ...

Examples of creating a mutex in Delphi, C, and Visual Basic are shown below. The code should be executed during your application's startup. Delphi: CreateMutex ...