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
fec49b9a
Commit
fec49b9a
authored
Aug 24, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wpc: Added IWindowsParentalControls stub implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
14cf136a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
3 deletions
+78
-3
wpc.c
dlls/wpc/tests/wpc.c
+1
-1
wpc.c
dlls/wpc/wpc.c
+77
-2
No files found.
dlls/wpc/tests/wpc.c
View file @
fec49b9a
...
@@ -32,7 +32,7 @@ static void test_wpc(void)
...
@@ -32,7 +32,7 @@ static void test_wpc(void)
if
(
hres
==
REGDB_E_CLASSNOTREG
)
if
(
hres
==
REGDB_E_CLASSNOTREG
)
win_skip
(
"CLSID_WindowsParentalControls not registered
\n
"
);
win_skip
(
"CLSID_WindowsParentalControls not registered
\n
"
);
else
else
todo_wine
ok
(
hres
==
S_OK
,
"Could not create CLSID_WindowsParentalControls instance: %08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"Could not create CLSID_WindowsParentalControls instance: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
;
return
;
...
...
dlls/wpc/wpc.c
View file @
fec49b9a
...
@@ -28,12 +28,87 @@ WINE_DEFAULT_DEBUG_CHANNEL(wpc);
...
@@ -28,12 +28,87 @@ WINE_DEFAULT_DEBUG_CHANNEL(wpc);
static
HINSTANCE
wpc_instance
;
static
HINSTANCE
wpc_instance
;
static
HRESULT
WINAPI
WindowsParentalControls_
CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
outer
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
WINAPI
WindowsParentalControls_
QueryInterface
(
IWindowsParentalControls
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
{
FIXME
(
"(%s %p %p)
\n
"
,
debugstr_guid
(
riid
),
outer
,
ppv
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
))
{
TRACE
(
"(IID_IUnknown %p)
\n
"
,
ppv
);
*
ppv
=
iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWindowsParentalControlsCore
))
{
TRACE
(
"(IID_IWindowsParentalControlsCore %p)
\n
"
,
ppv
);
*
ppv
=
iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IWindowsParentalControls
))
{
TRACE
(
"(IID_IWindowsParentalControls %p)
\n
"
,
ppv
);
*
ppv
=
iface
;
}
else
{
FIXME
(
"unsupported iface %s
\n
"
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
WindowsParentalControls_AddRef
(
IWindowsParentalControls
*
iface
)
{
return
2
;
}
static
ULONG
WINAPI
WindowsParentalControls_Release
(
IWindowsParentalControls
*
iface
)
{
return
1
;
}
static
HRESULT
WINAPI
WindowsParentalControls_GetVisibility
(
IWindowsParentalControls
*
iface
,
WPCFLAG_VISIBILITY
*
visibility
)
{
FIXME
(
"(%p)
\n
"
,
visibility
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
WindowsParentalControls_GetUserSettings
(
IWindowsParentalControls
*
iface
,
const
WCHAR
*
sid
,
IWPCSettings
**
settings
)
{
FIXME
(
"(%s %p)
\n
"
,
debugstr_w
(
sid
),
settings
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
WindowsParentalControls_GetWebSettings
(
IWindowsParentalControls
*
iface
,
const
WCHAR
*
sid
,
IWPCWebSettings
**
settings
)
{
FIXME
(
"(%s %p)
\n
"
,
debugstr_w
(
sid
),
settings
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
WindowsParentalControls_GetWebFilterInfo
(
IWindowsParentalControls
*
iface
,
GUID
*
id
,
WCHAR
**
name
)
{
FIXME
(
"(%p %p)
\n
"
,
id
,
name
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
WindowsParentalControls_GetGamesSettings
(
IWindowsParentalControls
*
iface
,
const
WCHAR
*
sid
,
IWPCGamesSettings
**
settings
)
{
FIXME
(
"(%s %p)
\n
"
,
debugstr_w
(
sid
),
settings
);
return
E_NOTIMPL
;
}
static
const
IWindowsParentalControlsVtbl
WindowsParentalControlsVtbl
=
{
WindowsParentalControls_QueryInterface
,
WindowsParentalControls_AddRef
,
WindowsParentalControls_Release
,
WindowsParentalControls_GetVisibility
,
WindowsParentalControls_GetUserSettings
,
WindowsParentalControls_GetWebSettings
,
WindowsParentalControls_GetWebFilterInfo
,
WindowsParentalControls_GetGamesSettings
};
static
HRESULT
WINAPI
WindowsParentalControls_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
outer
,
REFIID
riid
,
void
**
ppv
)
{
static
IWindowsParentalControls
wpc
=
{
&
WindowsParentalControlsVtbl
};
TRACE
(
"(%s %p %p)
\n
"
,
debugstr_guid
(
riid
),
outer
,
ppv
);
return
IWindowsParentalControls_QueryInterface
(
&
wpc
,
riid
,
ppv
);
}
static
HRESULT
WINAPI
ClassFactory_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
WINAPI
ClassFactory_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
{
*
ppv
=
NULL
;
*
ppv
=
NULL
;
...
...
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