Function : Database

NSFDbGetNoteInfo - Get information from a note's on-disk header.
----------------------------------------------------------------------------------------------------------

#include <nsfdb.h>

STATUS LNPUBLIC NSFDbGetNoteInfo(
DBHANDLE hDb,
NOTEID NoteID,
OID far *retNoteOID,
TIMEDATE far *retModified,
WORD far *retNoteClass);

Description :

This function takes a database handle and note ID. It returns the note's the Originator ID (OID) structure, the time and date the note was last modified, and the NOTE_CLASS_xxx. It is the database level equivalent of three calls to NSFNoteGetInfo(), but requires a disk I/O or network I/O to obtain the information (and thus, it is fairly expensive to use).

Parameters :

Sample Usage :

 
  /* Find some SPECIAL notes: Policy and then designer's Help */
 
  if (error_status = NSFDbGetSpecialNoteID(db_handle_src,
                         SPECIAL_ID_NOTE | NOTE_CLASS_INFO,
                         &policy_nid_src))
  {
      if (ERR(error_status) == ERR_SPECIAL_ID)
          printf("\n%s has no Policy Note\n", src_name);
      else
          goto Exit;
  }
  else
  {
      if (error_status = NSFDbGetNoteInfo(db_handle_src,
                                          policy_nid_src,
                                          &policy_oid_src,
                                          &policy_lastmod_td,
                                          &policy_noteclass))
          goto Exit;
      printf("Policy Note ID = %08lX\n", policy_oid_src.Note);
  }


See Also :

NSFDbOpen
----------------------------------------------------------------------------------------------------------