Tools to generate NT KMD framework Quicksys

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.