par Rigol'man » 30 Juil 2003 à 14:23
bonjourcrée un agent avec ce code :declarations :Const APIModule = "NNOTES" ' Windows/32 onlyConst REPLFLG_HIDDEN_DESIGN = &H0020Type ReplicaInfo ID(1) As Long Flags As Integer CutoffDays As Integer CutoffDate(1) As LongEnd TypeDeclare Function NSFDbOpen Lib APIModule Alias "NSFDbOpen" _( Byval P As String, H As Long) As IntegerDeclare Function NSFDbClose Lib APIModule Alias "NSFDbClose" _( Byval H As Long) As IntegerDeclare Function OSPathNetConstruct Lib APIModule Alias "OSPathNetConstruct" _( Byval Z As Long, Byval S As String, Byval F As String, Byval P As String) As IntegerDeclare Function NSFDbReplicaInfoGet Lib APIModule Alias "NSFDbReplicaInfoGet" _( Byval H As Long, R As ReplicaInfo) As IntegerDeclare Function NSFDbReplicaInfoSet Lib APIModule Alias "NSFDbReplicaInfoSet" _( Byval H As Long, R As ReplicaInfo) As IntegerInitialize :Sub Initialize Dim s As New NotesSession Dim db As NotesDatabase Set db = s.CurrentDatabase Call HideDesign(db, False)End SubSub HideDesign(db As NotesDatabase, hide As Variant) Dim hDB As Long p$ = Space(256) OSPathNetConstruct 0, db.Server, db.FilePath, p$ NSFDbOpen p$, hDB Dim R As ReplicaInfo NSFDbReplicaInfoGet hDB, R If hide Then R.Flags = R.Flags Or REPLFLG_HIDDEN_DESIGN Else R.Flags = R.Flags And Not REPLFLG_HIDDEN_DESIGN End If NSFDbReplicaInfoSet hDB, R NSFDbClose hDBEnd Subtu rentres dans ta base, lance cet agent et normalement tu devrais voir la structure.[%sig%]