#include "memfile.h" #include "cdisource.h" /* Fail gracefully if UNICODE build is enabled */ #ifdef UNICODE #error This application does not build for UNICODE. #endif
if (FAILED(hr)) printf("Failed to create graph and render file HRESULT 0x%8.8X", hr); else { // Play the file HRESULT hr = PlayFileWait(pFG); if (FAILED(hr)) { printf("Failed to play graph HRESULT 0x%8.8X", hr); } } if (pFG) { ULONG ulRelease = pFG->Release(); if (ulRelease != 0) { printf("Filter graph count not 0! was %d", ulRelease); } } CoUninitialize(); return 0; }