|
#ifndef CDriver_h
#define CDriver_h
class CDriver
{
SC_HANDLE scManager;
SC_HANDLE drv;
HANDLE file;
TCHAR servname[256];
TCHAR linkname[256];
void reporterror(DWORD);
void closehandles();
public:
CDriver(void);
~CDriver(void);
bool drvStart(LPCTSTR, LPCTSTR servpath = 0, LPCTSTR linkname = 0, LPCTSTR info = 0); //load(create), start service
DWORD drvIOCTL(DWORD code, LPVOID in = 0, DWORD inlen = 0, LPVOID out = 0, DWORD outlen = 0); //perform IOCTL
bool drvStop(LPCTSTR servname = 0, DWORD timeout = 30000); //stop service
bool drvDelete(LPCTSTR servname = 0); //delete from registry
};
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Highly skilled Engineer with 14 years of experience in academia, R&D and commercial product development supporting full software life-cycle from idea to implementation and further support. During my academic career I was able to succeed in MIT Computers in Cardiology 2006 international challenge, as a R&D and SW engineer gain CodeProject MVP, find algorithmic solutions to quickly resolve tough customer problems to pass product requirements in tight deadlines. My key areas of expertise involve Object-Oriented
Analysis and Design OOAD, OOP, machine learning, natural language processing, face recognition, computer vision and image processing, wavelet analysis, digital signal processing in cardiology.