Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
8a880898
Commit
8a880898
authored
Jan 27, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Jan 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Implement GetFileVersion.
parent
7421bb0b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
2 deletions
+16
-2
metahost.c
dlls/mscoree/metahost.c
+1
-1
mscoree.spec
dlls/mscoree/mscoree.spec
+1
-1
mscoree_main.c
dlls/mscoree/mscoree_main.c
+11
-0
mscoree_private.h
dlls/mscoree/mscoree_private.h
+3
-0
No files found.
dlls/mscoree/metahost.c
View file @
8a880898
...
...
@@ -963,7 +963,7 @@ static HRESULT WINAPI CLRMetaHost_GetRuntime(ICLRMetaHost* iface,
return
CLR_E_SHIM_RUNTIME
;
}
static
HRESULT
WINAPI
CLRMetaHost_GetVersionFromFile
(
ICLRMetaHost
*
iface
,
HRESULT
WINAPI
CLRMetaHost_GetVersionFromFile
(
ICLRMetaHost
*
iface
,
LPCWSTR
pwzFilePath
,
LPWSTR
pwzBuffer
,
DWORD
*
pcchBuffer
)
{
ASSEMBLY
*
assembly
;
...
...
dlls/mscoree/mscoree.spec
View file @
8a880898
...
...
@@ -43,7 +43,7 @@
@ stdcall GetCORSystemDirectory(ptr long ptr)
@ stdcall GetCORVersion(ptr long ptr)
@ stub GetCompileInfo
@ st
ub GetFileVersion
@ st
dcall GetFileVersion(wstr ptr long ptr)
@ stub GetHashFromAssemblyFile
@ stub GetHashFromAssemblyFileW
@ stub GetHashFromBlob
...
...
dlls/mscoree/mscoree_main.c
View file @
8a880898
...
...
@@ -250,6 +250,17 @@ HRESULT WINAPI GetRequestedRuntimeInfo(LPCWSTR pExe, LPCWSTR pwszVersion, LPCWST
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
ret
=
S_OK
;
...
...
dlls/mscoree/mscoree_private.h
View file @
8a880898
...
...
@@ -28,6 +28,9 @@ extern char *WtoA(LPCWSTR wstr);
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
;
HRESULT
assembly_create
(
ASSEMBLY
**
out
,
LPCWSTR
file
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment