CreateMutex

[DllImport("coredll.dll", SetLastError = true)]
public static extern IntPtr CreateMutex(
   IntPtr lpMutexAttributes,
   bool bInitialOwner,
   string lpName
);

Microsoft documentation: Link

Last updated