|
You last visited: Today at 01:16
Advertisement
File Info
Discussion on File Info within the C/C++ forum part of the Coders Den category.
08/23/2015, 02:59
|
#1
|
elite*gold: 0
Join Date: May 2009
Posts: 634
Received Thanks: 794
|
File Info
Yo E*pvp,
Sieht jemand den Fehler?
Code:
dwSize = GetFileVersionInfoSize(FileName, &dwHandle);
if (dwSize != NULL)
{
LPBYTE lpBuffer = new BYTE[dwSize];
if (GetFileVersionInfo(FileName, 0, dwSize, lpBuffer) != FALSE)
{
if (VerQueryValue(lpBuffer, _T("\\VarFileInfo\\Translation"), (LPVOID *)&lpTranslate, &uTemp) != FALSE)
{
swprintf(strSubBlock, L"\\StringFileInfo\\%04x%04x\\FileDescription",lpTranslate->wLanguage, lpTranslate->wCodePage);
if (VerQueryValueW(lpBuffer, strSubBlock, (LPVOID *)&pValueBuffer, &uTemp) != FALSE)
{
ZeroMemory(pValueBuffer, wcslen(pValueBuffer) * sizeof(TCHAR));
wcscpy(pValueBuffer, L"MyName");
HANDLE hUpdate = BeginUpdateResource(FileName, FALSE);
DWORD Up = UpdateResource(hUpdate, RT_VERSION, MAKEINTRESOURCE(VS_FILE_INFO), lpTranslate->wLanguage, pValueBuffer, dwSize);
if (Up == FALSE)
MessageBox(0, "UpdateNameResource", "ERROR", 0);
EndUpdateResource(hUpdate, FALSE);
}
else
MessageBox(0, GetLastErrorStdStr().c_str(), "woot q2?", 0);
}
else
MessageBox(0, GetLastErrorStdStr().c_str(), "woot q?", 0);
}
else
MessageBox(0, GetLastErrorStdStr().c_str(), "woot info?", 0);
}else
MessageBox(0, GetLastErrorStdStr().c_str(),"woot size?", 0);
|
|
|
08/23/2015, 21:33
|
#2
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,160
Received Thanks: 232
|
Mein Computerbildschirm ist leider nicht breit genug, sorry.
|
|
|
08/23/2015, 22:10
|
#3
|
elite*gold: 0
Join Date: May 2009
Posts: 634
Received Thanks: 794
|
nvm #solved
|
|
|
 |
Similar Threads
|
vindictus reading file info hilfe
10/23/2014 - Technical Support - 2 Replies
hallo
wenn ich das spiel starten möchte kommt bei der installation immer die nachricht "reading file info".
habe schon alles probiert mit proxy server usw. aber nichts klappt.
wisst ihr was man noch machen kann?
bitte um hilfe
|
[TRAVIAN] GlobalWars.Info | Dboor Premium File | OFFICIAL Open | 250x ]
04/19/2013 - Browsergames - 4 Replies
Site :
Forum :
Official Open : 17.04.2013
Natar : 10.05.2013
Premium Files
Official Server Coder : Niko28
|
Login info file? o.O
12/08/2012 - Eudemons Online - 0 Replies
So this private server I am on seems to replace my saved accounts list every single time they patch. It's really getting annoying but apparently they don't know which file holds that info so they can't fix it. Where is this file, what's it called? {To be clear: When you log into a server and type in your acct name, you have the option to "Remember" it - where is this saved?} Thanks for any help you can give! <3
|
[INFO]Where is the file iteminfo.x4 in the client
04/22/2010 - S4 League Hacks, Bots, Cheats & Exploits - 5 Replies
Hello guys, I would like to know what position is iteminfo.x4 file because the client can not find it, thank you if you tell me
Excuse me for my English but I'm Italian XD
|
All times are GMT +1. The time now is 01:17.
|
|