in reply to Re: Failure to load Win32::NetResource
in thread Failure to load Win32::NetResource

Well I tried the alternative route, as per your suggestion:
use Win32::API; my $netShareGetInfo = Win32::API->new('NETAPI32', 'NetShareGetInfo', ' +PPNP', 'N') or die "Can't initialize function";
Again, this loads fine on XP and fails on Win98. NETAPI32.DLL does exist, in Windows's system directory.

Replies are listed 'Best First'.
Re^3: Failure to load Win32::NetResource
by BrowserUk (Patriarch) on Sep 13, 2004 at 22:01 UTC

    Maybe this is the cause?

    Platform SDK: Network Management NetShareGetInfo The NetShareGetInfo function retrieves information about a particular shared resource on a server. Windows Me/98/95: The parameters for this function are different from those listed in the syntax block. For more information and syntax, see the Windows Me/98/95 information in the Remarks section.

    There is more information + a link to some sample code via the link above.

    HTH.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon