Is there a way to create a persistent route in WinCE? In
Win2k, etc., you can use the route -p command in the
command prompt, but that obviously doesn't exist in WinCE
(more specifically PocketPC).
I've been playing around with CreateIpForwardEntry and the
other iphlpapi functions, and can't seem to figure out how
to make routes permanent using those functions. After a
reset of either the WinCE device or the adapter associated
with the routes, they are all flushed. I've also tried
looking around in the registry, and can't even find where
non-persistent routes are stored.
In short: Is there such a thing as a persistent route in
WinCE? If so, how can I create one?
Any help would be appreciated.
Thanks,
Curt
To implement persistent routes that survive resets would require writing
them to the registry then adding a startup application that reads those
registry settings and calls CreateIpForwardEntry appropriately. To have
routes that survive adapter removal and insertion would require having a
route manager daemon running that maintains the desired route table, listens
for the comings and goings of adapters (there is an IP Helper notification
API useful here), and calls CreateIpForwardEntry when necessary.
I've written something similar to that except that it was to manage ARP
Proxies rather than routes.
--
Jeff Kelley
Windows CE Networking
This posting is provided "AS IS" with no warranties, and confers no rights.
"Curt Coleman" <Curtis....@viasat.com> wrote in message
news:2d8601c28074$6d90c100$95e62ecf@tkmsftngxs02...
Thanks,
Curt
>.
>