File Version / Product Version

Some sample code to get the File / Product Version of a file. #include <stdio.h>#include <windows.h> #ifndef nullptr #define nullptr NULL#endif int _tmain(int argc, _TCHAR* argv[]){    if (argc > 1)    {        DWORD dwSize = GetFileVersionInfoSize(argv[1], nullptr);        if (dwSize > 0)        {            BYTE* pBlock = (BYTE*)malloc(dwSize);            if (pBlock != nullptr)            {                if (GetFileVersionInfo(argv[1], 0, dwSize, pBlock))                {                   …

0

Windows Media Center – Reset PlayReady after Hardware change

After a hardware change, Windows Media Center (WMC) will probably start to display “Video playback device does not support playback of protected content” when watching protected content (e.g. CableCARD). This isn’t a HDCP issue, it’s your PlayReady DRM keys. As an Administrator: Close Windows Media Center (and turn off any Windows Media Center Extenders) File…

0