Using Win32 functions in Visual FoxPro Image Gallery
Synchronization
..msdn
CreateEvent
CreateMutex
CreateSemaphore
CreateWaitableTimer
OpenEvent
OpenSemaphore
OpenWaitableTimer
ReleaseMutex
ReleaseSemaphore
ResetEvent
SetEvent
SetWaitableTimer
WaitForSingleObject
Code examples:
Using the Semaphore object
Using the Semaphore object to allow only one instance of VFP application running
OpenSemaphore
..msdn    Add comment     W32 Constants      Translate this page
The OpenSemaphore function returns a handle of an existing named semaphore object
Code examples:
Using the Semaphore object
Using the Semaphore object to allow only one instance of VFP application running
Declaration:
HANDLE OpenSemaphore(
  DWORD dwDesiredAccess,  // access
  BOOL bInheritHandle,    // inheritance option
  LPCTSTR lpName          // object name
);
FoxPro declaration:
DECLARE INTEGER OpenSemaphore IN kernel32;
    INTEGER dwDesiredAccess,;
    INTEGER bInheritHandle,;
    STRING  lpName

Parameters:
fdwAccess
Specifies the requested access to the semaphore object

fInherit
Specifies whether the returned handle is inheritable

lpszSemName
Points to a null-terminated string that names the semaphore to be opened. Name comparisons are case sensitive
Return value:
If the function succeeds, the return value is a handle of the semaphore object
Word Index links for the OpenSemaphore :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-12 12:00:00
Modified: 2001-11-26 16:01:58
Visited in last 7 days: 15
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.178.153)
10 sec.
Function group: 'MSHTML Reference'
21 sec.Function: 'GdipGetPropertyCount'
31 sec.Function: 'midiOutClose'
42 sec.Function: 'SHEnumKeyEx'
53 sec.Function: 'ChangeClipboardChain'
1.1 min.Function: 'CreateDesktop'
1.28 min.Function: 'CeSeekDatabase'
1.48 min.Function: 'SQLDrivers'
1.68 min.Function: 'FileTimeToSystemTime'
1.85 min.Function: 'MAPIAddress'
Google
Advertise here!