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
3feb3e48
Commit
3feb3e48
authored
Dec 08, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Use an iface instead of a vtbl pointer in LangBarMgr.
parent
774ef1d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
langbarmgr.c
dlls/msctf/langbarmgr.c
+19
-14
No files found.
dlls/msctf/langbarmgr.c
View file @
3feb3e48
...
@@ -31,12 +31,17 @@
...
@@ -31,12 +31,17 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msctf
);
WINE_DEFAULT_DEBUG_CHANNEL
(
msctf
);
typedef
struct
tagLangBarMgr
{
typedef
struct
tagLangBarMgr
{
const
ITfLangBarMgrVtbl
*
LangBarMgrVtbl
;
ITfLangBarMgr
ITfLangBarMgr_iface
;
LONG
refCount
;
LONG
refCount
;
}
LangBarMgr
;
}
LangBarMgr
;
static
inline
LangBarMgr
*
impl_from_ITfLangBarMgr
(
ITfLangBarMgr
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
LangBarMgr
,
ITfLangBarMgr_iface
);
}
static
void
LangBarMgr_Destructor
(
LangBarMgr
*
This
)
static
void
LangBarMgr_Destructor
(
LangBarMgr
*
This
)
{
{
TRACE
(
"destroying %p
\n
"
,
This
);
TRACE
(
"destroying %p
\n
"
,
This
);
...
@@ -46,7 +51,7 @@ static void LangBarMgr_Destructor(LangBarMgr *This)
...
@@ -46,7 +51,7 @@ static void LangBarMgr_Destructor(LangBarMgr *This)
static
HRESULT
WINAPI
LangBarMgr_QueryInterface
(
ITfLangBarMgr
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
static
HRESULT
WINAPI
LangBarMgr_QueryInterface
(
ITfLangBarMgr
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
*
ppvOut
=
NULL
;
*
ppvOut
=
NULL
;
if
(
IsEqualIID
(
iid
,
&
IID_IUnknown
)
||
IsEqualIID
(
iid
,
&
IID_ITfLangBarMgr
))
if
(
IsEqualIID
(
iid
,
&
IID_IUnknown
)
||
IsEqualIID
(
iid
,
&
IID_ITfLangBarMgr
))
...
@@ -66,13 +71,13 @@ static HRESULT WINAPI LangBarMgr_QueryInterface(ITfLangBarMgr *iface, REFIID iid
...
@@ -66,13 +71,13 @@ static HRESULT WINAPI LangBarMgr_QueryInterface(ITfLangBarMgr *iface, REFIID iid
static
ULONG
WINAPI
LangBarMgr_AddRef
(
ITfLangBarMgr
*
iface
)
static
ULONG
WINAPI
LangBarMgr_AddRef
(
ITfLangBarMgr
*
iface
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
return
InterlockedIncrement
(
&
This
->
refCount
);
return
InterlockedIncrement
(
&
This
->
refCount
);
}
}
static
ULONG
WINAPI
LangBarMgr_Release
(
ITfLangBarMgr
*
iface
)
static
ULONG
WINAPI
LangBarMgr_Release
(
ITfLangBarMgr
*
iface
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
ULONG
ret
;
ULONG
ret
;
ret
=
InterlockedDecrement
(
&
This
->
refCount
);
ret
=
InterlockedDecrement
(
&
This
->
refCount
);
...
@@ -87,7 +92,7 @@ static ULONG WINAPI LangBarMgr_Release(ITfLangBarMgr *iface)
...
@@ -87,7 +92,7 @@ static ULONG WINAPI LangBarMgr_Release(ITfLangBarMgr *iface)
static
HRESULT
WINAPI
LangBarMgr_AdviseEventSink
(
ITfLangBarMgr
*
iface
,
ITfLangBarEventSink
*
pSink
,
HWND
hwnd
,
DWORD
dwflags
,
DWORD
*
pdwCookie
)
static
HRESULT
WINAPI
LangBarMgr_AdviseEventSink
(
ITfLangBarMgr
*
iface
,
ITfLangBarEventSink
*
pSink
,
HWND
hwnd
,
DWORD
dwflags
,
DWORD
*
pdwCookie
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
...
@@ -95,7 +100,7 @@ static HRESULT WINAPI LangBarMgr_AdviseEventSink( ITfLangBarMgr* iface, ITfLangB
...
@@ -95,7 +100,7 @@ static HRESULT WINAPI LangBarMgr_AdviseEventSink( ITfLangBarMgr* iface, ITfLangB
static
HRESULT
WINAPI
LangBarMgr_UnAdviseEventSink
(
ITfLangBarMgr
*
iface
,
DWORD
dwCookie
)
static
HRESULT
WINAPI
LangBarMgr_UnAdviseEventSink
(
ITfLangBarMgr
*
iface
,
DWORD
dwCookie
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
...
@@ -103,7 +108,7 @@ static HRESULT WINAPI LangBarMgr_UnAdviseEventSink( ITfLangBarMgr* iface, DWORD
...
@@ -103,7 +108,7 @@ static HRESULT WINAPI LangBarMgr_UnAdviseEventSink( ITfLangBarMgr* iface, DWORD
static
HRESULT
WINAPI
LangBarMgr_GetThreadMarshalInterface
(
ITfLangBarMgr
*
iface
,
DWORD
dwThreadId
,
DWORD
dwType
,
REFIID
riid
,
IUnknown
**
ppunk
)
static
HRESULT
WINAPI
LangBarMgr_GetThreadMarshalInterface
(
ITfLangBarMgr
*
iface
,
DWORD
dwThreadId
,
DWORD
dwType
,
REFIID
riid
,
IUnknown
**
ppunk
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
...
@@ -111,7 +116,7 @@ static HRESULT WINAPI LangBarMgr_GetThreadMarshalInterface( ITfLangBarMgr* iface
...
@@ -111,7 +116,7 @@ static HRESULT WINAPI LangBarMgr_GetThreadMarshalInterface( ITfLangBarMgr* iface
static
HRESULT
WINAPI
LangBarMgr_GetThreadLangBarItemMgr
(
ITfLangBarMgr
*
iface
,
DWORD
dwThreadId
,
ITfLangBarItemMgr
**
pplbi
,
DWORD
*
pdwThreadid
)
static
HRESULT
WINAPI
LangBarMgr_GetThreadLangBarItemMgr
(
ITfLangBarMgr
*
iface
,
DWORD
dwThreadId
,
ITfLangBarItemMgr
**
pplbi
,
DWORD
*
pdwThreadid
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
...
@@ -119,7 +124,7 @@ static HRESULT WINAPI LangBarMgr_GetThreadLangBarItemMgr( ITfLangBarMgr* iface,
...
@@ -119,7 +124,7 @@ static HRESULT WINAPI LangBarMgr_GetThreadLangBarItemMgr( ITfLangBarMgr* iface,
static
HRESULT
WINAPI
LangBarMgr_GetInputProcessorProfiles
(
ITfLangBarMgr
*
iface
,
DWORD
dwThreadId
,
ITfInputProcessorProfiles
**
ppaip
,
DWORD
*
pdwThreadid
)
static
HRESULT
WINAPI
LangBarMgr_GetInputProcessorProfiles
(
ITfLangBarMgr
*
iface
,
DWORD
dwThreadId
,
ITfInputProcessorProfiles
**
ppaip
,
DWORD
*
pdwThreadid
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
...
@@ -127,7 +132,7 @@ static HRESULT WINAPI LangBarMgr_GetInputProcessorProfiles( ITfLangBarMgr* iface
...
@@ -127,7 +132,7 @@ static HRESULT WINAPI LangBarMgr_GetInputProcessorProfiles( ITfLangBarMgr* iface
static
HRESULT
WINAPI
LangBarMgr_RestoreLastFocus
(
ITfLangBarMgr
*
iface
,
DWORD
*
dwThreadId
,
BOOL
fPrev
)
static
HRESULT
WINAPI
LangBarMgr_RestoreLastFocus
(
ITfLangBarMgr
*
iface
,
DWORD
*
dwThreadId
,
BOOL
fPrev
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
...
@@ -135,7 +140,7 @@ static HRESULT WINAPI LangBarMgr_RestoreLastFocus( ITfLangBarMgr* iface, DWORD *
...
@@ -135,7 +140,7 @@ static HRESULT WINAPI LangBarMgr_RestoreLastFocus( ITfLangBarMgr* iface, DWORD *
static
HRESULT
WINAPI
LangBarMgr_SetModalInput
(
ITfLangBarMgr
*
iface
,
ITfLangBarEventSink
*
pSink
,
DWORD
dwThreadId
,
DWORD
dwFlags
)
static
HRESULT
WINAPI
LangBarMgr_SetModalInput
(
ITfLangBarMgr
*
iface
,
ITfLangBarEventSink
*
pSink
,
DWORD
dwThreadId
,
DWORD
dwFlags
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
...
@@ -143,7 +148,7 @@ static HRESULT WINAPI LangBarMgr_SetModalInput( ITfLangBarMgr* iface, ITfLangBar
...
@@ -143,7 +148,7 @@ static HRESULT WINAPI LangBarMgr_SetModalInput( ITfLangBarMgr* iface, ITfLangBar
static
HRESULT
WINAPI
LangBarMgr_ShowFloating
(
ITfLangBarMgr
*
iface
,
DWORD
dwFlags
)
static
HRESULT
WINAPI
LangBarMgr_ShowFloating
(
ITfLangBarMgr
*
iface
,
DWORD
dwFlags
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
...
@@ -151,7 +156,7 @@ static HRESULT WINAPI LangBarMgr_ShowFloating( ITfLangBarMgr* iface, DWORD dwFla
...
@@ -151,7 +156,7 @@ static HRESULT WINAPI LangBarMgr_ShowFloating( ITfLangBarMgr* iface, DWORD dwFla
static
HRESULT
WINAPI
LangBarMgr_GetShowFloatingStatus
(
ITfLangBarMgr
*
iface
,
DWORD
*
pdwFlags
)
static
HRESULT
WINAPI
LangBarMgr_GetShowFloatingStatus
(
ITfLangBarMgr
*
iface
,
DWORD
*
pdwFlags
)
{
{
LangBarMgr
*
This
=
(
LangBarMgr
*
)
iface
;
LangBarMgr
*
This
=
impl_from_ITfLangBarMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
...
@@ -184,7 +189,7 @@ HRESULT LangBarMgr_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
...
@@ -184,7 +189,7 @@ HRESULT LangBarMgr_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
if
(
This
==
NULL
)
if
(
This
==
NULL
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
This
->
LangBarMgrVtbl
=
&
LangBarMgr_LangBarMgrVtbl
;
This
->
ITfLangBarMgr_iface
.
lpVtbl
=
&
LangBarMgr_LangBarMgrVtbl
;
This
->
refCount
=
1
;
This
->
refCount
=
1
;
TRACE
(
"returning %p
\n
"
,
This
);
TRACE
(
"returning %p
\n
"
,
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