gdi32: Use exec() and _exit() instead of system() and exit().
[wine/multimedia.git] / include / wincred.h
blobb44a83f902fc2aa2df92b41590d1e1165da0d575
1 /*
2 * Copyright (C) 2006 Robert Shearman (for CodeWeavers)
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef _WINCRED_H_
20 #define _WINCRED_H_
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 #ifndef __SECHANDLE_DEFINED__
27 #define __SECHANDLE_DEFINED__
28 typedef struct _SecHandle
30 ULONG_PTR dwLower;
31 ULONG_PTR dwUpper;
32 } SecHandle, *PSecHandle;
33 #endif
35 typedef SecHandle CtxtHandle;
36 typedef PSecHandle PCtxtHandle;
38 typedef struct _CREDUI_INFOA
40 DWORD cbSize;
41 HWND hwndParent;
42 PCSTR pszMessageText;
43 PCSTR pszCaptionText;
44 HBITMAP hbmBanner;
45 } CREDUI_INFOA, *PCREDUI_INFOA;
47 typedef struct _CREDUI_INFOW
49 DWORD cbSize;
50 HWND hwndParent;
51 PCWSTR pszMessageText;
52 PCWSTR pszCaptionText;
53 HBITMAP hbmBanner;
54 } CREDUI_INFOW, *PCREDUI_INFOW;
56 #define CRED_MAX_STRING_LENGTH 256
57 #define CRED_MAX_USERNAME_LENGTH 513
58 #define CRED_MAX_GENERIC_TARGET_NAME_LENGTH 32767
59 #define CRED_MAX_DOMAIN_TARGET_NAME_LENGTH 337
60 #define CRED_MAX_VALUE_SIZE 256
61 #define CRED_MAX_ATTRIBUTES 64
63 #define CRED_MAX_BLOB_SIZE 512
65 #define CREDUI_MAX_MESSAGE_LENGTH 32767
66 #define CREDUI_MAX_CAPTION_LENGTH 128
67 #define CREDUI_MAX_GENERIC_TARGET_LENGTH CRED_MAX_GENERIC_TARGET_NAME_LENGTH
68 #define CREDUI_MAX_DOMAIN_TARGET_LENGTH CRED_MAX_DOMAIN_TARGET_LENGTH
69 #define CREDUI_MAX_USERNAME_LENGTH CRED_MAX_USERNAME_LENGTH
70 #define CREDUI_MAX_PASSWORD_LENGTH (CRED_MAX_CREDENTIAL_BLOB_SIZE / 2)
72 #define CREDUI_FLAGS_INCORRECT_PASSWORD 0x00000001
73 #define CREDUI_FLAGS_DO_NOT_PERSIST 0x00000002
74 #define CREDUI_FLAGS_REQUEST_ADMINISTRATOR 0x00000004
75 #define CREDUI_FLAGS_EXCLUDE_CERTIFICATES 0x00000008
76 #define CREDUI_FLAGS_REQUIRE_CERTIFICATE 0x00000010
77 #define CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX 0x00000040
78 #define CREDUI_FLAGS_ALWAYS_SHOW_UI 0x00000080
79 #define CREDUI_FLAGS_REQUIRE_SMARTCARD 0x00000100
80 #define CREDUI_FLAGS_PASSWORD_ONLY_OK 0x00000200
81 #define CREDUI_FLAGS_VALIDATE_USERNAME 0x00000400
82 #define CREDUI_FLAGS_COMPLETE_USERNAME 0x00000800
83 #define CREDUI_FLAGS_PERSIST 0x00001000
84 #define CREDUI_FLAGS_SERVER_CREDENTIAL 0x00004000
85 #define CREDUI_FLAGS_EXPECT_CONFIRMATION 0x00020000
86 #define CREDUI_FLAGS_GENERIC_CREDENTIALS 0x00040000
87 #define CREDUI_FLAGS_USERNAME_TARGET_CREDENTIALS 0x00080000
88 #define CREDUI_FLAGS_KEEP_USERNAME 0x00100000
90 DWORD WINAPI CredUICmdLinePromptForCredentialsW(PCWSTR,PCtxtHandle,DWORD,PWSTR,ULONG,PWSTR,ULONG,PBOOL,DWORD);
91 DWORD WINAPI CredUICmdLinePromptForCredentialsA(PCSTR,PCtxtHandle,DWORD,PSTR,ULONG,PSTR,ULONG,PBOOL,DWORD);
92 #define CredUICmdLinePromptForCredentials WINELIB_NAME_AW(CredUICmdLinePromptForCredentials)
93 DWORD WINAPI CredUIConfirmCredentialsW(PCWSTR,BOOL);
94 DWORD WINAPI CredUIConfirmCredentialsA(PCSTR,BOOL);
95 #define CredUIConfirmCredentials WINELIB_NAME_AW(CredUIConfirmCredentials)
96 DWORD WINAPI CredUIParseUserNameW(PCWSTR,PWSTR,ULONG,PWSTR,ULONG);
97 DWORD WINAPI CredUIParseUserNameA(PCSTR,PSTR,ULONG,PSTR,ULONG);
98 #define CredUIParseUserName WINELIB_NAME_AW(CredUIParseUserName)
99 DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW,PCWSTR,PCtxtHandle,DWORD,PWSTR,ULONG,PWSTR,ULONG,PBOOL,DWORD);
100 DWORD WINAPI CredUIPromptForCredentialsA(PCREDUI_INFOA,PCSTR,PCtxtHandle,DWORD,PSTR,ULONG,PSTR,ULONG,PBOOL,DWORD);
101 #define CredUIPromptForCredentials WINELIB_NAME_AW(CredUIPromptForCredentials)
102 DWORD WINAPI CredUIStoreSSOCredW(PCWSTR,PCWSTR,PCWSTR,BOOL);
103 /* Note: no CredUIStoreSSOCredA in PSDK header */
104 DWORD WINAPI CredUIReadSSOCredW(PCWSTR,PWSTR*);
105 /* Note: no CredUIReadSSOCredA in PSDK header */
107 #ifdef __cplusplus
109 #endif
111 #endif /* _WINCRED_H_ */