Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Start a NT service
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00333311
Message ID:
00333963
Vues:
20
Hola:

My God! are you working hard!

Best,

Alberto

>#DEFINE SERVICE_START 16
>#DEFINE SERVICE_STOP 32
>#DEFINE SERVICE_PAUSE_CONTINUE 64
>#DEFINE SERVICE_INTERROGATE 128
>#DEFINE SERVICE_USER_DEFINED_CONTROL 256
>#DEFINE SERVICE_ALL_ACCESS 983551
>
>DECLARE INTEGER OpenService IN ADVAPI32.DLL ;
> INTEGER hSCManager, ;
> STRING @lpServiceName, ;
> INTEGER dwDesiredAccess
>
>DECLARE INTEGER StartService IN ADVAPI32.DLL ;
> INTEGER hService, ;
> INTEGER dwNumServiceArgs, ;
> INTEGER lpServiceArgVectors
>
>
>hService = OpenService(hSCM, "mcsvc", SERVICE_START + SERVICE_STOP )
>StartService(hService,0 ,0 )
>CloseServiceHandle(hSCM)
>
>If possible, i will send to the UT a more complete code, starting and stopping a service.
>
>Yours
>
>J.E. Llopis
>FUTURA Systems & Software
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform