有没有办法用NOTEHANLE获取lotus note UNID?我正在使用Lotus Notes C API (8.5)。
谢谢。
发布于 2011-07-14 23:00:46
对于C API,有两个选项:
NOTEID NoteID;
NOTEHANDLE hNote;
ORIGINATORID NoteOID;
ORIGINATORID NoteOID2;
DBHANDLE db_handle;
TIMEDATE tdModifiedOrig;
WORD wNoteClass;... ...
// Open the Note and fetch the OID
if (error = NSFNoteOpen (db_handle,
NoteID,
0, /* open flags */
&hNote)) /* note handle (return) */
{
printf("Error: unable to open note %lx.\n", NoteID);
return (ERR(error));
}
NSFNoteGetInfo(hNote, _NOTE_OID, &NoteOID);
printf("UNID %8X%8X", NoteOID.File.Innards[1], NoteOID.File.Innards[0] );
printf("%8X%8X\n", NoteOID.Note.Innards[1], NoteOID.Note.Innards[0] );
// fetching the OID without opening the note
if (error = NSFDbGetNoteInfo(db_handle,
NoteID,
&NoteOID2,
&tdModifiedOrig,
&wNoteClass))
{
printf("Error: unable to scan note %lx.\n", NoteID);
return (ERR(error));
}
printf("UNID %8X%8X", NoteOID2.File.Innards[1], NoteOID2.File.Innards[0] );
printf("%8X%8X", NoteOID2.Note.Innards[1], NoteOID2.Note.Innards[0] );发布于 2010-06-03 19:54:15
我认为您需要首先从NOTEHANDLE获取LNNOTE,它具有您需要的属性:
LNNote::GetUniversalID发布于 2010-06-05 01:59:19
NSFNoteGetInfo方法将为您获取UNID。传入一个NOTEHANDLE和第二个参数作为标志_NOTE_ID。
查看此处:http://www-12.lotus.com/ldd/doc/tools/c/6.0.2/api60ref.nsf/0/00D600DA00A7005185255E2D00792E02?OpenDocument
https://stackoverflow.com/questions/2944605
复制相似问题