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
f3d07399
Commit
f3d07399
authored
Dec 20, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Dec 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Add additional stores to select store dialog.
parent
3b765cf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
main.c
dlls/cryptui/main.c
+36
-0
No files found.
dlls/cryptui/main.c
View file @
f3d07399
...
...
@@ -179,11 +179,47 @@ static BOOL WINAPI enum_store_callback(const void *pvSystemStore,
static
void
enumerate_stores
(
HWND
hwnd
,
CRYPTUI_ENUM_DATA
*
pEnumData
)
{
DWORD
i
;
HWND
tree
=
GetDlgItem
(
hwnd
,
IDC_STORE_LIST
);
for
(
i
=
0
;
i
<
pEnumData
->
cEnumArgs
;
i
++
)
CertEnumSystemStore
(
pEnumData
->
rgEnumArgs
[
i
].
dwFlags
,
pEnumData
->
rgEnumArgs
[
i
].
pvSystemStoreLocationPara
,
hwnd
,
enum_store_callback
);
for
(
i
=
0
;
i
<
pEnumData
->
cStores
;
i
++
)
{
DWORD
size
;
if
(
CertGetStoreProperty
(
pEnumData
->
rghStore
[
i
],
CERT_STORE_LOCALIZED_NAME_PROP_ID
,
NULL
,
&
size
))
{
LPWSTR
name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
name
)
{
if
(
CertGetStoreProperty
(
pEnumData
->
rghStore
[
i
],
CERT_STORE_LOCALIZED_NAME_PROP_ID
,
name
,
&
size
))
{
struct
StoreInfo
*
storeInfo
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
StoreInfo
));
if
(
storeInfo
)
{
TVINSERTSTRUCTW
tvis
;
storeInfo
->
type
=
StoreHandle
;
storeInfo
->
u
.
store
=
pEnumData
->
rghStore
[
i
];
tvis
.
hParent
=
NULL
;
tvis
.
hInsertAfter
=
TVI_LAST
;
tvis
.
u
.
item
.
mask
=
TVIF_TEXT
|
TVIF_PARAM
;
tvis
.
u
.
item
.
pszText
=
name
;
tvis
.
u
.
item
.
lParam
=
(
LPARAM
)
storeInfo
;
SendMessageW
(
tree
,
TVM_INSERTITEMW
,
0
,
(
LPARAM
)
&
tvis
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
name
);
}
}
}
}
static
void
free_store_info
(
HWND
tree
)
...
...
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