Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am having a terrible time trying to use the Win32-API-Prototype module! I basically would like to reference Windows Networking Functions to return a list of all devices available on a local network but I can't understand how to use the module. All i've got so far is pretty much:
Can any of you possibly shed some light on how i should use this module correctly to return what I want?use Win32::API::Prototype; ApiLink('kernel32.dll', 'DWORD WNetOpenEnum(DWORD dwScope,DWORD dwType,DWORD dwUsage,L +PNETRESOURCE lpNetResource,LPHANDLE lphEnum)'); ApiLink('kernel32.dll', 'DWORD WNetEnumResource(HANDLE hEnum,LPDWORD lpcCount,LPVOID l +pBuffer,LPDWORD lpBufferSize)'); ApiLink('kernel32.dll', 'DWORD WNetCloseEnum(HANDLE hEnum)');
Thanks, Jenni xoxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32-API-Prototype WNet
by holli (Abbot) on Mar 01, 2005 at 15:05 UTC | |
by Anonymous Monk on Mar 01, 2005 at 15:37 UTC | |
by holli (Abbot) on Mar 01, 2005 at 15:46 UTC | |
by Anonymous Monk on Mar 01, 2005 at 16:03 UTC | |
by Anonymous Monk on Mar 02, 2005 at 03:41 UTC | |
|
Re: Win32-API-Prototype WNet
by Anonymous Monk on Mar 01, 2005 at 18:12 UTC | |
by mdillon (Priest) on Mar 02, 2005 at 04:48 UTC |