how to

Hello :

Any ideas about how to hook the data coming to SMTP i.e., port 25 or any other port say 80 or 21…

I want to know how is it possible in user mode or will i have to mess up with kernel mode stuff…monitor network packets… something like tcpdump… I want it to be as simple as possible.

regards


Do You Yahoo!?
Yahoo! Auctions Great stuff seeking new owners! Bid now!


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi

Use the Winsock 2.0 Layer Service Provider mechanism, You can see the sample
in MSDN Samples.

-Sanesh Kumar K

-----Original Message-----
From: BASHIR IRFAN [mailto:xxxxx@yahoo.com]
Sent: 24 January 2002 3:44 PM
To: NT Developers Interest List
Subject: [ntdev] how to

Hello :

Any ideas about how to hook the data coming to SMTP i.e., port 25 or
any other port say 80 or 21…

I want to know how is it possible in user mode or will i have to mess up
with kernel mode stuff…monitor network packets… something like tcpdump…
I want it to be as simple as possible.

regards


Do You Yahoo!?
Yahoo! http:
Auctions Great stuff seeking new owners! Bid now!
http: — You are
currently subscribed to ntdev as: xxxxx@ctd.hcltech.com To unsubscribe send
a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></http:>

You can inject your own DLL which will hook WinSock. Note that you will need to hook Read/WriteFile on sockets too.

Max

----- Original Message -----
From: BASHIR IRFAN
To: NT Developers Interest List
Sent: Thursday, January 24, 2002 1:14 PM
Subject: [ntdev] how to

Hello :

Any ideas about how to hook the data coming to SMTP i.e., port 25 or any other port say 80 or 21…

I want to know how is it possible in user mode or will i have to mess up with kernel mode stuff…monitor network packets… something like tcpdump… I want it to be as simple as possible.

regards


Do You Yahoo!?
Yahoo! Auctions Great stuff seeking new owners! Bid now! — You are currently subscribed to ntdev as: xxxxx@storagecraft.com To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

No reliable way in user mode. Even user mode programs are not
obligated to go through winsock. What if somebody has their own
winsock?

Hooking, even if possible, is not supported by the O/S, thus it is only
good for fun, not for production.

— “Maxim S. Shatskih” wrote:
> You can inject your own DLL which will hook WinSock. Note that you will need
> to hook Read/WriteFile on sockets too.
>
> Max
>
> ----- Original Message -----
> From: BASHIR IRFAN
> To: NT Developers Interest List
> Sent: Thursday, January 24, 2002 1:14 PM
> Subject: [ntdev] how to
>
>
> Hello :
>
> Any ideas about how to hook the data coming to SMTP i.e., port 25 or
> any other port say 80 or 21…
>
> I want to know how is it possible in user mode or will i have to mess
> up with kernel mode stuff…monitor network packets… something like
> tcpdump… I want it to be as simple as possible.
>
> regards
>
>
>
>
>
>
------------------------------------------------------------------------------
> Do You Yahoo!?
> Yahoo! Auctions Great stuff seeking new owners! Bid now! — You are
> currently subscribed to ntdev as: xxxxx@storagecraft.com To unsubscribe send
> a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@yahoo.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Then kernel-mode TDI filters or NDIS IMs are the only solution.

Max

----- Original Message -----
From: “Ntdev Reader”
To: “NT Developers Interest List”
Sent: Friday, January 25, 2002 10:47 PM
Subject: [ntdev] Re: how to

> No reliable way in user mode. Even user mode programs are not
> obligated to go through winsock. What if somebody has their own
> winsock?
>
> Hooking, even if possible, is not supported by the O/S, thus it is only
> good for fun, not for production.
>
> — “Maxim S. Shatskih” wrote:
> > You can inject your own DLL which will hook WinSock. Note that you will need
> > to hook Read/WriteFile on sockets too.
> >
> > Max
> >
> > ----- Original Message -----
> > From: BASHIR IRFAN
> > To: NT Developers Interest List
> > Sent: Thursday, January 24, 2002 1:14 PM
> > Subject: [ntdev] how to
> >
> >
> > Hello :
> >
> > Any ideas about how to hook the data coming to SMTP i.e., port 25 or
> > any other port say 80 or 21…
> >
> > I want to know how is it possible in user mode or will i have to mess
> > up with kernel mode stuff…monitor network packets… something like
> > tcpdump… I want it to be as simple as possible.
> >
> > regards
> >
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Do You Yahoo!?
> > Yahoo! Auctions Great stuff seeking new owners! Bid now! — You are
> > currently subscribed to ntdev as: xxxxx@storagecraft.com To unsubscribe send
> > a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@yahoo.com
> > To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions!
> http://auctions.yahoo.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

According to MSDN, the full version of Network Monitor 2.0 has a
“monitor” function that should be able to do this from user mode. The
idea is that NetMon (which is also a GUI app that network administrators
can use to sniff the wire) already necessarily implements the TDI
filtering and user-mode propagation plumbing, so you just write a
user-model DLL that plugs into NetMon and receives notifications every
time a particular packet (whose parameters you specify) comes in.

The PROBLEM is that the stupid Platform SDK (are you listening, MS???)
does not include a monitor sample even though MSDN insists that it does.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Friday, January 25, 2002 4:44 PM
To: NT Developers Interest List
Subject: [ntdev] Re: how to

Then kernel-mode TDI filters or NDIS IMs are the only solution.

Max

----- Original Message -----
From: “Ntdev Reader”
To: “NT Developers Interest List”
Sent: Friday, January 25, 2002 10:47 PM
Subject: [ntdev] Re: how to

> No reliable way in user mode. Even user mode programs are not
> obligated to go through winsock. What if somebody has their own
> winsock?
>
> Hooking, even if possible, is not supported by the O/S, thus it is
only
> good for fun, not for production.
>
> — “Maxim S. Shatskih” wrote:
> > You can inject your own DLL which will hook WinSock. Note that you
will need
> > to hook Read/WriteFile on sockets too.
> >
> > Max
> >
> > ----- Original Message -----
> > From: BASHIR IRFAN
> > To: NT Developers Interest List
> > Sent: Thursday, January 24, 2002 1:14 PM
> > Subject: [ntdev] how to
> >
> >
> > Hello :
> >
> > Any ideas about how to hook the data coming to SMTP i.e.,
port 25 or
> > any other port say 80 or 21…
> >
> > I want to know how is it possible in user mode or will i have
to mess
> > up with kernel mode stuff…monitor network packets… something
like
> > tcpdump… I want it to be as simple as possible.
> >
> > regards
> >
> >
> >
> >
> >
> >
>
------------------------------------------------------------------------
------
> > Do You Yahoo!?
> > Yahoo! Auctions Great stuff seeking new owners! Bid now! — You
are
> > currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send
> > a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@yahoo.com
> > To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions!
> http://auctions.yahoo.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: xxxxx@owen-t.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> can use to sniff the wire) already necessarily implements the TDI

filtering and user-mode propagation plumbing, so you just write a

Are you sure?
IIRC NetMon loads one more Packet-like protocol driver, which is notified on any packets sent and received by the machine.
NetMon’s driver cannot translate packets or filter them.

I see no idea why NetMon, being a low-level, packet-level app, has TDI filtering.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I am not sure of the method used by the NetMon driver to capture
traffic; I may have been jumping to conclusions by calling it TDI. On
the other hand, it doesn’t matter, because the original question was how
to capture traffic from user mode.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Sunday, February 03, 2002 3:22 AM
To: NT Developers Interest List
Subject: [ntdev] Re: how to

can use to sniff the wire) already necessarily implements the TDI
filtering and user-mode propagation plumbing, so you just write a

Are you sure?
IIRC NetMon loads one more Packet-like protocol driver, which is
notified on any packets sent and received by the machine.
NetMon’s driver cannot translate packets or filter them.

I see no idea why NetMon, being a low-level, packet-level app, has TDI
filtering.

Max


You are currently subscribed to ntdev as: xxxxx@owen-t.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Thnx every one…
I will try to dive in this approach…

“Owen T. Cunningham” wrote: According to MSDN, the full version of Network Monitor 2.0 has a
“monitor” function that should be able to do this from user mode. The
idea is that NetMon (which is also a GUI app that network administrators
can use to sniff the wire) already necessarily implements the TDI
filtering and user-mode propagation plumbing, so you just write a
user-model DLL that plugs into NetMon and receives notifications every
time a particular packet (whose parameters you specify) comes in.

The PROBLEM is that the stupid Platform SDK (are you listening, MS???)
does not include a monitor sample even though MSDN insists that it does.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Friday, January 25, 2002 4:44 PM
To: NT Developers Interest List
Subject: [ntdev] Re: how to

Then kernel-mode TDI filters or NDIS IMs are the only solution.

Max

----- Original Message -----
From: “Ntdev Reader”
To: “NT Developers Interest List”
Sent: Friday, January 25, 2002 10:47 PM
Subject: [ntdev] Re: how to

> No reliable way in user mode. Even user mode programs are not
> obligated to go through winsock. What if somebody has their own
> winsock?
>
> Hooking, even if possible, is not supported by the O/S, thus it is
only
> good for fun, not for production.
>
> — “Maxim S. Shatskih” wrote:
> > You can inject your own DLL which will hook WinSock. Note that you
will need
> > to hook Read/WriteFile on sockets too.
> >
> > Max
> >
> > ----- Original Message -----
> > From: BASHIR IRFAN
> > To: NT Developers Interest List
> > Sent: Thursday, January 24, 2002 1:14 PM
> > Subject: [ntdev] how to
> >
> >
> > Hello :
> >
> > Any ideas about how to hook the data coming to SMTP i.e.,
port 25 or
> > any other port say 80 or 21…
> >
> > I want to know how is it possible in user mode or will i have
to mess
> > up with kernel mode stuff…monitor network packets… something
like
> > tcpdump… I want it to be as simple as possible.
> >
> > regards
> >
> >
> >
> >
> >
> >
>
------------------------------------------------------------------------
------
> > Do You Yahoo!?
> > Yahoo! Auctions Great stuff seeking new owners! Bid now! — You
are
> > currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send
> > a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@yahoo.com
> > To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions!
> http://auctions.yahoo.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: xxxxx@owen-t.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

---------------------------------
Do You Yahoo!?
Yahoo! Auctions Great stuff seeking new owners! Bid now!


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,
I am writing a SCSI miniport driver in that I want to read a config file. How can I do that to read the file. Can I use general file calls like open, close for reading the file.
If it is not possible to use general file calls like open, close etc please tell me how I will be able to read the config file.

thanks and regards
sreenivas


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> I am writing a SCSI miniport driver in that I want to

read a config file. How can I do that to read the file. Can I
use general file calls like open, close for reading the file.
If it is not possible to use general file calls like
open, close etc please tell me how I will be able to read the
config file.

If you are willing to give up portability with windos9x/Me (no great
sacrifice there,) then you can use all of the standard nt ddk in your scsi
miniport. However in order to build this creature, you must put your ddk
calls in a separate source module that does not use the miniport include
files, but the standard ddk include files instead. You also have to be aware
that almost all of the DDK functions are prohibitied at >= DISPATCH_LEVEL,
while almost all of your miniport functions will be called at >=
DISPATCH_LEVEL. DriverEntry is however the place where you could read your
config file safely, using standard ddk calls (as outlined above, perhaps
wrapping them in a separate source module for compilation reasons.)


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

As Mark wrote, you can read files. But why do you want a file?
Why is the Registry not good for you? In Windows it is a custom
to store settings in the Registry. There are good reasons to follow
the custom. For example, the user may backup the Registry and
reasonably hope that he backed up all of the device settings, but
your settings will not be backed up. Also, with the Registry you
don’t need to worry about how you name your settings storage - your
device will be given a unique registry key to which you have
an easy access from the driver.

— konanki sreenivaskumar wrote:
>
> Hi,
> I am writing a SCSI miniport driver in that I want to read a config file.
> How can I do that to read the file. Can I use general file calls like open,
> close for reading the file.
> If it is not possible to use general file calls like open, close etc
> please tell me how I will be able to read the config file.
>
> thanks and regards
> sreenivas
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@yahoo.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

He will have the same problem, as there are no registry reading functions in
the scsiport api. I agree that the registry is a better place to store small
amounts of configuration information.

-----Original Message-----
From: Ntdev Reader [mailto:xxxxx@yahoo.com]
Sent: Monday, February 04, 2002 9:54 AM
To: NT Developers Interest List
Subject: [ntdev] Re: how to

As Mark wrote, you can read files. But why do you want a
file? Why is the Registry not good for you? In Windows it is
a custom to store settings in the Registry. There are good
reasons to follow the custom. For example, the user may
backup the Registry and reasonably hope that he backed up all
of the device settings, but your settings will not be backed
up. Also, with the Registry you don’t need to worry about how
you name your settings storage - your device will be given a
unique registry key to which you have an easy access from the driver.

— konanki sreenivaskumar wrote:
> >
> > Hi,
> > I am writing a SCSI miniport driver in that I want to read a
> > config file. How can I do that to read the file. Can I use general
> > file calls like open, close for reading the file.
> > If it is not possible to use general file calls like
> open, close
> > etc please tell me how I will be able to read the config file.
> >
> > thanks and regards
> > sreenivas
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@yahoo.com To
> > unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions!
> http://auctions.yahoo.com
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@stratus.com To unsubscribe send a blank email to
> leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You get an ASCII string passed to your FindAdapter that is directly loaded
from the registry. You only get one pointer to one REG_SZ value, but you
should be able to pretty well put what you want it. Be aware that you also
have no RtlXxxx funrions that allow you to manipulate strings.

Gary G. Little
Broadband Storage, Inc.
xxxxx@broadstor.com
xxxxx@inland.net

-----Original Message-----
From: Roddy, Mark [mailto:xxxxx@stratus.com]
Sent: Monday, February 04, 2002 7:01 AM
To: NT Developers Interest List
Subject: [ntdev] Re: how to

He will have the same problem, as there are no registry reading functions in
the scsiport api. I agree that the registry is a better place to store small
amounts of configuration information.

-----Original Message-----
From: Ntdev Reader [mailto:xxxxx@yahoo.com]
Sent: Monday, February 04, 2002 9:54 AM
To: NT Developers Interest List
Subject: [ntdev] Re: how to

As Mark wrote, you can read files. But why do you want a
file? Why is the Registry not good for you? In Windows it is
a custom to store settings in the Registry. There are good
reasons to follow the custom. For example, the user may
backup the Registry and reasonably hope that he backed up all
of the device settings, but your settings will not be backed
up. Also, with the Registry you don’t need to worry about how
you name your settings storage - your device will be given a
unique registry key to which you have an easy access from the driver.

— konanki sreenivaskumar wrote:
> >
> > Hi,
> > I am writing a SCSI miniport driver in that I want to read a
> > config file. How can I do that to read the file. Can I use general
> > file calls like open, close for reading the file.
> > If it is not possible to use general file calls like
> open, close
> > etc please tell me how I will be able to read the config file.
> >
> > thanks and regards
> > sreenivas
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@yahoo.com To
> > unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions!
> http://auctions.yahoo.com
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@stratus.com To unsubscribe send a blank email to
> leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

In a previous life, I pretty much explored the outer limits of what can and
can’t be done to access config data from a SCSI miniport driver. Gary is
right in that you do get a pointer to a string in FindAdapter. But that is
not especially helpful. Mark is right, in that SCSIPORT doesn’t have it’s
own registry key, but *your* driver does, and your driver entry gets a
PUNICODE_STRING containing the name of that key, for NT4 and Win2K, anyway.
You get a null for that parameter in Win9X, but the registry key is there.
All the registry access functions work just fine, though you have to break
the pure SCSI miniport model by including NTDDK.h in a separate module from
the module that includes miniport.h. This does work for Win9X, you just
have to know the path to your key internally, instead of it getting handed
to you by the OS.

If you are not the boot disk driver, you *may* be able to read and write
from files in your DriverEntry or FindAdapter routines, if they are called
after the boot driver has initialized enough to support IOs from the IO
manager. If you are the boot disk driver, you can’t do file IO, as the IO
manager will check your init status before calling your StartIo routines,
discover you haven’t returned from your init, and will fail the CreateFile
call. On Win9X, even if you are the boot driver, you can use the extended
INT21h interface to do any file access you want. But who would do that?

Phil

Gary Little @lists.osr.com on 02/04/2002 12:01:38 PM

Please respond to “NT Developers Interest List”

Sent by: xxxxx@lists.osr.com

To: “NT Developers Interest List”
cc:

Subject: [ntdev] Re: how to

You get an ASCII string passed to your FindAdapter that is directly loaded
from the registry. You only get one pointer to one REG_SZ value, but you
should be able to pretty well put what you want it. Be aware that you also
have no RtlXxxx funrions that allow you to manipulate strings.

Gary G. Little
Broadband Storage, Inc.
xxxxx@broadstor.com
xxxxx@inland.net

-----Original Message-----
From: Roddy, Mark [mailto:xxxxx@stratus.com]
Sent: Monday, February 04, 2002 7:01 AM
To: NT Developers Interest List
Subject: [ntdev] Re: how to

He will have the same problem, as there are no registry reading functions
in
the scsiport api. I agree that the registry is a better place to store
small
amounts of configuration information.

> -----Original Message-----
> From: Ntdev Reader [mailto:xxxxx@yahoo.com]
> Sent: Monday, February 04, 2002 9:54 AM
> To: NT Developers Interest List
> Subject: [ntdev] Re: how to
>
>
> As Mark wrote, you can read files. But why do you want a
> file? Why is the Registry not good for you? In Windows it is
> a custom to store settings in the Registry. There are good
> reasons to follow the custom. For example, the user may
> backup the Registry and reasonably hope that he backed up all
> of the device settings, but your settings will not be backed
> up. Also, with the Registry you don’t need to worry about how
> you name your settings storage - your device will be given a
> unique registry key to which you have an easy access from the driver.
>
> — konanki sreenivaskumar wrote:
> >
> > Hi,
> > I am writing a SCSI miniport driver in that I want to read a
> > config file. How can I do that to read the file. Can I use general
> > file calls like open, close for reading the file.
> > If it is not possible to use general file calls like
> open, close
> > etc please tell me how I will be able to read the config file.
> >
> > thanks and regards
> > sreenivas
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@yahoo.com To
> > unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions!
> http://auctions.yahoo.com
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@stratus.com To unsubscribe send a blank email to
> leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@seagate.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com