NntpSelectGroup Function  
 
INT WINAPI NntpSelectGroup(
  HCLIENT hClient,  
  LPCTSTR lpszGroupName  
);

The NntpSelectGroup function selects the specified newsgroup from which articles will be retrieved.

Parameters

hClient
Handle to the client session.
lpszGroupName
Pointer to a null-terminated string which specifies the newsgroup to be selected. This value may be NULL, in which case the current newsgroup is unchanged, but the article count is updated.

Return Value

If the function succeeds, the return value is the server result code. If the function fails, the return value is NNTP_ERROR. To get extended error information, call NntpGetLastError.

Remarks

This function selects the newsgroup and obtains a description and the first and last article numbers for that group.

Requirements

Client: Requires Windows 7, Windows Vista or Windows XP.
Server: Requires Windows Server 2008 or Windows Server 2003.
Header: Include cstools7.h.
Library: Use csnwsav7.lib.
Unicode: Implemented as Unicode and ANSI versions.

See Also

NntpGetGroupName, NntpGetGroupTitle, NntpListGroups, NntpListNewGroups