WFPSampler fails to build under windows 10

Richard Wang 106 Reputation points
2021-01-17T23:05:56.777+00:00

Hi there,

I try to build the WFPSampler under windows 10.0.19042 and failed with below message:
The WDK version is: 10.0.19041.685 and the SDK version is 10.0.19041.1. And I am using visual studio 2019 community version.
Seems some dependencies not found. Thanks in advance for any suggestion.

Severity Code Description Project File Line Suppression State
Error C2065 'IpDiscardIPSNPIDrop': undeclared identifier WFPSamplerCalloutDriver D:\project\win_proxy\Windows-driver-samples\network\trans\WFPSampler\sys\ClassifyFunctions_BasicPacketExaminationCallouts.cpp 4202
Severity Code Description Project File Line Suppression State
Error C2051 case expression not constant WFPSamplerCalloutDriver D:\project\win_proxy\Windows-driver-samples\network\trans\WFPSampler\sys\ClassifyFunctions_BasicPacketExaminationCallouts.cpp 4202
Severity Code Description Project File Line Suppression State
Error LNK1181 cannot open input file 'api-ms-win-net-isolation-l1-1-0.lib' WFPSamplerService D:\project\win_proxy\Windows-driver-samples\network\trans\WFPSampler\svc\LINK 1

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,625 questions
{count} vote

Accepted answer
  1. Richard Wang 106 Reputation points
    2021-01-20T05:09:24.197+00:00

    Build passed after applying the fix from below link. Thanks a lot Maybecompletelyw_0 for the hint.
    https://github.com/microsoft/Windows-driver-samples/pull/538/files

    Note:
    There are several places in the network/trans/WFPSampler/svc/WFPSamplerService.vcxproj file for the update. Need to change all of them.
    From
    api-ms-win-net-isolation-l1-1-0.lib
    To
    OneCoreUap.lib

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Cymon Kilmer -MSFT 801 Reputation points
    2021-01-20T00:09:34.457+00:00

    Can you download the matching SDK and try building again as both were refreshed at the same time.
    https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/

    1 person found this answer helpful.

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.