Anonymous
|
Hello, i have an agent using c-api under w32 running fine and trouble to make this run under aix. I try to read and change some agent settings (runonbehalf). My first problem starts getting the OOOAgent. Any Ideas? Thanks Werner Krause pNetworkPath = Space(1024) OSPathNetConstruct 0, db.Server, db.FilePath, pNetworkPath Dim hDB As Long NSFDbOpen pNetworkPath, hDB If hDB = 0 Then Print "API:Can't open database", 16 Exit Sub End If
aliasPos = Instr(agent, "|") If aliasPos = 0 Then ti$ = Trim$(agent) Else ti$ = Trim$(Left$(agent, aliasPos - 1))
Dim nID As Long 'Get the note ID of the specified agent. '########################################################## NIFFindDesignNote hDB, ti$, NOTE_CLASS_FILTER, nID '########################################################## If nID = 0 Then Print "API: Can't find agent in target database.(dont use äöü...) "+ti$ Exit Sub End If -++++++++++++++++++++++++++++++++++++ Const wAPIModule = "libnotes_r.a" ' aix Const NOTE_CLASS_FILTER = &H0200 ' Type definition for the $AssistInfo field Type AssistInfo Version As Integer TriggerType As Integer ' 0 none, 1 schedule, 2 new mail, 3 paste, 4 manual, 5 update, 6 router SearchType As Integer ' 0 none, 1 all, 2 new, 3 new/mod, 4 selected, 5 view, 6 unread, 7 prompt, 8 UI IntervalType As Integer ' 0 none, 1 minutes, 2 days, 3 weeks, 4 months Interval As Integer Time1 As Variant ' Start time (ms since midnight) Time2 As Variant ' Long (weekday or day of month) or end time (ms since midnight) StartTime As Variant ' Time/Date EndTime As Variant ' Time/Date Flags As Long ' 1 hidden, 2 no weekends, 4 store highlights, 8 mail/paste, 16 choose server Spare(15) As Long End Type Type BlockID hPool As Long Block As Integer End Type Declare Function ConvertTIMEDATEToText Lib wAPIModule Alias "ConvertTIMEDATEToText" _ ( Byval zI As Long, Byval zT As Long, Byval T As Long, Byval S As String, Byval nS As Integer, nT As Integer) As Integer Declare Function ConvertTextToTIMEDATE Lib wAPIModule Alias "ConvertTextToTIMEDATE" _ ( Byval zI As Long, Byval zT As Long, pS As Long, Byval nS As Integer, Byval T As Long) As Integer Declare Private Function NIFFindDesignNote Lib wAPIModule Alias "NIFFindDesignNote" _ ( Byval hDB As Long, Byval S As String, Byval C As Integer, N As Long) As Integer Declare Private Function NSFDbOpen Lib wAPIModule Alias "NSFDbOpen" _ ( Byval PathName As String, DbHandle As Long) As Integer Declare Private Function NSFDbClose Lib wAPIModule Alias "NSFDbClose" _ ( Byval DbHandle As Long) As Integer Declare Private Function NSFNoteOpen Lib wAPIModule Alias "NSFNoteOpen" _ ( Byval hDB As Long, Byval NoteID As Long, Byval F As Integer, hNT As Long) As Integer Declare Private Function NSFNoteClose Lib wAPIModule Alias "NSFNoteClose" _ ( Byval hNT As Long) As Integer Declare Function NSFItemInfo Lib wAPIModule Alias "NSFItemInfo" _ ( Byval hNT As Long, Byval N As String, Byval nN As Integer _ , iB As BlockID, D As Integer, vB As BlockID, nV As Long) As Integer Declare Private Function NSFNoteUpdate Lib wAPIModule Alias "NSFNoteUpdate" _ ( Byval hNT As Long, Byval F As Integer) As Integer Declare Function NSFItemDelete Lib wAPIModule Alias "NSFItemDelete" _ ( Byval hNT As Long, Byval N As String, Byval nN As Integer) As Integer Declare Private Function OSMemAlloc Lib wAPIModule Alias "OSMemAlloc" _ ( Byval T As Integer, Byval N As Long, hM As Long) As Long Declare Private Function OSMemFree Lib wAPIModule Alias "OSMemFree" _ ( Byval hM As Long) As Long Declare Private Function OSLockObject Lib wAPIModule Alias "OSLockObject" _ ( Byval H As Long) As Long Declare Private Sub OSUnlockObject Lib wAPIModule Alias "OSUnlockObject" _ ( Byval H As Long) Declare Private Function OSPathNetConstruct Lib wAPIModule Alias "OSPathNetConstruct" _ ( Byval NullPort As Long, Byval Server As String, Byval FIle As String, Byval PathNet As String) As Integer Declare Private Sub Peek Lib "MSVCRT" Alias "memcpy" _ ( D As Any, Byval P As Long, Byval N As Long) Declare Private Sub Poke Lib "MSVCRT" Alias "memcpy" _ ( Byval D As Long, D As Any, Byval N As Long) Declare Private Sub PokeString Lib "MSVCRT" Alias "memcpy" _ ( Byval D As Long, Byval S As String, Byval N As Long)
|