Windows SDKs do not get installed with Visual Studio 2010 only installation, only with Visual Studio 2012 installation. Hence you need to download the Windows SDK, as mentioned in the "Compile" section of the documentation for this sample:
Ensure that the following tools and SDKs are present:
Microsoft Visual Studio 2010 or 2012
If Windows Software Development Kit (SDK) is not installed, install it from
Please install the Windows SDK and try to compile the sample. Let us know if you continue to face issues.
Got it. Compile good, will test codec soon.