home *** CD-ROM | disk | FTP | other *** search
- =head1 NAME
-
- NT - miscellaneous extensions for Win32
-
- =head1 DESCRIPTION
-
- Because Perl for Win32 originated on the Windows NT platform, most
- modules extensions for Win32 exist under the NT hierarchy. The
- following extensions routines are available:
-
- =item NT::GetLastError
-
- Returns the last error value generated by a call to a Win32 API function.
-
- =item NT::PerlVersion
-
- Returns a string indicating the version of NT Perl.
-
- =item NT::LoginName
-
- Returns the username of the owner of the current perl process.
-
- =item NT::NodeName
-
- Returns the Microsoft Network node-name of the current machine.
-
- =item NT::DomainName
-
- Returns the name of the Microsoft Network domain that the owner of the
- current perl process is logged into.
-
- =item NT::FsType
-
- Returns a string naming the filesystem type of the currently active drive.
-
- =item NT::GetCwd
-
- Returns the current active drive. This function does not return a UNC
- path, since the functionality required to required for such a feature
- is not available under Windwos 95.
-
- =item NT::GetOSVersion
-
- Returns the array ($string, $major, $minor, $build, $id), where the
- elements are, respectively; An arbitrary descriptive string, the major
- version number of the operating system, the minor version number, the
- build number, and a digit indicating the actual operating system. For
- $id, the values are 0 for generic Win32, 1 for Windows 95 and 2 for
- Windows NT.
-
- =item NT::FormatMessage ERRORCODE
-
- Converts the supplied Win32 error bitmap (e.g. returned by
- GetLastError) to a descriptive string. Analogous to the C<perror>
- standard-C library function.
-
- =item NT::Spawn COMMAND, ARGS, PID
-
- Spawns a new process using the supplied C<COMMAND>, passing in
- arguments in the string C<ARGS>. The pid of the new process is
- stored in C<PID>.
-
- XXX =item NT::LookupAccountName SYSTEM, ACCOUNT, DOMAIN, SID, SIDTYPE
-
- XXX =item NT::LookupAccountSID SYSTEM, SID, ACCOUNT, DOMAIN, SIDTYPE
-
- =item NT::InitiateSystemShutdown MACHINE, MESSAGE, TIMEOUT, FORCECLOSE, REBOOT
-
- Shutsdown the specified C<MACHINE>, notifying users with the supplied
- C<MESSAGE>, within the specified C<TIMEOUT> interval. Forces closing
- of all documents without prompting the user if C<FORCECLOSE> is true,
- and reboots the machine if C<REBOOT> is true.
-
- =item NT::AbortSystemShutdown MACHINE
-
- Aborts a shutdown on the specified C<MACHINE>.
-
- =cut
-