title: Version Info Table Changing pe file by UpdateResource?
body: <p>I'm running program correctly and I see Version Information but in the update resource api run and does not replace the compnayname.</p>
  
  <pre><code>LPCWSTR filename = _T("r1.exe");
  size = GetFileVersionInfoSize(filename, &amp;dwHandle);
  std::vector&lt;BYTE&gt; fileInfo(size,0);
  f = GetFileVersionInfo(filename, 0, size, &amp;fileInfo[0]);
  VerQueryValue(&amp;fileInfo[0], TEXT("\\VarFileInfo\\Translation"), (LPVOID*)&amp;pValueBuffer, &amp;verLength);
  SubBlock.Format(_T("\\StringFileInfo\\040904B0\\CompanyName"), "0x0409", "1200");
  VerQueryValue(&amp;fileInfo[0], SubBlock, (LPVOID *)&amp;lpBuffer, &amp;dwBytes);
  ZeroMemory(lpBuffer, _tcslen(lpBuffer) * sizeof(TCHAR));
  _tcscpy(lpBuffer, _T("My Company"));
  HANDLE hResource = BeginUpdateResource(filename, FALSE);
  VerQueryValueW(&amp;fileInfo[0], TEXT("\\VarFileInfo\\Translation"), (LPVOID*)&amp;pValueBuffer, &amp;verLength);
  f=UpdateResource(hResource, RT_VERSION, MAKEINTRESOURCE(VS_VERSION_INFO), MAKELANGID(SUBLANG_ENGLISH_UK, SUBLANG_DEFAULT), &amp;fileInfo[0], sizeof(lpBuffer));
  
  EndUpdateResource(hResource, FALSE);
  </code></pre>
  
  <p>How can I Replace the Company name or other String Info Table Features????</p>