Accessing the devices!!!

Hi my dell inspiron laptop doesnt have an led indicator for the wi-fi, i want to write a simple program which will print whether the wi-fi device is turned on or is it off, can someone help me with apis or system calls i need to make use of to access wi-fi device.
Thanks in advance:):)
Topic archived. No new replies allowed.