Access Issue using the W32_NSFDbOpen function of nnotes.dll

Hi,

I am using the CLASSUserActivity for reading the useractivities of the databases on server via scheduled agent.

I was getting the error “Operation disallowed in this session” when I have Agent security as “Do not allow restricted operations”

But when I changed it to “Allow restricted operations” It went well.

Can any one please tell me why it needs “Allow restricted operations”

Here is the code which throws above error:

'Open the target database

  rc = W32_NSFDbOpen(sDatabase,Me.hDb)

and the declartion is :

Declare Function W32_NSFDbOpen Lib “nnotes.dll” Alias “NSFDbOpen” ( Byval dbName As String, hDb As Long) As Integer

Subject: Access Issue using the W32_NSFDbOpen function of nnotes.dll

Domino Designer Help clearly defines what kind of operations are restricted. Among them are “Calling a C routine”. You should look it up…

/Peter

Subject: RE: Access Issue using the W32_NSFDbOpen function of nnotes.dll

Thanks Peter!!