NntpGetGroupName Function  
 
INT WINAPI NntpGetGroupName(
  HCLIENT hClient,  
  LPTSTR lpszGroupName,  
  INT nMaxLength  
);

The NntpGetGroupName function returns the name of the currently selected newsgroup.

Parameters

hClient
Handle to the client session.
lpszGroupName
Pointer to a null-terminated string buffer that will contain the name of the currently selected newsgroup.
nMaxLength
The maximum number of characters that may be copied into the buffer, including the terminating null-byte.

Return Value

If the function succeeds, the return value is the length of the newsgroup name. If no newsgroup has been selected, the function will return a value of zero. If the function fails, the return value is NNTP_ERROR. To get extended error information, call NntpGetLastError.

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

NntpGetGroupTitle, NntpListGroups, NntpListNewGroups, NntpSelectGroup