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
7b649831
Commit
7b649831
authored
Mar 12, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msident: Added IUserIdentityManager::EnumIdentities implementation.
parent
06a9f864
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
125 additions
and
2 deletions
+125
-2
msident.c
dlls/msident/msident.c
+125
-2
No files found.
dlls/msident/msident.c
View file @
7b649831
...
@@ -27,8 +27,120 @@
...
@@ -27,8 +27,120 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msident
);
WINE_DEFAULT_DEBUG_CHANNEL
(
msident
);
static
inline
void
*
heap_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
}
static
inline
BOOL
heap_free
(
void
*
mem
)
{
return
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
}
static
HINSTANCE
msident_instance
;
static
HINSTANCE
msident_instance
;
typedef
struct
{
IEnumUserIdentity
IEnumUserIdentity_iface
;
LONG
ref
;
}
EnumUserIdentity
;
static
inline
EnumUserIdentity
*
impl_from_IEnumUserIdentity
(
IEnumUserIdentity
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
EnumUserIdentity
,
IEnumUserIdentity_iface
);
}
static
HRESULT
WINAPI
EnumUserIdentity_QueryInterface
(
IEnumUserIdentity
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
EnumUserIdentity
*
This
=
impl_from_IEnumUserIdentity
(
iface
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(IID_IUnknown %p)
\n
"
,
ppv
);
*
ppv
=
&
This
->
IEnumUserIdentity_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IEnumUserIdentity
,
riid
))
{
TRACE
(
"(IID_IEnumUserIdentity %p)
\n
"
,
ppv
);
*
ppv
=
&
This
->
IEnumUserIdentity_iface
;
}
else
{
WARN
(
"(%s %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
EnumUserIdentity_AddRef
(
IEnumUserIdentity
*
iface
)
{
EnumUserIdentity
*
This
=
impl_from_IEnumUserIdentity
(
iface
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
EnumUserIdentity_Release
(
IEnumUserIdentity
*
iface
)
{
EnumUserIdentity
*
This
=
impl_from_IEnumUserIdentity
(
iface
);
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
heap_free
(
This
);
return
ref
;
}
static
HRESULT
WINAPI
EnumUserIdentity_Next
(
IEnumUserIdentity
*
iface
,
ULONG
celt
,
IUnknown
**
rgelt
,
ULONG
*
pceltFetched
)
{
EnumUserIdentity
*
This
=
impl_from_IEnumUserIdentity
(
iface
);
FIXME
(
"(%p)->(%u %p %p)
\n
"
,
This
,
celt
,
rgelt
,
pceltFetched
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
EnumUserIdentity_Skip
(
IEnumUserIdentity
*
iface
,
ULONG
celt
)
{
EnumUserIdentity
*
This
=
impl_from_IEnumUserIdentity
(
iface
);
FIXME
(
"(%p)->(%u)
\n
"
,
This
,
celt
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
EnumUserIdentity_Reset
(
IEnumUserIdentity
*
iface
)
{
EnumUserIdentity
*
This
=
impl_from_IEnumUserIdentity
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
EnumUserIdentity_Clone
(
IEnumUserIdentity
*
iface
,
IEnumUserIdentity
**
ppenum
)
{
EnumUserIdentity
*
This
=
impl_from_IEnumUserIdentity
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
ppenum
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
EnumUserIdentity_GetCount
(
IEnumUserIdentity
*
iface
,
ULONG
*
pnCount
)
{
EnumUserIdentity
*
This
=
impl_from_IEnumUserIdentity
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pnCount
);
*
pnCount
=
0
;
return
S_OK
;
}
static
const
IEnumUserIdentityVtbl
EnumUserIdentityVtbl
=
{
EnumUserIdentity_QueryInterface
,
EnumUserIdentity_AddRef
,
EnumUserIdentity_Release
,
EnumUserIdentity_Next
,
EnumUserIdentity_Skip
,
EnumUserIdentity_Reset
,
EnumUserIdentity_Clone
,
EnumUserIdentity_GetCount
};
static
HRESULT
WINAPI
UserIdentityManager_QueryInterface
(
IUserIdentityManager
*
iface
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
WINAPI
UserIdentityManager_QueryInterface
(
IUserIdentityManager
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
{
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
...
@@ -61,8 +173,19 @@ static ULONG WINAPI UserIdentityManager_Release(IUserIdentityManager *iface)
...
@@ -61,8 +173,19 @@ static ULONG WINAPI UserIdentityManager_Release(IUserIdentityManager *iface)
static
HRESULT
WINAPI
UserIdentityManager_EnumIdentities
(
IUserIdentityManager
*
iface
,
IEnumUserIdentity
**
ppEnumUser
)
static
HRESULT
WINAPI
UserIdentityManager_EnumIdentities
(
IUserIdentityManager
*
iface
,
IEnumUserIdentity
**
ppEnumUser
)
{
{
FIXME
(
"(%p)
\n
"
,
ppEnumUser
);
EnumUserIdentity
*
ret
;
return
E_NOTIMPL
;
TRACE
(
"(%p)
\n
"
,
ppEnumUser
);
ret
=
heap_alloc
(
sizeof
(
*
ret
));
if
(
!
ret
)
return
E_OUTOFMEMORY
;
ret
->
IEnumUserIdentity_iface
.
lpVtbl
=
&
EnumUserIdentityVtbl
;
ret
->
ref
=
1
;
*
ppEnumUser
=
&
ret
->
IEnumUserIdentity_iface
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
UserIdentityManager_ManageIdentities
(
IUserIdentityManager
*
iface
,
HWND
hwndParent
,
DWORD
dwFlags
)
static
HRESULT
WINAPI
UserIdentityManager_ManageIdentities
(
IUserIdentityManager
*
iface
,
HWND
hwndParent
,
DWORD
dwFlags
)
...
...
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