I'd ask you why it was failing and why you weren't reporting the error code when it fails. Unfortunately, Win32::NetAdmin::GetServers() makes it impossible to do this. The routine for GetServers in NetAdmin.xs needs to do if( 0 != lastError ) SetLastError(lastError) at the end. Similar changes are probably also required in other routines there.
If you want to get to the bottom of this, I suggest you grab the source code to the module (or to the libwin32 bundle), make that patch, then report $^E upon failure.
Please submit the patch back to the module/bundle maintainer. Thank you.
- tye (but my friends call me "Tye")In reply to (tye)Re: Howto enumerate servers in a Win2K domain?
by tye
in thread Howto enumerate servers in a Win2K domain?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |