some questions on Packet sample code given in WIN2K DDK
hi,
i am a newbie to DD writing. have lots n lots of question. might be some
silly questions are there. please bear with me.
I am working on a LAN protocol driver on win2k.
while going thru sample code "Packet" i saw few things. which i want to be
clarified.
1. what is "ntDeviceName" and "win32DeviceName" . what is the relation
between them.
2. where is this "RegistryPath" structure defined. in driverEntry routine is
can see Globals.RegistryPath.Length defined but structure is not seen
anywhere.
3. what is the significance of "RtlInitUnicodeString". while looking on
do***entation i came to know that it "Initializes a counted Unicode string
from a NULL terminated Unicode string". i am not getting this statement. if
somebody can enlighten me. and also what is "counted"
4. "IoCreateSymbolicLink sets up a symbolic link between a device object
name and a user-visible name for the device" by this my understanding is it
links system given device names to user friendly device name, as we
havesomething like this in Linux where devices are named like eth0, eth1
etc. and user visible name are someting like " REAL network adapter model 1"
etc.
am i right?? and if i am where i can view various system given device names
defined in windows??
I saw an entry in packet.h as
#define NT_DEVICE_NAME L"\\Device\\Packet"
#define DOS_DEVICE_NAME L"\\DosDevices\\Packet"
what is this L"\\Device\\Packet" ??
one more doubt related to this "as per my initial understanding this sort of
linking must have already been done by OS because many times OS needs to
tell user about current hardware installed. am i supposed to do this linking
in my application also. as my application deals with finding all the network
cards installed in machine and locate with which it can bind and tell user
about the cards installed. depending upon user's selection a card gets
selected. and put on job. if you can tell me some line of action for above
said binding operation. i will be thankfull to you. If i am wrong somewhere
please let me know.
Looking for your prompt replies,
regards,
Puneet
|