Commit 8a880898 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

mscoree: Implement GetFileVersion.

parent 7421bb0b
...@@ -963,7 +963,7 @@ static HRESULT WINAPI CLRMetaHost_GetRuntime(ICLRMetaHost* iface, ...@@ -963,7 +963,7 @@ static HRESULT WINAPI CLRMetaHost_GetRuntime(ICLRMetaHost* iface,
return CLR_E_SHIM_RUNTIME; return CLR_E_SHIM_RUNTIME;
} }
static HRESULT WINAPI CLRMetaHost_GetVersionFromFile(ICLRMetaHost* iface, HRESULT WINAPI CLRMetaHost_GetVersionFromFile(ICLRMetaHost* iface,
LPCWSTR pwzFilePath, LPWSTR pwzBuffer, DWORD *pcchBuffer) LPCWSTR pwzFilePath, LPWSTR pwzBuffer, DWORD *pcchBuffer)
{ {
ASSEMBLY *assembly; ASSEMBLY *assembly;
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
@ stdcall GetCORSystemDirectory(ptr long ptr) @ stdcall GetCORSystemDirectory(ptr long ptr)
@ stdcall GetCORVersion(ptr long ptr) @ stdcall GetCORVersion(ptr long ptr)
@ stub GetCompileInfo @ stub GetCompileInfo
@ stub GetFileVersion @ stdcall GetFileVersion(wstr ptr long ptr)
@ stub GetHashFromAssemblyFile @ stub GetHashFromAssemblyFile
@ stub GetHashFromAssemblyFileW @ stub GetHashFromAssemblyFileW
@ stub GetHashFromBlob @ stub GetHashFromBlob
......
...@@ -250,6 +250,17 @@ HRESULT WINAPI GetRequestedRuntimeInfo(LPCWSTR pExe, LPCWSTR pwszVersion, LPCWST ...@@ -250,6 +250,17 @@ HRESULT WINAPI GetRequestedRuntimeInfo(LPCWSTR pExe, LPCWSTR pwszVersion, LPCWST
return ret; return ret;
} }
HRESULT WINAPI GetFileVersion(LPCWSTR szFilename, LPWSTR szBuffer, DWORD cchBuffer, DWORD *dwLength)
{
TRACE("(%s, %p, %d, %p)\n", debugstr_w(szFilename), szBuffer, cchBuffer, dwLength);
if (!szFilename || !dwLength)
return E_POINTER;
*dwLength = cchBuffer;
return CLRMetaHost_GetVersionFromFile(0, szFilename, szBuffer, dwLength);
}
HRESULT WINAPI LoadLibraryShim( LPCWSTR szDllName, LPCWSTR szVersion, LPVOID pvReserved, HMODULE * phModDll) HRESULT WINAPI LoadLibraryShim( LPCWSTR szDllName, LPCWSTR szVersion, LPVOID pvReserved, HMODULE * phModDll)
{ {
HRESULT ret=S_OK; HRESULT ret=S_OK;
......
...@@ -28,6 +28,9 @@ extern char *WtoA(LPCWSTR wstr); ...@@ -28,6 +28,9 @@ extern char *WtoA(LPCWSTR wstr);
extern HRESULT CLRMetaHost_CreateInstance(REFIID riid, void **ppobj); extern HRESULT CLRMetaHost_CreateInstance(REFIID riid, void **ppobj);
extern HRESULT WINAPI CLRMetaHost_GetVersionFromFile(ICLRMetaHost* iface,
LPCWSTR pwzFilePath, LPWSTR pwzBuffer, DWORD *pcchBuffer);
typedef struct tagASSEMBLY ASSEMBLY; typedef struct tagASSEMBLY ASSEMBLY;
HRESULT assembly_create(ASSEMBLY **out, LPCWSTR file); HRESULT assembly_create(ASSEMBLY **out, LPCWSTR file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment