none
String in INF file ? RRS feed

  • Question

  • In INF file The string section is making some trouble for me. 

    like the line of the following example, 

    %*pnp0f0d.DeviceDesc%      = Inp_Inst,*PNP0F0D

    which part is going to translated from [STRING] section ? and what is Inp_Inst, ..... { Right side }

    [Version]
    Signature="$Windows NT$"
    Class=Mouse
    ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
    Provider=%Provider% ; defined later in Strings section
    DriverVer=09/28/1999,5.00.2136.1
    
    [DestinationDirs]
    DefaultDestDir=12 ; DIRID_DRIVERS
    
    ; ... [ControlFlags] section omitted here
    
    [Manufacturer]
    %StdMfg%    =StdMfg         ; (Standard types)
    %MSMfg%     =MSMfg          ; Microsoft
    ; ... %otherMfg% entries omitted here
    
    [StdMfg]  ; per-Manufacturer Models section 
    ; Std serial mouse
    %*pnp0f0c.DeviceDesc%= Ser_Inst,*PNP0F0C,SERENUM\PNP0F0C,SERIAL_MOUSE
    ; Std InPort mouse
    %*pnp0f0d.DeviceDesc%      = Inp_Inst,*PNP0F0D
         ; ... more StdMfg entries and following
         ; MSMfg and xxMfg Models sections omitted here
    
         ; per-Models DDInstall (Ser_Inst, Inp_Inst, etc.)
         ; sections also omitted here
    
    [Strings] 
    ; where INF %strkey% tokens are defined as user-visible (and
    ; possibly as locale-specific) strings.
    Provider = "Microsoft"
    ; ...
    StdMfg   = "(Standard mouse types)"
    MSMfg    = "Microsoft"
    
    ; ...
    *pnp0f0c.DeviceDesc   = "Standard Serial Mouse"
    *pnp0f0d.DeviceDesc   = "InPort Adapter Mouse"
    ; ... 
    HID\Vid_045E&Pid_0009.DeviceDesc = "Microsoft USB Intellimouse"
    ; ...

    Tuesday, August 23, 2016 8:17 AM

Answers