Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The following example illustrates a component definition file viewed in a text editor. For specific information, click the appropriate hyperlink. Sample component definition files are provided on the Windows NT Embedded 4.0 CD-ROM, in the KDF_SAMPLES directory.
For appropriate file syntax, see Component Definition File Syntax.
Example
; Sample.kdf
; Sample Component Definition File in KDF Version 1
; (c) 1998 Microsoft, Inc.
;
[Version]
signature = "$Windows NT$"
KDFVersion = 1
;
[Header]
Name = WIDGETCO_CK_SCSI
Version = 1.0
ReleaseDate = 4/21/1999
Vendor = WIDGETCO
OS = WINNT
OSVersion = 4.0
Platform = i386
Repository = %%WinNT%%
Description = "WidgetCo SCSI Driver Component Definition File"
CodePage = 1252
;
[Capabilities]
1 = WidgetCo SCSI Drivers, %%ROOT%%\Applications\Add-Ins, wid.tdx, 1
2 = WidgetCo SCSI Adapters, %%ROOT%%\Applications\Add-Ins, wid.tdx, 1
; Component
;
[Components]
1 = "WidgetCo SCSI Driver", "WidgetCo SCSI Driver", 1, wid.tdx, 1, ,wid.ini
2 = "WidgetCo SCSI Adapter", "WidgetCo SCSI Adapter", 2, wid.tdx, 1, , wid.ini
; Dependencies Section
;
[CapabilityDependencies]
; Make WidgetCo SCSI drivers
; mutually exclusive.
1, 1, N
[ComponentDependencies]
; The adapter depends on the driver
2, 1
[ComponentCapabilityDependencies]
; none
[CapabilityComponentDependencies]
; none
;
[Directories]
; Entries in this section are used for
; reference in a subsequent Files section.
; Enclose directory paths that end in back slash
; in quotation marks.
;
1 = "\"
2 = \winnt\system32
3 = \temp
;
[WidgetCo SCSI Driver.Files]
; Put the wid32.dll in the target
; directory:\winnt\system32.
; Put the wid.exe in the same directory
; and rename it.
; Put the empty temporary directory
; in the target system.
;
wid32.dll, 1, 2, 62594
wid.exe, 1, 2, 59300, Widget Controller.exe
,, 3
; Registry Additions Section
;
[WidgetCo SCSI Driver.RegistryAdditions]
KeyName = "HKEY_LOCAL_MACHINE\SYSTEM\"\
"ControlSet001\Services\WidgetCoSCSI"
ValueName = Description
Type = REG_SZ
Data = "This is ""quoted"" string data."
ValueName = ExpandStringData
Type = REG_EXPAND_SZ
Data = "This is expanded when it is used on"\
"the target: %%Systemroot%%"
ValueName = Startup
Type = REG_DWORD
Data = 0x1
ValueName = BinaryData
Type = REG_BINARY
Data = 11,00,1c,c7
ValueName = MultiStringData
Type = REG_MULTI_SZ
Data = "String1", "String2",\
"String3"
; end of file