CNntpClient::GetMessageIdArticle Method  
 
BOOL GetMessageIdArticle(
  LPCTSTR lpszMessageId,  
  LONG *lpnMessageId  
);
BOOL GetMessageIdArticle(
  LPCTSTR lpszMessageId,  
  ULONGLONG *lpnMessageId  
);

The GetMessageIdArticle method returns the article number associated with the specified message identifier in the current newsgroup.

Parameters

lpszMessageId
A pointer to the message identifier string.
lpnArticleId
Pointer to an integer variable that will contain the article number associated with the message ID.

Return Value

If the method succeeds, the return value is the article number. If the method fails, the return value is NNTP_ERROR. To get extended error information, call GetLastError.

Remarks

If the server can potentially return very large ID values, it is recommended your application use ULONGLONGs (64-bit unsigned integers) instead of LONGs (32-bit signed integers) to store article numbers.

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

GetArticleMessageId, ListArticles