AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[StdLib] Wlanapi.dll Control your WiFi adapter
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Wed Jul 16, 2008 10:18 pm    Post subject: Reply with quote

knowing a bit about pointers is essential to using DLLCall.

I recommend "A Book on C" (Amazon link)
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Sean



Joined: 12 Feb 2007
Posts: 1397

PostPosted: Wed Jul 16, 2008 10:57 pm    Post subject: Reply with quote

ahklerner wrote:
i am assuming any of the functions that receive pointers, the memory will need to be allocated with that function.
Oh, I didn't think that you're gonna use that memory allocate function, which always requires later a companion call to the memory free function. That's certainly the safest one to use with Wlan... functions, however, I suppose VarSetCapacity() will also do the job without problem with them.
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 689

PostPosted: Thu Jul 17, 2008 1:54 am    Post subject: Reply with quote

I would just like to know how do i know if a function receives a pointer
_________________
check out my site
www.eliteknifesquad.com
Back to top
View user's profile Send private message
ahklerner



Joined: 26 Jun 2006
Posts: 1249
Location: USA

PostPosted: Thu Jul 17, 2008 3:05 am    Post subject: Reply with quote

Fry wrote:
I would just like to know how do i know if a function receives a pointer
you have to look each func up on msdn and see what the params are. from my experience the params that start with p are usually pointers
_________________

ʞɔпɟ əɥʇ ʇɐɥʍ
Back to top
View user's profile Send private message
FRY *UNL*
Guest





PostPosted: Thu Jul 17, 2008 3:25 am    Post subject: Reply with quote

On most commands is says pReserved so does this count as a pointer
Back to top
ahklerner



Joined: 26 Jun 2006
Posts: 1249
Location: USA

PostPosted: Thu Jul 17, 2008 3:36 am    Post subject: Reply with quote

FRY *UNL* wrote:
On most commands is says pReserved so does this count as a pointer
as i said you have to look at the msdn docs. for pete's sake, i even left the link in the code. Why don't you read the docs and then tell us what you think pReserved should be. You should be able to figure out the value of pReserved from reading msdn & correlating the value to something on the dllcall help page.
_________________

ʞɔпɟ əɥʇ ʇɐɥʍ
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 689

PostPosted: Thu Jul 17, 2008 3:40 am    Post subject: Reply with quote

I went over the documentation before this post was started


without looking an masn i can tell that Reserverd is meant for future and must be set to null
_________________
check out my site
www.eliteknifesquad.com
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 689

PostPosted: Thu Jul 17, 2008 2:03 pm    Post subject: Reply with quote

So dont go making claims that i dont read the docs
_________________
check out my site
www.eliteknifesquad.com
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 689

PostPosted: Fri Jul 18, 2008 2:00 am    Post subject: Reply with quote

bump
_________________
check out my site
www.eliteknifesquad.com
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 689

PostPosted: Mon Jul 21, 2008 11:19 pm    Post subject: Reply with quote

still looking for an answer
_________________
check out my site
www.eliteknifesquad.com
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 689

PostPosted: Wed Jul 23, 2008 2:12 am    Post subject: Reply with quote

How do i get the Interfaceguid it is very confusing
_________________
check out my site
www.eliteknifesquad.com
Back to top
View user's profile Send private message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 424
Location: Galil, Israel

PostPosted: Thu Jul 24, 2008 4:12 am    Post subject: Reply with quote

@ahklerner,

at first could not think of anything worthwhile to do with your cool venture into the WLAN api,

and then realized, hey,

can allow having 'Remote' messaging to all systems w/in the WLAN range.


eg. by looking for certain WLAN, and doing something when appears, *Wireless messaging!*


so... in theory, can have the kids machines auto-off when I pull the plug on a spare WLan.

best... they'll never figure out how I do it... (and setting the clock back won't help them!)
_________________
Joyce Jamce
Back to top
View user's profile Send private message
skrommel



Joined: 30 Jul 2004
Posts: 181

PostPosted: Mon Jul 28, 2008 12:12 am    Post subject: Reply with quote

Smile I too would really like this code!

The main problem with Windows' WLAN manager is that it can't tell the difference between WLANs with the same name, so you have to remove the one you've already added to add a new one with the same name if the password is different.

I started scripting NetStumbler from www.netstumbler.com, but I couldn't find where Windows stores it's WLAN keys.

Skrommel
_________________
www.1HourSoftware.com
Back to top
View user's profile Send private message Visit poster's website
ahklerner



Joined: 26 Jun 2006
Posts: 1249
Location: USA

PostPosted: Tue Jul 29, 2008 10:02 pm    Post subject: Reply with quote

added the remaining functions.....still needs reviewed...thx
_________________

ʞɔпɟ əɥʇ ʇɐɥʍ
Back to top
View user's profile Send private message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 424
Location: Galil, Israel

PostPosted: Tue Jul 29, 2008 10:48 pm    Post subject: Reply with quote

cool.

if am understanding correctly,


can now have guests run a little prog. from usb key i give them, and they will be logged into my wifi without even knowing how.


!Fry-- awaiting you to code this up for us. (Thanks!).
_________________
Joyce Jamce
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group