I'm working on a project that requires that I can reliably detect the presence of a wireless capability on both a PC and a Mac.
Ideally I would want to achieve this through an existing command line tool I could package with my application or that perhaps already exists on the OS.
By wireless capability I mean the presence of a wireless network adapter on a Desktop PC, or built in wireless on a laptop or even a Wireless Dongle/USB Key - basically the presence of any device or component that will allow a connection to a wireless router.
I've been looking into simply capturing output from "ipconfig /all" or "systeminfo" on the PC and "system_profiler" on the Mac... then parsing for known wireless adapters and keywords but this doesn't seem like an ideal solution.
Are there any APIs I can use to achieve this on either platform?
EDIT: Ideally the platforms I would like to support are:
Windows: 2000/XP/Vista/7 Mac: 10.4/.5/.6