http://groups.google.com/group/microsoft.public.development.device.drivers?hl=en
microsoft.public.development.device.drivers@googlegroups.com
Today's topics:
* WDK MSDN subscription - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/28747174faab37f3?hl=en
* assessing winusb potential - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/390c725fdd45c5e4?hl=en
* error LNK2019 with fopen - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/15ee6f4b7dc1ecad?hl=en
* finding out application dependencies; - 3 messages, 2 authors
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/1446178557b910b5?hl=en
* option of not including precompiled headers in sources file - 2 messages, 2
authors
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/a70fa9156daca7b4?hl=en
* 2008 x64 signing - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/a5de999e2d4317f2?hl=en
* Single CAT file for multiple INFs - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/b508f33d6eda311f?hl=en
* PCI express card not been recognized on Windows ( XP, server 2003) - 2
messages, 2 authors
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/af0946c27f0ba12f?hl=en
* Differences between DDK build 3790.1830 and WDK build 6001.180 - 1 messages,
1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/371d42b26320aedc?hl=en
* Examine the ALE User ID at the WFP ALE Auth Connect Layer - 1 messages, 1
author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/58d22c8bdc9508db?hl=en
* May I use UDF 2.5 driver of Vista or Server 2008 on Server 2003 SP2 ? - 1
messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/fef203b4d917d4c6?hl=en
* How to install UpperFilter driver of mouhid.sys - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/a6973b24195b24cd?hl=en
* Driver Auto-Install on USB Mass Storage - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/51ddda5fecbac9d9?hl=en
* try catch structured exception handling (SEH) .. - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/e1b259af7908292b?hl=en
* Some Question about Vista APO - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/e956d27416429dfd?hl=en
* Stopping a high priority thread - 2 messages, 2 authors
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/f21c3d6375cfdfa8?hl=en
* Language monitor can not read data from some port monitors... - 1 messages,
1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/5078cf6dad9b373a?hl=en
* Video mirror driver in applications like VNC - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/eb55498bea660762?hl=en
* Problem with WinDbg - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/fce04a492f72834d?hl=en
* Device Simulation Framework - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/9e5234034018ce26?hl=en
==============================================================================
TOPIC: WDK MSDN subscription
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/28747174faab37f3?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 11:16 am
From: chris.aseltine@gmail.com
On May 16, 10:03 am, Bjoern <Bjo...@discussions.microsoft.com> wrote:
> Even the search didn't find something when I searched for WDK
I searched for WDK today on Connect and it found it. Just my two
cents.
==============================================================================
TOPIC: assessing winusb potential
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/390c725fdd45c5e4?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 11:24 am
From: "Maxim S. Shatskih"
I cannot understand why Clear Buffer is needed and what is it. I do not
remember such command in the spec, so, it is probably some proprietary command
of yours.
Once more: on bulk writes from host to device, device sees arriving
packets. After each packet, it must respond with ACK/NAK/STALL.
STALL is fatal error on pipe.
ACK means - OK, device have consumed the packet OK, the host will send the
next bytes of the pipe data as the next packet.
NAK means - sorry, device is not ready to accept more data on this pipe,
but will be ready soon when some internal conditions on the device (buffer
fullness) will change. After the device have responded with NAK, the host will
_retransmit the same packet again and again_ till STALL or ACK will be returned
by the device.
Also note that USB bulk transfers have the notion of logical frame
boundaries (unlike TCP which has none). The logical frame boundaries
established by the host can be sensed by the device, and can carry some
semantics the device can use.
The host establish a logical frame end on the end of each IRP's buffer.
The device senses this frame end when it either gets the zero-length
packet, or the packet of the incomplete length.
All of this is in host+device hardware and in device firmware, and is
hidden from the host software at all.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"pswork" <pswork@discussions.microsoft.com> wrote in message
news:E3052006-2548-43E1-B1B7-36CF6CB1BA3C@microsoft.com...
> Thanks. So now I am getting packets from the host but eventually (anywhere
> between 10-100 packets) my device hangs up. I traced the problem with the USB
> example code provided with the devlopment environment (Keil). I'm waiting to
> hear back from them but perhaps you have some insight. At some point when I
> read the USB buffer, the end of that operation involves sending a Clear
> Buffer command to the USB hardware in order to receive the next packet. The
> code for the Clear Buffer command send the command then immediately waits for
> the Command Buffer register flag to be set. Sometime this flag never gets
> set, thus hanging the system.
>
> I have tried to make my application as simple as possible to debug. I am not
> processing any of the data, bascially just sitting in the loop reading any
> data that comes across, but I still see the problem.
>
> Any ideas?
>
> "Maxim S. Shatskih" wrote:
>
> > > Still confused about flow control on bulk transfers. Is it performed in
> > > software, hardware
> >
> > Hardware.
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@storagecraft.com
> > http://www.storagecraft.com
> >
> >
==============================================================================
TOPIC: error LNK2019 with fopen
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/15ee6f4b7dc1ecad?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 12:37 pm
From: "Pavel A."
"ZachrielCL" <ZachrielCL@discussions.microsoft.com> wrote in message
news:827BCAA4-28A7-4C7A-A56E-83E246C7C3CC@microsoft.com...
> I get the following error when I try to build a driver for WinXP with
> "build
> /cZ".
>
> error LNK2019: unresolved external symbol __imp__fopen referenced in
> function _WcettInit@4
>
> I'm not sure what I am doing wrong.
Got wrong sources? Perhaps this stuff is for WinCE.
--PA
>I have USE_MSVCRT=1 on my sources file,
> and I'm including stdio.h, but I don't know if I need to include something
> else.
>
> I also tried with fopen_s and I get the same error. Any help on this topic
> would be greatly appreciated!
==============================================================================
TOPIC: finding out application dependencies;
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/1446178557b910b5?hl=en
==============================================================================
== 1 of 3 ==
Date: Tues, May 20 2008 1:31 pm
From: krish
Jeff, Thanks for the clarification. Will the callback be hit even if
the dll is already loaded? e.g, kernel32 is used by so many
applications so it may already be loaded when I open notepad.exe.
On May 19, 2:03 pm, "Jeff Henkels" <j...@mapson.jeffhenkels.com>
wrote:
> You shouldn't need to use the PE header at all if you use the Ps* functions.
> The PsSetLoadImageNotifyRoutine callback will be invoked for each EXE/DLL
> loaded by a process at the time the module is loaded.
>
> For example, when you load notepad, the callback will be hit for
> notepad.exe, then for each of the modules (kernel32, user32, etc.)
> implicitly linked (i.e. those mentioned in the PE header).
>
> For delay-loaded modules or those loaded by LoadLibrary, the callback will
> be hit when the load actually occurs (if it occurs at all).
>
> By not reading the PE header, you should save a bit of time and
> complication, and you'll avoid breakage when MS changes the internals of the
> PE header in some future patch.
>
> "krish" <pradeep_bi...@yahoo.com> wrote in message
>
> news:1cf5c70d-6fb1-424b-81ea-6b1379a4e41c@q27g2000prf.googlegroups.com...
>
> > So if I understand you correctly: I should use Ps* functions to get a
> > callback to get a notification when an image/process is loaded/created
> > then should I use PE header to get the dependency dlls. Right?
>
> > On May 19, 4:52 am, "Jeff Henkels" <j...@mapson.jeffhenkels.com>
> > wrote:
> >> It should work for all EXEs/DLLs. I haven't used the
> >> PsSetLoadImageNotifyRoutine callbacks, but they should do what you
> >> want -- I
> >> used the PsSetCreateProcessNotifyRoutine callbacks in an identity
> >> management
> >> system a couple of years ago with no problems.
>
> >> "krish" <pradeep_bi...@yahoo.com> wrote in message
>
> >>news:a0811f5f-a7ec-42c0-8547-28f893d316d1@j33g2000pri.googlegroups.com...
>
> >> > Hi Jefff, THanks for the suggestion. I think it will work really well.
> >> > I looked at the msdn doc but couldn't find it if these functions will
> >> > notify only when an image like exe (the main program of the
> >> > application) is loaded or will they notify whenever any image exe
> >> > including dlls etc are loaded. I mean will this work for all binary
> >> > images? Thanks again.
>
> >> > On May 16, 5:02 am, "Jeff Henkels" <j...@mapson.jeffhenkels.com>
> >> > wrote:
> >> >> An approach that should work is to use a kernel-mode driver to install
> >> >> PsSetLoadImageNotifyRoutine and PsSetCreateProcessNotifyRoutine
> >> >> callbacks;
> >> >> these callbacks will be invoked when an image is loaded/unloaded or a
> >> >> process is created/terminated. The kernel-mode driver can then build
> >> >> up
> >> >> its
> >> >> own process/image tables itself, or pass the data back to a user-mode
> >> >> app
> >> >> using the inverted call method, and let the user-mode app do all the
> >> >> real
> >> >> work.
>
> >> >> This approach avoids API hooking, which may be problematic on some
> >> >> platforms.
>
> >> >> "krish" <pradeep_bi...@yahoo.com> wrote in message
>
> >> >>news:b42686b8-6bb7-4b07-baa7-32f15aa6e936@i36g2000prf.googlegroups.com...
>
> >> >> > Ok now I know what you were talking about - API hooking. But that's
> >> >> > a
> >> >> > hack. I want proper windows API to do this? I'm writing a production
> >> >> > code not a hacking utility :-). Do you have any more suggestions.
> >> >> > Thanks. The only solution I know of is getting the import table from
> >> >> > the PE header but this does not give me the lsit of dlls which are
> >> >> > loaded using LoadLibrary () by the application. How can I do that?
>
> >> >> > On May 16, 12:36 am, krish <pradeep_bi...@yahoo.com> wrote:
> >> >> >> Hi Anand, I did not find anything and that's why I posted here :(
>
> >> >> >> as per your suggestion I searched on codeproject also but no luck.
> >> >> >> The
> >> >> >> way you said "you can get each and everything" I 'm assuming you
> >> >> >> already have experience on this question. Can you please point me
> >> >> >> to
> >> >> >> some code sample. Thanks a lot.
>
> >> >> >> On May 15, 11:00 pm, Anand Choubey <anand.chou...@gmail.com> wrote:
>
> >> >> >> > you can do it easily by API hooking.
>
> >> >> >> > Check code project, google or MS press books for SDK, you can
> >> >> >> > get
> >> >> >> > each and every thing.
>
> >> >> >> > Regards,
> >> >> >> > Anand Choubey
> >> >> >> > On May 16, 6:11 am, krish <pradeep_bi...@yahoo.com> wrote:
>
> >> >> >> > > But how will do this programmatically? I need to do this in my
> >> >> >> > > program at run time.
>
> >> >> >> > > On May 15, 5:54 pm, "Pavel A." <pave...@NOwritemeNO.com> wrote:
>
> >> >> >> > > > Just use the Dependency Walker that you've mentioned in your
> >> >> >> > > > first
> >> >> >> > > > post.
> >> >> >> > > > It can trace execution of a program, including its
> >> >> >> > > > LoadLibrary
> >> >> >> > > > calls.
>
> >> >> >> > > > --PA
>
> >> >> >> > > > "krish" <pradeep_bi...@yahoo.com> wrote in message
>
> >> >> >> > > >news:95226fb8-378a-4647-a985-c9f94098aa05@p39g2000prm.googlegroups.com...
>
> >> >> >> > > > > THanks David dfor a detailed explanation. One more question
> >> >> >> > > > > on
> >> >> >> > > > > this.
> >> >> >> > > > > Can I determine at run time which dlls were loaded using
> >> >> >> > > > > LoadLibrary.
> >> >> >> > > > > I mean when the LoadLibrary call is actually executed?
> >> >> >> > > > > Thanks
> >> >> >> > > > > again.
>
> >> >> >> > > > > On May 15, 2:46 pm, "David Craig" <driv...@nowhere.us>
> >> >> >> > > > > wrote:
> >> >> >> > > > >> Process Explorer from sysinternals does this fairly well
> >> >> >> > > > >> for
> >> >> >> > > > >> programs
> >> >> >> > > > >> that
> >> >> >> > > > >> are running.
>
> >> >> >> > > > >> There is a document on the Windows PE format that shows
> >> >> >> > > > >> how
> >> >> >> > > > >> to
> >> >> >> > > > >> read an
> >> >> >> > > > >> executable's binary and look at its imports and exports.
> >> >> >> > > > >> To
> >> >> >> > > > >> do
> >> >> >> > > > >> this
> >> >> >> > > > >> properly you will need to look at the main program and
> >> >> >> > > > >> determine
> >> >> >> > > > >> what it
> >> >> >> > > > >> imports. Then, you read each of those binaries to see
> >> >> >> > > > >> what
> >> >> >> > > > >> they
> >> >> >> > > > >> import.
> >> >> >> > > > >> Total Commander has a plugin, Lister, that can do this,
> >> >> >> > > > >> but
> >> >> >> > > > >> it
> >> >> >> > > > >> takes a
> >> >> >> > > > >> long
> >> >> >> > > > >> time to do it. This technique will not find delay load
> >> >> >> > > > >> imports
> >> >> >> > > > >> unless
> >> >> >> > > > >> there
> >> >> >> > > > >> is a table for them, but I don't know. Any library loaded
> >> >> >> > > > >> via
> >> >> >> > > > >> LoadLibrary
> >> >> >> > > > >> will also not appear in this dependency list since only
> >> >> >> > > > >> the
> >> >> >> > > > >> executable
> >> >> >> > > > >> code
> >> >> >> > > > >> knows when it is going to call that function. You could
> >> >> >> > > > >> determine from
> >> >> >> > > > >> the
> >> >> >> > > > >> imports that an executable does use LoadLibrary but not
> >> >> >> > > > >> what
> >> >> >> > > > >> it
> >> >> >> > > > >> is
> >> >> >> > > > >> loading.
>
> >> >> >> > > > >> "krish" <pradeep_bi...@yahoo.com> wrote in message
>
> >> >> >> > > >>news:c56bdeb4-64ae-4463-8666-80c778404e52@v26g2000prm.googlegroups.com...
>
> >> >> >> > > > >> > How can I find out the dependencies of an application
> >> >> >> > > > >> > inside
> >> >> >> > > > >> > my
> >> >> >> > > > >> > program/driver? Say e.g If I want to find out the
> >> >> >> > > > >> > dependencies
> >> >> >> > > > >> > of
> >> >> >> > > > >> > iexplorer.exe inside my program? What are the APIs? I
> >> >> >> > > > >> > knwo
> >> >> >> > > > >> > there is a
> >> >> >> > > > >> > program something called dependency walker so I assume
> >> >> >> > > > >> > there
> >> >> >> > > > >> > must be
> >> >> >> > > > >> > some way of doing this.
>
> >> >> >> > > > >> > I wan to provide a GUI which lists all the programs
> >> >> >> > > > >> > installed
> >> >> >> > > > >> > on the
> >> >> >> > > > >> > computer and when user cselects one of them I lists all
> >> >> >> > > > >> > the
> >> >> >> > > > >> > files
> >> >> >> > > > >> > (.dlls etc) on which it is dependent.
>
> >> >> >> > > > >> > Thanks.- Hide quoted text -
>
> >> >> >> > > - Show quoted text -
== 2 of 3 ==
Date: Tues, May 20 2008 1:42 pm
From: "Don Burn"
Yes it is called for each process that maps it.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"krish" <pradeep_bisht@yahoo.com> wrote in message
news:c3d0dbe9-9a14-40f6-a9ef-ff69d84899d2@k10g2000prm.googlegroups.com...
> Jeff, Thanks for the clarification. Will the callback be hit even if
> the dll is already loaded? e.g, kernel32 is used by so many
> applications so it may already be loaded when I open notepad.exe.
>
> On May 19, 2:03 pm, "Jeff Henkels" <j...@mapson.jeffhenkels.com>
> wrote:
>> You shouldn't need to use the PE header at all if you use the Ps*
>> functions.
>> The PsSetLoadImageNotifyRoutine callback will be invoked for each EXE/DLL
>> loaded by a process at the time the module is loaded.
>>
>> For example, when you load notepad, the callback will be hit for
>> notepad.exe, then for each of the modules (kernel32, user32, etc.)
>> implicitly linked (i.e. those mentioned in the PE header).
>>
>> For delay-loaded modules or those loaded by LoadLibrary, the callback
>> will
>> be hit when the load actually occurs (if it occurs at all).
>>
>> By not reading the PE header, you should save a bit of time and
>> complication, and you'll avoid breakage when MS changes the internals of
>> the
>> PE header in some future patch.
>>
>> "krish" <pradeep_bi...@yahoo.com> wrote in message
>>
>> news:1cf5c70d-6fb1-424b-81ea-6b1379a4e41c@q27g2000prf.googlegroups.com...
>>
>> > So if I understand you correctly: I should use Ps* functions to get a
>> > callback to get a notification when an image/process is loaded/created
>> > then should I use PE header to get the dependency dlls. Right?
>>
>> > On May 19, 4:52 am, "Jeff Henkels" <j...@mapson.jeffhenkels.com>
>> > wrote:
>> >> It should work for all EXEs/DLLs. I haven't used the
>> >> PsSetLoadImageNotifyRoutine callbacks, but they should do what you
>> >> want -- I
>> >> used the PsSetCreateProcessNotifyRoutine callbacks in an identity
>> >> management
>> >> system a couple of years ago with no problems.
>>
>> >> "krish" <pradeep_bi...@yahoo.com> wrote in message
>>
>> >>news:a0811f5f-a7ec-42c0-8547-28f893d316d1@j33g2000pri.googlegroups.com...
>>
>> >> > Hi Jefff, THanks for the suggestion. I think it will work really
>> >> > well.
>> >> > I looked at the msdn doc but couldn't find it if these functions
>> >> > will
>> >> > notify only when an image like exe (the main program of the
>> >> > application) is loaded or will they notify whenever any image exe
>> >> > including dlls etc are loaded. I mean will this work for all binary
>> >> > images? Thanks again.
>>
>> >> > On May 16, 5:02 am, "Jeff Henkels" <j...@mapson.jeffhenkels.com>
>> >> > wrote:
>> >> >> An approach that should work is to use a kernel-mode driver to
>> >> >> install
>> >> >> PsSetLoadImageNotifyRoutine and PsSetCreateProcessNotifyRoutine
>> >> >> callbacks;
>> >> >> these callbacks will be invoked when an image is loaded/unloaded or
>> >> >> a
>> >> >> process is created/terminated. The kernel-mode driver can then
>> >> >> build
>> >> >> up
>> >> >> its
>> >> >> own process/image tables itself, or pass the data back to a
>> >> >> user-mode
>> >> >> app
>> >> >> using the inverted call method, and let the user-mode app do all
>> >> >> the
>> >> >> real
>> >> >> work.
>>
>> >> >> This approach avoids API hooking, which may be problematic on some
>> >> >> platforms.
>>
>> >> >> "krish" <pradeep_bi...@yahoo.com> wrote in message
>>
>> >> >>news:b42686b8-6bb7-4b07-baa7-32f15aa6e936@i36g2000prf.googlegroups.com...
>>
>> >> >> > Ok now I know what you were talking about - API hooking. But
>> >> >> > that's
>> >> >> > a
>> >> >> > hack. I want proper windows API to do this? I'm writing a
>> >> >> > production
>> >> >> > code not a hacking utility :-). Do you have any more suggestions.
>> >> >> > Thanks. The only solution I know of is getting the import table
>> >> >> > from
>> >> >> > the PE header but this does not give me the lsit of dlls which
>> >> >> > are
>> >> >> > loaded using LoadLibrary () by the application. How can I do
>> >> >> > that?
>>
>> >> >> > On May 16, 12:36 am, krish <pradeep_bi...@yahoo.com> wrote:
>> >> >> >> Hi Anand, I did not find anything and that's why I posted here
>> >> >> >> :(
>>
>> >> >> >> as per your suggestion I searched on codeproject also but no
>> >> >> >> luck.
>> >> >> >> The
>> >> >> >> way you said "you can get each and everything" I 'm assuming you
>> >> >> >> already have experience on this question. Can you please point
>> >> >> >> me
>> >> >> >> to
>> >> >> >> some code sample. Thanks a lot.
>>
>> >> >> >> On May 15, 11:00 pm, Anand Choubey <anand.chou...@gmail.com>
>> >> >> >> wrote:
>>
>> >> >> >> > you can do it easily by API hooking.
>>
>> >> >> >> > Check code project, google or MS press books for SDK, you can
>> >> >> >> > get
>> >> >> >> > each and every thing.
>>
>> >> >> >> > Regards,
>> >> >> >> > Anand Choubey
>> >> >> >> > On May 16, 6:11 am, krish <pradeep_bi...@yahoo.com> wrote:
>>
>> >> >> >> > > But how will do this programmatically? I need to do this in
>> >> >> >> > > my
>> >> >> >> > > program at run time.
>>
>> >> >> >> > > On May 15, 5:54 pm, "Pavel A." <pave...@NOwritemeNO.com>
>> >> >> >> > > wrote:
>>
>> >> >> >> > > > Just use the Dependency Walker that you've mentioned in
>> >> >> >> > > > your
>> >> >> >> > > > first
>> >> >> >> > > > post.
>> >> >> >> > > > It can trace execution of a program, including its
>> >> >> >> > > > LoadLibrary
>> >> >> >> > > > calls.
>>
>> >> >> >> > > > --PA
>>
>> >> >> >> > > > "krish" <pradeep_bi...@yahoo.com> wrote in message
>>
>> >> >> >> > > >news:95226fb8-378a-4647-a985-c9f94098aa05@p39g2000prm.googlegroups.com...
>>
>> >> >> >> > > > > THanks David dfor a detailed explanation. One more
>> >> >> >> > > > > question
>> >> >> >> > > > > on
>> >> >> >> > > > > this.
>> >> >> >> > > > > Can I determine at run time which dlls were loaded using
>> >> >> >> > > > > LoadLibrary.
>> >> >> >> > > > > I mean when the LoadLibrary call is actually executed?
>> >> >> >> > > > > Thanks
>> >> >> >> > > > > again.
>>
>> >> >> >> > > > > On May 15, 2:46 pm, "David Craig" <driv...@nowhere.us>
>> >> >> >> > > > > wrote:
>> >> >> >> > > > >> Process Explorer from sysinternals does this fairly
>> >> >> >> > > > >> well
>> >> >> >> > > > >> for
>> >> >> >> > > > >> programs
>> >> >> >> > > > >> that
>> >> >> >> > > > >> are running.
>>
>> >> >> >> > > > >> There is a document on the Windows PE format that shows
>> >> >> >> > > > >> how
>> >> >> >> > > > >> to
>> >> >> >> > > > >> read an
>> >> >> >> > > > >> executable's binary and look at its imports and
>> >> >> >> > > > >> exports.
>> >> >> >> > > > >> To
>> >> >> >> > > > >> do
>> >> >> >> > > > >> this
>> >> >> >> > > > >> properly you will need to look at the main program and
>> >> >> >> > > > >> determine
>> >> >> >> > > > >> what it
>> >> >> >> > > > >> imports. Then, you read each of those binaries to see
>> >> >> >> > > > >> what
>> >> >> >> > > > >> they
>> >> >> >> > > > >> import.
>> >> >> >> > > > >> Total Commander has a plugin, Lister, that can do this,
>> >> >> >> > > > >> but
>> >> >> >> > > > >> it
>> >> >> >> > > > >> takes a
>> >> >> >> > > > >> long
>> >> >> >> > > > >> time to do it. This technique will not find delay load
>> >> >> >> > > > >> imports
>> >> >> >> > > > >> unless
>> >> >> >> > > > >> there
>> >> >> >> > > > >> is a table for them, but I don't know. Any library
>> >> >> >> > > > >> loaded
>> >> >> >> > > > >> via
>> >> >> >> > > > >> LoadLibrary
>> >> >> >> > > > >> will also not appear in this dependency list since only
>> >> >> >> > > > >> the
>> >> >> >> > > > >> executable
>> >> >> >> > > > >> code
>> >> >> >> > > > >> knows when it is going to call that function. You
>> >> >> >> > > > >> could
>> >> >> >> > > > >> determine from
>> >> >> >> > > > >> the
>> >> >> >> > > > >> imports that an executable does use LoadLibrary but not
>> >> >> >> > > > >> what
>> >> >> >> > > > >> it
>> >> >> >> > > > >> is
>> >> >> >> > > > >> loading.
>>
>> >> >> >> > > > >> "krish" <pradeep_bi...@yahoo.com> wrote in message
>>
>> >> >> >> > > >>news:c56bdeb4-64ae-4463-8666-80c778404e52@v26g2000prm.googlegroups.com...
>>
>> >> >> >> > > > >> > How can I find out the dependencies of an application
>> >> >> >> > > > >> > inside
>> >> >> >> > > > >> > my
>> >> >> >> > > > >> > program/driver? Say e.g If I want to find out the
>> >> >> >> > > > >> > dependencies
>> >> >> >> > > > >> > of
>> >> >> >> > > > >> > iexplorer.exe inside my program? What are the APIs? I
>> >> >> >> > > > >> > knwo
>> >> >> >> > > > >> > there is a
>> >> >> >> > > > >> > program something called dependency walker so I
>> >> >> >> > > > >> > assume
>> >> >> >> > > > >> > there
>> >> >> >> > > > >> > must be
>> >> >> >> > > > >> > some way of doing this.
>>
>> >> >> >> > > > >> > I wan to provide a GUI which lists all the programs
>> >> >> >> > > > >> > installed
>> >> >> >> > > > >> > on the
>> >> >> >> > > > >> > computer and when user cselects one of them I lists
>> >> >> >> > > > >> > all
>> >> >> >> > > > >> > the
>> >> >> >> > > > >> > files
>> >> >> >> > > > >> > (.dlls etc) on which it is dependent.
>>
>> >> >> >> > > > >> > Thanks.- Hide quoted text -
>>
>> >> >> >> > > - Show quoted text -
>
== 3 of 3 ==
Date: Tues, May 20 2008 1:59 pm
From: krish
Thanks Don.
On May 20, 1:42 pm, "Don Burn" <b...@stopspam.windrvr.com> wrote:
> Yes it is called for each process that maps it.
>
> --
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Website:http://www.windrvr.com
> Blog:http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
> "krish" <pradeep_bi...@yahoo.com> wrote in message
>
> news:c3d0dbe9-9a14-40f6-a9ef-ff69d84899d2@k10g2000prm.googlegroups.com...
>
> > Jeff, Thanks for the clarification. Will the callback be hit even if
> > the dll is already loaded? e.g, kernel32 is used by so many
> > applications so it may already be loaded when I open notepad.exe.
>
> > On May 19, 2:03 pm, "Jeff Henkels" <j...@mapson.jeffhenkels.com>
> > wrote:
> >> You shouldn't need to use the PE header at all if you use the Ps*
> >> functions.
> >> The PsSetLoadImageNotifyRoutine callback will be invoked for each EXE/DLL
> >> loaded by a process at the time the module is loaded.
>
> >> For example, when you load notepad, the callback will be hit for
> >> notepad.exe, then for each of the modules (kernel32, user32, etc.)
> >> implicitly linked (i.e. those mentioned in the PE header).
>
> >> For delay-loaded modules or those loaded by LoadLibrary, the callback
> >> will
> >> be hit when the load actually occurs (if it occurs at all).
>
> >> By not reading the PE header, you should save a bit of time and
> >> complication, and you'll avoid breakage when MS changes the internals of
> >> the
> >> PE header in some future patch.
>
> >> "krish" <pradeep_bi...@yahoo.com> wrote in message
>
> >>news:1cf5c70d-6fb1-424b-81ea-6b1379a4e41c@q27g2000prf.googlegroups.com...
>
> >> > So if I understand you correctly: I should use Ps* functions to get a
> >> > callback to get a notification when an image/process is loaded/created
> >> > then should I use PE header to get the dependency dlls. Right?
>
> >> > On May 19, 4:52 am, "Jeff Henkels" <j...@mapson.jeffhenkels.com>
> >> > wrote:
> >> >> It should work for all EXEs/DLLs. I haven't used the
> >> >> PsSetLoadImageNotifyRoutine callbacks, but they should do what you
> >> >> want -- I
> >> >> used the PsSetCreateProcessNotifyRoutine callbacks in an identity
> >> >> management
> >> >> system a couple of years ago with no problems.
>
> >> >> "krish" <pradeep_bi...@yahoo.com> wrote in message
>
> >> >>news:a0811f5f-a7ec-42c0-8547-28f893d316d1@j33g2000pri.googlegroups.com...
>
> >> >> > Hi Jefff, THanks for the suggestion. I think it will work really
> >> >> > well.
> >> >> > I looked at the msdn doc but couldn't find it if these functions
> >> >> > will
> >> >> > notify only when an image like exe (the main program of the
> >> >> > application) is loaded or will they notify whenever any image exe
> >> >> > including dlls etc are loaded. I mean will this work for all binary
> >> >> > images? Thanks again.
>
> >> >> > On May 16, 5:02 am, "Jeff Henkels" <j...@mapson.jeffhenkels.com>
> >> >> > wrote:
> >> >> >> An approach that should work is to use a kernel-mode driver to
> >> >> >> install
> >> >> >> PsSetLoadImageNotifyRoutine and PsSetCreateProcessNotifyRoutine
> >> >> >> callbacks;
> >> >> >> these callbacks will be invoked when an image is loaded/unloaded or
> >> >> >> a
> >> >> >> process is created/terminated. The kernel-mode driver can then
> >> >> >> build
> >> >> >> up
> >> >> >> its
> >> >> >> own process/image tables itself, or pass the data back to a
> >> >> >> user-mode
> >> >> >> app
> >> >> >> using the inverted call method, and let the user-mode app do all
> >> >> >> the
> >> >> >> real
> >> >> >> work.
>
> >> >> >> This approach avoids API hooking, which may be problematic on some
> >> >> >> platforms.
>
> >> >> >> "krish" <pradeep_bi...@yahoo.com> wrote in message
>
> >> >> >>news:b42686b8-6bb7-4b07-baa7-32f15aa6e936@i36g2000prf.googlegroups.com...
>
> >> >> >> > Ok now I know what you were talking about - API hooking. But
> >> >> >> > that's
> >> >> >> > a
> >> >> >> > hack. I want proper windows API to do this? I'm writing a
> >> >> >> > production
> >> >> >> > code not a hacking utility :-). Do you have any more suggestions.
> >> >> >> > Thanks. The only solution I know of is getting the import table
> >> >> >> > from
> >> >> >> > the PE header but this does not give me the lsit of dlls which
> >> >> >> > are
> >> >> >> > loaded using LoadLibrary () by the application. How can I do
> >> >> >> > that?
>
> >> >> >> > On May 16, 12:36 am, krish <pradeep_bi...@yahoo.com> wrote:
> >> >> >> >> Hi Anand, I did not find anything and that's why I posted here
> >> >> >> >> :(
>
> >> >> >> >> as per your suggestion I searched on codeproject also but no
> >> >> >> >> luck.
> >> >> >> >> The
> >> >> >> >> way you said "you can get each and everything" I 'm assuming you
> >> >> >> >> already have experience on this question. Can you please point
> >> >> >> >> me
> >> >> >> >> to
> >> >> >> >> some code sample. Thanks a lot.
>
> >> >> >> >> On May 15, 11:00 pm, Anand Choubey <anand.chou...@gmail.com>
> >> >> >> >> wrote:
>
> >> >> >> >> > you can do it easily by API hooking.
>
> >> >> >> >> > Check code project, google or MS press books for SDK, you can
> >> >> >> >> > get
> >> >> >> >> > each and every thing.
>
> >> >> >> >> > Regards,
> >> >> >> >> > Anand Choubey
> >> >> >> >> > On May 16, 6:11 am, krish <pradeep_bi...@yahoo.com> wrote:
>
> >> >> >> >> > > But how will do this programmatically? I need to do this in
> >> >> >> >> > > my
> >> >> >> >> > > program at run time.
>
> >> >> >> >> > > On May 15, 5:54 pm, "Pavel A." <pave...@NOwritemeNO.com>
> >> >> >> >> > > wrote:
>
> >> >> >> >> > > > Just use the Dependency Walker that you've mentioned in
> >> >> >> >> > > > your
> >> >> >> >> > > > first
> >> >> >> >> > > > post.
> >> >> >> >> > > > It can trace execution of a program, including its
> >> >> >> >> > > > LoadLibrary
> >> >> >> >> > > > calls.
>
> >> >> >> >> > > > --PA
>
> >> >> >> >> > > > "krish" <pradeep_bi...@yahoo.com> wrote in message
>
> >> >> >> >> > > >news:95226fb8-378a-4647-a985-c9f94098aa05@p39g2000prm.googlegroups.com...
>
> >> >> >> >> > > > > THanks David dfor a detailed explanation. One more
> >> >> >> >> > > > > question
> >> >> >> >> > > > > on
> >> >> >> >> > > > > this.
> >> >> >> >> > > > > Can I determine at run time which dlls were loaded using
> >> >> >> >> > > > > LoadLibrary.
> >> >> >> >> > > > > I mean when the LoadLibrary call is actually executed?
> >> >> >> >> > > > > Thanks
> >> >> >> >> > > > > again.
>
> >> >> >> >> > > > > On May 15, 2:46 pm, "David Craig" <driv...@nowhere.us>
> >> >> >> >> > > > > wrote:
> >> >> >> >> > > > >> Process Explorer from sysinternals does this fairly
> >> >> >> >> > > > >> well
> >> >> >> >> > > > >> for
> >> >> >> >> > > > >> programs
> >> >> >> >> > > > >> that
> >> >> >> >> > > > >> are running.
>
> >> >> >> >> > > > >> There is a document on the Windows PE format that shows
> >> >> >> >> > > > >> how
> >> >> >> >> > > > >> to
> >> >> >> >> > > > >> read an
> >> >> >> >> > > > >> executable's binary and look at its imports and
> >> >> >> >> > > > >> exports.
> >> >> >> >> > > > >> To
> >> >> >> >> > > > >> do
> >> >> >> >> > > > >> this
> >> >> >> >> > > > >> properly you will need to look at the main program and
> >> >> >> >> > > > >> determine
> >> >> >> >> > > > >> what it
> >> >> >> >> > > > >> imports. Then, you read each of those binaries to see
> >> >> >> >> > > > >> what
> >> >> >> >> > > > >> they
> >> >> >> >> > > > >> import.
> >> >> >> >> > > > >> Total Commander has a plugin, Lister, that can do this,
> >> >> >> >> > > > >> but
> >> >> >> >> > > > >> it
> >> >> >> >> > > > >> takes a
> >> >> >> >> > > > >> long
> >> >> >> >> > > > >> time to do it. This technique will not find delay load
> >> >> >> >> > > > >> imports
> >> >> >> >> > > > >> unless
> >> >> >> >> > > > >> there
> >> >> >> >> > > > >> is a table for them, but I don't know. Any library
> >> >> >> >> > > > >> loaded
> >> >> >> >> > > > >> via
> >> >> >> >> > > > >> LoadLibrary
> >> >> >> >> > > > >> will also not appear in this dependency list since only
> >> >> >> >> > > > >> the
> >> >> >> >> > > > >> executable
> >> >> >> >> > > > >> code
> >> >> >> >> > > > >> knows when it is going to call that function. You
> >> >> >> >> > > > >> could
> >> >> >> >> > > > >> determine from
> >> >> >> >> > > > >> the
> >> >> >> >> > > > >> imports that an executable does use LoadLibrary but not
> >> >> >> >> > > > >> what
> >> >> >> >> > > > >> it
> >> >> >> >> > > > >> is
> >> >> >> >> > > > >> loading.
>
> >> >> >> >> > > > >> "krish" <pradeep_bi...@yahoo.com> wrote in message
>
> >> >> >> >> > > >>news:c56bdeb4-64ae-4463-8666-80c778404e52@v26g2000prm.googlegroups.com...
>
> >> >> >> >> > > > >> > How can I find out the dependencies of an application
> >> >> >> >> > > > >> > inside
> >> >> >> >> > > > >> > my
> >> >> >> >> > > > >> > program/driver? Say e.g If I want to find out the
> >> >> >> >> > > > >> > dependencies
> >> >> >> >> > > > >> > of
> >> >> >> >> > > > >> > iexplorer.exe inside my program? What are the APIs? I
> >> >> >> >> > > > >> > knwo
> >> >> >> >> > > > >> > there is a
> >> >> >> >> > > > >> > program something called dependency walker so I
> >> >> >> >> > > > >> > assume
> >> >> >> >> > > > >> > there
> >> >> >> >> > > > >> > must be
> >> >> >> >> > > > >> > some way of doing this.
>
> >> >> >> >> > > > >> > I wan to provide a GUI which lists all the programs
> >> >> >> >> > > > >> > installed
> >> >> >> >> > > > >> > on the
> >> >> >> >> > > > >> > computer and when user cselects one of them I lists
> >> >> >> >> > > > >> > all
> >> >> >> >> > > > >> > the
> >> >> >> >> > > > >> > files
> >> >> >> >> > > > >> > (.dlls etc) on which it is dependent.
>
> >> >> >> >> > > > >> > Thanks.- Hide quoted text -
>
> >> >> >> >> > > - Show quoted text -
==============================================================================
TOPIC: option of not including precompiled headers in sources file
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/a70fa9156daca7b4?hl=en
==============================================================================
== 1 of 2 ==
Date: Tues, May 20 2008 1:52 pm
From: ssylee
I'm trying to instruct the build utility to not use precompiled headers in
the sources file. However, I can't find much information about how to
explicitly tell the build utility to NOT include precompiled headers. Does
anyone know how I would approach this? Thanks.
== 2 of 2 ==
Date: Tues, May 20 2008 2:28 pm
From: "Don Burn"
Try adding
USER_C_FLAGS = /Y-
Can't say for sure but this is the normal approach to things like this.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"ssylee" <ssylee@discussions.microsoft.com> wrote in message
news:EBA68517-4570-49D9-825C-9465CCD321C3@microsoft.com...
> I'm trying to instruct the build utility to not use precompiled headers in
> the sources file. However, I can't find much information about how to
> explicitly tell the build utility to NOT include precompiled headers. Does
> anyone know how I would approach this? Thanks.
==============================================================================
TOPIC: 2008 x64 signing
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/a5de999e2d4317f2?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 2:43 pm
From: "muriwai"
Hi,
I had the impression that I need to get a WHQL signature to have my driver
loaded on Server 2008 x64.
After carefully studying the latest DDK documentation along with the white
paper
http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/kmsigning.doc I
started to think that an SPC from Verisign with a cross-certificate is
enough, as long as the Windows Logo is not required, even for the drivers
for which there's a WHQL test.
ms-help://MS.WDK.v10.6001.071220/DevInst_d/hh/DevInst_d/driver-signing-over_838ed908-96ff-411c-a5f3-c253e7e7cb53.xml.htm
"To be considered signed by PnP device installation, the catalog file of the
driver must be signed by WHQL ***or*** signed by a third-party release
certificate (a Software Publisher Certificate (SPC) or a commercial release
certificate). A WHQL release signature ***should*** (not MUST) be used if
one can be obtained. "
"Note also that for 64-bit versions of Windows Server 2008 and Windows
Vista, the kernel-mode code signing policy further requires that a
kernel-mode driver be signed by WHQL ***or*** by an SPC"
I did a quick test and my non-boot driver doesn't get loaded on Windows 2008
x64 even when it has an embedded SPC signature and an SPC-signed .CAT file,
both with the cross certificate. 2008 x64 doesn't even recognize the INF as
valid (it works fine on 2003 x64).
Where's the truth?
Thanks
==============================================================================
TOPIC: Single CAT file for multiple INFs
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/b508f33d6eda311f?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 2:51 pm
From: "muriwai"
Hi,
I have a driver package that consists of multiple INFs for different classes
(e.g. SCSI Adapter and CD-ROM). The binaries for the same device are
different for x86 and x64 but have the same file name in different source
folders. The drivers are NOT class drivers but functional ones.
Can I use a single CAT for all my INFs and drivers? I have some doubts
because I can see the device identifier from the first INF file embedded
into CAT.
If I need multiple CATs, does Microsoft charge their WHQL signature fee per
driver package or per CAT file?
Thank you
==============================================================================
TOPIC: PCI express card not been recognized on Windows ( XP, server 2003)
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/af0946c27f0ba12f?hl=en
==============================================================================
== 1 of 2 ==
Date: Tues, May 20 2008 3:49 pm
From: May
Hi,
My company has a new PCI express encryption card. I am writing driver for
it. When I plug it into the computer, both Windows XP professional, server
2003 do not recognize it. There is no new hardware found ( I suppose there
should be). What is the problem? How can I solve it?
Thanks,
Yaning
== 2 of 2 ==
Date: Tues, May 20 2008 5:09 pm
From: "Maxim S. Shatskih"
Is the config space OK?
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"May" <May@discussions.microsoft.com> wrote in message
news:EC63332A-11FD-491D-A823-8DF283916F7D@microsoft.com...
> Hi,
> My company has a new PCI express encryption card. I am writing driver for
> it. When I plug it into the computer, both Windows XP professional, server
> 2003 do not recognize it. There is no new hardware found ( I suppose there
> should be). What is the problem? How can I solve it?
>
> Thanks,
>
> Yaning
==============================================================================
TOPIC: Differences between DDK build 3790.1830 and WDK build 6001.180
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/371d42b26320aedc?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 3:58 pm
From: ssylee
I have a question regarding the suggestions. Do you mean try the compiler
options in the sources file as:
USER_C_FLAGS=/D_WIN32_WINNT=0x0600, /DNTDDI_VERSION=0x06000100?
"GNR" wrote:
> I think you need to port this to Vista. The compiler options used are sticky
> to old Windows OS (looks like)
>
> /D_WIN32_WINNT=0x0600
>
> /DNTDDI_VERSION=0x06000100
>
> are reported to be conflicting.
>
> One easy way is to set bot to the same value and try
>
> --
> --GNR
>
>
> "ssylee" wrote:
>
> > I am trying to build an OSS called EMF Printer from SourceForge from the
> > source. From the technical documentation of the application, it is built
> > using DDK 3790.1830 for Windows 2000 environment. I have tried to build it
> > using the current build of WDK for Windows Vista environment the same way I
> > build the WDK examples, but I'm getting the following error message in the
> > log file (http://pastebin.com/m54862ed). The first line that the error
> > occurred is described on line 84 of the pastebin output, and the builder is
> > complaining about the version of NTDDI_VERSION and _WIN32_WINNT_. I'm
> > wondering about the exact difference between the WDK/DDK builds that could be
> > causing this. Thanks.
==============================================================================
TOPIC: Examine the ALE User ID at the WFP ALE Auth Connect Layer
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/58d22c8bdc9508db?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 5:30 pm
From: rrubino
I have developed a WFP callout that examines data at the ALE AuthConnectV4
layer (FWPM_LAYER_ALE_AUTH_CONNECT_V4). One of the fields available is the
user id field (FWPS_FIELD_ALE_AUTH_CONNECT_V4_ALE_USER_ID) which points to a
token acces information structure (TOKEN_ACCESS_INFORMATION ). Once I have
the structure, how can I determine the user that made the request? I've
searched all the documentation and it seems that all of the associated
functions operate in user mode. Can anyone help?
==============================================================================
TOPIC: May I use UDF 2.5 driver of Vista or Server 2008 on Server 2003 SP2 ?
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/fef203b4d917d4c6?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 6:09 pm
From: "Zhendong Wu"
Hi
I need read/write BD-RE(UDF 2.5) on Server 2003, and i know that Server 2003
does not support it.
May i use the UDF 2.5 driver of Vista or Server 2008 on Server 2003?
Any ideas?
Thanks,
Zhendong Wu
==============================================================================
TOPIC: How to install UpperFilter driver of mouhid.sys
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/a6973b24195b24cd?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 6:36 pm
From: T.Masuda
I want to controll our developing HID mouse from application. Does anybody
give some advice for the following questions. Any comment will be welcome.
Can I install sample moufilter.sys as an upper filter driver of mouhid.sys?
Should I change the sample source code of moufilter.sys in DDK?
How do I change inf file?
Takashi Masuda
Japan
==============================================================================
TOPIC: Driver Auto-Install on USB Mass Storage
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/51ddda5fecbac9d9?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 7:04 pm
From: Lono
We are trying to give our USB CDCACM device the ability to auto install
driver from usb mass storage device. We made a composite device with 3
interface. 2 for CDCACM and 1 for mass storage. When the device connects to
PC, the driver shall be installed from mass storage.
However, when the device connencts to PC, Windows pops out an "Add
Hardware Wizard" and it asks us to install driver for CDCACM device. The mass
storage does not show up until we install the driver for CDCACM device
manually. We cannot auto install driver for CDCACM from mass storage because
it only shows up after we install CDCACM driver.
We think the result is due to the enumeration order of composite device
interface, so we exchange the interface order of CDCACM and mass storage.
Nevertheless, it doesn't work.
Why can't windows install built-in driver for mass storage before
install CDCACM driver?
We use XP SP3 for testing, therefore we don't need any hotfix from MS.
==============================================================================
TOPIC: try catch structured exception handling (SEH) ..
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/e1b259af7908292b?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 7:08 pm
From: Kid
Hi
I see try catch structured exception handling (SEH) in WinCE driver, can
Windows driver use SEH ?
Can SEH use in user mode application and kernel mode driver ?
Thank you.
==============================================================================
TOPIC: Some Question about Vista APO
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/e956d27416429dfd?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 7:28 pm
From: SaxenKo@gmail.com
Hi, I am new to vista APO. After I read the document, I get few
questions.
1) Is APO DLLs need to be WHQL signed(or something like that), when
release to customer?
2) If I provide my own LFX/GFX for vista 64, do I need to provide both
32-bit and 64-bit DLL? or just 64-bit DLL? (64bit WOW will do
conversation for me?)
3) from documents, it seems that there can't be multiple LFX or GFX
for one Audio engineer(like speaker/ microphone)? That is to say, if
user has installed 3rd party driver(like realtek), and it has its own
LFX/GFX, will it replace 3rd party LFX/GFX when I install my LFX/GFX?
or is there any soultion to keep them both?
Thanks,
==============================================================================
TOPIC: Stopping a high priority thread
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/f21c3d6375cfdfa8?hl=en
==============================================================================
== 1 of 2 ==
Date: Tues, May 20 2008 8:16 pm
From: ShivaP
Hi,
Created a thread in the driver and it will be running at HIGH_PRIORITY, and
I need to stop the thread by setting an event from an another dispatch Call,
which is running at PASSIVE_LEVEL.
Since the thread is running at HIGH_PRIORITY, the dispatch function is not
getting able to set the event.
Is it right to raise the IRQL in the dispatch cuntion to IRQL=DISPATCH LEVEL
before KeSEtEvent, and lower the IRQL down.
Thanks
== 2 of 2 ==
Date: Tues, May 20 2008 9:32 pm
From: "Alexander Grigoriev"
As long as your HIGH_PRIORITY thread is not running away (means not using
all available CPU), but waits on events instead, there should be no problem
with setting an event on PASSIVE_LEVEL. Of course, HIGH_PRIORITY thread will
get CPU immediately, but then I don't understand why it creates a problem
for you.
"ShivaP" <ShivaP@discussions.microsoft.com> wrote in message
news:E63AADEF-04E7-4E0D-AED9-97224FDAD5F3@microsoft.com...
> Hi,
>
> Created a thread in the driver and it will be running at HIGH_PRIORITY,
> and
> I need to stop the thread by setting an event from an another dispatch
> Call,
> which is running at PASSIVE_LEVEL.
>
> Since the thread is running at HIGH_PRIORITY, the dispatch function is not
> getting able to set the event.
>
> Is it right to raise the IRQL in the dispatch cuntion to IRQL=DISPATCH
> LEVEL
> before KeSEtEvent, and lower the IRQL down.
>
> Thanks
>
==============================================================================
TOPIC: Language monitor can not read data from some port monitors...
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/5078cf6dad9b373a?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 8:36 pm
From: Justin Huang
Some more information...
I added GetLastError() after calling pfnReadPort.
For redirected ports, I always got a ERROR_SHARING_VIOLATION error code.
For 9100 ports, I got ERROR_NOT_SUPPORTED.
Anyone helps me?
"Justin Huang" wrote:
> Hi,
> I'm developing a printer driver that should communicate with the printer
> bi-directionally. I do this in my language monitor by calling ReadPort API of
> the port monitor like this:
> ret = (*pIniPort->fn.pfnReadPort)(pIniPort->hPort, pBuffer, cbBuf,
> &cbRead);
>
> It works normally when the port is USB port (USB001, USB002, ...). But it
> fails if the port is a Standard TCP/IP or a "redirected port" (TS001, TS002,
> ...).
> Any ideas?
>
> Justin Huang.
==============================================================================
TOPIC: Video mirror driver in applications like VNC
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/eb55498bea660762?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 10:36 pm
From: kidilan.ehiravan@gmail.com
Hello,
I have been assigned to develop an application like VNC, for desktop
sharing with multiple monitor support. Currenly we have a prototype
using the hook mechanism. Now I am assigned to redo it using the video
mirror driver.
As I am quite new to this topic, i need your help to complete the task
in the stipulated time.
So far, I was able to install the sample mirror driver in DDK. The
debug log indicates, functions like DrvCopyBits, DrvBitBlt etc were
invoked in the mirror .dll driver.
What I want to accomplish is
1- How to get the full screen data using the morror driver
2- Is there a way to get the screen update from the driver.
( in the prototype using Hook, we get the updated RECTs from hook
callback.
So we can capture data on that RECT by comparing two full screens)
As such, my intensin is to get the screen data ( full screen or
updates) and compress it and send to the remote machine over an
socket, whre the desktop is being viewed. Please let me know how i can
achieve this.
Also, suggest some book or info where I could get a clear idea of the
functionlity of this system.
I have posted this in another group also.. pls excuse me.
Thanks
Kidilan
==============================================================================
TOPIC: Problem with WinDbg
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/fce04a492f72834d?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 11:01 pm
From: Alexander
Hello,
I have a problem with Windbg.
I have started it in debug mode and have waited for the debuggee to
connect. But I get the following outputs:
******************** OUTPUT BEGINNING ********************
Microsoft (R) Windows Debugger Version 6.8.0004.0 X86
Copyright (c) Microsoft Corporation. All rights reserved.
Opened \\.\com1
Waiting to reconnect...
BD: Boot Debugger Initialized
Connected to Windows Boot Debugger 6001 x86 compatible target, ptr64
FALSE
Kernel Debugger connection established.
Symbol search path is: G:\Windows Vista\Symbols;G:\Projects\Pwe_common
\common\rssw\drsw\radar\pcirsc\windows\xp\i386
Executable search path is:
*** ERROR: Module load completed but symbols could not be loaded for
winload.exe
Windows Boot Debugger Kernel Version 6001 UP Free x86 compatible
Primary image base = 0x00584000 Loaded module list = 0x00684e58
System Uptime: not available
The call to LoadLibrary(bootext) failed, Win32 error 0n2
"Das System kann die angegebene Datei nicht finden."
Please check your debugger configuration and/or network access.
Shutdown occurred...unloading all symbol tables.
Waiting to reconnect...
******************** OUTPUT END ********************
The text in quotes means in English: "The system can not find the
given file"
If having an explicit break point in a DriverEntry routine the
debuggee will hang so debugger and debuggee really do not connect to
each other. But the null modem cable works and there are outputs if
the
debuggee boots in debug mode.
I think the critical point is "The call to LoadLibrary(bootext)
failed, Win32 error 0n2" and this is the reason for the shutdown of
the debugging engine.
Any idea concerning this error?
Thanks for any help,
Alexander Boegelsack
==============================================================================
TOPIC: Device Simulation Framework
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/9e5234034018ce26?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 11:52 pm
From: mooni
Hi all,
I've created a USB function application and want it to
communicate with windows host . I came to know about Windows Device
simulation Framework. Now I just want to know how much this framework can
help me in this case. I've downloaded Windows Driver Toolkit for Server 2008
from MS connect.
I also want to know following thing:
1. Will this WDK for server 2008 work for XP also as my development PC has XP?
2. What if I want to test this function simulation on other PC? Do I need to
install complete WDK there first?
==============================================================================
You received this message because you are subscribed to the Google Groups "microsoft.public.development.device.drivers"
group.
To post to this group, visit http://groups.google.com/group/microsoft.public.development.device.drivers?hl=en
To unsubscribe from this group, send email to microsoft.public.development.device.drivers-unsubscribe@googlegroups.com
To change the way you get mail from this group, visit:
http://groups.google.com/group/microsoft.public.development.device.drivers/subscribe?hl=en
To report abuse, send email explaining the problem to abuse@googlegroups.com
==============================================================================
Google Groups: http://groups.google.com?hl=en
No comments:
Post a Comment