Driver violation-How to use relative path

Hoàng Long Nguyễn 0 Reputation points
2024-08-15T03:57:59.3366667+00:00

Windows version 24H2 (build 26100), I encountered an error recorded in the HLK testing. The error message indicates a violation: "Registry operations should not use absolute paths. Detected create of value(s) under unisolated registry key relative to RTL_REGISTRY_ABSOLUTE" and "Registry operations should only use key handles returned from WDF or WDM APIs". It appear when I trying to write the ComPort name to registry HARDWARE\DEVICEMAP\SERIALCOMM. Anyone has the solution for this error?

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,609 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,450 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
90 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. hl kuang 0 Reputation points
    2024-08-21T02:20:51.36+00:00

    I also have a similar problem in the HLK test of 24H2.
    As list:

    |8/21/2024 02:08:24.196, RuleId: 0x210002, ErrorMessage: File operations should
    not use absolute paths. Detected opening for write access of file
    \SystemRoot\System32\DriverStore\FileRepository\rpp_drv_win.inf_amd64_41e960600470f484\config.bin,
    Module:
    c:\windows\system32\driverstore\filerepository\rpp_drv_win.inf_amd64_41e960600470f484\rpp_drv_win.sys,
    ModuleVersion: , ModuleProvider: , PublishedInf: oem12.inf, InfPath:
    C:\Windows\System32\DriverStore\FileRepository\rpp_drv_win.inf_amd64_41e960600470f484\rpp_drv_win.inf,
    InfVersion: 08/21/2024 9.25.55.915, InfProvider: XDL Technologies Inc, Irql: 0| | -------- | |8/21/2024 02:08:24.196, RuleId: 0x210002, ErrorMessage: File operations should not use absolute paths. Detected opening for write access of file \SystemRoot\System32\DriverStore\FileRepository\rpp_drv_win.inf_amd64_41e960600470f484\config.bin, Module: c:\windows\system32\driverstore\filerepository\rpp_drv_win.inf_amd64_41e960600470f484\rpp_drv_win.sys, ModuleVersion: , ModuleProvider: , PublishedInf: oem12.inf, InfPath: C:\Windows\System32\DriverStore\FileRepository\rpp_drv_win.inf_amd64_41e960600470f484\rpp_drv_win.inf, InfVersion: 08/21/2024 9.25.55.915, InfProvider: XDL Technologies Inc, Irql: 0|

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.