File tree Expand file tree Collapse file tree 3 files changed +91
-14
lines changed Expand file tree Collapse file tree 3 files changed +91
-14
lines changed Original file line number Diff line number Diff line change 11Revision history for Perl extension Win32::NetAdmin.
22
3+ 0.08 Mon May 22 21:22:33 2000
4+ - move last error variable to interpreter (thanks to
5+ Doug Lankshear <dougl@activestate.com>)
6+
370.07 Mon May 22 21:22:33 2000
48 - support for passing Unicode strings to methods (thanks to
59 Doug Lankshear <dougl@activestate.com>)
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ package Win32::NetAdmin;
55# Written by Douglas_Lankshear@ActiveWare.com
66#
77
8- $VERSION = ' 0.07 ' ;
8+ $VERSION = ' 0.08 ' ;
99
1010require Exporter;
1111require DynaLoader;
@@ -145,12 +145,19 @@ network.
145145
146146=head2 NOTE
147147
148- All of the functions return FALSE (0) if they fail, unless otherwise noted.
148+ All of the functions return false if they fail, unless otherwise noted.
149+ When a function fails call Win32::NetAdmin::GetError() rather than
150+ GetLastError() or $^E to retrieve the error code.
151+
149152C<server > is optional for all the calls below. If not given the local machine is
150153assumed.
151154
152155=over 10
153156
157+ =item GetError()
158+
159+ Returns the error code of the last call to this module.
160+
154161=item GetDomainController(server, domain, returnedName)
155162
156163Returns the name of the domain controller for server.
@@ -399,6 +406,11 @@ $SidTypeDeletedAccount = 6;
399406$SidTypeInvalid = 7;
400407$SidTypeUnknown = 8;
401408
409+ sub GetError () {
410+ our $__lastError;
411+ $__lastError;
412+ }
413+
402414bootstrap Win32::NetAdmin;
403415
4044161;
You can’t perform that action at this time.
0 commit comments