Hi Mrinal,
Thanks for your post.
I am not sure what exact function you want to get. The Win32 Services API
is documented in the link below:
http://msdn.microsoft.com/library/de...us/dllproc/bas
e/service_functions.asp
Which function you want to get in .Net? "Nicholas Paldino [.NET/C# MVP]"
has provided the correct WMI class: Win32_Service. If you want to use the
second option: using Win32 API, I want to add some more information. In
Net, some of the Win32 Services API functions is implemented in .Net, we
may get the Win32 API to .Net class map in the article below:
"Microsoft Win32 to Microsoft .NET Framework API Map"
http://msdn.microsoft.com/library/de...us/dndotnet/ht
ml/win32map.asp
You may get the services function map in "Service Functions" section. For
other services API that is not documented in this link, I think we have to
P/invoke to use it.
Hope this helps.
==================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.