Win32API::Net UserAdd Problem

[email protected] (Téssio Fechine)
Newsgroups perl.win32.vanilla
Message-ID <[email protected]>
Hello,
I'm using strawberry perl 5.12.3 on winxp sp3, and I have a problem :(

I keep receiving this error message:

"Use of uninitialized value in subroutine entry.."

and this error code: "997"

when I try to use Win32API::Net's UserAdd():

UserAdd(
    '',
    1,
    {
        comment        => '',
        flags        => (
                Win32API::Net::UF_SCRIPT() & Win32API::Net::UF_NORMAL_ACCOUNT()
        ),
        homeDir        => '\\\\homeserver\\home\\' . $account,
        name        => $account,
        password    => $password,       
        passwordAge    => 0,           
        priv        => USER_PRIV_USER(),   
        scriptPath    => '',           
       
    },
    $error
);

Anyone can see what the problem is?
Thanks..
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.