IAuthInfo::GetPassword
Visual Studio 2005
This method is called when an HTTP authorization implementation requires a password to access a protected URL.
HRESULT GetPassword( LPTSTR szPwd, DWORD *pdwBuffSize );
Parameters
- szPwd
-
A pointer to a buffer where the IAuthInfo implementation is to store the required password.
- pdwBuffSize
-
The address of a DWORD that, on entry, contains the size of the buffer provided as szPwd. Implementations of IAuthInfo should not exceed the buffer size when providing domain information. On exit, pdwBuffSize should contain the size of the password including the NULL terminator.
The GetPassword method is typically called by a CAtlBaseAuthObject derived class that is attempting to satisfy the security requirements of a requested URL.
See the HttpClient Sample.
Reference
IAuthInfo ClassConcepts
HTTP Client ServicesOther Resources
IAuthInfo MembersHTTP Client Reference