|
BOOL GetArticleRange( |
|
LONG * lpnFirstArticle, |
|
|
LONG * lpnLastArticle, |
|
|
LONG * lpnArticleCount |
|
); |
BOOL GetArticleRange( |
|
ULONGLONG * lpnFirstArticle, |
|
|
ULONGLONG * lpnLastArticle |
|
|
ULONGLONG * lpnArticleCount |
|
); |
The GetArticleRange method returns the first and last
article numbers for the currently selected newsgroup.
Parameters
- lpnFirstArticle
- Pointer to an 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 an integer that will contain the last article
number in the currently selected newsgroup. If this parameter is
NULL, it will be ignored.
- lpnArticleCount
- Pointer to an integer that will contain the total number of
articles in currently selected newsgroup. If this parameter is
NULL, it will be ignored.
Return Value
If the method succeeds, the return value is non-zero. If the method fails, the return value is
zero. To get extended error
information, call
GetLastError.
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. If the server can
potentially return very large ID values, it is recommended your
application use ULONGLONGs (64-bit unsigned integers) instead of LONGs
(32-bit signed integers) to store article numbers.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csnwsv10.lib
See Also
OpenArticle,
ListArticles
|
|