Sign in to follow this  
Followers 0
ConsultingJoe

Dll Call Help

3 posts in this topic

Please let me know what I'm doing wrong.

Thanks in advance

Download Dll

This is what I have:

$dll = DllOpen( "WiFiMan.dll" )

$return = DllCall( $dll, "long", "EnumerateAdapters" )
ConsoleWrite( "Adapters: " & $return & @CRLF)
;~ Public Declare Function EnumerateAdapters Lib "WiFiMan.dll" () As Long
$rBuffer   = DllStructCreate("char[256]")
$pBuffer   = DllStructGetPtr($rBuffer)
$return = DllCall( $dll, "long", "GetAdapterName", "long", 0, "str", $pBuffer, "long", 256 )
ConsoleWrite( "Adapter Name: " & DllStructGetData($rBuffer, 1) & @TAB & "Error: " & $return)
;~ Public Declare Function GetAdapterName Lib "WiFiMan.dll" (ByVal AdapterInd As Long, ByVal Name As String, ByVal MaxCount As Long) As Long
DllClose( $dll )

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites



Please let me know what I'm doing wrong.

Thanks in advance

Download Dll

This is what I have:

$dll = DllOpen( "WiFiMan.dll" )

$return = DllCall( $dll, "long", "EnumerateAdapters" )
ConsoleWrite( "Adapters: " & $return & @CRLF)
;~ Public Declare Function EnumerateAdapters Lib "WiFiMan.dll" () As Long
$rBuffer   = DllStructCreate("char[256]")
$pBuffer   = DllStructGetPtr($rBuffer)
$return = DllCall( $dll, "long", "GetAdapterName", "long", 0, "str", $pBuffer, "long", 256 )
ConsoleWrite( "Adapter Name: " & DllStructGetData($rBuffer, 1) & @TAB & "Error: " & $return)
;~ Public Declare Function GetAdapterName Lib "WiFiMan.dll" (ByVal AdapterInd As Long, ByVal Name As String, ByVal MaxCount As Long) As Long
DllClose( $dll )
Few things...

1. Why start another thread, when just 2 posts down you have the same request?

http://www.autoitscript.com/forum/index.php?showtopic=42219

2. The API list you provided in the link above doesn't have parameters, care to share where we are supposed to find that?

3. Do you have permission or are you licensed to distribute their dll freely (saw the link to your site with the dll in it)?


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

I'll take it by you signing off 10 minutes after I posted that you don't fall under: Section 4 and didn't want to point us to API Calls?


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0