| View previous topic :: View next topic |
| Author |
Message |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Wed Jul 16, 2008 10:18 pm Post subject: |
|
|
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 |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 1397
|
Posted: Wed Jul 16, 2008 10:57 pm Post subject: |
|
|
| 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 |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 689
|
Posted: Thu Jul 17, 2008 1:54 am Post subject: |
|
|
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 |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1249 Location: USA
|
Posted: Thu Jul 17, 2008 3:05 am Post subject: |
|
|
| 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 |
|
 |
FRY *UNL* Guest
|
Posted: Thu Jul 17, 2008 3:25 am Post subject: |
|
|
| 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
|
Posted: Thu Jul 17, 2008 3:36 am Post subject: |
|
|
| 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 |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 689
|
Posted: Thu Jul 17, 2008 3:40 am Post subject: |
|
|
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 |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 689
|
Posted: Thu Jul 17, 2008 2:03 pm Post subject: |
|
|
So dont go making claims that i dont read the docs _________________ check out my site
www.eliteknifesquad.com |
|
| Back to top |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 689
|
|
| Back to top |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 689
|
Posted: Mon Jul 21, 2008 11:19 pm Post subject: |
|
|
still looking for an answer _________________ check out my site
www.eliteknifesquad.com |
|
| Back to top |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 689
|
Posted: Wed Jul 23, 2008 2:12 am Post subject: |
|
|
How do i get the Interfaceguid it is very confusing _________________ check out my site
www.eliteknifesquad.com |
|
| Back to top |
|
 |
Joy2DWorld
Joined: 04 Dec 2006 Posts: 424 Location: Galil, Israel
|
Posted: Thu Jul 24, 2008 4:12 am Post subject: |
|
|
@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 |
|
 |
skrommel
Joined: 30 Jul 2004 Posts: 181
|
Posted: Mon Jul 28, 2008 12:12 am Post subject: |
|
|
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 |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1249 Location: USA
|
Posted: Tue Jul 29, 2008 10:02 pm Post subject: |
|
|
added the remaining functions.....still needs reviewed...thx _________________
ʞɔпɟ əɥʇ ʇɐɥʍ |
|
| Back to top |
|
 |
Joy2DWorld
Joined: 04 Dec 2006 Posts: 424 Location: Galil, Israel
|
Posted: Tue Jul 29, 2008 10:48 pm Post subject: |
|
|
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 |
|
 |
|