View Single Post
Old Nov 8, 2006, 08:49 AM   #1 (permalink)
RooJ
DriverHeaven Newbie
 
Join Date: Nov 2006
Posts: 3
RooJ is on a distinguished road

Activating a wireless card (DeviceioControl)

Not sure if this is the right place to ask but im wanting to communicate directly with a device driver from a vb6 application and need some guidance.

Basically we (a school) have bought 35 laptops that have an annoying issue with them. When starting with the AC power adapter plugged in, the wireless card will activate itself on boot allowing people to login without problems. When running from the battery however the wireless card doesnt activate itself until you either hit a toggle switch at the front of the laptop or when a certain packaged software runs (after logon).
As a school this isn't going to work and as the company we purchased them from wont take the laptops back, and the laptop manufacturers state that "this laptop doesnt have the ability to activate its wireless card automatically before logon unless running from mains" im left trying to fix the problem myself.

What i want to do is create a windows service (which isnt a problem) that when ran does what the preinstalled software does, activates the wireless card.
Ive searched the web and found some very interesting sites, i know now that to open a handle to a driver you use CreateFile() using the name of the device as filename. You use DeviceioControl() to send requests to the driver, but what i dont have much of a clue about is IOCTL codes. Is there any easy way to find out what the code would be to "activate wireless card"? Its an Atheros ARG5005G wireless card

Thanks,

Roo
RooJ is offline   Reply With Quote