RE: How to get a list of servers without accessing names.nsf? Cath Dwyer 20.Sep.02 04:21 AM a Web browser Lotus Tools -- C++ API All ReleasesAll Platforms
I can't claim credit for this. I think I got it from this forum
Call it like this :-
ServerList=GetServerList()
which returns an array
Paste all below into declarations
Declare Function NSGetServerList% Lib "nnotes" (Byval dwPortName&, nRetServerTextList%)
Declare Function ListGetText% Lib "nnotes" (Byval dwList&, Byval nPrefixDataType%, Byval nEntryNumber%, dwRetTextPointer&, nRetTextLength%)
Declare Function OSTranslate% Lib "nnotes" (Byval nTranslateMode%, Byval dwIn&, Byval nLength%, Byval lpszOut$, Byval nOutLength%)
Declare Function OSLockObject& Lib "nnotes" (Byval nHandle%)
Declare Function OSUnlockObject% Lib "nnotes" (Byval nHandle%)
Declare Function OSMemFree% Lib "nnotes" (Byval nHandle%)