Henry asked me to create a feature request to preserve
the links from an email posted to the colinux-users
mailing list on Dec 1, 2005.
>>Yes, and the "colinux service" receive a signal about
power changing
>>from windows system (I hope).
>
>
> If you use RegisterServiceCtrlHandlerEx to register
your service
> control handler, then you'll receive
SERVICE_CONTROL_POWEREVENT
> messages (which is essentially the same thing as the
WM_POWERBROADCAST
> message that applications get).
>
> There is some more information here:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndllpro/html/shc.asp
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw2kcli/html/W2Kcli_chapter6.asp
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/handlerex.asp
Logged In: YES
user_id=81575
Fw: my request that initiated this discussion
David Kaufman <david@gigawatt.com> wrote:
>>> Does coLinux not "know" that it is being suspended?
Is there
>>> another apm event that I can hook into?
and Henry Nestler <Henry.Ne@Arcor.de> replied:
>> coLinux does currently not forward any apm events.
This would be a
>> nice feature for "colinux service" and command line
runing version.
>>
>> For me, I know this and restart my network by hand. :-(
>
[...] because I'm now using bridged networking
instead of NAT my colinux box now has to get it's dhcp
address from the external network, not from Windows
Connection Sharing.
And [ifdown/up works, but] It would just be really nice
for me if coLinux fired off an apm event when the laptop
resumed, so I can create an /etc/apm/event.d script that
gets kicked off on resume, right when I may have relocated
it onto a new network, and when I need it to get a new IP
address if necessary.
Windows does this. It wakes up and knows that it might
not be in Kansas anymore, so it sends out a dhcp renewal
request and, if it's last IP was from home, and it is now
at work, the server will offer it a new valid address and
voila: the system adapts to its new environment instantly.
But coLinux I have to kick.
It's a small thing, really. But a feature I'd really be
glad to see!
dave