/*
* Copyright (C) 2006 Robert Shearman (for CodeWeavers)
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#ifndef _WINCRED_H_
#define _WINCRED_H_
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _ADVAPI32_
#define WINADVAPI
#else
#endif
#ifndef __SECHANDLE_DEFINED__
#define __SECHANDLE_DEFINED__
typedef struct _SecHandle
{
#endif
#ifndef __WINE_CTXTHANDLE_DEFINED__
#define __WINE_CTXTHANDLE_DEFINED__
#endif
typedef struct _CREDENTIAL_ATTRIBUTEA
{
typedef struct _CREDENTIAL_ATTRIBUTEW
{
typedef struct _CREDENTIALA
{
typedef struct _CREDENTIALW
{
typedef struct _CREDENTIAL_TARGET_INFORMATIONA
{
typedef struct _CREDENTIAL_TARGET_INFORMATIONW
{
typedef struct _CREDUI_INFOA
{
typedef struct _CREDUI_INFOW
{
/* flags for CREDENTIAL::Flags */
/* values for CREDENTIAL::Type */
/* values for CREDENTIAL::Persist */
#define CRED_PERSIST_NONE 0
/* values for CREDENTIAL_TARGET_INFORMATION::Flags */
/* flags for CredWrite and CredWriteDomainCredentials */
WINADVAPI BOOL WINAPI CredReadDomainCredentialsA(PCREDENTIAL_TARGET_INFORMATIONA,DWORD,DWORD *,PCREDENTIALA **);
WINADVAPI BOOL WINAPI CredReadDomainCredentialsW(PCREDENTIAL_TARGET_INFORMATIONW,DWORD,DWORD *,PCREDENTIALW **);
DWORD WINAPI CredUICmdLinePromptForCredentialsW(PCWSTR,PCtxtHandle,DWORD,PWSTR,ULONG,PWSTR,ULONG,PBOOL,DWORD);
DWORD WINAPI CredUICmdLinePromptForCredentialsA(PCSTR,PCtxtHandle,DWORD,PSTR,ULONG,PSTR,ULONG,PBOOL,DWORD);
DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW,PCWSTR,PCtxtHandle,DWORD,PWSTR,ULONG,PWSTR,ULONG,PBOOL,DWORD);
DWORD WINAPI CredUIPromptForCredentialsA(PCREDUI_INFOA,PCSTR,PCtxtHandle,DWORD,PSTR,ULONG,PSTR,ULONG,PBOOL,DWORD);
/* Note: no CredUIStoreSSOCredA in PSDK header */
/* Note: no CredUIReadSSOCredA in PSDK header */
#ifdef __cplusplus
}
#endif
#endif /* _WINCRED_H_ */