custom shell and DHCP (boot ordering?)
WinXPTalk.com Forum Index WinXPTalk.com
Forums for Windows XP users.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winxptalk.com
custom shell and DHCP (boot ordering?)

 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Embedded System
Author Message
lsmithmier
Guest





Posted: Thu Jan 06, 2005 9:33 am    Post subject: custom shell and DHCP (boot ordering?) Reply with quote

Hello,
First time poster, so please be gentle. I have built a custom shell for an
XPe installation and I am having problems with network access. To be
specific, I am wanting to (eventually) boot remotely, get an IP address via
DHCP, and have my shell (or a program launched by it, both Dotnet written in
C#) open a socket for remote control.

I am currently trying to boot a local image and have my shell program work
as noted previously. What seem to happen is the program comes up prior to
the assignment of an IP, thus I can't connect remotely. I say _seems_
because I am almost sure there is something else going on that I just don't
Gronk yet. I feel this because I am also launching a form that I want to be
my background isn't showing. That is the reason I have a Shell launching a
second program, to try and remove myself from the issues of no network. Is
there some event that I should wait for prior to launching my program from
my shell? I have the two programs because I want to keep system control
separate from the main program.

Also, a much lesser question: can you do HORM _and_ remote boot with XPe
SP2?

Any help would be appreciated.



Larry at Smithmier dot Com
Back to top
KM
Guest





Posted: Thu Jan 06, 2005 9:33 am    Post subject: Re: custom shell and DHCP (boot ordering?) Reply with quote

Larry,

In you application you can wait until IP address is retrived.
You can use IP Helper API to accomplish that. But it you think about DHCP only you can also try DHCP Client API:
http://msdn.microsoft.com/library/en-us/dhcp/dhcp/dhcp_client_api.asp. Use DHCP CLient notification feature
(DhcpRegisterParamChange), just set OptionId to the IP address.

Ther eis currently no way to resume XP/XPe from a remote image. HORM and Remote Boot don't live together.
However, it is hard to belive someone can use to remotely load a hibernated image. Compared to the downloading time the time
advantage you gain by using the fast boting (resuming) image is almost nothing. Take a close look at the SDI feature of XPe and see
if this is what you really want.

KM

Quote:
Hello,
First time poster, so please be gentle. I have built a custom shell for an XPe installation and I am having problems with network
access. To be specific, I am wanting to (eventually) boot remotely, get an IP address via DHCP, and have my shell (or a program
launched by it, both Dotnet written in C#) open a socket for remote control.

I am currently trying to boot a local image and have my shell program work as noted previously. What seem to happen is the program
comes up prior to the assignment of an IP, thus I can't connect remotely. I say _seems_ because I am almost sure there is
something else going on that I just don't Gronk yet. I feel this because I am also launching a form that I want to be my
background isn't showing. That is the reason I have a Shell launching a second program, to try and remove myself from the issues
of no network. Is there some event that I should wait for prior to launching my program from my shell? I have the two programs
because I want to keep system control separate from the main program.

Also, a much lesser question: can you do HORM _and_ remote boot with XPe SP2?

Any help would be appreciated.



Larry at Smithmier dot Com
Back to top
Sean Liming (eMVP)
Guest





Posted: Thu Jan 06, 2005 9:33 am    Post subject: Re: custom shell and DHCP (boot ordering?) Reply with quote

Did you create a shell component for your shell? Or is there another shell
like explorer also loading?

HOMR and remote boot are mutully exclusive. Remote Boot downloads an XPe
image from a server and loads the image into memory. There is assumed to be
no local storage with a Remote Boot. With HORM, a hibernate file is stored
on a hard drive and loaded into RAM upon boot.

Regards,

Sean Liming (eMVP)
Managing Director
SJJ Embedded Micro Solutions

www.sjjmicro.com / www.seanliming.com
Author: Windows XP Embedded Advanced and Windows NT Embedded Step-by-Step




"lsmithmier" <larry@smithmier.com> wrote in message
news:ukMATr78EHA.1400@TK2MSFTNGP11.phx.gbl...
Quote:
Hello,
First time poster, so please be gentle. I have built a custom shell for an
XPe installation and I am having problems with network access. To be
specific, I am wanting to (eventually) boot remotely, get an IP address
via DHCP, and have my shell (or a program launched by it, both Dotnet
written in C#) open a socket for remote control.

I am currently trying to boot a local image and have my shell program work
as noted previously. What seem to happen is the program comes up prior to
the assignment of an IP, thus I can't connect remotely. I say _seems_
because I am almost sure there is something else going on that I just
don't Gronk yet. I feel this because I am also launching a form that I
want to be my background isn't showing. That is the reason I have a Shell
launching a second program, to try and remove myself from the issues of no
network. Is there some event that I should wait for prior to launching my
program from my shell? I have the two programs because I want to keep
system control separate from the main program.

Also, a much lesser question: can you do HORM _and_ remote boot with XPe
SP2?

Any help would be appreciated.



Larry at Smithmier dot Com

Back to top
lsmithmier
Guest





Posted: Sat Jan 08, 2005 5:59 am    Post subject: Re: custom shell and DHCP (boot ordering?) Reply with quote

KM,

Thanks for the pointer to the information about the DHCP API. It looks like
what I need (*doh* of course it takes a while for DHCP to work, I feel a
little slow right now) so I will post code I use in the final solution for
others to gawk at. Thanks again for the assistance.

And yes, remote booting a HORM image does seem a bit foolish now that you
mention it. I was mainly thinking of being able to use the same image in
different situations, but again, foolish :-)

Thank you for your assistance. (and sorry for the delayed response, didn't
realize the postings were crossing and didn't read this one until today)

Larry

"KM" wrote:

Quote:
Larry,

In you application you can wait until IP address is retrived.
You can use IP Helper API to accomplish that. But it you think about DHCP only you can also try DHCP Client API:
http://msdn.microsoft.com/library/en-us/dhcp/dhcp/dhcp_client_api.asp. Use DHCP CLient notification feature
(DhcpRegisterParamChange), just set OptionId to the IP address.

Ther eis currently no way to resume XP/XPe from a remote image. HORM and Remote Boot don't live together.
However, it is hard to belive someone can use to remotely load a hibernated image. Compared to the downloading time the time
advantage you gain by using the fast boting (resuming) image is almost nothing. Take a close look at the SDI feature of XPe and see
if this is what you really want.

KM

Hello,
First time poster, so please be gentle. I have built a custom shell for an XPe installation and I am having problems with network
access. To be specific, I am wanting to (eventually) boot remotely, get an IP address via DHCP, and have my shell (or a program
launched by it, both Dotnet written in C#) open a socket for remote control.

I am currently trying to boot a local image and have my shell program work as noted previously. What seem to happen is the program
comes up prior to the assignment of an IP, thus I can't connect remotely. I say _seems_ because I am almost sure there is
something else going on that I just don't Gronk yet. I feel this because I am also launching a form that I want to be my
background isn't showing. That is the reason I have a Shell launching a second program, to try and remove myself from the issues
of no network. Is there some event that I should wait for prior to launching my program from my shell? I have the two programs
because I want to keep system control separate from the main program.

Also, a much lesser question: can you do HORM _and_ remote boot with XPe SP2?

Any help would be appreciated.



Larry at Smithmier dot Com


Back to top
 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Office Forums Access Forums Windows Server Exchange Server Help
New Topics Powered by phpBB