INT Authenticate( |
|
LPCTSTR lpszUserName, |
|
|
LPCTSTR lpszPassword |
|
); |
The Authenticate method is used to authenticate access to
the news server. Not all news servers require authentication by the
client.
Parameters
- lpszUserName
- Pointer to a string which specifies the user
name required for authentication on the news server.
- lpszPassword
- Pointer to a string which specifies the
password required for authentication on the news server.
Return Value
If the method succeeds, the return value is the server result
code. If the method fails, the return value is NNTP_ERROR. To get
extended error information, call GetLastError.
Remarks
This method should only be called if the server requires
authentication. Two authentication methods, "original" and
"simple" authentication, are recognized by the library.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Import Library: csnwsv11.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
Connect,
ListArticles,
ListGroups
|