Home > Articles > Operating Systems, Server > Microsoft Windows Desktop

  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Customize the Sources File

Customize the INX File

The INX file contains the INF that is used to install the driver. To use this file as a basis for your own driver’s installation, you must change a variety of settings. The following list outlines the types of required changes:

  • Change the [Manufacturer] section to include the name of your company and the [Manufacturer.NT$ARCH$] section to include the name and location of your driver.
  • Change the [SourceDisksFiles] section to include the name of your DLL.
  • If your driver is a filter driver, change the [DDInstall.Services] section to install the reflector as the top filter driver in the kernel-mode device stack. If your driver is a function driver, the [DDInstall.Services] section should install the reflector as the service for the device.
  • Change the [DDInstall.Wdf] section to install your driver as a service and list it in the UMDFServiceOrder directive.
  • If your driver performs impersonation, add the UMDFImpersonation directive that specifies the maximum impersonation level for the driver.
  • In the [UMDFServiceInstall] section, change the name of the binary to the name of your driver binary and specify your driver’s class ID in the DriverCLSID directive.
  • In the UMDriverCopy section, specify the name of your DLL.
  • In the [Strings] section, change the strings to specify the name of your company, installation medium, and so forth.

Additional changes might be required depending on the type of device that your driver supports or whether yours is a software-only driver.

Customize the Comsup.cpp File

If you change the name of the driver class to something different from CMyDriver, you must change the following line in CClassFactory::CreateInstance to reflect the new class name:

     hr = CMyDriver::CreateInstance(&driver);
  • + Share This
  • 🔖 Save To Your Account