|03-12-2007, 04:59 PM||#1|
WDK and networking
I am perplexed by amount of information that is in bits and pieces in
regards to Windows network devices and how to set them up. I am
currently relying on WDK package which has great source code and
building samples for testing. My quest is simple yet not simple.
First off, I am working in Windows PE environment. Windows PE
registry enteries vanish when system boots and it reboots with very
generic registry enteries.
I need to understand a few things. I install network cards using a
WDK folder src\setup\install sample. Seems to work great! I pass it
location of INF file and Hardware ID, it finds and installs the device
driver for NICs. Just for curiousity, I look in registry and I see,
it adds in enteries about NICs. From here begins confusion.... I use
another WDK provided sample SNETCFG which is suppose to bind network
components such as protocols/services to use with NIC in my case TCP/
IP, and set it up as Client for MS Networks-which it does. Here is
the trouble, it seems to work but I there is no NIC seen by system.
NIC does not go out and get an IP. Furthermore, when I run IPCONFIG
and it reports error, Unable to query host. I also use yet another
sample called bindview which shows in a tree that NIC adapter attached
to TCP/IP protocol and also set as Client for MS networks.
What is missing? Why isn't NIC active? Why can't it go out and get an
IP and provide networking inside WinPE environment? Again, I can not
reboot system because if I do all the registry enteries about NIC
installation disappear. I use another program which I got off the web
called PENETCFG. It does all of the above, installs NICs, TCP/IP
protocol, it goes out and gets an IP, and furthmore has ability to map
network drives and set many other functions of network which are in a
full blown OS like XP. And it does that without rebooting the
system. I want my program to mimic same behavior. Will appreciate
help in helping me understand. Thanks.
|New To Site?||Need Help?|