Thanks Bill.
Your advice helps me removing previous warning message, however it doesn`t
work anyway and cause new warning messages.
It seems I don`t understand how it works :(
I want to make a list of pairs of two elements "AccountName =
text_format_SID". For this I use following function

    Win32::LookupAccountName('myDC', $AccountName, 'my_domain', $binSID,
$typeSID);
where $binSID consists binary representation of SID. Further I call
ConvertSidToStringSid to convert binary SID to text SID on following order:

    my $ConvertSIDToStringSID=Win32::API->new ("ADVAPI32.DLL",
'ConvertSidToStringSid', [qw(PP)], 'N') or
        die "ConvertSidToStringSid: $! ($^E)";
it works now without any error. Thanks.
MS Platform SDK says the second parametr is for output. So I pack only the
first parametr:
    my $SID=pack("P", $binSID);
than I call
    $ConvertSIDToStringSID->Call($SID, $StringSID);
This line produce "Wrong number of parameters: expected 1, got 2." message

If I prepare both parameters ($SID and $StringSID) I got the same message.
    my $SID=pack("P", $binSID);
    my $StringSID=pack("p", "");
    $ConvertSIDToStringSID->Call($SID, $StringSID);  # "Wrong number of
parameters: expected 1, got 2."

I have not any ideas what I should do. Help, please.
Thanks in advance.
Dmitry Zyukov.

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to