views:

46

answers:

1

I'd like to detect if Wake On Lan is possible.

On my router (Tomato firmware) there is a table with info - when displays device "Active (In ARP)" - it's possible to turn this device by WOL (offline linux pc).

I wonder if it is achieved by router only function or I can do this in C# or C? Function SendArp can detect MAC adress and do "arping" but it is not what I would like to do.

A: 

You're probably best checking out http://msdn.microsoft.com/en-us/library/ff566341(VS.85).aspx

This will let you query boolean for power management and the device specific "wake enabled" state.

Given that it's WMI, you should be able to get to this remotely, but it does need a couple of registry keys set to expose the WMI class.

dotalchemy
But this way I get info about settings of running windows machine. What I meant is to query if turned off machine can be waked on lan (this do my router).
mich