"Uwe Bonnes" bon@elektron.ikp.physik.tu-darmstadt.de wrote:
>> -DWORD WINAPI VerQueryValueA(LPVOID,LPCSTR,LPVOID*,UINT*); -DWORD >> WINAPI VerQueryValueW(LPVOID,LPCWSTR,LPVOID*,UINT*); +BOOL WINAPI >> VerQueryValueA(const LPVOID,LPCSTR,UINT*,UINT*); +BOOL WINAPI >> VerQueryValueW(const LPVOID,LPCWSTR,UINT*,UINT*); Dmitry> Where did you get it? PSDK agrees with current Wine definition Dmitry> on the 3rd param type. Also the 2nd param should not be 'const'.
MSDN (look with Google for VerQueryValue and use the first hit) has (const LPVOID ..., LPTSTR ..., PUINT ..., PUINT ...)
MSDN is known to contradict with PSDK headers. PSDK February 2003 has the following:
VerQueryValueA( const LPVOID pBlock, LPSTR lpSubBlock, LPVOID * lplpBuffer, PUINT puLen ); BOOL APIENTRY VerQueryValueW( const LPVOID pBlock, LPWSTR lpSubBlock, LPVOID * lplpBuffer, PUINT puLen );