Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2d1da343
Commit
2d1da343
authored
Nov 07, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add WINADVAPI to the exported advapi32 functions.
parent
caf56765
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
122 additions
and
165 deletions
+122
-165
aclapi.h
include/aclapi.h
+47
-79
wincred.h
include/wincred.h
+22
-16
wincrypt.h
include/wincrypt.h
+53
-70
winreg.h
include/winreg.h
+0
-0
winsvc.h
include/winsvc.h
+0
-0
No files found.
include/aclapi.h
View file @
2d1da343
...
...
@@ -28,85 +28,53 @@
extern
"C"
{
#endif
DWORD
WINAPI
GetExplicitEntriesFromAclA
(
PACL
,
PULONG
,
PEXPLICIT_ACCESS_A
*
);
DWORD
WINAPI
GetExplicitEntriesFromAclW
(
PACL
,
PULONG
,
PEXPLICIT_ACCESS_W
*
);
#define GetExplicitEntriesFromAcl WINELIB_NAME_AW(GetExplicitEntriesFromAcl)
DWORD
WINAPI
GetSecurityInfo
(
HANDLE
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
*
,
PSID
*
,
PACL
*
,
PACL
*
,
PSECURITY_DESCRIPTOR
*
);
DWORD
WINAPI
GetSecurityInfoExA
(
HANDLE
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
LPCSTR
,
LPCSTR
,
PACTRL_ACCESSA
*
,
PACTRL_AUDITA
*
,
LPSTR
*
,
LPSTR
*
);
DWORD
WINAPI
GetSecurityInfoExW
(
HANDLE
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
LPCWSTR
,
LPCWSTR
,
PACTRL_ACCESSW
*
,
PACTRL_AUDITW
*
,
LPWSTR
*
,
LPWSTR
*
);
#define GetSecurityInfoEx WINELIB_NAME_AW(GetSecurityInfoEx)
DWORD
WINAPI
GetNamedSecurityInfoA
(
LPSTR
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
*
,
PSID
*
,
PACL
*
,
PACL
*
,
PSECURITY_DESCRIPTOR
*
);
DWORD
WINAPI
GetNamedSecurityInfoW
(
LPWSTR
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
*
,
PSID
*
,
PACL
*
,
PACL
*
,
PSECURITY_DESCRIPTOR
*
);
#define GetNamedSecurityInfo WINELIB_NAME_AW(GetNamedSecurityInfo)
DWORD
WINAPI
SetNamedSecurityInfoA
(
LPSTR
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
,
PSID
,
PACL
,
PACL
);
DWORD
WINAPI
SetNamedSecurityInfoW
(
LPWSTR
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
,
PSID
,
PACL
,
PACL
);
#define SetNamedSecurityInfo WINELIB_NAME_AW(SetNamedSecurityInfo)
DWORD
WINAPI
SetEntriesInAclA
(
ULONG
,
PEXPLICIT_ACCESSA
,
PACL
,
PACL
*
);
DWORD
WINAPI
SetEntriesInAclW
(
ULONG
,
PEXPLICIT_ACCESSW
,
PACL
,
PACL
*
);
#define SetEntriesInAcl WINELIB_NAME_AW(SetEntriesInAcl)
DWORD
WINAPI
SetSecurityInfo
(
HANDLE
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
,
PSID
,
PACL
,
PACL
);
TRUSTEE_FORM
WINAPI
GetTrusteeFormA
(
PTRUSTEEA
);
TRUSTEE_FORM
WINAPI
GetTrusteeFormW
(
PTRUSTEEW
);
#define GetTrusteeForm WINELIB_NAME_AW(GetTrusteeForm)
LPSTR
WINAPI
GetTrusteeNameA
(
PTRUSTEEA
);
LPWSTR
WINAPI
GetTrusteeNameW
(
PTRUSTEEW
);
#define GetTrusteeName WINELIB_NAME_AW(GetTrusteeName)
TRUSTEE_TYPE
WINAPI
GetTrusteeTypeA
(
PTRUSTEEA
);
TRUSTEE_TYPE
WINAPI
GetTrusteeTypeW
(
PTRUSTEEW
);
#define GetTrusteeType WINELIB_NAME_AW(GetTrusteeType)
DWORD
WINAPI
BuildSecurityDescriptorA
(
PTRUSTEEA
,
PTRUSTEEA
,
ULONG
,
PEXPLICIT_ACCESS_A
,
ULONG
,
PEXPLICIT_ACCESS_A
,
PSECURITY_DESCRIPTOR
,
PULONG
,
PSECURITY_DESCRIPTOR
*
);
DWORD
WINAPI
BuildSecurityDescriptorW
(
PTRUSTEEW
,
PTRUSTEEW
,
ULONG
,
PEXPLICIT_ACCESS_W
,
ULONG
,
PEXPLICIT_ACCESS_W
,
PSECURITY_DESCRIPTOR
,
PULONG
,
PSECURITY_DESCRIPTOR
*
);
#define BuildSecurityDescriptor WINELIB_NAME_AW(BuildSecurityDescriptor)
void
WINAPI
BuildTrusteeWithNameA
(
PTRUSTEEA
,
LPSTR
);
void
WINAPI
BuildTrusteeWithNameW
(
PTRUSTEEW
,
LPWSTR
);
#define BuildTrusteeWithName WINELIB_NAME_AW(BuildTrusteeWithName)
VOID
WINAPI
BuildTrusteeWithObjectsAndNameA
(
PTRUSTEEA
,
POBJECTS_AND_NAME_A
,
SE_OBJECT_TYPE
,
LPSTR
,
LPSTR
,
LPSTR
);
VOID
WINAPI
BuildTrusteeWithObjectsAndNameW
(
PTRUSTEEW
,
POBJECTS_AND_NAME_W
,
SE_OBJECT_TYPE
,
LPWSTR
,
LPWSTR
,
LPWSTR
);
#define BuildTrusteeWithObjectsAndName WINELIB_NAME_AW(BuildTrusteeWithObjectsAndName)
VOID
WINAPI
BuildTrusteeWithObjectsAndSidA
(
PTRUSTEEA
,
POBJECTS_AND_SID
,
GUID
*
,
GUID
*
,
PSID
);
VOID
WINAPI
BuildTrusteeWithObjectsAndSidW
(
PTRUSTEEW
,
POBJECTS_AND_SID
,
GUID
*
,
GUID
*
,
PSID
);
#define BuildTrusteeWithObjectsAndSid WINELIB_NAME_AW(BuildTrusteeWithObjectsAndSid)
VOID
WINAPI
BuildExplicitAccessWithNameA
(
PEXPLICIT_ACCESSA
,
LPSTR
,
DWORD
,
ACCESS_MODE
,
DWORD
);
VOID
WINAPI
BuildExplicitAccessWithNameW
(
PEXPLICIT_ACCESSW
,
LPWSTR
,
DWORD
,
ACCESS_MODE
,
DWORD
);
#define BuildExplicitAccessWithName WINELIB_NAME_AW(BuildExplicitAccessWithName)
VOID
WINAPI
BuildTrusteeWithSidA
(
PTRUSTEEA
pTrustee
,
PSID
pSid
);
VOID
WINAPI
BuildTrusteeWithSidW
(
PTRUSTEEW
pTrustee
,
PSID
pSid
);
#define BuildTrusteeWithSid WINELIB_NAME_AW(BuildTrusteeWithSid)
DWORD
WINAPI
GetEffectiveRightsFromAclA
(
PACL
,
PTRUSTEE_A
,
PACCESS_MASK
);
DWORD
WINAPI
GetEffectiveRightsFromAclW
(
PACL
,
PTRUSTEE_W
,
PACCESS_MASK
);
#define GetEffectiveRightsFromAcl WINELIB_NAME_AW(GetEffectiveRightsFromAcl)
WINADVAPI
DWORD
WINAPI
GetExplicitEntriesFromAclA
(
PACL
,
PULONG
,
PEXPLICIT_ACCESS_A
*
);
WINADVAPI
DWORD
WINAPI
GetExplicitEntriesFromAclW
(
PACL
,
PULONG
,
PEXPLICIT_ACCESS_W
*
);
#define GetExplicitEntriesFromAcl WINELIB_NAME_AW(GetExplicitEntriesFromAcl)
WINADVAPI
DWORD
WINAPI
GetSecurityInfo
(
HANDLE
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
*
,
PSID
*
,
PACL
*
,
PACL
*
,
PSECURITY_DESCRIPTOR
*
);
WINADVAPI
DWORD
WINAPI
GetSecurityInfoExA
(
HANDLE
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
LPCSTR
,
LPCSTR
,
PACTRL_ACCESSA
*
,
PACTRL_AUDITA
*
,
LPSTR
*
,
LPSTR
*
);
WINADVAPI
DWORD
WINAPI
GetSecurityInfoExW
(
HANDLE
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
LPCWSTR
,
LPCWSTR
,
PACTRL_ACCESSW
*
,
PACTRL_AUDITW
*
,
LPWSTR
*
,
LPWSTR
*
);
#define GetSecurityInfoEx WINELIB_NAME_AW(GetSecurityInfoEx)
WINADVAPI
DWORD
WINAPI
GetNamedSecurityInfoA
(
LPSTR
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
*
,
PSID
*
,
PACL
*
,
PACL
*
,
PSECURITY_DESCRIPTOR
*
);
WINADVAPI
DWORD
WINAPI
GetNamedSecurityInfoW
(
LPWSTR
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
*
,
PSID
*
,
PACL
*
,
PACL
*
,
PSECURITY_DESCRIPTOR
*
);
#define GetNamedSecurityInfo WINELIB_NAME_AW(GetNamedSecurityInfo)
WINADVAPI
DWORD
WINAPI
SetNamedSecurityInfoA
(
LPSTR
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
,
PSID
,
PACL
,
PACL
);
WINADVAPI
DWORD
WINAPI
SetNamedSecurityInfoW
(
LPWSTR
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
,
PSID
,
PACL
,
PACL
);
#define SetNamedSecurityInfo WINELIB_NAME_AW(SetNamedSecurityInfo)
WINADVAPI
DWORD
WINAPI
SetEntriesInAclA
(
ULONG
,
PEXPLICIT_ACCESSA
,
PACL
,
PACL
*
);
WINADVAPI
DWORD
WINAPI
SetEntriesInAclW
(
ULONG
,
PEXPLICIT_ACCESSW
,
PACL
,
PACL
*
);
#define SetEntriesInAcl WINELIB_NAME_AW(SetEntriesInAcl)
WINADVAPI
DWORD
WINAPI
SetSecurityInfo
(
HANDLE
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
,
PSID
,
PACL
,
PACL
);
WINADVAPI
TRUSTEE_FORM
WINAPI
GetTrusteeFormA
(
PTRUSTEEA
);
WINADVAPI
TRUSTEE_FORM
WINAPI
GetTrusteeFormW
(
PTRUSTEEW
);
#define GetTrusteeForm WINELIB_NAME_AW(GetTrusteeForm)
WINADVAPI
LPSTR
WINAPI
GetTrusteeNameA
(
PTRUSTEEA
);
WINADVAPI
LPWSTR
WINAPI
GetTrusteeNameW
(
PTRUSTEEW
);
#define GetTrusteeName WINELIB_NAME_AW(GetTrusteeName)
WINADVAPI
TRUSTEE_TYPE
WINAPI
GetTrusteeTypeA
(
PTRUSTEEA
);
WINADVAPI
TRUSTEE_TYPE
WINAPI
GetTrusteeTypeW
(
PTRUSTEEW
);
#define GetTrusteeType WINELIB_NAME_AW(GetTrusteeType)
WINADVAPI
DWORD
WINAPI
BuildSecurityDescriptorA
(
PTRUSTEEA
,
PTRUSTEEA
,
ULONG
,
PEXPLICIT_ACCESS_A
,
ULONG
,
PEXPLICIT_ACCESS_A
,
PSECURITY_DESCRIPTOR
,
PULONG
,
PSECURITY_DESCRIPTOR
*
);
WINADVAPI
DWORD
WINAPI
BuildSecurityDescriptorW
(
PTRUSTEEW
,
PTRUSTEEW
,
ULONG
,
PEXPLICIT_ACCESS_W
,
ULONG
,
PEXPLICIT_ACCESS_W
,
PSECURITY_DESCRIPTOR
,
PULONG
,
PSECURITY_DESCRIPTOR
*
);
#define BuildSecurityDescriptor WINELIB_NAME_AW(BuildSecurityDescriptor)
WINADVAPI
void
WINAPI
BuildTrusteeWithNameA
(
PTRUSTEEA
,
LPSTR
);
WINADVAPI
void
WINAPI
BuildTrusteeWithNameW
(
PTRUSTEEW
,
LPWSTR
);
#define BuildTrusteeWithName WINELIB_NAME_AW(BuildTrusteeWithName)
WINADVAPI
void
WINAPI
BuildTrusteeWithObjectsAndNameA
(
PTRUSTEEA
,
POBJECTS_AND_NAME_A
,
SE_OBJECT_TYPE
,
LPSTR
,
LPSTR
,
LPSTR
);
WINADVAPI
void
WINAPI
BuildTrusteeWithObjectsAndNameW
(
PTRUSTEEW
,
POBJECTS_AND_NAME_W
,
SE_OBJECT_TYPE
,
LPWSTR
,
LPWSTR
,
LPWSTR
);
#define BuildTrusteeWithObjectsAndName WINELIB_NAME_AW(BuildTrusteeWithObjectsAndName)
WINADVAPI
void
WINAPI
BuildTrusteeWithObjectsAndSidA
(
PTRUSTEEA
,
POBJECTS_AND_SID
,
GUID
*
,
GUID
*
,
PSID
);
WINADVAPI
void
WINAPI
BuildTrusteeWithObjectsAndSidW
(
PTRUSTEEW
,
POBJECTS_AND_SID
,
GUID
*
,
GUID
*
,
PSID
);
#define BuildTrusteeWithObjectsAndSid WINELIB_NAME_AW(BuildTrusteeWithObjectsAndSid)
WINADVAPI
void
WINAPI
BuildExplicitAccessWithNameA
(
PEXPLICIT_ACCESSA
,
LPSTR
,
DWORD
,
ACCESS_MODE
,
DWORD
);
WINADVAPI
void
WINAPI
BuildExplicitAccessWithNameW
(
PEXPLICIT_ACCESSW
,
LPWSTR
,
DWORD
,
ACCESS_MODE
,
DWORD
);
#define BuildExplicitAccessWithName WINELIB_NAME_AW(BuildExplicitAccessWithName)
WINADVAPI
void
WINAPI
BuildTrusteeWithSidA
(
PTRUSTEEA
pTrustee
,
PSID
pSid
);
WINADVAPI
void
WINAPI
BuildTrusteeWithSidW
(
PTRUSTEEW
pTrustee
,
PSID
pSid
);
#define BuildTrusteeWithSid WINELIB_NAME_AW(BuildTrusteeWithSid)
WINADVAPI
DWORD
WINAPI
GetEffectiveRightsFromAclA
(
PACL
,
PTRUSTEE_A
,
PACCESS_MASK
);
WINADVAPI
DWORD
WINAPI
GetEffectiveRightsFromAclW
(
PACL
,
PTRUSTEE_W
,
PACCESS_MASK
);
#define GetEffectiveRightsFromAcl WINELIB_NAME_AW(GetEffectiveRightsFromAcl)
#ifdef __cplusplus
}
...
...
include/wincred.h
View file @
2d1da343
...
...
@@ -23,6 +23,12 @@
extern
"C"
{
#endif
#ifdef _ADVAPI32_
#define WINADVAPI
#else
#define WINADVAPI DECLSPEC_IMPORT
#endif
#ifndef __SECHANDLE_DEFINED__
#define __SECHANDLE_DEFINED__
typedef
struct
_SecHandle
...
...
@@ -170,22 +176,22 @@ DECL_WINELIB_TYPE_AW(PCREDUI_INFO)
/* flags for CredWrite and CredWriteDomainCredentials */
#define CRED_PRESERVE_CREDENTIAL_BLOB 0x00000001
BOOL
WINAPI
CredDeleteA
(
LPCSTR
,
DWORD
,
DWORD
);
BOOL
WINAPI
CredDeleteW
(
LPCWSTR
,
DWORD
,
DWORD
);
#define CredDelete WINELIB_NAME_AW(CredDelete)
BOOL
WINAPI
CredEnumerateA
(
LPCSTR
,
DWORD
,
DWORD
*
,
PCREDENTIALA
**
);
BOOL
WINAPI
CredEnumerateW
(
LPCWSTR
,
DWORD
,
DWORD
*
,
PCREDENTIALW
**
);
#define CredEnumerate WINELIB_NAME_AW(CredEnumerate)
VOID
WINAPI
CredFree
(
PVOID
);
BOOL
WINAPI
CredReadA
(
LPCSTR
,
DWORD
,
DWORD
,
PCREDENTIALA
*
);
BOOL
WINAPI
CredReadW
(
LPCWSTR
,
DWORD
,
DWORD
,
PCREDENTIALW
*
);
#define CredRead WINELIB_NAME_AW(CredRead)
BOOL
WINAPI
CredRenameA
(
LPCSTR
,
LPCSTR
,
DWORD
,
DWORD
);
BOOL
WINAPI
CredRenameW
(
LPCWSTR
,
LPCWSTR
,
DWORD
,
DWORD
);
#define CredRename WINELIB_NAME_AW(CredRename)
BOOL
WINAPI
CredWriteA
(
PCREDENTIALA
,
DWORD
);
BOOL
WINAPI
CredWriteW
(
PCREDENTIALW
,
DWORD
);
#define CredWrite WINELIB_NAME_AW(CredWrite)
WINADVAPI
BOOL
WINAPI
CredDeleteA
(
LPCSTR
,
DWORD
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CredDeleteW
(
LPCWSTR
,
DWORD
,
DWORD
);
#define
CredDelete WINELIB_NAME_AW(CredDelete)
WINADVAPI
BOOL
WINAPI
CredEnumerateA
(
LPCSTR
,
DWORD
,
DWORD
*
,
PCREDENTIALA
**
);
WINADVAPI
BOOL
WINAPI
CredEnumerateW
(
LPCWSTR
,
DWORD
,
DWORD
*
,
PCREDENTIALW
**
);
#define
CredEnumerate WINELIB_NAME_AW(CredEnumerate)
WINADVAPI
VOID
WINAPI
CredFree
(
PVOID
);
WINADVAPI
BOOL
WINAPI
CredReadA
(
LPCSTR
,
DWORD
,
DWORD
,
PCREDENTIALA
*
);
WINADVAPI
BOOL
WINAPI
CredReadW
(
LPCWSTR
,
DWORD
,
DWORD
,
PCREDENTIALW
*
);
#define
CredRead WINELIB_NAME_AW(CredRead)
WINADVAPI
BOOL
WINAPI
CredRenameA
(
LPCSTR
,
LPCSTR
,
DWORD
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CredRenameW
(
LPCWSTR
,
LPCWSTR
,
DWORD
,
DWORD
);
#define
CredRename WINELIB_NAME_AW(CredRename)
WINADVAPI
BOOL
WINAPI
CredWriteA
(
PCREDENTIALA
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CredWriteW
(
PCREDENTIALW
,
DWORD
);
#define
CredWrite WINELIB_NAME_AW(CredWrite)
DWORD
WINAPI
CredUICmdLinePromptForCredentialsW
(
PCWSTR
,
PCtxtHandle
,
DWORD
,
PWSTR
,
ULONG
,
PWSTR
,
ULONG
,
PBOOL
,
DWORD
);
DWORD
WINAPI
CredUICmdLinePromptForCredentialsA
(
PCSTR
,
PCtxtHandle
,
DWORD
,
PSTR
,
ULONG
,
PSTR
,
ULONG
,
PBOOL
,
DWORD
);
...
...
include/wincrypt.h
View file @
2d1da343
...
...
@@ -27,6 +27,12 @@ extern "C" {
#include <bcrypt.h>
/* FIXME: #include <ncrypt.h> */
#ifdef _ADVAPI32_
# define WINADVAPI
#else
# define WINADVAPI DECLSPEC_IMPORT
#endif
/* some typedefs for function parameters */
typedef
unsigned
int
ALG_ID
;
typedef
ULONG_PTR
HCRYPTPROV
;
...
...
@@ -3495,76 +3501,53 @@ typedef struct _CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA {
/* function declarations */
/* advapi32.dll */
BOOL
WINAPI
CryptAcquireContextA
(
HCRYPTPROV
*
phProv
,
LPCSTR
pszContainer
,
LPCSTR
pszProvider
,
DWORD
dwProvType
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptAcquireContextW
(
HCRYPTPROV
*
phProv
,
LPCWSTR
pszContainer
,
LPCWSTR
pszProvider
,
DWORD
dwProvType
,
DWORD
dwFlags
);
#define CryptAcquireContext WINELIB_NAME_AW(CryptAcquireContext)
BOOL
WINAPI
CryptGenRandom
(
HCRYPTPROV
hProv
,
DWORD
dwLen
,
BYTE
*
pbBuffer
);
BOOL
WINAPI
CryptContextAddRef
(
HCRYPTPROV
hProv
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptCreateHash
(
HCRYPTPROV
hProv
,
ALG_ID
Algid
,
HCRYPTKEY
hKey
,
DWORD
dwFlags
,
HCRYPTHASH
*
phHash
);
BOOL
WINAPI
CryptDecrypt
(
HCRYPTKEY
hKey
,
HCRYPTHASH
hHash
,
BOOL
Final
,
DWORD
dwFlags
,
BYTE
*
pbData
,
DWORD
*
pdwDataLen
);
BOOL
WINAPI
CryptDeriveKey
(
HCRYPTPROV
hProv
,
ALG_ID
Algid
,
HCRYPTHASH
hBaseData
,
DWORD
dwFlags
,
HCRYPTKEY
*
phKey
);
BOOL
WINAPI
CryptDestroyHash
(
HCRYPTHASH
hHash
);
BOOL
WINAPI
CryptDestroyKey
(
HCRYPTKEY
hKey
);
BOOL
WINAPI
CryptDuplicateKey
(
HCRYPTKEY
hKey
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
,
HCRYPTKEY
*
phKey
);
BOOL
WINAPI
CryptDuplicateHash
(
HCRYPTHASH
hHash
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
,
HCRYPTHASH
*
phHash
);
BOOL
WINAPI
CryptEncrypt
(
HCRYPTKEY
hKey
,
HCRYPTHASH
hHash
,
BOOL
Final
,
DWORD
dwFlags
,
BYTE
*
pbData
,
DWORD
*
pdwDataLen
,
DWORD
dwBufLen
);
BOOL
WINAPI
CryptEnumProvidersA
(
DWORD
dwIndex
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
,
DWORD
*
pdwProvType
,
LPSTR
pszProvName
,
DWORD
*
pcbProvName
);
BOOL
WINAPI
CryptEnumProvidersW
(
DWORD
dwIndex
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
,
DWORD
*
pdwProvType
,
LPWSTR
pszProvName
,
DWORD
*
pcbProvName
);
#define CryptEnumProviders WINELIB_NAME_AW(CryptEnumProviders)
BOOL
WINAPI
CryptEnumProviderTypesA
(
DWORD
dwIndex
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
,
DWORD
*
pdwProvType
,
LPSTR
pszTypeName
,
DWORD
*
pcbTypeName
);
BOOL
WINAPI
CryptEnumProviderTypesW
(
DWORD
dwIndex
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
,
DWORD
*
pdwProvType
,
LPWSTR
pszTypeName
,
DWORD
*
pcbTypeName
);
#define CryptEnumProviderTypes WINELIB_NAME_AW(CryptEnumProviderTypes)
BOOL
WINAPI
CryptExportKey
(
HCRYPTKEY
hKey
,
HCRYPTKEY
hExpKey
,
DWORD
dwBlobType
,
DWORD
dwFlags
,
BYTE
*
pbData
,
DWORD
*
pdwDataLen
);
BOOL
WINAPI
CryptGenKey
(
HCRYPTPROV
hProv
,
ALG_ID
Algid
,
DWORD
dwFlags
,
HCRYPTKEY
*
phKey
);
BOOL
WINAPI
CryptGetKeyParam
(
HCRYPTKEY
hKey
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
*
pdwDataLen
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptGetHashParam
(
HCRYPTHASH
hHash
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
*
pdwDataLen
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptGetProvParam
(
HCRYPTPROV
hProv
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
*
pdwDataLen
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptGetDefaultProviderA
(
DWORD
dwProvType
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
,
LPSTR
pszProvName
,
DWORD
*
pcbProvName
);
BOOL
WINAPI
CryptGetDefaultProviderW
(
DWORD
dwProvType
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
,
LPWSTR
pszProvName
,
DWORD
*
pcbProvName
);
#define CryptGetDefaultProvider WINELIB_NAME_AW(CryptGetDefaultProvider)
BOOL
WINAPI
CryptGetUserKey
(
HCRYPTPROV
hProv
,
DWORD
dwKeySpec
,
HCRYPTKEY
*
phUserKey
);
BOOL
WINAPI
CryptHashData
(
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbData
,
DWORD
dwDataLen
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptHashSessionKey
(
HCRYPTHASH
hHash
,
HCRYPTKEY
hKey
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptImportKey
(
HCRYPTPROV
hProv
,
CONST
BYTE
*
pbData
,
DWORD
dwDataLen
,
HCRYPTKEY
hPubKey
,
DWORD
dwFlags
,
HCRYPTKEY
*
phKey
);
BOOL
WINAPI
CryptReleaseContext
(
HCRYPTPROV
hProv
,
ULONG_PTR
dwFlags
);
BOOL
WINAPI
CryptSetHashParam
(
HCRYPTHASH
hHash
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetKeyParam
(
HCRYPTKEY
hKey
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetProviderA
(
LPCSTR
pszProvName
,
DWORD
dwProvType
);
BOOL
WINAPI
CryptSetProviderW
(
LPCWSTR
pszProvName
,
DWORD
dwProvType
);
#define CryptSetProvider WINELIB_NAME_AW(CryptSetProvider)
BOOL
WINAPI
CryptSetProviderExA
(
LPCSTR
pszProvName
,
DWORD
dwProvType
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetProviderExW
(
LPCWSTR
pszProvName
,
DWORD
dwProvType
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
);
#define CryptSetProviderEx WINELIB_NAME_AW(CryptSetProviderEx)
BOOL
WINAPI
CryptSetProvParam
(
HCRYPTPROV
hProv
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSignHashA
(
HCRYPTHASH
hHash
,
DWORD
dwKeySpec
,
LPCSTR
sDescription
,
DWORD
dwFlags
,
BYTE
*
pbSignature
,
DWORD
*
pdwSigLen
);
BOOL
WINAPI
CryptSignHashW
(
HCRYPTHASH
hHash
,
DWORD
dwKeySpec
,
LPCWSTR
sDescription
,
DWORD
dwFlags
,
BYTE
*
pbSignature
,
DWORD
*
pdwSigLen
);
#define CryptSignHash WINELIB_NAME_AW(CryptSignHash)
BOOL
WINAPI
CryptVerifySignatureA
(
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
HCRYPTKEY
hPubKey
,
LPCSTR
sDescription
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptVerifySignatureW
(
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
HCRYPTKEY
hPubKey
,
LPCWSTR
sDescription
,
DWORD
dwFlags
);
#define CryptVerifySignature WINELIB_NAME_AW(CryptVerifySignature)
WINADVAPI
BOOL
WINAPI
CryptAcquireContextA
(
HCRYPTPROV
*
,
LPCSTR
,
LPCSTR
,
DWORD
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptAcquireContextW
(
HCRYPTPROV
*
,
LPCWSTR
,
LPCWSTR
,
DWORD
,
DWORD
);
#define CryptAcquireContext WINELIB_NAME_AW(CryptAcquireContext)
WINADVAPI
BOOL
WINAPI
CryptGenRandom
(
HCRYPTPROV
,
DWORD
,
BYTE
*
);
WINADVAPI
BOOL
WINAPI
CryptContextAddRef
(
HCRYPTPROV
,
DWORD
*
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptCreateHash
(
HCRYPTPROV
,
ALG_ID
,
HCRYPTKEY
,
DWORD
,
HCRYPTHASH
*
);
WINADVAPI
BOOL
WINAPI
CryptDecrypt
(
HCRYPTKEY
,
HCRYPTHASH
,
BOOL
,
DWORD
,
BYTE
*
,
DWORD
*
);
WINADVAPI
BOOL
WINAPI
CryptDeriveKey
(
HCRYPTPROV
,
ALG_ID
,
HCRYPTHASH
,
DWORD
,
HCRYPTKEY
*
);
WINADVAPI
BOOL
WINAPI
CryptDestroyHash
(
HCRYPTHASH
);
WINADVAPI
BOOL
WINAPI
CryptDestroyKey
(
HCRYPTKEY
);
WINADVAPI
BOOL
WINAPI
CryptDuplicateKey
(
HCRYPTKEY
,
DWORD
*
,
DWORD
,
HCRYPTKEY
*
);
WINADVAPI
BOOL
WINAPI
CryptDuplicateHash
(
HCRYPTHASH
,
DWORD
*
,
DWORD
,
HCRYPTHASH
*
);
WINADVAPI
BOOL
WINAPI
CryptEncrypt
(
HCRYPTKEY
,
HCRYPTHASH
,
BOOL
,
DWORD
,
BYTE
*
,
DWORD
*
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptEnumProvidersA
(
DWORD
,
DWORD
*
,
DWORD
,
DWORD
*
,
LPSTR
,
DWORD
*
);
WINADVAPI
BOOL
WINAPI
CryptEnumProvidersW
(
DWORD
,
DWORD
*
,
DWORD
,
DWORD
*
,
LPWSTR
,
DWORD
*
);
#define CryptEnumProviders WINELIB_NAME_AW(CryptEnumProviders)
WINADVAPI
BOOL
WINAPI
CryptEnumProviderTypesA
(
DWORD
,
DWORD
*
,
DWORD
,
DWORD
*
,
LPSTR
,
DWORD
*
);
WINADVAPI
BOOL
WINAPI
CryptEnumProviderTypesW
(
DWORD
,
DWORD
*
,
DWORD
,
DWORD
*
,
LPWSTR
,
DWORD
*
);
#define CryptEnumProviderTypes WINELIB_NAME_AW(CryptEnumProviderTypes)
WINADVAPI
BOOL
WINAPI
CryptExportKey
(
HCRYPTKEY
,
HCRYPTKEY
,
DWORD
,
DWORD
,
BYTE
*
,
DWORD
*
);
WINADVAPI
BOOL
WINAPI
CryptGenKey
(
HCRYPTPROV
,
ALG_ID
,
DWORD
,
HCRYPTKEY
*
);
WINADVAPI
BOOL
WINAPI
CryptGetKeyParam
(
HCRYPTKEY
,
DWORD
,
BYTE
*
,
DWORD
*
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptGetHashParam
(
HCRYPTHASH
,
DWORD
,
BYTE
*
,
DWORD
*
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptGetProvParam
(
HCRYPTPROV
,
DWORD
,
BYTE
*
,
DWORD
*
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptGetDefaultProviderA
(
DWORD
,
DWORD
*
,
DWORD
,
LPSTR
,
DWORD
*
);
WINADVAPI
BOOL
WINAPI
CryptGetDefaultProviderW
(
DWORD
,
DWORD
*
,
DWORD
,
LPWSTR
,
DWORD
*
);
#define CryptGetDefaultProvider WINELIB_NAME_AW(CryptGetDefaultProvider)
WINADVAPI
BOOL
WINAPI
CryptGetUserKey
(
HCRYPTPROV
,
DWORD
,
HCRYPTKEY
*
);
WINADVAPI
BOOL
WINAPI
CryptHashData
(
HCRYPTHASH
,
CONST
BYTE
*
,
DWORD
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptHashSessionKey
(
HCRYPTHASH
,
HCRYPTKEY
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptImportKey
(
HCRYPTPROV
,
CONST
BYTE
*
,
DWORD
,
HCRYPTKEY
,
DWORD
,
HCRYPTKEY
*
);
WINADVAPI
BOOL
WINAPI
CryptReleaseContext
(
HCRYPTPROV
,
ULONG_PTR
);
WINADVAPI
BOOL
WINAPI
CryptSetHashParam
(
HCRYPTHASH
,
DWORD
,
CONST
BYTE
*
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptSetKeyParam
(
HCRYPTKEY
,
DWORD
,
CONST
BYTE
*
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptSetProviderA
(
LPCSTR
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptSetProviderW
(
LPCWSTR
,
DWORD
);
#define CryptSetProvider WINELIB_NAME_AW(CryptSetProvider)
WINADVAPI
BOOL
WINAPI
CryptSetProviderExA
(
LPCSTR
,
DWORD
,
DWORD
*
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptSetProviderExW
(
LPCWSTR
,
DWORD
,
DWORD
*
,
DWORD
);
#define CryptSetProviderEx WINELIB_NAME_AW(CryptSetProviderEx)
WINADVAPI
BOOL
WINAPI
CryptSetProvParam
(
HCRYPTPROV
,
DWORD
,
CONST
BYTE
*
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptSignHashA
(
HCRYPTHASH
,
DWORD
,
LPCSTR
,
DWORD
,
BYTE
*
,
DWORD
*
);
WINADVAPI
BOOL
WINAPI
CryptSignHashW
(
HCRYPTHASH
,
DWORD
,
LPCWSTR
,
DWORD
,
BYTE
*
,
DWORD
*
);
#define CryptSignHash WINELIB_NAME_AW(CryptSignHash)
WINADVAPI
BOOL
WINAPI
CryptVerifySignatureA
(
HCRYPTHASH
,
CONST
BYTE
*
,
DWORD
,
HCRYPTKEY
,
LPCSTR
,
DWORD
);
WINADVAPI
BOOL
WINAPI
CryptVerifySignatureW
(
HCRYPTHASH
,
CONST
BYTE
*
,
DWORD
,
HCRYPTKEY
,
LPCWSTR
,
DWORD
);
#define CryptVerifySignature WINELIB_NAME_AW(CryptVerifySignature)
/* crypt32.dll functions */
LPVOID
WINAPI
CryptMemAlloc
(
ULONG
cbSize
);
...
...
include/winreg.h
View file @
2d1da343
This diff is collapsed.
Click to expand it.
include/winsvc.h
View file @
2d1da343
This diff is collapsed.
Click to expand it.
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