Skip to content

Commit f95ce16

Browse files
committed
Load libwin32-0.18 into trunk.
1 parent 738f06d commit f95ce16

File tree

3 files changed

+91
-14
lines changed

3 files changed

+91
-14
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Revision 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 <[email protected]>)
6+
37
0.07 Mon May 22 21:22:33 2000
48
- support for passing Unicode strings to methods (thanks to
59
Doug Lankshear <[email protected]>)

NetAdmin.pm

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package Win32::NetAdmin;
55
#Written by [email protected]
66
#
77

8-
$VERSION = '0.07';
8+
$VERSION = '0.08';
99

1010
require Exporter;
1111
require 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+
149152
C<server> is optional for all the calls below. If not given the local machine is
150153
assumed.
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
156163
Returns 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+
402414
bootstrap Win32::NetAdmin;
403415

404416
1;

0 commit comments

Comments
 (0)