Calling MSVC DLL procedure from MSVB service to create mutex.
Category:
System/APIType:
SnippetsDifficulty:
BeginningAuthor: Anonymous
Version Compatibility: Visual Basic 6
More information:
This code shows (1) how one can create an MSVC 6 DLL with a procedure that can be called from an MSVB 6 program and (2) how to create a mutex in a service with security that allows a nonservice process to use it.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: