CNntpClient::GetArticleMessageId Method  
 
INT GetArticleMessageId(
  LONG nArticleId,  
  LPTSTR lpszMessageId,  
  INT cbMessageId  
);
INT GetArticleMessageId(
  LONG nArticleId,  
  CString& strMessageId  
);

The GetArticleMessageId method returns the message identifier for the specified article in the current newsgroup.

Parameters

nArticleId
Article number to retrieve the message identifier for. The value may be zero, in which case the current article number is used.
lpszMessageId
Pointer to a string buffer which will contain the message identifier for the specified article.
cbMessageId
Maximum number of characters that may be copied into the buffer, including the terminating null character.

Return Value

If the method succeeds, the return value is the length of the message identifier string. If the method fails, the return value is NNTP_ERROR. To get extended error information, call GetLastError.

Remarks

The message identifier is a string which can uniquely identify the message on the news server. This value may be used to retrieve the contents of the article.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Import Library: csnwsv11.lib
Unicode: Implemented as Unicode and ANSI versions

See Also

GetMessageIdArticle, ListArticles