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
515c1377
Commit
515c1377
authored
Sep 08, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Sep 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Add stub ITfSourceSingle interface to ThreadMgr.
parent
c4da0b61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
1 deletion
+59
-1
threadmgr.c
dlls/msctf/threadmgr.c
+59
-1
No files found.
dlls/msctf/threadmgr.c
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
);
...
...
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