Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing Windows Services
Message
De
22/12/2008 10:02:12
 
 
À
22/12/2008 09:39:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01369076
Message ID:
01369134
Vues:
9
Uau!!!
An amazing documentation.
Many many thanks!

>Check http://www.news2news.com/vfp/index.php, it's "the best"!
>
>>Thanks, again!
>>That's perfect.
>>Where can I learn more about Windows API?
>>Something like a list of calls.
>>
>>>Instead of RUN you should use Shellexecute
>>>DECLARE INTEGER ShellExecute IN shell32; 
>>>INTEGER hwnd,; 
>>>STRING lpOperation,; 
>>>STRING lpFile,; 
>>>STRING lpParameters,; 
>>>STRING lpDirectory,; 
>>>INTEGER nShowCmd
>>>
>>>=ShellExecute("YourProgramme.exe")
>>>
>>>>Thanks!
>>>>If I decide for the command NET how can I avoid the
>>>>annoying black DOS command window that popups
>>>>when using command RUN?
>>>>The switch /n in the RUN command solves the problem if
>>>>what you are running is a windows application. Of course
>>>>if it's a DOS based application, like NET, it sends messages
>>>>to the DOS console and that keeps the black window open.
>>>>
>>>>>See thread#586930
>>>>>
>>>>>>Hi.
>>>>>>I need to manage (start/stop/etc) some windows services in my application.
>>>>>>My questions:
>>>>>>1. How can I programatically access windows services?
>>>>>>2. How can I "say" a service to Start, Stop, Pause, Resume or Restart?
>>>>>>
>>>>>>Thanks in advance.
***
TONY Nascimento
*****************

"Your mind is like a parachute. It only works if it is open" - Anthony J. D'Angelo

"The desire to know is natural to good men" - Leonardo da Vinci
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform