Enumerate NT services Nebraska

Allows for an NT manager-like application

Local Companies

Intergrated Distribution Solutions
(402) 397-8757
2110 S 169th Plz
Omaha, NE
Materials Systems Software Inc
402-327-8456
245 S 84th St
Lincoln, NE
Meta Software
(402) 932-1523
319 S 17th St
Omaha, NE
Linoma Software
1-800-949-4696
1409 Silver Street
Ashland, NE
Turnkey Solutions
402-332-5600
13908 S 226th Ave
Lincoln, NE
X Net Software Solutions
(402) 991-6880
15715 William Ct
Omaha, NE
Centrix Solutions Inc
402-488-3990
4910 Normal Blvd
Lincoln, NE
Mortech Software
402-441-4647
5960 S 57th St
Lincoln, NE
Tailored Software Services Inc
402-423-1490
2410 Bretigne DR
Lincoln, NE
Linoma Software
1-800-949-4696
1409 Silver Street
Ashland, NE

provided by: 
Originally published at Internet.com


I recently needed the code which displays all Windows NT services from the service database (kept in the registry) and for each service some essential information (service name, status etc.). As always, there are at least 2 possibilities. Instead of coding in the application, I created a small class which returns a pointer to the list of services. The contents of the list depends on the arguments supplied when enumerating services.

Class declaration: class TTrixServiceInfo { public : CString ServiceName; CString DisplayName; CString BinaryPath; DWORD ServiceType; DWORD StartType; DWORD ErrorControl; DWORD CurrentState; public : TTrixServiceInfo(); TTrixServiceInfo& operator =( const TTrixServiceInfo& source); CString GetServiceType( void ); CString GetStartType( void ); CString GetErrorControl( void ); CString GetCurrentState( void ); static TTrixServiceInfo *EnumServices(DWORD serviceType, DWORD serviceState,DWORD *count); };

Description:

Each object of this class contains information for one service. To build a list of services, execute the static function EnumServices(). There are several possibilities:

ServiceType is a bit OR combination of SERVICE_WIN32 and SERVICE_DRIVER...

Read article at Internet.com site

Featured Local Company

X Net Software Solutions

(402) 991-6880
15715 William Ct
Omaha, NE

Related Articles
- SharePoint with HTTP Modules and Handlers Nebraska
HttpHandlers and HttpModules are easy to program and can be widely implemented in the system, so they are useful tools for you to use with SharePoint.
- ListBox with Grayed Out / Non-Selectable Items Nebraska
Related Articles
- SharePoint with HTTP Modules and Handlers Nebraska
HttpHandlers and HttpModules are easy to program and can be widely implemented in the system, so they are useful tools for you to use with SharePoint.
- ListBox with Grayed Out / Non-Selectable Items Nebraska
Related Local Events
Heartland Developers Conference
Dates: 10/15/2009 - 10/15/2009
Location: Qwest Center Omaha
Omaha, NE
View Details

Heartland Developers Conference
Dates: 10/15/2009 - 10/15/2009
Location: Qwest Center Omaha
Omaha, NE
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML