Overview of Lotus Domino/Notes toolkits (2) c API

Source: Internet
Author: User
2 Lotus C API

2.1 Introduction

Among the toolkit of Domino/Notes, c api has the most powerful functions:

  • Attackers can manipulate almost all data objects in the Notes database.

    • Database and ACL
    • Documents and Domains
    • Form
    • Views and folders
    • Proxy
  • You can add additional menus for the Notes client.
  • Can be used to create additional Domino service tasks
  • It can be used to expand Domino/Notes event management.

Main restrictions:

  • You cannot modify the existing Domino/Notes software, remove its existing functions and features, or change its working mechanism.
  • Security features cannot be modified
  • User activity records cannot be modified

Supported operating systems:
WindowsNT/2000, Linux, Solaris iSCSI/Intel, HP-UX, MacOS, Aix, AS/400, S/390, etc.

Latest M version
R5 is the latest version of r5.0.12, released in the latest version of r6.0.1, 2003.03.13, and released in 2003.2.24.
2.2 Development and Use

Usage conditions
Lotus c api requires notes. ini and calls existing Domino/Notes programs. Therefore, you need to install Domino server or Notes client.

User identity
The independent applications that use Lotus C APIs obtain the information of the current user based on the information in notes. ini, and verify the user identity based on the corresponding ID file. On the Domino server, the program uses the server ID.

Domino/Notes runtime environment Initialization
Before calling the c api, You need to initialize the domino runtime environment and clean up the environment before the program is closed. Lotus c api provides multiple methods to do this.
If you follow certain c api standards, Domino/Notes can automatically perform initialization and cleanup. You can also call the notesinitextended function to complete initialization and call the notesterm function to complete cleanup.
Example:

Structure of main Structure of notesmain
Main (){
Notesinitextended ();
...
... Body of the program
...
Notesterm ();
Exit;
}
Status lnpublic notesmain (){
...
... Body of the program
... }
Initialize and clear the running environment explicitly Automatic completion

Notes client Extension
You can use c api to add additional menus to the Notes client. To add corresponding entries to notes. ini, for example:
Addinmenus = uiaddin1.dll
The corresponding dll must follow the API standard. At the startup of the Notes client, some Initialization is performed based on the configuration file and the DLL entry function. With this feature, you can automatically complete user logon and authentication.

Extended Event Management
In Domino/Notes, operations on various data objects will trigger various events, such as opening a document, closing a document, creating a database, and deleting a database. In notes designer, some portals are provided for processing, such as webqueryopen and webquerysave.
The Lotus c api can be used to greatly expand the processing capabilities of these events. Additional processing can be performed before and after the Domino/Notes system processes these events, such as activity logs, Data Validity Check, user identity authentication, encrypted interface and other data processing. Dsapi is a good example. To implement these examples, you must follow the API specifications in code implementation and configure them in notes. ini, for example:
Extmgr_addins = mymngr1.dll, mymngr2.dll
In short, the Lotus c api provides a variety of methods to manipulate the notes data objects, and can be used to expand the functions of the Notes client and expand the processing of notes events, which is very powerful. At the same time, due to the characteristics of the C language, the efficiency is very high, but the coding implementation is also the most difficult. Therefore, it is suitable for work that requires high data processing efficiency or can only be completed by c api.

Lotus Domino/Notes toolkits Overview (1)
Overview of Lotus Domino/Notes toolkits (2) c API
Lotus Domino/Notes toolkits Summary (iii) c ++ API
Lotus Domino/Notes toolkits Overview (4) Java
Lotus Domino/Notes toolkits Summary (5) lddj
Lotus Domino/Notes toolkits Summary (6) Others
Lotus Domino/Notes toolkits Summary (7) Analysis and Comparison
Overview of Lotus Domino/Notes toolkits (8) Analysis and Comparison
Lotus Domino/Notes toolkits Summary (9)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.