I am trying to open and read a Notes document using the Domino API in C#. I am following the example described here http://www.bobzblog.com/tuxedoguy.nsf/dx/geek-o-terica-16-easy-conversion-of-notes-documents-to-mime-format-part-2?opendocument. Here is my code:
HANDLE hCC = NULLL;
STATUS stat = 0; // 16-bit unsigned integer
HANDLE hID = NULL;
uint nid = 0;
// get the new document’s noteid
nid = Convert.ToUInt32(noteid, 16);
// returns 690. What does that mean??
stat = NotesEntries.NSFNoteOpenExt(this.m_hDb,
nid,
NotesEntries.OPEN_RAW_MIME,
ref hNote);
I can retrieve a message’s noteid string, and I use that to call NotesEntries.NSFNoteOpenExt(), but it is returning an integer code stat variable and I don’t know what to do with that. According to this site http://www-12.lotus.com/ldd/doc/domino_notes/9.0/api90ref.nsf/f961929dc6dc14dc852561bf0067d1c4/d223db362ddb9e9985256632004f71db?OpenDocument, the function returns a “status from this call – indicates either success or what the error is. The return codes include: NOERROR, ERR_DIRECTORY, ERR_NOACCESS, ERR_INVALID_ITEMUNK.” However I am only getting an integer value of 690. What does that mean? Where are these statuses defined?