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
46e727ae
Commit
46e727ae
authored
May 15, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Add QISearch().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cb95cbc3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
1 deletion
+42
-1
Makefile.in
dlls/kernelbase/Makefile.in
+1
-0
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+1
-1
main.c
dlls/kernelbase/main.c
+40
-0
No files found.
dlls/kernelbase/Makefile.in
View file @
46e727ae
MODULE
=
kernelbase.dll
IMPORTS
=
uuid
C_SRCS
=
\
main.c
\
...
...
dlls/kernelbase/kernelbase.spec
View file @
46e727ae
...
...
@@ -1191,7 +1191,7 @@
# @ stub PublishStateChangeNotification
@ stdcall PulseEvent(long) kernel32.PulseEvent
@ stdcall PurgeComm(long long) kernel32.PurgeComm
@ stdcall QISearch(
long long long long) shlwapi.QISearch
@ stdcall QISearch(
ptr ptr ptr ptr)
@ stdcall QueryActCtxSettingsW(long ptr wstr wstr ptr long ptr) kernel32.QueryActCtxSettingsW
@ stdcall QueryActCtxW(long ptr ptr long ptr long ptr) kernel32.QueryActCtxW
@ stdcall QueryDepthSList(ptr) kernel32.QueryDepthSList
...
...
dlls/kernelbase/main.c
View file @
46e727ae
...
...
@@ -17,10 +17,13 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define COBJMACROS
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windows.h"
#include "appmodel.h"
#include "shlwapi.h"
#include "wine/debug.h"
#include "winternl.h"
...
...
@@ -125,3 +128,40 @@ BOOL WINAPI WaitOnAddress(volatile void *addr, void *cmp, SIZE_T size, DWORD tim
return
TRUE
;
}
HRESULT
WINAPI
QISearch
(
void
*
base
,
const
QITAB
*
table
,
REFIID
riid
,
void
**
obj
)
{
const
QITAB
*
ptr
;
IUnknown
*
unk
;
TRACE
(
"%p, %p, %s, %p
\n
"
,
base
,
table
,
debugstr_guid
(
riid
),
obj
);
if
(
!
obj
)
return
E_POINTER
;
for
(
ptr
=
table
;
ptr
->
piid
;
++
ptr
)
{
TRACE
(
"trying (offset %d) %s
\n
"
,
ptr
->
dwOffset
,
debugstr_guid
(
ptr
->
piid
));
if
(
IsEqualIID
(
riid
,
ptr
->
piid
))
{
unk
=
(
IUnknown
*
)((
BYTE
*
)
base
+
ptr
->
dwOffset
);
TRACE
(
"matched, returning (%p)
\n
"
,
unk
);
*
obj
=
unk
;
IUnknown_AddRef
(
unk
);
return
S_OK
;
}
}
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
unk
=
(
IUnknown
*
)((
BYTE
*
)
base
+
table
->
dwOffset
);
TRACE
(
"returning first for IUnknown (%p)
\n
"
,
unk
);
*
obj
=
unk
;
IUnknown_AddRef
(
unk
);
return
S_OK
;
}
WARN
(
"Not found %s.
\n
"
,
debugstr_guid
(
riid
));
*
obj
=
NULL
;
return
E_NOINTERFACE
;
}
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