LotusScript to C API Programming Guide
rtLib Domino Rich Text Management template
Home

Anonymous

login


 

Hosted by Prominic.NET, Inc.

DBVEC

#include <dbdrv.h>

Database Driver Vector.

C definition

typedef struct dbvec {

  char ClassName[MAX_DBDRV_NAME+1]; /* name of driver class+'\0' */

  HMODULE hModule;            /* hModule of loaded module */

  /* Do per-process initialization routine. This is called just
    after the LoadLibrary, and is the first entry point in the
    library. When this entry point is called, all of the other
    entry point vectors are filled in by this routine. */


  STATUS (LNCALLBACKPTR Init)(
         struct dbvec far *vec);

  /* Per-process termination routine, ASSUMING that all open
    sessions for this context have been closed by the time this is
    called. This is called just prior to the FreeLibrary. */


  STATUS (LNCALLBACKPTR Term)(
         struct dbvec far *vec);

  /* Open a session. Any databases opened as a side-effect of
    Functions performed on this session will gather up their
    context in the hSession returned by this routine. */


  STATUS (LNCALLBACKPTR Open)(
         struct dbvec far *vec,
         HDBDSESSION far *rethSession);

  /* Close a session, and as a side-effect all databases whose
    context has been built up in hSession. */


  STATUS (LNCALLBACKPTR Close)(
         struct dbvec far *vec,
         HDBDSESSION hSession);

  /* Set auxiliary context, used principally when called from
    Desk */


  STATUS (LNCALLBACKPTR SetOpenContext)(
         struct dbvec far *vec,
         HDBDSESSION hSession,
         char far *DefaultDbName,
         DBOPENBYIDPROC Proc,
         HANDLE hNames,
         DWORD hParentWnd);

  /* Perform a function on a session. If any databases must be
    opened as a side-effect of this function, gather context into
    hSession so that it may be later deallocated/closed in
    Close. */


  STATUS (LNCALLBACKPTR Function)(
         struct dbvec far *vec,
         HDBDSESSION hSession,
         WORD Function,
         WORD argc,
         DWORD far *argl,
         void far * far *argv,
         HANDLE far *rethResult,
         DWORD far *retResultLength);

  /* Flags */

  FLAG fUpdateIfModified:1; /* TRUE if we want UpdateCollections
                     if modified */


} DBVEC;



User: Password:

This website contains material that complements "LotusScript to Lotus C API Programming Guide". Some parts of it including posting of comments and discussion items are available only to authenticated readers of the book. Enter your username and password to authenticate.

You should have cookies and JavaScript enabled for the authentication to work..

You should have received your username and password by email to the address you provided during the purchase of the book. In case you failed to receive it or you have any problems loging in let me know about it.