Creating windows inf files


















This requirement ensures optimal system boot performance. The ErrorControl entry specifies the action to be taken if the service fails to start during system startup. The following table lists the possible values for ErrorControl and their corresponding error control values. This is different from what is specified for a file system filter driver or file system minifilter driver where the LoadOrderGroup entry is set to one of the file system filter load order groups. For more information about the load order groups that are used for file system filter drivers and file system minifilter drivers, see Load Order Groups for File System Filter Drivers and Load Order Groups and Altitudes for Minifilter Drivers.

The AddReg directive refers to one or more INF writer-defined AddRegistry sections that contain any information to be stored in the registry for the newly installed service. For example:. The DefaultUninstall section is optional but recommended if your driver can be uninstalled. It contains DelFiles and DelReg directives to remove files and registry entries. In the following code example, the DelFiles directive removes the files that are listed in the ExampleFileSystem.

The DelReg directive refers to one or more INF writer-defined DelRegistry sections that contain any information to be removed from the registry for the service that is being uninstalled. The DefaultUninstall. Services section is optional but recommended if your driver can be uninstalled. It contains DelService directives to remove the file system driver's services. In the following code example, the DelService directive removes the file system driver's service from the operating system.

There are certain classes of file system products that cannot be completely uninstalled. In this situation, it is acceptable to just uninstall the components of the product that can be uninstalled and leave installed the components of the product that cannot be uninstalled.

You can create a single international INF file by creating additional locale-specific Strings. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode.

Please rate your experience Yes No. Any additional feedback? Note There are certain classes of file system products that cannot be completely uninstalled. Submit and view feedback for This product This page. View all page feedback. In this article. Leave this entry blank. Each entry contains the name of the device followed by the name of the install section, the device ID, and any compatible devices.

If the device has not been registered, then a device ID that is not Plug and Play compatible that is, one not starting with an asterisk should be used. When registering this type of device, avoid choosing an ID that conflicts with other device IDs "Joystick," for example, would not be a good ID. Some devices do not use resources of their own.

Instead, they use another driver, such as the serial port driver, to communicate with the device. The DirectX 3. The newer VJoyD works if no game ports are configured to allow systems that have no game ports to use devices operated through minidrivers.

Devices using ports in the range 0x to 0x20f are interpreted to be analog game ports by VJoyD, and may therefore be considered conflicting devices by the configuration manager. If the device needs to use a standard game port in a nonstandard way, things get even more interesting. Requesting the standard ports in LogConfig entries of the installation section for the device can work, but it usually results in a lot of reconfiguring and rebooting to swap joysticks.

As long as the user does not configure joysticks to both the standard analog driver and the OEM driver, then run an application that tries to poll them both, this works well enough. In DirectX 3. Control Panel allows such a device to be set up as a global driver, meaning that it, rather than the internal analog polling, gets called for any joysticks that have no minidriver associated with them. If the first four devices during boot are all handled by minidrivers which may be an OEM global driver , VJoyD does not check for -- and is not able to use -- any game ports, even if these devices are no longer handled by minidrivers.

Reconfiguring back to devices using this polling takes effect only after the game port resources have been reallocated probably not until a reboot. The INF file also needs to set up registry entries in the section selected by the AddReg entry of the install section.

For devices requiring a minidriver, the following need to be set up to make sure that the driver is properly associated with the multimedia system drivers:.

The names of the values are defined in Regstr. The DestinationDirs section specifies the directories where filter driver and application files will be copied. In this section and in the ServiceInstall section, you can specify well-known system directories by using system-defined numeric values. The SourceDisksNames section specifies the distribution media to be used. In the following code example, the SourceDisksNames section lists a single distribution media.

The unique identifier for the media is 1. The SourceDisksFiles section specifies the location and names of the files to be copied. In the following code example, the SourceDisksFiles section lists the files to be copied for the driver and specifies that the files can be found on the media whose unique identifier is 1 This identifier is defined in the SourceDisksNames section of the INF file.

In the DefaultInstall section, a CopyFiles directive copies the file system filter driver's driver files and user-application files to the destinations that are specified in the DestinationDirs section.

Services , DefaultUninstall , and DefaultUninstall. Services sections for each operating system version. Each section is labeled with a decoration for example,. In the following code example, the CopyFiles directive copies the files that are listed in the MyLegacyFilter. DriverFiles and MyLegacyFilter. UserFiles sections of the INF file.

The DefaultInstall. Services section contains an AddService directive that controls how and when the services of a particular driver are loaded. In the following code example, the AddService directive adds the MyLegacyFilter service to the operating system.

Service is the name of the example driver's ServiceInstall section. The ServiceInstall section adds subkeys or value names to the registry and sets values. Services section. The DisplayName entry specifies the name for the service. The Description entry specifies a string that describes the service.

The ServiceBinary entry specifies the path to the executable file for the service. The ServiceType entry specifies the type of service. The following table lists the possible values for ServiceType and their corresponding service types. The StartType entry specifies when to start the service. The following table lists the possible values for StartType and their corresponding start types.



0コメント

  • 1000 / 1000