Quicksys-Version: 0.2.2
This is a tool that, like NuMega Quickvxd, can quickly create a driver framework that works in Windows NT/2K/XP.
Using code
It's simple to use, and you can build Visual C + + engineering with just a mouse click. The project can generate the. SYS kernel-mode driver. You can compile and connect your driver in the IDE. If you have softice, it can produce. nms files.
The source code is contained inside, it is free.
I store the source code of the frame in the resource file, you can modify it.
CString LoadText(LPCTSTR lpName)
{
CString strText;
HRSRC hRsrc;
hRsrc = FindResource(AfxGetInstanceHandle(), lpName, RT_HTML);
HGLOBAL hMem = LoadResource(AfxGetInstanceHandle(), hRsrc);
DWORD dwSize = SizeofResource(AfxGetInstanceHandle(), hRsrc);
char *src = (char*)LockResource(hMem);
char *dst = strText.GetBuffer(dwSize+1);
memcpy(dst, src, dwSize);
dst[dwSize] = 0;
strText.ReleaseBuffer();
return strText;
}
void ReplaceInString(CString &str, const CString &src, const CString &dst)
{
CString tmp = str;
while (1)
{
int pos = tmp.Find(src);
if ( pos == -1 ) break;
str = tmp.Left(pos);
str += dst;
str += tmp.Right(tmp.GetLength() - pos - src.GetLength());
tmp = str;
}
}
This replaceinstring is not very efficient, but no problem, because the framework of the source code is not big.
I hope this tool will help you, any comments can be emailed to chunhualiu@yahoo.com.
This article supporting source code