How to find LPWSTR device name?

I'm trying to programmatically turn on/off my wifi device and am following the example posted in the opennetcf forums:
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=4266

But the question I have is about the first argument when calling DevicePowerNotify, which is how to find out what my wifi device's name is? The example above doesn't work, but if I change the name to "BKL1:" then I can control the backlight, so I think I just need to know the name of the device to get this to work.

Apologies if this is a really basic question, I've looked online but haven't seen a good answer; I probably don't know enough to ask the question!

Thanks!
-Dana

[683 byte] By [dana_lotus] at [2007-12-23]
# 1

How did you find that "BKL1:" is the backlight device name?

Manav

mgaur_MSFT at 2007-8-30 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 2
It was in another example someone put up elsewhere along those lines: http://www.modaco.com/index.php?showtopic=199025
dana_lotus at 2007-8-30 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 3

The structure DEVMGR_DEVICE_INFORMATION contains a legacy device name. You may use this name for DevicePowerNotify()

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceddk5/html/wce50lrfDEVMGR_DEVICE_INFORMATION.asp

Is this useful at all?

Aarthi_MSFT at 2007-8-30 > top of Msdn Tech,Smart Device Development,Smart Devices General...
# 4
Had the same problem. Search the registry for BKL1. It should be under HKLM\Drivers\Active\ . All device names available are there.
andik at 2007-8-30 > top of Msdn Tech,Smart Device Development,Smart Devices General...