资源简介
Lotus C++ API Toolkit for Notes/Domino 8.0 for Windows English
C99N6EN.zip (16 MB)
代码片段和文件信息
//===========================================================================
//
// Module: ACLLOG.CPP
//
// Description:
// Sample C++ API program that creates an access control entry
// list log file.
//
// Syntax: ACLLOG [server]
//
// Where dbname = file path name for the database to add the ACL
// information. If you do not supply this parameter you will be
// prompted for arguments at run time.
//
//===========================================================================
#ifndef ACLLOG_HPP
#include “acllog.hpp“
#endif
// Parameter Strings
IOParameter CommandBuf;
IOParameter PromptString1;
IOParameter ParamString1;
IOParameter PromptString2;
IOParameter ParamString2;
//---------------------------------------------------------------------------
//
// MAIN
//
//---------------------------------------------------------------------------
int main(int argc char *argv[])
{
int ProgramStatus = 0;
LNNotesSession Session;
LNSTATUS Stat;
LNSetThrowAllErrors(TRUE);
LNDatabase ACLDb;
ACLLog Log;
// Begin TRY block.
// Throw all errors encountered during command execution.
try
{
LNString ACLDbtitle;
LNDocument Doc;
LNString DatabasePath;
LNString ServerName;
// Initialize the Notes session.
Session.Init(argc argv);
// Parse the argument list.
ProcessArguments( argc argv &DatabasePath &ServerName);
LNString AclLogFile = “acllog.nsf“;
LNString AclLogServer = ““;
// Get the specified database.
Session.GetDatabase(DatabasePath &ACLDb ServerName);
// Open the log database.
Stat = Log.OpenAclDB( &Session AclLogFile AclLogServer );
if (Stat)
throw Stat;
LNACL Acl;
LNACLEntryArray Entries;
LNACLEntry Entry;
LNACLRoleArray EntryRoles;
LNINT EntryCountEntryRoleCount;
LNINT Index1 Index2;
ACLDb.Open();
ACLDbtitle = ACLDb.Gettitle();
// Get the database‘s ACL.
Stat = ACLDb.GetACL(&Acl);
Stat = Acl.GetEntries(&Entries);
EntryCount = Entries.GetCount();
for (Index1 = 0; Index1 < EntryCount; Index1 ++)
{
// Create a New log document to log all of the ACL entry list
// data to. Log the db data to the top of the new log.
Stat = Log.CreateLogEntry( ServerName DatabasePath ACLDbtitle );
if (Stat)
throw Stat;
// Then output all the ACL entry info in the ACL.
Entry = Entries[Index1];
Stat = Log.AddACLEntry( Entry );
if (Stat)
throw Stat;
cout << “Entry Name: “ << Entry.GetName() << endl;
// Output all the roles for each ACL entry.
Entry.GetRoles(&EntryRoles);
EntryRoleCount = EntryRo
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2007-09-30 04:02 notescpp\
目录 0 2007-09-30 04:02 notescpp\include\
文件 2062 2007-09-30 03:57 notescpp\include\lnrepsta.hpp
文件 660 2007-09-30 03:57 notescpp\include\lnrsclnk.hpp
文件 16757 2007-09-30 03:57 notescpp\include\lnrt.hpp
文件 14343 2007-09-30 03:57 notescpp\include\lnrtcont.hpp
文件 3809 2007-09-30 03:57 notescpp\include\lnrtcrsr.hpp
文件 3836 2007-09-30 03:57 notescpp\include\lnrtelem.hpp
文件 3241 2007-09-30 03:57 notescpp\include\lnrthots.hpp
文件 2523 2007-09-30 03:57 notescpp\include\lnrtjava.hpp
文件 6846 2007-09-30 03:57 notescpp\include\lnrtli
文件 4237 2007-09-30 03:57 notescpp\include\lnrtobj.hpp
文件 2086 2007-09-30 03:57 notescpp\include\lnrtobjb.hpp
文件 3350 2007-09-30 03:57 notescpp\include\lnrtoleo.hpp
文件 2554 2007-09-30 03:57 notescpp\include\lnrtsbfm.hpp
文件 16685 2007-09-30 03:57 notescpp\include\lnrttabl.hpp
文件 3938 2007-09-30 03:57 notescpp\include\lnrttype.hpp
文件 20260 2007-09-30 03:57 notescpp\include\lnsactio.hpp
文件 3347 2007-09-30 03:57 notescpp\include\lnsaddin.hpp
文件 3296 2007-09-30 03:57 notescpp\include\lnsbform.hpp
文件 2199 2007-09-30 03:57 notescpp\include\lnsc
文件 2149 2007-09-30 03:57 notescpp\include\lnscrlb.hpp
文件 12601 2007-09-30 03:57 notescpp\include\lnsearch.hpp
文件 3902 2007-09-30 03:57 notescpp\include\lnsectio.hpp
文件 17959 2007-09-30 03:57 notescpp\include\lnsessio.hpp
文件 3034 2007-09-30 03:57 notescpp\include\lnsfield.hpp
文件 1048 2007-09-30 03:57 notescpp\include\lnstoele.hpp
文件 11925 2007-09-30 03:57 notescpp\include\lnstring.hpp
文件 2989 2007-09-30 03:57 notescpp\include\lntext.hpp
文件 1622 2007-09-30 03:57 notescpp\include\lntxtpup.hpp
文件 2303 2007-09-30 03:57 notescpp\include\lnurllnk.hpp
............此处省略593个文件信息
- 上一篇:modbus 客户端主站C++源代码
- 下一篇:AES MFC
相关资源
- modbus 客户端主站C++源代码
- C++ Prime Plus第6版
- 编译原理词法分析器C++版源代码
- C++实现五子棋项目.zip
- loadConfig.zip
- VC++视频采集资料
- Effective C++中文版第三版带书签
- 基于SVM与人工神经网络的车牌识别O
- 数据结构、算法与应用——C++语言描
- C++17 标准 ISOIEC 14882 2017 官方pdf文档
- 人脸识别C++源码
- Visual C++ MFC 源代码大全
- C++程序设计第二版钱能.rar
- Visual C++ Redistributable for Visual Studio 2
- 车牌识别系统C++实现
- 数据结构与算法分析C++描述第三版及
- 顾卫刚手把手教你学DSP基于2812
- WAV转换成MP3音频文件 C++ vc MFC
- Learning C++ by Creating Games with UE4 无水印
- 《C++游戏开发》笔记十二 战争迷雾的
- 《MFC游戏开发》笔记九 碰撞检测 怪物
- C++ GUI Qt 4编程第二版 经典教材适合
- 图书管理系统c++与SQL数据库+课程设计
- Scientific and Engineering C++
- VC++游戏编程基础有书签
- 钱能C++程序设计教程第二版pdf高清带
- C++并发编程实战 美威廉姆斯著 高清扫
- 源代码——MFC的WebBrowser控件 C++与ja
- C++编程风格(PDF 英汉对照 The Element
- 精通Visual C++数字图像处理典型算法及
评论
共有 条评论