comparison cinst/windowsstore.h @ 219:57bef180d560

Add debug output and make windowsstore linkable from C++ code
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 26 Mar 2014 20:16:50 +0100
parents a4b1c77f3e6a
children 4de97f74d038
comparison
equal deleted inserted replaced
218:8fb12af98960 219:57bef180d560
1 #ifdef WIN32 1 #ifdef WIN32
2 #ifndef WINDOWSSTORE_H 2 #ifndef WINDOWSSTORE_H
3 #define WINDOWSSTORE_H 3 #define WINDOWSSTORE_H
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
4 8
5 #include <windows.h> 9 #include <windows.h>
6 #include <wincrypt.h> 10 #include <wincrypt.h>
7 11
8 #include <stdbool.h> 12 #include <stdbool.h>
16 * @returns 0 on success an errorcode otherwise. 20 * @returns 0 on success an errorcode otherwise.
17 */ 21 */
18 int write_stores_win (char **to_install, char **to_remove, 22 int write_stores_win (char **to_install, char **to_remove,
19 bool user_store); 23 bool user_store);
20 24
25 /* The do_ functions are private helper functions and should not be used
26 * from other code. They are not static to allow it to use them directly
27 * in unit tests */
28 void do_remove(HCERTSTORE hStore, char **to_remove);
29 void do_install(HCERTSTORE hStore, char **to_install);
30
31 #ifdef __cplusplus
32 }
33 #endif
34
21 #endif // WINDOWSSTORE_H 35 #endif // WINDOWSSTORE_H
22 #endif // WIN32 36 #endif // WIN32

http://wald.intevation.org/projects/trustbridge/