82 lines
1.2 KiB
C++
82 lines
1.2 KiB
C++
|
#ifndef _CREDEN_HXX_
|
||
|
#define _CREDEN_HXX_
|
||
|
|
||
|
class CCredentials;
|
||
|
|
||
|
class CCredentials
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
|
||
|
|
||
|
CCredentials::CCredentials();
|
||
|
|
||
|
CCredentials::CCredentials(
|
||
|
LPWSTR lpszUserName,
|
||
|
LPWSTR lpszPassword,
|
||
|
DWORD dwAuthFlags
|
||
|
);
|
||
|
|
||
|
CCredentials::CCredentials(
|
||
|
const CCredentials& Credentials
|
||
|
);
|
||
|
|
||
|
CCredentials::~CCredentials();
|
||
|
|
||
|
HRESULT
|
||
|
CCredentials::GetUserName(
|
||
|
LPWSTR * lppszUserName
|
||
|
);
|
||
|
|
||
|
HRESULT
|
||
|
CCredentials::GetPassword(
|
||
|
LPWSTR * lppszPassword
|
||
|
);
|
||
|
|
||
|
HRESULT
|
||
|
CCredentials::SetUserName(
|
||
|
LPWSTR lpszUserName
|
||
|
);
|
||
|
|
||
|
HRESULT
|
||
|
CCredentials::SetPassword(
|
||
|
LPWSTR lpszPassword
|
||
|
);
|
||
|
|
||
|
void
|
||
|
CCredentials::operator=(
|
||
|
const CCredentials& other
|
||
|
);
|
||
|
|
||
|
friend BOOL
|
||
|
operator==(
|
||
|
CCredentials& x,
|
||
|
CCredentials& y
|
||
|
);
|
||
|
|
||
|
BOOL
|
||
|
CCredentials::IsNullCredentials(
|
||
|
);
|
||
|
|
||
|
DWORD
|
||
|
CCredentials::GetAuthFlags(
|
||
|
);
|
||
|
|
||
|
void
|
||
|
CCredentials::SetAuthFlags(
|
||
|
DWORD dwAuthFlags
|
||
|
);
|
||
|
|
||
|
private:
|
||
|
|
||
|
LPWSTR _lpszUserName;
|
||
|
|
||
|
LPWSTR _lpszPassword;
|
||
|
|
||
|
DWORD _dwAuthFlags;
|
||
|
DWORD _dwPasswordLen;
|
||
|
};
|
||
|
|
||
|
#endif // ifndef _CREDEN_HXX_
|
||
|
|