Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
bcc19133
Commit
bcc19133
authored
Feb 21, 2007
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Implemented FindExecutableImage[W].
parent
43dffcd0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
5 deletions
+36
-5
dbghelp.spec
dlls/dbghelp/dbghelp.spec
+2
-2
path.c
dlls/dbghelp/path.c
+31
-2
imagehlp.spec
dlls/imagehlp/imagehlp.spec
+1
-1
dbghelp.h
include/dbghelp.h
+2
-0
No files found.
dlls/dbghelp/dbghelp.spec
View file @
bcc19133
...
...
@@ -10,8 +10,8 @@
@ stdcall FindDebugInfoFileEx(str str ptr ptr ptr)
@ stub FindDebugInfoFileExW
@ stdcall FindExecutableImage(str str str)
@ st
ub FindExecutableImageEx
@ st
ub FindExecutableImageExW
@ st
dcall FindExecutableImageEx(str str ptr ptr ptr)
@ st
dcall FindExecutableImageExW(wstr wstr ptr ptr ptr)
@ stub FindFileInPath
@ stub FindFileInSearchPath
@ stdcall GetTimestampForLoadedLibrary(long)
...
...
dlls/dbghelp/path.c
View file @
bcc19133
...
...
@@ -76,12 +76,32 @@ HANDLE WINAPI FindDebugInfoFileEx(PCSTR FileName, PCSTR SymbolPath,
}
/******************************************************************
* FindExecutableImage (DBGHELP.@)
* FindExecutableImage
ExW
(DBGHELP.@)
*
*/
HANDLE
WINAPI
FindExecutableImage
(
PCSTR
FileName
,
PCSTR
SymbolPath
,
PSTR
ImageFilePath
)
HANDLE
WINAPI
FindExecutableImageExW
(
PCWSTR
FileName
,
PCWSTR
SymbolPath
,
PWSTR
ImageFilePath
,
PFIND_EXE_FILE_CALLBACKW
Callback
,
void
*
user
)
{
HANDLE
h
;
if
(
Callback
)
FIXME
(
"Unsupported callback yet
\n
"
);
if
(
!
SearchPathW
(
SymbolPath
,
FileName
,
NULL
,
MAX_PATH
,
ImageFilePath
,
NULL
))
return
NULL
;
h
=
CreateFileW
(
ImageFilePath
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
return
(
h
==
INVALID_HANDLE_VALUE
)
?
NULL
:
h
;
}
/******************************************************************
* FindExecutableImageEx (DBGHELP.@)
*
*/
HANDLE
WINAPI
FindExecutableImageEx
(
PCSTR
FileName
,
PCSTR
SymbolPath
,
PSTR
ImageFilePath
,
PFIND_EXE_FILE_CALLBACK
Callback
,
void
*
user
)
{
HANDLE
h
;
if
(
Callback
)
FIXME
(
"Unsupported callback yet
\n
"
);
if
(
!
SearchPathA
(
SymbolPath
,
FileName
,
NULL
,
MAX_PATH
,
ImageFilePath
,
NULL
))
return
NULL
;
h
=
CreateFileA
(
ImageFilePath
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
...
...
@@ -89,6 +109,15 @@ HANDLE WINAPI FindExecutableImage(PCSTR FileName, PCSTR SymbolPath, PSTR ImageFi
return
(
h
==
INVALID_HANDLE_VALUE
)
?
NULL
:
h
;
}
/******************************************************************
* FindExecutableImage (DBGHELP.@)
*
*/
HANDLE
WINAPI
FindExecutableImage
(
PCSTR
FileName
,
PCSTR
SymbolPath
,
PSTR
ImageFilePath
)
{
return
FindExecutableImageEx
(
FileName
,
SymbolPath
,
ImageFilePath
,
NULL
,
NULL
);
}
/***********************************************************************
* MakeSureDirectoryPathExists (DBGHELP.@)
*/
...
...
dlls/imagehlp/imagehlp.spec
View file @
bcc19133
...
...
@@ -6,7 +6,7 @@
@ stdcall FindDebugInfoFile(str str str) dbghelp.FindDebugInfoFile
@ stdcall FindDebugInfoFileEx(str str ptr ptr ptr) dbghelp.FindDebugInfoFileEx
@ stdcall FindExecutableImage(str str str) dbghelp.FindExecutableImage
@ st
ub
FindExecutableImageEx
@ st
dcall FindExecutableImageEx(str str ptr ptr ptr) dbghelp.
FindExecutableImageEx
@ stub FindFileInPath
@ stub FindFileInSearchPath
@ stdcall GetImageConfigInformation(ptr ptr)
...
...
include/dbghelp.h
View file @
bcc19133
...
...
@@ -1005,6 +1005,8 @@ BOOL WINAPI SymFindFileInPath(HANDLE, PCSTR, PCSTR, PVOID, DWORD, DWORD, DWORD,
HANDLE
WINAPI
FindExecutableImage
(
PCSTR
,
PCSTR
,
PSTR
);
typedef
BOOL
(
CALLBACK
*
PFIND_EXE_FILE_CALLBACK
)(
HANDLE
,
PSTR
,
PVOID
);
HANDLE
WINAPI
FindExecutableImageEx
(
PCSTR
,
PCSTR
,
PSTR
,
PFIND_EXE_FILE_CALLBACK
,
PVOID
);
typedef
BOOL
(
CALLBACK
*
PFIND_EXE_FILE_CALLBACKW
)(
HANDLE
,
PWSTR
,
PVOID
);
HANDLE
WINAPI
FindExecutableImageExW
(
PCWSTR
,
PCWSTR
,
PWSTR
,
PFIND_EXE_FILE_CALLBACKW
,
PVOID
);
PIMAGE_NT_HEADERS
WINAPI
ImageNtHeader
(
PVOID
);
PVOID
WINAPI
ImageDirectoryEntryToDataEx
(
PVOID
,
BOOLEAN
,
USHORT
,
PULONG
,
PIMAGE_SECTION_HEADER
*
);
...
...
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