HTTPCLIENTCREDENTIALS  
 

The HTTPCLIENTCREDENTIALS structure defines the credentials used to authenticate a specific user.

typedef struct _HTTPCLIENTCREDENTIALS
{
    DWORD dwSize;
    DWORD dwFlags;
    UINT  nAuthType;
    UINT  nHostPort;
    TCHAR szHostName[HTTP_MAXHOSTNAME];
    TCHAR szUserName[HTTP_MAXUSERNAME];
    TCHAR szPassword[HTTP_MAXPASSWORD];
} HTTPCLIENTCREDENTIALS, *LPHTTPCLIENTCREDENTIALS;

Members

dwSize
An unsigned integer value that specifies the size of the structure.
dwFlags
An unsigned integer value is reserved for future use. This value will always be zero.
nAuthType
An unsigned integer value that identifies the authentication method.
nHostPort
The server port number.
szHostName
A null-terminated string that specifies the server host name.
szUserName
A null-terminated string that specifies the user name.
szPassword
A null-terminated string that specifies the user password.

Remarks

When an instance of this structure is passed to the GetClientCredentials method, this member must be initialized to the size of the structure and all other members must be initialized with a value of zero.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Unicode: Implemented as Unicode and ANSI versions

See Also

GetClientCredentials