ReactOS 0.4.17-dev-414-ge848ce1
store.c File Reference
#include <windef.h>
#include <winbase.h>
#include <wincrypt.h>
#include <wine/debug.h>
#include <crypt32_private.h>
Include dependency graph for store.c:

Go to the source code of this file.

Classes

struct  _CERT_SYSTEM_STORE_LOCATION
 

Typedefs

typedef struct _CERT_SYSTEM_STORE_LOCATION CERT_SYSTEM_STORE_LOCATION
 
typedef struct _CERT_SYSTEM_STORE_LOCATIONPCERT_SYSTEM_STORE_LOCATION
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (crypt)
 
BOOL WINAPI CertEnumSystemStoreLocation (_In_ DWORD dwFlags, _Inout_opt_ void *pvArg, __callback PFN_CERT_ENUM_SYSTEM_STORE_LOCATION pfnEnum)
 

Variables

static const CERT_SYSTEM_STORE_LOCATION gSystemStoreLocations []
 

Typedef Documentation

◆ CERT_SYSTEM_STORE_LOCATION

◆ PCERT_SYSTEM_STORE_LOCATION

Function Documentation

◆ CertEnumSystemStoreLocation()

BOOL WINAPI CertEnumSystemStoreLocation ( _In_ DWORD  dwFlags,
_Inout_opt_ void pvArg,
__callback PFN_CERT_ENUM_SYSTEM_STORE_LOCATION  pfnEnum 
)

Definition at line 35 of file store.c.

39{
40 DWORD i;
41
42 /* Check input flags */
43 if (dwFlags != 0)
44 {
46 return FALSE;
47 }
48
49 /* Return fixed system stores */
50 for (i = 0; i < ARRAYSIZE(gSystemStoreLocations); i++)
51 {
52 if (!pfnEnum(gSystemStoreLocations[i].pwszStoreLocation,
54 NULL,
55 pvArg))
56 {
57 return FALSE;
58 }
59 }
60
61 /* FIXME: Return registered OID system stores by calling CryptEnumOIDFunction */
62 FIXME("Registered OID system stores is not enumerated\n");
63
64 return TRUE;
65}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define ARRAYSIZE(array)
Definition: filtermapper.c:47
static const CERT_SYSTEM_STORE_LOCATION gSystemStoreLocations[]
Definition: store.c:22
#define SetLastError(x)
Definition: compat.h:752
unsigned long DWORD
Definition: ntddk_ex.h:95
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
_In_ LPWSTR _In_ DWORD _In_ DWORD _In_ DWORD dwFlags
Definition: netsh.h:141

Referenced by START_TEST().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( crypt  )

Variable Documentation

◆ gSystemStoreLocations

const CERT_SYSTEM_STORE_LOCATION gSystemStoreLocations[]
static
Initial value:
= {
{ CERT_SYSTEM_STORE_CURRENT_USER, L"CurrentUser" },
{ CERT_SYSTEM_STORE_LOCAL_MACHINE, L"LocalMachine" },
{ CERT_SYSTEM_STORE_CURRENT_SERVICE, L"CurrentService" },
{ CERT_SYSTEM_STORE_SERVICES, L"Services" },
{ CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY, L"CurrentUserGroupPolicy" },
{ CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY, L"LocalMachineGroupPolicy" },
{ CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE, L"LocalMachineEnterprise" },
}
#define L(x)
Definition: resources.c:13
#define CERT_SYSTEM_STORE_SERVICES
Definition: wincrypt.h:2534
#define CERT_SYSTEM_STORE_CURRENT_SERVICE
Definition: wincrypt.h:2532
#define CERT_SYSTEM_STORE_USERS
Definition: wincrypt.h:2536
#define CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE
Definition: wincrypt.h:2542
#define CERT_SYSTEM_STORE_LOCAL_MACHINE
Definition: wincrypt.h:2530
#define CERT_SYSTEM_STORE_CURRENT_USER
Definition: wincrypt.h:2528
#define CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY
Definition: wincrypt.h:2538
#define CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY
Definition: wincrypt.h:2540

Definition at line 22 of file store.c.

Referenced by CertEnumSystemStoreLocation().