명령줄에서 InfVerif 실행

이 항목에서는 명령줄에서 InfVerif.exe 실행할 때 사용할 수 있는 옵션을 나열합니다.

참고 항목

InfVerif에서는 결합된 각 경로와 파일 이름이 260자 미만이어야 합니다.

USAGE: InfVerif.exe [/code <error code>] [/v] [[/h] | [/w] | [/u] | [/k]]
                    [/rulever <Major.Minor.Build> | vnext]
                    [/wbuild <Major.Minor.Build>] [/info] [/stampinf]
                    [/l <path>] [/osver <TargetOSVersion>] [/product <ias file>]
                    [/provider <ProviderName>] <files>

/code <error code>
        Display help information for an error code.

/v
        Display verbose file logging details.

/h
        Reports errors using WHQL Signature requirements. (mode)

        This mode uses requirements that always align with the requirements
        to get a WHQL signature, current as of this InfVerif version. These
        requirements may change build-to-build.

        This mode can be combined with '/rulever vnext' to preview proposed
        future requirements.

/w
        Reports errors using Windows Driver requirements. (mode)

/u
        Reports errors using Universal Driver requirements. (mode)

/k
        Reports errors using Declarative Driver requirements. (mode)

/wbuild <Major.Minor.Build>
        For Windows Drivers that have downlevel support, specifies
        the build number where /w should be enforced.
        Defaults to 10.0.17763

/rulever <Major.Minor.Build>
        To use a previous or future version of InfVerif enforcement, specifies
        the build number to use rule enforcement from.
        Defaults to the current InfVerif version

/info
        Displays INF summary information.

/stampinf
        Treat $ARCH$ as a valid architecture, to validate
        pre-stampinf files.

/l <path>
        An inline-annotated HTML version of each INF
        file will be placed in the <path>.

/osver <TargetOsVersion>
        Process the INF for only a specific target OS.
        Formatting is the same as a Models section, i.e. NTAMD64.6.0

/product <ias file>
        Validates all include/needs directives against
        the product definition in the ias file.

/provider <ProviderName>
        Reports an error for INFs not using the specified provider name.

<files>
        A space-separated list of INF files to analyze.
        All files must have .inf extension.
        Wildcards (*) may be used.

Only one mode option may be passed at a time.

오류 코드에 대한 자세한 내용은 INF 유효성 검사 오류 및 경고를 참조 하세요.

자세한 정보 표시 옵션은 INF가 유효한지 여부를 지정하는 선을 출력에 추가합니다. 특정 인수는 하나의 인수만 전달되어야 하는 모드로 태그가 지정됩니다.

TargetOSVersion 서식 지정의 예는 INF 제조업체 섹션의 설명 섹션을 참조하세요.

여러 INF 파일의 유효성을 검사하려면 여러 파일 이름을 제공하거나 와일드카드를 사용합니다.

infverif.exe /w test1.inf test2.inf
infverif.exe /w test*.inf

Windows 10 버전 1703의 새로운 기능: 정보 옵션은 INF 적용 가능성을 확인하는 데 특히 유용합니다. 유효한 아키텍처 및 최소 OS 버전과 함께 지원되는 각 하드웨어 ID를 보고합니다. /info 및 /osver를 함께 사용하여 OS 버전 및 아키텍처에서 INF의 적용 가능성을 확인할 수 있습니다.

Windows 10 버전 1809의 새로운 기능: Windows 드라이버를 개발하는 경우 DCH 디자인 원칙선언적(D) 원칙과의 호환성을 결정하는 데(이상적으로/v는) 사용합니다 infverif /w . 또한 플래그는 /w INF가 Windows 드라이버 개발 시작의 드라이버 패키지 격리 요구 사항을 준수하는지 확인합니다.

새 Windows 11 버전 24H2: 오류 코드에 대한 확장된 세부 정보를 제공하기 위해 새로운 '/code' 인수가 도입되었습니다. INF 파일이 드라이버 패키지에 서명하는 하드웨어 개발자 센터 요구 사항을 충족하는지 여부를 확인하기 위해 새 모드 'infverif /h'가 도입되었습니다. 'infverif /h'에 대한 자세한 내용은 InfVerif /h를 참조하세요.

InfVerif 및 MSBuild 작업

MSBuild는 Stampinf 작업 바로 뒤의 작업으로 InfVerif를 자동으로 실행합니다. 프로젝트 속성(구성 속성->드라이버 설정)에서 대상 플랫폼을 사용하여 다음과 같이 자동 구성합니다.

  • 대상 플랫폼 = 데스크톱 사용 InfVerif /h
  • 대상 플랫폼 = 유니버설 사용 InfVerif /u
  • 대상 플랫폼 = Windows 드라이버 사용 InfVerif /w

해당 자동 호출을 변경할 수 없습니다. 위에서 설명한 다른 설정을 사용하려는 경우 독립 실행형으로 InfVerif를 실행하거나 .vcxproj 파일의 사용자 지정 대상을 사용하여 InfVerif.exe 호출할 수 있습니다.