//---------------------------------------------------------------------------- // // Copyright (C) Intel Corporation, 2006 - 2007. // // File: MPSService.h // // Contents: Runs the MPS as a service. // // Notes: //---------------------------------------------------------------------------- #ifndef _MPSService__H__ #define _MPSService__H__ #include "BaseService.h" class MPSService : public BaseService { public: MPSService(LPCTSTR pszServiceName); virtual ~MPSService(void); // Take care of calling the callback function specified for each control operations. virtual DWORD WINAPI _ServiceCtrlHandler( DWORD dwControl, DWORD dwEventType, LPVOID lpEventData, LPVOID lpContext); // Perform initialization tasks. DWORD ServiceInitialization ( DWORD argc, LPTSTR *argv, DWORD *specificError); // Listen to incoming connections and process them. DWORD ServiceMainLoop(); private: // Data members. DWORD _argc; LPTSTR * _argv; }; #endif // _MPSService__H__