NntpGetGroupName
INT 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 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.
Unicode: Implemented as Unicode and ANSI versions.

See Also

NntpGetGroupTitle, NntpListGroups, NntpListNewGroups, NntpSelectGroup


Copyright © 2008 Catalyst Development Corporation. All rights reserved.