Share via

How to fix avshws.sys driver with {The driver input point cannot be found} (errorcode=39)

PENG TONG 50 Reputation points
2026-03-24T11:24:19.6+00:00

I successfully compiled the project file(Windows-driver-samples-main\avstream\avshws) using VS2022 and generated the avshws.sys,avshws.inf,avshws.cat. Install the driver according to the "README.md" on Win10 22h2. It is not going well,

"Windows is unable to load the device driver for this hardware. The driver may be damaged or missing. (Code 39)

{The driver input point cannot be found}

%hs The input point cannot be found in the %hs device driver (%hs within the driver)."

User's image

Windows development | Windows Driver Kit (WDK)
0 comments No comments

2 answers

Sort by: Most helpful
  1. Tom Tran (WICLOUD CORPORATION) 4,765 Reputation points Microsoft External Staff Moderator
    2026-03-25T07:50:47.52+00:00

    Hi @PENG TONG ,

    This error usually indicates a mismatch in the driver binary at load time rather than an installation issue.

    There are reports with the avshws sample where incorrect project configuration can lead to this behavior, but the exact setting varies depending on the environment, so I don’t want to assume that’s the root cause here.

    To narrow this down, could you confirm:

    • The WDK version used to build the driver
    • Your Windows version and build (winver)
    • The target architecture (x64, x86)
    • Whether you built Debug or Release
    • Whether Test Signing mode is enabled (bcdedit /enum | findstr testsigning)

    Also, please check C:\Windows\INF\setupapi.dev.log and share any lines mentioning avshws, this will show the exact entry point Windows couldn't resolve, which is the most useful piece of information here.


  2. Q&A Assist
    2026-03-24T11:24:45.29+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The Code 39 error indicates that Windows cannot load the avshws.sys driver because the driver binary is failing to load. For this sample, the typical cause is incorrect or outdated project/build settings that produce a driver binary that does not match the target OS or its dependencies.

    To fix the avshws.sys driver in this scenario:

    1. Update the avshws sample project settings to the current WDK/Visual Studio toolset so that it matches the Windows 10 22H2 environment.
    2. Rebuild the driver (avshws.sys, INF, CAT) with the corrected project configuration.
    3. Reinstall the driver so that Device Manager picks up the newly built binary.

    This aligns with the reported resolution where adjusting the project settings resolved the CM_PROB_DRIVER_FAILED_LOAD / Code 39 problem for avshws.


    References:

Your answer

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