BLESS (BLitz EventS System) beta released!

Miscellaneous Forums/Blitz Showcase/BLESS (BLitz EventS System) beta released!

Put this inside the kernel32.decls:

CreateMutex%(lpMutexAttributes%,bInitialOwner%,lpName$):"CreateMutexA" 


and then use this to detect if the program is running already, and if so then shut it down.

	Const ERROR_ALREADY_EXISTS=183
	CreateMutex(0,1,"My Program Instance") ; Mutex accessible to any program
	If GetLastError() = ERROR_ALREADY_EXISTS Then
		End
	EndIf


I don't remember who posted the above a while ago, but it will prevent a blitz program from starting more than once. Don't know if its of any help though.