Using Win32 functions in Visual FoxPro Image Gallery
Service
..msdn
CloseServiceHandle
ControlService
CreateService
DeleteService
EnumServicesStatus
GetUserObjectInformation
LockServiceDatabase
OpenSCManager
OpenService
StartService
UnlockServiceDatabase
Code examples:
Encapsulating access to the Windows Services in a class
How to create a service object
How to delete a service object
CloseServiceHandle
..msdn    Add comment     W32 Constants      Translate this page
The CloseServiceHandle function closes a handle to a service control manager or service object.
Code examples:
Encapsulating access to the Windows Services in a class
How to delete a service object
How to create a service object
Declaration:
BOOL CloseServiceHandle(
  SC_HANDLE hSCObject
);
FoxPro declaration:
DECLARE INTEGER CloseServiceHandle IN advapi32;
    INTEGER hSCObject
Parameters:
hSCObject
[in] Handle to the service control manager object or the service object to close.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
The CloseServiceHandle function does not destroy the service control manager object referred to by the handle. A service control manager object cannot be destroyed. A service object can be destroyed by calling the DeleteService function.
Word Index links for the CloseServiceHandle :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-12-13 21:45:55
Modified: 2004-12-13 21:47:16
Visited in last 7 days: 22
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 (23.20.86.177)
4 sec.Function: 'CreateJobObject'
9 sec.Function: 'InternetGoOnline'
13 sec.Function: 'GetKBCodePage'
18 sec.Function: 'GetForegroundWindow'
22 sec.Function: 'FindNextFile'
27 sec.Function: 'SCardReleaseContext'
31 sec.Function: 'CeRegCloseKey'
36 sec.Function: 'SetDefaultPrinter'
40 sec.
Function group: 'Monitor Configuration (Vista)'
45 sec.Function: 'SelectObject'
Google
Advertise here!