http://groups.google.com/group/microsoft.public.development.device.drivers?hl=en
microsoft.public.development.device.drivers@googlegroups.com
Today's topics:
* Device Simulation Framework - 2 messages, 2 authors
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/9e5234034018ce26?hl=en
* driver resource confilct in the device manager - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/5a2e75ba4e1b9e41?hl=en
* can not access a devices created through a miniport - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/ee3149b017359678?hl=en
* EngLockSurface and mouse pointer in display driver - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/f23478cb872b2238?hl=en
* Reseller INF Update Submission - DTM required? - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/36bb6c2b4753149f?hl=en
* Activesync device question - 3 messages, 3 authors
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/ee6f55c45f6088b8?hl=en
* INF for 2008 x64 - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/ed6caab66b0fb3c9?hl=en
* When will vista display report "Invalid display settings" - 1 messages, 1
author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/ab384cb1c8be36bd?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
* Stopping a high priority thread - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/f21c3d6375cfdfa8?hl=en
* INF file for USB filter driver? - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/66cfd5f325f62df5?hl=en
* Differences between DDK build 3790.1830 and WDK build 6001.180 - 2 messages,
2 authors
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/371d42b26320aedc?hl=en
* ReadFile() fails with error Incorrect Parameter - 3 messages, 2 authors
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/aa3ecc9848e0847e?hl=en
* Driver Installation Windows Vista - 2 messages, 2 authors
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/2f300e1e1bb6b28a?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
* 2008 x64 signing - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/a5de999e2d4317f2?hl=en
* error C1017: invalid integer constant expression - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/f4bd93255d6523ee?hl=en
* DriverInstallPackagesW fails to create driver store entry - 1 messages, 1
author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/170ac5255198b1ef?hl=en
==============================================================================
TOPIC: Device Simulation Framework
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/9e5234034018ce26?hl=en
==============================================================================
== 1 of 2 ==
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?
== 2 of 2 ==
Date: Wed, May 21 2008 4:52 am
From: "Don Burn"
The Server 2008 WDK works on XP and builds drivers for 2000, XP, 2003, Vista
and 2008. I have not used DSF but I do not believe you need to install the
WDK on the test machine to get it to work.
--
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
"mooni" <mooni@discussions.microsoft.com> wrote in message
news:7593CBAF-AC89-4908-A055-E6907C5EBBD6@microsoft.com...
> 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?
>
>
==============================================================================
TOPIC: driver resource confilct in the device manager
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/5a2e75ba4e1b9e41?hl=en
==============================================================================
== 1 of 1 ==
Date: Tues, May 20 2008 11:56 pm
From: kota
Hi,
I am working on WDF PCI driver, when i installed new WDF driver, which
actually detects, if any old driver is installed, if so, it detects and
removes old driver setup, after the removal is complete, my new driver will
be installed.
After the installation, I obsered that device driver is not functional,In
device manager, it shows that, there is
a resource conflict, system to be restarted to resolve the resource conflict.
Though there is conflict, after i installed the new driver XP-32, system
doesnt shows the message that, system is required to restart, but it shows
in device manager.
After i restarted the system, device works fine.
Old driver installed through: Install sheild setup, which is NT model driver
New driver: Using WDF model & using DIFX toools to install the driver and
Visual studio setup & deployment wizard supported through DPINST tool.
Questions:
1> When my new driver installed, why the system doesnt show that, it is
requied to restart
2) Is there any way to detect the system restart required through VS 2005
Setup & deployment wizard and show a message to the user, so that user can
restart the pc
3) After my old driver got installed, using any tool like devcon or any
other.., can i free the PCI driver resources?, so that, before new driver
will be installed, it wont get a message about resource conflict?
Thanks,
Kota
==============================================================================
TOPIC: can not access a devices created through a miniport
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/ee3149b017359678?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, May 21 2008 12:31 am
From: turambar
I think the problem was that my device was created using IoCreateDevice and
not NdisMRegisterDevice.
Thanks a lot for your help
"Pavel A." wrote:
> How exactly you create this device? Do you use NdisMRegisterDevice?
>
> --PA
>
>
> "turambar <n-nospam@free.fr>"
> <turambarnnospamfreefr@discussions.microsoft.com> wrote in message
> news:4B4BD025-42B8-4B3B-934C-74C461347F19@microsoft.com...
> > Hi,
> >
> > In order to make a virtual miniport driver to communicate with a user-mode
> > service, I' devlopping a NDIS driver that creates a device. But for a
> > reason
> > I don't understand, I can't access my device in user-mode (error : Invalid
> > Handle) even if the name is correct and the IRQL is PASSIVE_LEVEL.
> >
> > I think the device is created because when I create a new one with the
> > same
> > name through a protocol, it can't be created because the system says that
> > this filename is already in use. But my testing app can't open the device.
> >
> > Also, when I'm creating another device through the protocol, it can be
> > accessed via the user-mode software. So I'm wondering what's wrong with my
> > miniport device.
> >
> > Can anyone help me ?
> >
> > Thanks in advance
>
>
==============================================================================
TOPIC: EngLockSurface and mouse pointer in display driver
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/f23478cb872b2238?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, May 21 2008 2:44 am
From: Mase
Hello again.
the problem with my mouse pointer has been "solved". I found out two things:
1: I don't have to lock the surface from which I want to copy the data
because it is passed into DrvEscape()...
2:
I found out that the mouse pointer is still on the surface but getting the
data correctly out of pvBits failt. In DrvEscape() I use EngCopyBits() to
copy a part of the surface onto another surface. both surfaces are created by
me in DrvEnableSurface() and their type is "STYPE_BITMAP". I don't know why,
but in DrvEscape() the type of the passed in surface is not "STYPE_BITMAP"
but "STYPE_DEVICE". If I set the type back to "STYPE_BITMAP" in DrvEscape()
everything works fine...
mase
==============================================================================
TOPIC: Reseller INF Update Submission - DTM required?
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/36bb6c2b4753149f?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, May 21 2008 2:51 am
From: FPNZ
I am trying to create a Driver Update Submission for a driver package that
our company is reselling. The only changes are in the INF file, all binaries
are unchanged.
We have been granted and have accepted the reseller rights through the
WinQual website. According to the WHQL policy documentation, I need to run
ChkInf on my changed INF file and package the resulting log with DTM, then
include this in my INF Update submission.
My question is: Is there a way to package the log file and create the
submission without having to set up a complete DTM environment? As I don't
need to re-test the binaries, I can't see why I would need to set up a test
environment.
I also don't have the original test results from the driver manufacturer. Do
I need these?
The documentation for driver resellers wanting to obtain certification for a
driver package (INF Update) is very sparse, any help would be greatly
appreciated.
==============================================================================
TOPIC: Activesync device question
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/ee6f55c45f6088b8?hl=en
==============================================================================
== 1 of 3 ==
Date: Wed, May 21 2008 3:26 am
From: Kid
Hi
I've tried two Windows Mobile Phone, use Activesync USB connection, I found
they
catch different PC Windows driver :
(1) Phone #1 become a Windows CE USB device, use PC driver wceusbsh.inf and
wceusbsh.sys
(2) Phone #2 become a Network device, use PC driver WceRndis.inf and
usb8023y.sys and rndismpy.sys.
These two drivers are all provided by Microsoft , and both of they can use
Activesync 4.5 .
Do you know what's the difference of these two drivers and product design ?
Thank you very much.
== 2 of 3 ==
Date: Wed, May 21 2008 3:36 am
From: "Luca Calligaris"
the first phone expose itself as an USB serial device, the second exposes
itself as an USB network device
--
Luca Calligaris
www.eurotech.it
"Kid" <Kid@discussions.microsoft.com> ha scritto nel messaggio
news:F681BEE9-E08F-48E1-9BF3-59E93355A1AA@microsoft.com...
> Hi
>
> I've tried two Windows Mobile Phone, use Activesync USB connection, I
> found
> they
> catch different PC Windows driver :
>
> (1) Phone #1 become a Windows CE USB device, use PC driver wceusbsh.inf
> and
> wceusbsh.sys
>
> (2) Phone #2 become a Network device, use PC driver WceRndis.inf and
> usb8023y.sys and rndismpy.sys.
>
> These two drivers are all provided by Microsoft , and both of they can use
> Activesync 4.5 .
>
> Do you know what's the difference of these two drivers and product design
> ?
>
> Thank you very much.
>
>
>
>
== 3 of 3 ==
Date: Wed, May 21 2008 8:36 am
From: "Paul G. Tobey [eMVP]"
The phones are probably either running different versions of Windows Mobile
(2003 and earlier acted like serial-over-USB devices, while Windows Mobile 5
and 6 act like RNDIS devices, by default). If they are the same model and
version of phone, there's a setting in the ActiveSync program *on the
phone*, which allows, for compatibility purposes, the phone to be switched
from Serial to RNDIS and back. It's typically named Advanced Network
Functionality or something of that sort. It's there because, when the phone
acts like a network card (RNDIS mode), it's subject to services running on
the PC which might tend to prevent ActiveSync from working (firewalls, VPN
software, etc.)
Paul T.
"Luca Calligaris" <anonymous@discussions.microsoft.com> wrote in message
news:uv%23gg5yuIHA.5244@TK2MSFTNGP02.phx.gbl...
> the first phone expose itself as an USB serial device, the second exposes
> itself as an USB network device
>
> --
>
> Luca Calligaris
> www.eurotech.it
>
> "Kid" <Kid@discussions.microsoft.com> ha scritto nel messaggio
> news:F681BEE9-E08F-48E1-9BF3-59E93355A1AA@microsoft.com...
>> Hi
>>
>> I've tried two Windows Mobile Phone, use Activesync USB connection, I
>> found
>> they
>> catch different PC Windows driver :
>>
>> (1) Phone #1 become a Windows CE USB device, use PC driver wceusbsh.inf
>> and
>> wceusbsh.sys
>>
>> (2) Phone #2 become a Network device, use PC driver WceRndis.inf and
>> usb8023y.sys and rndismpy.sys.
>>
>> These two drivers are all provided by Microsoft , and both of they can
>> use
>> Activesync 4.5 .
>>
>> Do you know what's the difference of these two drivers and product design
>> ?
>>
>> Thank you very much.
>>
>>
>>
>>
>
>
==============================================================================
TOPIC: INF for 2008 x64
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/ed6caab66b0fb3c9?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, May 21 2008 4:33 am
From: "muriwai"
Hi,
I have an INF file for a 32/64-bit driver which works fine on 2003 x86/x64
and 2008 x86. Server 2008 x64 does not recognize the INF saying that the
folder does not contain a compatible software driver for my device. I
enabled TESTSIGNING and signed the CAT with a WHQL test signature, but that
didn't help. Is there a magical word I need to put into INF specially for
Server 2008 x64?
Thank you
==============================================================================
TOPIC: When will vista display report "Invalid display settings"
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/ab384cb1c8be36bd?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, May 21 2008 5:13 am
From: jerry lee
When I create a source and destination and link them with a path in
VidPN part of a vista dispaly driver, everything seems go smoothly,
except following message popups when I open display panel:
"The currenttly selected graphics display driver can not be used, It
was written for a previous version of Windows, and is not longer
compatible with this version of Windows".
The driver is actually an filter layer between dxgkrnl and real
adapter driver, so there must be some thing wrong. Could anyone help
what is wrong? Thanks.
==============================================================================
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: Wed, May 21 2008 5:30 am
From: "Maxim S. Shatskih"
Yes it can, on < DISPATCH_LEVEL only.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"Kid" <Kid@discussions.microsoft.com> wrote in message
news:EC393C0E-6236-4B4F-8C65-7D29084750BF@microsoft.com...
> 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: Stopping a high priority thread
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/f21c3d6375cfdfa8?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, May 21 2008 5:54 am
From: "Maxim S. Shatskih"
High priority thread is usually designed to never run long CPU-based
calculations, its purpose is to - wait for something, quickly execute
something, wait again.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"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: INF file for USB filter driver?
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/66cfd5f325f62df5?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, May 21 2008 6:06 am
From: bluestar
Dear Sir:
I hope to add my usb filters for HDD and ODD(separate 2 inf
files) on
XP 32/64 and Vista 32/64 platforms. Both drivers are lower
filter.
I try to modify sample inf and show below for HDD.
But it failed to work.
Could you tell me how to modify it to work well?
By the way, if i want to remove this filter driver, how
to modify inf file?
Thanks for your kindly help.
//----------------------------------------------------------------------------------------------------------------------------//
;
; USBFilter.INF (for Windows XP and Vista)
;
; Copyright (c) 2007, Prolific Technology Inc.
[version]
signature="$CHICAGO$"
Class=USB
;DiskClassGuid
ClassGuid={53f56307L-B6BF-11D0-94F2-00A0C91EFB8B}
Provider=%PRO%
DriverVer=05/23/2008,1.3.0.7
CatalogFile=usbfilter.cat
; ================= Device Install section =====================
[ControlFlags]
ExcludeFromSelect=*
[Manufacturer]
%PRO%=PRO,NT,NTAMD64
[SourceDisksFiles]
usbfilter.sys=1
usbfilter64.sys=1
[SourceDisksNames]
1=%DISK_NAME%,
[DestinationDirs]
DefaultDestDir = 12
[PRO.NT]
%DeviceDesc_3303% = USBFast, USB\VID_067B&PID_3303
[PRO.NTAMD64]
%DeviceDesc_3303% = USBFast, USB\VID_067B&PID_3303
[USBFast.NT]
CopyFiles=USBFast.NT.Copy
AddReg=USBFast.NT.AddReg
[USBFast.NT.Services]
AddService = usbfilter, 0x00000002, Serial_Service_Inst.NT
[USBFast.NT.Copy]
usbfilter.sys
[USBFast.NT.AddReg]
HKLM, System\CurrentControlSet\Control\Class\{53f56307L-
B6BF-11D0-94F2-00A0C91EFB8B}, LowerFilters, 0x00010000, usbfilter
;[USBFast.HW.AddReg]
;HKR,,"LowerFilters",0x00010000,"usbfilter"
[USBFast.NTAMD64]
CopyFiles=USBFast.NTAMD64.Copy
AddReg=USBFast.NTAMD64.AddReg
;[USBFast.NTAMD64.HW]
;AddReg=USBFast.HW.AddReg
[USBFast.NTAMD64.Services]
AddService = usbfilter, 0x00000002, Serial_Service_Inst.NTAMD64
[USBFast.NTAMD64.Copy]
usbfilter64.sys
[USBFast.NTAMD64.AddReg]
HKLM, System\CurrentControlSet\Control\Class\{53f56307L-
B6BF-11D0-94F2-00A0C91EFB8B}, LowerFilters, 0x00010000, usbfilter64
[Serial_Service_Inst.NT]
DisplayName = %Serial.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\usbfilter.sys
LoadOrderGroup = "PnP Filter"
[Serial_Service_Inst.NTAMD64]
DisplayName = %Serial.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\usbfilter64.sys
LoadOrderGroup = "PnP Filter"
[Strings]
PRO = "Prolific"
DeviceDesc_3303 = "USB Filter for device 3303"
Serial.SVCDESC = "USB filter driver"
==============================================================================
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 2 ==
Date: Wed, May 21 2008 7:08 am
From: GNR
Try setting both to 0x0600
--
--GNR
"ssylee" wrote:
> 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.
== 2 of 2 ==
Date: Wed, May 21 2008 10:01 am
From: ssylee
I tried something like USER_C_FLAGS=/EHsc /D_WIN32_WINNT=0x0600
/DNTDDI_VERSION=0x0600, but the build system is still complaining about
another variable such as:
1>c:\winddk\6001.18000\inc\api\sdkddkver.h(252) : error C1189: #error :
_WIN32_
WINNT settings conflicts with _WIN32_IE setting
Do I insert another /D_WIN32_IE=0x0600?
"GNR" wrote:
> Try setting both to 0x0600
> --
> --GNR
>
>
> "ssylee" wrote:
>
> > 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: ReadFile() fails with error Incorrect Parameter
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/aa3ecc9848e0847e?hl=en
==============================================================================
== 1 of 3 ==
Date: Wed, May 21 2008 7:25 am
From: davidmurray1@gmail.com
I am trying to call ReadFile() on a handle for a USB storage device,
however, ReadFile() returns false everytime with the error code:
"Parameter is Incorrect."
The handle that I create via CreateFile is valid
Here's where I create the handle (returns a valid handle for my
device)
hDevice = CreateFile(
devDetailData->DevicePath,
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
NULL,
OPEN_EXISTING,
FILE_FLAG_OVERLAPPED,
NULL);
I then create an event and an OVERLAPPED structure:
HANDLE hEvent = CreateEvent(
NULL,
TRUE,
FALSE,
NULL);
OVERLAPPED gOverLapped;
gOverLapped.Offset = 0;
gOverLapped.OffsetHigh = 0;
gOverLapped.hEvent = hEvent;
I then init some variables for the ReadFile() function and call it:
CHAR pBuf[3];
pBuf[0] = 0;
DWORD nBytesRead;
BOOL bResult;
bResult = ReadFile(hDevice, pBuf, 3, &nBytesRead, &gOverLapped);
The result I receive via GetLastError() is "The parameter is
incorrect."
Any help would be GREATLY appreciated.
== 2 of 3 ==
Date: Wed, May 21 2008 9:15 am
From: chris.aseltine@gmail.com
On May 21, 9:25 am, davidmurr...@gmail.com wrote:
> I am trying to call ReadFile() on a handle for a USB storage device,
> however, ReadFile() returns false everytime with the error code:
> "Parameter is Incorrect."
What makes you think you should be able to do this? What are you
trying to do?
== 3 of 3 ==
Date: Wed, May 21 2008 9:52 am
From: davidmurray1@gmail.com
On May 21, 12:15 pm, chris.aselt...@gmail.com wrote:
> On May 21, 9:25 am, davidmurr...@gmail.com wrote:
>
> > I am trying to call ReadFile() on a handle for a USB storage device,
> > however, ReadFile() returns false everytime with the error code:
> > "Parameter is Incorrect."
>
> What makes you think you should be able to do this? What are you
> trying to do?
i'm trying to establish a connection with my usb driver so that i can
call ioctl's on it. all USB device interfacing examples state that
ReadFile() should be called upon successful creation of the handle.
==============================================================================
TOPIC: Driver Installation Windows Vista
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/2f300e1e1bb6b28a?hl=en
==============================================================================
== 1 of 2 ==
Date: Wed, May 21 2008 8:35 am
From: subhash
Hi,
We are using DDK 6001.17121 . we tried to install src\kmdf\echo
driver in Windows Wista Buisiness Edition. We have only put some
"kdprint" to trace DriverEntry. As per the documentaton, We used
add hardware wizard to install the driver. I am not getting any prints
in DbgView . Driver gets installed but the system asks for a restart.
Devcon shows the driver in the listing. I used DbgPrint also. I want
to know why I am not getting any prints.
I want to know what is the best way to trace wista driver code.
Looking forward for your response.
Thanks and Regards
Subhash
== 2 of 2 ==
Date: Wed, May 21 2008 8:47 am
From: "Don Burn"
In all likelyhood the driver is loaded before you start up DbgView, so you
do not see the debug prints since DriverEntry is called then exited before
you get there. You need to use WinDBG, either with two systems, or with
virtualization (if your driver will work in than environnemt) to create to
systems.
--
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
"subhash" <subhashsukumaran@gmail.com> wrote in message
news:954edfd1-c013-4383-a32e-0695f1a0d9ac@s21g2000prm.googlegroups.com...
> Hi,
> We are using DDK 6001.17121 . we tried to install src\kmdf\echo
> driver in Windows Wista Buisiness Edition. We have only put some
> "kdprint" to trace DriverEntry. As per the documentaton, We used
> add hardware wizard to install the driver. I am not getting any prints
> in DbgView . Driver gets installed but the system asks for a restart.
> Devcon shows the driver in the listing. I used DbgPrint also. I want
> to know why I am not getting any prints.
> I want to know what is the best way to trace wista driver code.
>
> Looking forward for your response.
>
> Thanks and Regards
> Subhash
==============================================================================
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: Wed, May 21 2008 9:20 am
From: chris.aseltine@gmail.com
On May 20, 9:04 pm, Lono <L...@discussions.microsoft.com> wrote:
> 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.
Which generic parent driver are you using? usbccgp.sys doesn't
support grouping by CDC union descriptors, and you say your CDC
function has two interfaces, so this seems like you're going to get
three child devices, which isn't what you want..
> 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.
I don't think the child device creation order is guaranteed, so what
you're trying to do is likely never going to work.
Plus, even if the mass storage device did install first and start
working, it would have to have an Autorun that preinstalled the
drivers without user intervention, *and* this would have to happen
before Setup started looking for the CDC ACM drivers. So, not going
to work for that reason either.
==============================================================================
TOPIC: 2008 x64 signing
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/a5de999e2d4317f2?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, May 21 2008 9:17 am
From: "Gianluca Varenni"
"muriwai" <muriwai@nospam.nospam> wrote in message
news:edL9JKsuIHA.1220@TK2MSFTNGP04.phx.gbl...
> 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?
On vista x64 and 2k8 x64, drivers should either be WHQL signed or signed
with a third certificate+cross signing. I have at least a couple of drivers
that are in the latter way.
Did you follow the instructions at
http://www.microsoft.com/whdc/winlogo/drvsign/kmcs_walkthrough.mspx to sign
your driver?
It's my understanding that you signed both the binary and the CAT file. You
need to sign just one of them. If you sign both (binary and CAT) you need to
be careful to generate the CAT file *after* you have signed the binary,
otherwise the CAT file does not contain the right hash for the binary.
Have a nice day
GV
--
Gianluca Varenni, Windows DDK MVP
CACE Technologies
http://www.cacetech.com
>
> Thanks
==============================================================================
TOPIC: error C1017: invalid integer constant expression
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/f4bd93255d6523ee?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, May 21 2008 10:22 am
From: ssylee
The build system is complaining about the error on line 14 of commdlg.h of
WDK libraries, which pointed to this line: #if(WINVER >= 0x0500)
My question is WINVER isn't declared as anything other than an integer, so
I'm confused why the build system is throwing an error like that after
reading the description on the error on MSDN. Any explanation on this would
be much appreciated. Thanks.
==============================================================================
TOPIC: DriverInstallPackagesW fails to create driver store entry
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/170ac5255198b1ef?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, May 21 2008 11:02 am
From: Olivier Lechenne
When installing our driver package as part of our software installation, the
DifxApp InstallDriverPackages() failes with error code 82 (0x52). More
precisely it fails in DriverPackageInstallW and gives the following error:
DIFXAPP: ERROR: Create Driver Store entry failed. (Error code 0x6E: The
system cannot open the device or file specified.)
What could cause this issue?? Is it really the driver store folder creation
that fails, or is there something missing in the driver package?
Any hep/suggestion is welcome,
Olivier
==============================================================================
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