After this function has been executed successfully the returned value is
HNAdapterConfig object handle. If the hCfg
parameter points to the last HNAdapterConfig
object, the returned value will be NULL.
To enumerate all HNAdapterConfig
objects created by PSSDK for all network adapters, found on the system, do the following:
// get the first HNAdapterConfig object handle
HANDLE hCfg = MgrGetFirstAdapterCfg(hMgr);
do
{
// get access to the HNAdapterConfig methods and properties
...
}
// get the next HNAdapterConfig object handle
while ((hCfg = MgrGetNextAdapterCfg(hMgr,hCfg)) != 0);
// get the first HNAdapterConfig object handle
hCfg := MgrGetFirstAdapterCfg(hMgr);
while(hCfg <> 0) do
begin
// get access to the HNAdapterConfig methods and properties
...
// get the next HNAdapterConfig object handle
hCfg := MgrGetNextAdapterCfg(hMgr,hCfg);
end;