Функция _WinNet_GetUser

 ↑  ←  Описание функции


_WinNet_GetUser

Retrieves the default user name, or the user name used to establish a connection

#include <WinNet.au3>
_WinNet_GetUser($sName)

Параметры

$sName Either the name of a local device that has been redirected to a network resource, or the remote
    name of a network resource to which a connection has been made without redirecting a local device. If blank,
    the system returns the name of the current user for the process.

Возвращаемое значение

Успех:User name
Ошибка:Устанавливает @error

См. также

Искать WNetGetUser в библиотеке MSDN