This structure is used by the
GetFirstGroup and
GetNextGroup methods to return information
about available newsgroups.
typedef struct _NEWSGROUP
{
LONG nFirstArticle;
LONG nLastArticle;
DWORD dwAccess;
TCHAR szName[NNTP_MAXGRPNAMLEN];
} NEWSGROUP, *LPNEWSGROUP;
Members
nFirstArticle
A long integer which specifies the article number of the first
available article in the newsgroup.
nLastArticle
A long integer which specifies the article number of the last
available article in the newsgroup. Note that posted articles may
not be contiguous in the range between the first and last article
numbers. Some servers may assign numbers in a different order than
the articles were posted, or there may be gaps where articles have
been removed.
dwAccess
An unsigned integer which specifies the access mode for
the group. It may be one of the following values:
Constant
Description
NNTP_GROUP_READONLY
The group is read-only and cannot be modified. Attempts to
post articles to the newsgroup will result in an error.
NNTP_GROUP_READWRITE
Articles can be posted to the newsgroup. Even though a
newsgroup is read-write, it may require that the client
authenticate before being given permission to post articles to
the server.
NNTP_GROUP_MODERATED
The newsgroup is moderated and articles can only be posted
by the group moderator. To request that an article be posted to
the newsgroup, you must email the message to the
moderator.
szName
A pointer to a string which specifies the name of the
newsgroup.
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
Unicode: Implemented as Unicode and ANSI versions.