I get the errors
POLINK: error: Unresolved external symbol '_EncoderQuality'.
POLINK: error: Unresolved external symbol '_EncoderCompression'.
You can try to avoid usage of DEFINE_GUID.
Instead of
DEFINE_GUID(EncoderCompression, 0xe09d739d,0xccd4,0x44ee,0x8e,0xba,0x3f,0xbf,0x8b,0xe4,0xfc,0x58);
use
extern const GUID EncoderCompression = {0xe09d739d,0xccd4,0x44ee,{0x8e,0xba,0x3f,0xbf,0x8b,0xe4,0xfc,0x58}};
and you don't need to include initguide.h
Another way is to include initguide.h prior to windows.h.