perlboy88 has asked for the wisdom of the Perl Monks concerning the following question:
Win32::API::Struct->typedef( _SHARE_INFO_0 => qw { LPWSTR shi0_netname; }); $NetShareEnum = new Win32::API("Netapi32", "NetShareEnum", [P,N,P,N,N, +N,N], N); $Share_Info = Win32::API::Struct->new('_SHARE_INFO_0'); $Share_Info->{shi0_netname} = " " x 255; my $entriesread; my $totalentries; my $resume_handle; my $result; my $server_address = "10.1.10.12"; $result = $NetShareEnum->Call($server_address, 502,$bufptr,-1,$entries +read, $totalentries, $resume_handle);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting NetShareEnum to work (win32:api)
by BrowserUk (Patriarch) on Jul 10, 2008 at 22:09 UTC |