gpt4 book ai didi

c - 获取lotus note文档UNID

转载 作者:行者123 更新时间:2023-11-30 16:04:32 26 4
gpt4 key购买 nike

有没有办法使用NOTEHANLE获取lotus Notes UNID?我正在使用 Lotus Notes C API (8.5)。
谢谢。

最佳答案

使用 C API 有 2 个选项:

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] );

关于c - 获取lotus note文档UNID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2944605/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com