O'Reilly logo

Win32 Perl Programming: The Standard Extensions, Second Edition by Dave Roth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Win32::NetAdmin

If an error occurs during a function call, using GetError() might return an incorrect value if running in a multithreaded environment such as using the PerlIS.dll ISAPI application or using PerlScript. The reason for this is that the last error is held in a single variable. If an error occurs, the error number is stored in the variable. It is possible that between the time you call a function and the time you call GetError(), another script could have been run (a CGI script on a web server, for example) that would change the value of the LastError variable. The Win32::NetAdmin extension is not thread friendly. For more information about this, refer to the “Threads” section earlier in this chapter.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required