Enumerate Services in NT...

Hi...
I Need source code for Enumerate Services In NT...
I need list service name and your EXE file path....

thanks
LVL 3
sennaspyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chensuCommented:
OpenSCManager
EnumDependentServices
EnumServicesStatus
EnumServicesStatusEx
0
chensuCommented:
0
sennaspyAuthor Commented:
Thanks...

Do you have other example ?
If you have a example for Borland C++ Builder 4.. is very good...

thanks
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

chensuCommented:
Other samples I know are also at CodeGuru.

Windows NT Service Manager
http://www.codeguru.com/system/ServiceManager.shtml

NT Service Manager
http://www.codeguru.com/system/NTSrv.shtml

WindowsNT Simple Service Manager (2)
http://www.codeguru.com/system/AC_NTSrv.shtml

I am sorry that I don't have a BCB sample. But the first sample at CodeGuru doesn't use any MFC classes except CString. So, it is trivial to adapt it. And MFC does not wrap anything for NT service.
0
sennaspyAuthor Commented:
Sorry, but I need another example in Borland C++ Builder 4...

Thanks for all...
0
sennaspyAuthor Commented:
Hi...

Chensu...
I change the codeguru's code...
press answer, I give the points to you..

thanks
0
chensuCommented:
Great! Thank you.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.