Hi @Joe Liao ,
Thanks for your details!
From my understanding, DIRID 10 in an INF file maps to %SystemRoot% (the Windows folder, usually C:\Windows). Historically, drivers could copy files into system-wide folders like %SystemRoot% or %System32.
However, starting with Windows 10 (1709) and enforced in Windows 11, Microsoft introduced driver package isolation. This rule prevents drivers from placing files in OS directories because it can break servicing, complicate updates, and create security risks. Instead, all driver files must be staged and serviced from the Driver Store (represented by DIRID 13) which is why I think certain DIRIDs might be restricted.
You can check these out for more information if you'd like:
What causes the “Specified DIRID '10' not allowed” error during INF verification on Windows 11 25H2?
I think the error occurs because your INF file references DIRID 10 in sections like [DestinationDirs], CopyFiles, or ServiceBinary. On Windows 11 25H2, InfVerif enforces isolation rules and flags this as Code 1340.
How can I modify the INF file or driver package to resolve it?
Maybe you could simply try changing any destination from 10 to 13. For example, open your INF file:
[DestinationDirs]
DefaultDestDir = 13
MyDriver.Files = 13
- Update
ServiceBinaryandCopyFilespaths to%13%instead of%10%. - Ensure subdirectories in
SourceDisksFilesmatch the Driver Store layout. - Re-run
infverif.exe /path your.infto confirm if the error is gone.
I highly recommend you read these documents for better clarification:
I hope this helps! If you have any other questions, please feel free to ask. I'll be happy to help!