|
|
| LONG
NntpGetArticleRange(
|
|
|
HCLIENT
hClient, |
|
|
|
|
LPLONG
lpnFirstArticle, |
|
|
|
|
LPLONG
lpnLastArticle |
|
|
| );
|
The NntpGetArticleRange function returns the first and
last article numbers for the currently selected newsgroup.
Parameters
- hClient
- Handle to the client session.
- lpnFirstArticle
- Pointer to a long integer that will contain the first article
number in the currently selected newsgroup. If this parameter is
NULL, it will be ignored.
- lpnLastArticle
- Pointer to a long integer that will contain the last article
number in the currently selected newsgroup. If this parameter is
NULL, it will be ignored.
Return Value
If the function succeeds, the return value is number of articles
in the selected newsgroup. If the function fails, the return value
is NNTP_ERROR. To get extended error information, call
NntpGetLastError.
Remarks
It is possible that there will be gaps in the articles within
the range of the first and last articles in the newsgroup. This may
be due to a message being canceled or expired.
Requirements
Client: Requires Windows Vista, Windows XP or Windows
2000 Professional.
Server: Requires Windows Server 2008, Windows Server 2003 or
Windows 2000 Server.
Header: Include cstools6.h.
Library: Use csnwsav6.lib.
See Also
NntpOpenArticle, NntpOpenArticleByMessageId,
NntpListArticles
|
|