Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
515c1377
Commit
515c1377
authored
15 years ago
by
Aric Stewart
Committed by
Alexandre Julliard
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
msctf: Add stub ITfSourceSingle interface to ThreadMgr.
parent
c4da0b61
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/msctf/threadmgr.c
+59
-1
59 additions, 1 deletion
dlls/msctf/threadmgr.c
with
59 additions
and
1 deletion
dlls/msctf/threadmgr.c
+
59
−
1
View file @
515c1377
...
...
@@ -88,7 +88,7 @@ typedef struct tagACLMulti {
/* const ITfConfigureSystemKeystrokeFeedVtbl *ConfigureSystemKeystrokeFeedVtbl; */
/* const ITfLangBarItemMgrVtbl *LangBarItemMgrVtbl; */
/* const ITfUIElementMgrVtbl *UIElementMgrVtbl; */
/*
const ITfSourceSingleVtbl *SourceSingleVtbl;
*/
const
ITfSourceSingleVtbl
*
SourceSingleVtbl
;
LONG
refCount
;
/* Aggregation */
...
...
@@ -153,6 +153,12 @@ static inline ThreadMgr *impl_from_ITfThreadMgrEventSink(ITfThreadMgrEventSink *
return
(
ThreadMgr
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
ThreadMgr
,
ThreadMgrEventSinkVtbl
));
}
static
inline
ThreadMgr
*
impl_from_ITfSourceSingleVtbl
(
ITfSourceSingle
*
iface
)
{
return
(
ThreadMgr
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
ThreadMgr
,
SourceSingleVtbl
));
}
static
HRESULT
SetupWindowsHook
(
ThreadMgr
*
This
)
{
if
(
!
This
->
focusHook
)
...
...
@@ -283,6 +289,10 @@ static HRESULT WINAPI ThreadMgr_QueryInterface(ITfThreadMgr *iface, REFIID iid,
{
*
ppvOut
=
This
->
CompartmentMgr
;
}
else
if
(
IsEqualIID
(
iid
,
&
IID_ITfSourceSingle
))
{
*
ppvOut
=
&
This
->
SourceSingleVtbl
;
}
if
(
*
ppvOut
)
{
...
...
@@ -1172,6 +1182,53 @@ static const ITfThreadMgrEventSinkVtbl ThreadMgr_ThreadMgrEventSinkVtbl =
ThreadMgrEventSink_OnPopContext
};
/*****************************************************
* ITfSourceSingle functions
*****************************************************/
static
HRESULT
WINAPI
ThreadMgrSourceSingle_QueryInterface
(
ITfSourceSingle
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
{
ThreadMgr
*
This
=
impl_from_ITfSourceSingleVtbl
(
iface
);
return
ThreadMgr_QueryInterface
((
ITfThreadMgr
*
)
This
,
iid
,
*
ppvOut
);
}
static
ULONG
WINAPI
ThreadMgrSourceSingle_AddRef
(
ITfSourceSingle
*
iface
)
{
ThreadMgr
*
This
=
impl_from_ITfSourceSingleVtbl
(
iface
);
return
ThreadMgr_AddRef
((
ITfThreadMgr
*
)
This
);
}
static
ULONG
WINAPI
ThreadMgrSourceSingle_Release
(
ITfSourceSingle
*
iface
)
{
ThreadMgr
*
This
=
impl_from_ITfSourceSingleVtbl
(
iface
);
return
ThreadMgr_Release
((
ITfThreadMgr
*
)
This
);
}
static
WINAPI
HRESULT
ThreadMgrSourceSingle_AdviseSingleSink
(
ITfSourceSingle
*
iface
,
TfClientId
tid
,
REFIID
riid
,
IUnknown
*
punk
)
{
ThreadMgr
*
This
=
impl_from_ITfSourceSingleVtbl
(
iface
);
FIXME
(
"STUB:(%p) %i %s %p
\n
"
,
This
,
tid
,
debugstr_guid
(
riid
),
punk
);
return
E_NOTIMPL
;
}
static
WINAPI
HRESULT
ThreadMgrSourceSingle_UnadviseSingleSink
(
ITfSourceSingle
*
iface
,
TfClientId
tid
,
REFIID
riid
)
{
ThreadMgr
*
This
=
impl_from_ITfSourceSingleVtbl
(
iface
);
FIXME
(
"STUB:(%p) %i %s
\n
"
,
This
,
tid
,
debugstr_guid
(
riid
));
return
E_NOTIMPL
;
}
static
const
ITfSourceSingleVtbl
ThreadMgr_SourceSingleVtbl
=
{
ThreadMgrSourceSingle_QueryInterface
,
ThreadMgrSourceSingle_AddRef
,
ThreadMgrSourceSingle_Release
,
ThreadMgrSourceSingle_AdviseSingleSink
,
ThreadMgrSourceSingle_UnadviseSingleSink
,
};
HRESULT
ThreadMgr_Constructor
(
IUnknown
*
pUnkOuter
,
IUnknown
**
ppOut
)
{
ThreadMgr
*
This
;
...
...
@@ -1197,6 +1254,7 @@ HRESULT ThreadMgr_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
This
->
MessagePumpVtbl
=
&
ThreadMgr_MessagePumpVtbl
;
This
->
ClientIdVtbl
=
&
ThreadMgr_ClientIdVtbl
;
This
->
ThreadMgrEventSinkVtbl
=
&
ThreadMgr_ThreadMgrEventSinkVtbl
;
This
->
SourceSingleVtbl
=
&
ThreadMgr_SourceSingleVtbl
;
This
->
refCount
=
1
;
TlsSetValue
(
tlsIndex
,
This
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment