Device not recognized after wake up - Power management
Hi,
I am working on a usb2.0 device and developing a host
driver as modelled as MS driver stack. After wake up from
S1/S4 mode, the device gets removed , but not loaded again
though physically attached to the system. All the FDO and
PDO are getting deleted and the function driver for the
device is unloaded during process of waking up. I expect
the usbd driver to load it again, but it doesnt happen.
What may be the reason? I appreciate your help on this. Tag: Is it possible to support DMTT_BITMAP Tag: 38566
How to deal with such irp as irp_mn_bogus?
Firstly I install HCT11.2.
When I install my usb driver,I found the system send the irp_mj_power,
irp_mn_bogus(softice reported) to the driver.
How can I deal with irp_mn_bogus ?
Irp->IoStatus.Information = 0
Irp->IoStatus.Status = STATUS_SUCCESS; //or STATUS_UNSUCCESSFU
IoCompleteRequest(Irp, IO_NO_INCREMENT)
Thanks a lot! Tag: Is it possible to support DMTT_BITMAP Tag: 38565
migrating NT drivers to XP
Hello,
Can anyone please tell me if migrating an Windows NT driver to Windows XP is
a hard job. I fail to find any information on this on the web ...
Thanks,
Laurent Tag: Is it possible to support DMTT_BITMAP Tag: 38564
How to write a INF to add Com Port??
Hi All
I have a Isa-base mutli-COM-port card,I want install it in the Win98,
Can someone tell me how to wtire a INF file to add COM port??
Can I just modify msports.inf to install my own COM Port and how to??
Thanks a lot for reading this letter
Best regards
Paullee Tag: Is it possible to support DMTT_BITMAP Tag: 38563
Driver verifier issue in XP
Hi,
I am having an issue with my driver when driver verifier is enabled in Win
XP SP1. The problem is that I always get BugCheck
DRIVER_IRQL_NOT_LESS_OR_EQUAL(D1) exactly when i try to acquire a spinlock.
I am sure that the spinlock is allocated in non-paged pool and has been
initialized.
Bugcheck code is as follows:
BugCheck D1, {eff0b4ff, 2, 0, eff0b4ff}
Arguments:
Arg1: eff0b4ff, memory referenced
Arg2: 00000002, IRQL
Arg3: 00000000, value 0 = read operation, 1 = write operation
Arg4: eff0b4ff, address which referenced memory
Arg1 and Arg2 are same, isnt this odd? Can somebody explain this.
From the dump I get BUCKET_ID: 0xD1_CODE_AV_BAD_IP_SupaCemul!OpenComPort+a7
This is the place where spinlock is acquired. What does CODE_AV_BAD_IP mean?
Why doesnt verifier in Win 2k complain. Code works in XP without verifier
enabled. Is this an issue in verifier of Win XP??
Find below the dump snip if it could help.
Thanks in advance,
Najas
----------------------------- Dump
info -------------------------------------------------------
Microsoft (R) Windows Debugger Version 6.3.0005.1
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [D:\WINDOWS\MEMORY.DMP]
Kernel Summary Dump File: Only kernel address space is available
Symbol search path is:
SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols;C:\Project\USB\
SUPA\SupaCemul\objfre\i386;C:\Project\USB\SUPA\SupaCemul\objchk\i386
Executable search path is:
C:\Project\USB\SUPA\SupaCemul\objfre\i386;C:\Project\USB\SUPA\SupaCemul\objc
hk\i386
Windows XP Kernel Version 2600 (Service Pack 1) UP Free x86 compatible
Product: WinNt, suite: TerminalServer SingleUserTS
Built by: 2600.xpsp2.030422-1633
Kernel base = 0x804d4000 PsLoadedModuleList = 0x80543530
Debug session time: Tue Jan 13 11:58:06 2004
System Uptime: 0 days 0:05:51.609
Loading Kernel Symbols
............................................................................
.............................
Loading unloaded module list
.........
Loading User Symbols
PEB is paged out (Peb.Ldr = 7ffdf00c). Type ".hh dbgerr001" for details
****************************************************************************
***
*
*
* Bugcheck Analysis
*
*
*
****************************************************************************
***
Use !analyze -v to get detailed debugging information.
BugCheck D1, {eff0b4ff, 2, 0, eff0b4ff}
Probably caused by : SupaCemul.sys ( SupaCemul!OpenComPort+a7 )
Followup: MachineOwner
---------
kd> !analyze -v
****************************************************************************
***
*
*
* Bugcheck Analysis
*
*
*
****************************************************************************
***
DRIVER_IRQL_NOT_LESS_OR_EQUAL (d1)
An attempt was made to access a pageable (or completely invalid) address at
an
interrupt request level (IRQL) that is too high. This is usually
caused by drivers using improper addresses.
If kernel debugger is available get stack backtrace.
Arguments:
Arg1: eff0b4ff, memory referenced
Arg2: 00000002, IRQL
Arg3: 00000000, value 0 = read operation, 1 = write operation
Arg4: eff0b4ff, address which referenced memory
Debugging Details:
------------------
READ_ADDRESS: eff0b4ff Nonpaged pool
CURRENT_IRQL: 2
FAULTING_IP:
SupaCemul!OpenComPort+a7 [c:\project\usb\supa\supacemul\comport.c @ 896]
eff0b4ff 8ad0 mov dl,al
DEFAULT_BUCKET_ID: DRIVER_FAULT
BUGCHECK_STR: 0xD1
LAST_CONTROL_TRANSFER: from eff09d82 to eff0b4ff
TRAP_FRAME: f869e914 -- (.trap fffffffff869e914)
ErrCode = 00000000
eax=00000000 ebx=00000000 ecx=00000041 edx=81f02e02 esi=818cf600
edi=8271afdc
eip=eff0b4ff esp=f869e988 ebp=8271aeb8 iopl=0 nv up ei pl zr na po
nc
cs=0008 ss=0010 ds=0023 es=0023 fs=0030 gs=0000
efl=00010246
SupaCemul!OpenComPort+0xa7:
eff0b4ff 8ad0 mov dl,al
Resetting default scope
STACK_TEXT:
f869e9a4 eff09d82 818cf600 8271aeb8 818cf538 SupaCemul!OpenComPort+0xa7
[c:\project\usb\supa\supacemul\comport.c @ 896]
f869e9c8 804ea221 818ce938 00000000 806ad1a8 SupaCemul!Dispatch+0x1e0
[c:\project\usb\supa\supacemul\dispatch.c @ 308]
f869e9d8 8062c190 818d10e8 8271aeb8 00000000 nt!IopfCallDriver+0x31
f869e9fc f89278ab 818d1030 8271afdc 8271aeb8 nt!IovCallDriver+0x9e
f869ea10 f89279f9 00000000 0171aeb8 81e8fd80
serenum!Serenum_DispatchPassThrough+0x63
f869ea38 804ea221 818d1030 818cf538 806ad1a8
serenum!Serenum_CreateClose+0x9f
f869ea48 8062c190 8271aec8 8271aeb8 81941c08 nt!IopfCallDriver+0x31
f869ea6c 80560609 818cf520 818cff6c f869ec18 nt!IovCallDriver+0x9e
f869eb50 8059a2c6 818cf538 00000000 818cfec8 nt!IopParseDevice+0xa4d
f869ebd8 80596c27 00000000 f869ec18 00000040 nt!ObpLookupObjectName+0x56a
f869ec2c 80553f0d 00000000 00000000 00000001 nt!ObOpenObjectByName+0xe9
f869eca8 80554688 0012f46c c0100080 0012f40c nt!IopCreateFile+0x407
f869ecf0 80556b3c 0012f46c c0100080 0012f40c nt!IoCreateFile+0x36
f869ed30 8052d571 0012f46c c0100080 0012f40c nt!NtCreateFile+0x2e
f869ed30 7ffe0304 0012f46c c0100080 0012f40c nt!KiSystemService+0xc4
0012f464 00000000 00000000 00000000 00000000
SharedUserData!SystemCallStub+0x4
FAILED_INSTRUCTION_ADDRESS:
SupaCemul!OpenComPort+a7 [c:\project\usb\supa\supacemul\comport.c @ 896]
eff0b4ff 8ad0 mov dl,al
FOLLOWUP_IP:
SupaCemul!OpenComPort+a7 [c:\project\usb\supa\supacemul\comport.c @ 896]
eff0b4ff 8ad0 mov dl,al
SYMBOL_STACK_INDEX: 0
FOLLOWUP_NAME: MachineOwner
SYMBOL_NAME: SupaCemul!OpenComPort+a7
MODULE_NAME: SupaCemul
IMAGE_NAME: SupaCemul.sys
DEBUG_FLR_IMAGE_TIMESTAMP: 40038fa1
STACK_COMMAND: .trap fffffffff869e914 ; kb
BUCKET_ID: 0xD1_CODE_AV_BAD_IP_SupaCemul!OpenComPort+a7
Followup: MachineOwner
---------
----------------------------- End Dump
info ------------------------------------------------------- Tag: Is it possible to support DMTT_BITMAP Tag: 38561
IRP_MN_FILTER_RESOURCE_REQUIREMENTS
Hi,
I've been developing a driver, but I have some problems,
in the debugging I see that when I'm installing my device
after receiving IRP_MN_FILTER_RESOURCE_REQUIREMENTS (which
I pass down the stack) the stop device routine is called
followed by the cancel stop routine and so the
installation ends and my device is never functional.
Do you have any ideas why is this happening? Should I
handle IRP_MN_FILTER_RESOURCE_REQUIREMENTS? -- How?
Thanks a Lot
Rodrigo Tag: Is it possible to support DMTT_BITMAP Tag: 38557
NDIS vs TDI
Hi ,
I want to write a personal firewall like thing to prevent
certain files going out and coming into the system. Say
all word files. i want to allow the file to move out/in
after some modifications on the file.
What is the best way of doing it.
From what i learnt from you guys and the net i found that
TDI and NDIS filters are the way .
Can anybody suggest me which one is the best?
Will both the filters can be wriiten in USer mode?
Which mode i should write for ur info i want my
application to interat with the firewall.
Can somebody suggest me any material providing a starting
point
Thanks Tag: Is it possible to support DMTT_BITMAP Tag: 38555
Beginers question
Hi,
I am interested in books concerning Driver development
the following areas:
1. App -> Kernel interactions ( Soft links, IPC, ... )
should be covered.
2. Display driver model, miniport driver.
Any Recommendations will be appriciated.
John. Tag: Is it possible to support DMTT_BITMAP Tag: 38547
QUERY_REMOVE_DEVICE notification
I get query_remove_device notification in my 1394 device driver. But I
am not getting it in my application. I get DEVICE_REMOVE_COMPLETE and
add_device, both to my driver and application.
This is how I registered for 1394 device change notifications in
Application code.
devBroadcastInterface.dbcc_size =
sizeof(DEV_BROADCAST_DEVICEINTERFACE);
devBroadcastInterface.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
devBroadcastInterface.dbcc_name[0] = 0;
devBroadcastInterface.dbcc_classguid = t1394DiagGUID;
hNotify = RegisterDeviceNotification( SharedData->g_hWnd,
&devBroadcastInterface,
DEVICE_NOTIFY_WINDOW_HANDLE );
In my driver, I am simply passing the Irp down the stack for Query
with success in status. Should I do something here.
1. I want to receive notification of 1394 devices to all devices in
the 1394 network.
2. How can I get a notification in App *before* driver receives
QUERY/IRP_MN_REMOVE_DEVICE.
3. I also want to know if how I can get DBT_DEVICEREMOVEPENDING in
application so that application do some clearing before device is
removed, if possible. Will this notification come even for
surprise_remove.
Thanks. Tag: Is it possible to support DMTT_BITMAP Tag: 38540
why IoCompleteRequest
DDK explaining IoMarkIrpPending explains:
" Unless an IRP's dispatch routine completes the IRP (by calling
IoCompleteRequest) or passes the IRP on to lower drivers, it must call
IoMarkIrpPending with the IRP. Otherwise, the I/O Manager attempts to
complete the IRP as soon as the dispatch routine returns control. "
I understand when to call IoMarkIrpPending. What I didnot understand
is why to call Irp pending. I also *understand* IoCompleteRequest is
something like saying to IoManager " Thanks, I am done. Now I return
back Irp to you".
(Consider a simple case where application sends Irp to top most driver
and top most driver has to handle it and no other lower driver bothers
to know this Irp.)
1. I think IoManager should not touch our Irp (once passed to us)
unless we pass it to next layer in IoCallDriver or unless we complete
Irp. I am curious to know why this is not the case. Why IoManager
bothers to monitor Irp(even if I didnot say 'I am done' with Irp)
after returning from dispatch routine. I agree that it makes sense for
IoManager to look into Irp if I said 'I am done, go ahead'.
2. I know (1) is wrong assumption, then I think we dont have to call
IoCompleteRequest in dispatch routine because if I handle/process the
Irp and return from dispatch routine(without passing down and without
calling IoCompleteRequest), *anyway* IoManager will complete because I
didnot call IoMarkIrpPending.
Thanks for comments. Tag: Is it possible to support DMTT_BITMAP Tag: 38538
Installation of non-PNP legacy serial devices?
Some time ago, I wrote a filter driver for a legacy game
device, the Spacetec SpaceOrb 360. It relied on the serial
PNP system and installed itself based on the detected
device (similar to, I think, the mouser example).
Unfortunately, after release I discovered that many older
models of this device are NOT detected by XP on initial
boot. The initial driver worked OK, it just couldn't be
installed because XP never asked for the driver.
My first attempts at fixing this got out of hand quickly (I
installed an enumeration driver that latched into the port
enumeration system, grabbed new ports, queried them for the
device, and released them if it didn't exist). It worked
well but was way too complicated and also had the minor
problem of totally locking up the system when the device
was unplugged.
I want this to be as simple as possible. Are there
examples out there of how to force installation of a legacy
device onto an existing serial port? I want the user to be
able to say "I have this device on COM1:" and install it
there without relying on PNP to find the settings (it
should still work the PNP way, though...).
-->VPutz Tag: Is it possible to support DMTT_BITMAP Tag: 38536
64 bit WHQL Test Machine
If I were going to support a 64bit driver, what should I look for in a test
machine to pass Win2k3 Server logo (WHQL) testing? I am assuming I need a
4proc, 6GB, and support all three sleep states (S1, S3, and S4). Anyone want
to suggest a machine to use? Tag: Is it possible to support DMTT_BITMAP Tag: 38533
Setting spooler options from INF
Hi,
Is there a way to set the spooler options from a printer's INF
installation file? Specifically, I want to set the driver so it prints
directly to the printer, avoiding the spooler (the equivalent of the
PRINTER_ATTRIBUTE_DIRECT flag in PRINTER_INFO_2).
Thanks,
Bob Alexander Tag: Is it possible to support DMTT_BITMAP Tag: 38532
MmMapLockedPagesSpecifyCache
I have another problem when i am trying to map the kernel memory to user mode the deviceioctl is returing the outputbuffer to "0" value.I have no clue what is going wrong.the driver is returning the MmMapLockedPagesSpecifyCache address correctly when i used the debug print
In the driver source
#define FIFO_BUFFER_MAX 104857
ExAllocatePoolWithTag(NonPagedPool,FIFO_BUFFER_MAX,'QPRI')
IoAllocateMdl(pBuffer,FIFO_BUFFER_MAX,FALSE,FALSE,NULL)
MmMapLockedPagesSpecifyCache(pMdl
UserMode
MmCached
NULL
FALSE
NormalPagePriority)
Application.c
The IOCTL call i used is METHOD BUFFERED and the stub is like this
bRet = DeviceIoControl(hDevice
HFP_TEST_IOCTL
NULL
0
pBuffer
sizeof(ULONG)
&dwRet
NULL)
the value of pBuffer is 0
please help me out is there anything wrong in the call i made to the driver
sa Tag: Is it possible to support DMTT_BITMAP Tag: 38531
Output Binary...
Hi ,
I wanted to know what is the binary for Monitor Driver..
When I installed Monitor driver for my Samsung SyncMaster
753s all I could notice was .pnf .inf and .icm file.. Does
Monitor Driver do not mean a .sys or .dll file ? Can you
tell me ? Actually I wanted to write functional driver for
my monitor.. I understand that writing funtional driver
for monitor is in other words writing a monitor driver..
So is it that monitor driver is just an .icm file ? If it
is so then if I want to write lower level class driver for
monitor class how do I do it ? My options are to write
either functional driver for monitor or lower level filter
driver for monitor..
Any help will be appreciated...
Thanks in advance...
Neel Tag: Is it possible to support DMTT_BITMAP Tag: 38528
passing miniport driver adapter context pointer to IRP
I am writing a NDIS miniport driver, and starts from the
DDK sample, Netvmini. I want to use the miniport driver
adapter context to store the state information and
incoming/outgoing packets. However, I do not know how IRP
(DeviceIoControl routines) can acess the adapter context.
I heard that I should store the adapter context pointer
under IRP->FileObject->FsContext when IRP_Create is run.
How can I do that? Should I store the context pointer
under the device extension of the device object created by
NdisMRegisterDevice?
Thanks,
Billy Ng. Tag: Is it possible to support DMTT_BITMAP Tag: 38525
Port Monitor disappears on reboot
Hello,
We are working on a custom port monitor (I've posted about it here
before).
It works mostly fine, except that on certain machines the port monitor
will disappear completely after a reboot. The DLL is still in
c:\windows\system32 and all the registry keys still exist.
This only seems to occur on systems with a certain motherboard, the
Asus A7V8X-X. Tag: Is it possible to support DMTT_BITMAP Tag: 38521
Hooking registry
Hi
I need to hook the registry from a driver for windows NT/2k/XP/2003
operating systems. I would prefer to have one driver for all OS, how can I
do it?
Thanks Tag: Is it possible to support DMTT_BITMAP Tag: 38520
GDI Driver Hooking???
Hi,
Introduction:
*************
I am writing a mirror driver based on the sample brougth with the WinXP DDK,
I am able to get the GDI events and record them.
The Problem/Question:
********************
I need to 'playback' the recorded hook events, what is the best way to do
that? should I create a soft-link to the driver through which the
pre-recorded hook event will be send to the driver? is there any other
preperable way ?
Thanks,
Nadav. Tag: Is it possible to support DMTT_BITMAP Tag: 38518
Certification of Network devices.
Do the Network device tests (for a Wireless LAN NIC) need to be run on a
multiprocessor PC ?
The 11.2 HCT seems to be testing for this (we get an error from one of the
tests that says that a multiprocessor PC has to be used). I recall
discussions that the multiprocessor requirement was eliminated and that
nework devices (NICs in particular) could be certified on single processor
PCs.
Thanks in advance for your help.
--
---
Larry Cawley
CreativeMedia Software Solutions, Inc.
lcawley@CreativeMediaSoftware.com
www.CreativeMediaSoftware.com
636 458 1462 Tag: Is it possible to support DMTT_BITMAP Tag: 38517
Exe in WinDbg???
Hi.
Iam doing a load test for my drivers. After some 30 mins the system crashes
with the info. KMODE_EXCEPTION_NOT_HANDLED.
Iam trying to analyse the crash dump. It doesn't search for the Executable
path.
I have the same Symbol files in server and the test machine...
When I tried to open the Dump in WinDbg.. It shows the following.
/*************** WinDbg ************************************/
Loading Dump File [C:\dumps\MEMORY.DMP]
Kernel Summary Dump File: Only kernel address space is available
Symbol search path is: c:\winnt\symbols
Executable search path is:
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
ntkrnlmp.exe -
Windows 2000 Kernel Version 2195 (Service Pack 4) MP (4 procs) Free x86
compatible
Product: Server
Kernel base = 0x80400000 PsLoadedModuleList = 0x80484520
Debug session time: Mon Jan 12 16:12:58 2004
System Uptime: 0 days 0:02:30.875
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
ntkrnlmp.exe -
Loading Kernel Symbols
.................................Page a858 not present in the dump file.
Type ".hh dbgerr004" for details
........................................................
Loading unloaded module list
/**************** WinDbg*************************************/
What exe does WinDbg is searching for??? why it takes the default
ntkrnlmp.exe.
I have the same Symbol files in server and the test machine...
Anand. Tag: Is it possible to support DMTT_BITMAP Tag: 38514
shutdown problem after call ExitWindiowsEx
My working program is a BIOS flash utility.
It should be shutdown normally(call ExitWindowsEx) after the program flash
the BIOS.
But, if I put a audio CD in DVD-ROM player, it sometimes will be hang up
when screen show ".... is shuting down"
If I disable DVD-ROM player in device manager, the problem wont be ocurred
again.
I am a beginner, maybe I can disable the DVD driver in my utility, but how
to do it ?
Thanks a lot if you have any idea.
--Jacob Tag: Is it possible to support DMTT_BITMAP Tag: 38512
Resources Conflict
Hi,
Currently I'm trying to develop a driver for a bridge chip
(PCI-VME bus) on a SBC. So first I installed W2k, and of
course the system asks for a driver for this non-common
hardware (which is Pnp compatible). The problem is that
it has some resources conflict with another chip, so when
I install my basic driver I can not get to the point where
I start the device. Is this a problem of hardware?? or
can this problem be solved by software?? and how??
Thanks in Advance!! Tag: Is it possible to support DMTT_BITMAP Tag: 38509
About Driver pack
I want to know how to pack the printer driver.
My driver include following files:
Win9x/XXX.INF,XXX.DRV
Win2K/XXX.INF,XXX.GPD,XXX.DLL
Thanks. Tag: Is it possible to support DMTT_BITMAP Tag: 38506
switch on the parallel port's ECP Mode within a Printer UNIDRV
How can I switch on the parallel port's ECP-mode in a
printer driver(based on UNIDRV) language or port monitor?
Thanks for your support
Timo Klaemt Tag: Is it possible to support DMTT_BITMAP Tag: 38505
USB driver for Bulk Devices
I am using the USB driver for bulk devices given by
Microsoft that comes along with NTDDK. The name is
BulkUSB.sys.
Question 1. Does that support multiple devices
Question2.
I plug in a bulk transfer device. The device is detected
by windows. When I plug out the device, the plug and play
manager pops up notifying of the unsafe removal.
In another case I plug in two or more of such devices.
And when I plug out or try to do a safe removal from the
plug and play manager, windows crashes.. or I'm shown a
blue screen.
Is there any fix for the driver. Or Is there any
modification that needs to be done in the driver sample.
pls help. Tag: Is it possible to support DMTT_BITMAP Tag: 38504
How to expose new device nodes
Hi All
I have to write a usbccgp.sys like driver ie which
exposes new device nodes for a composite usb device ie we
have to assign a separate PDO to each function of a
composite device.
How do I proceed ?
Thanks in advance
Marlene Tag: Is it possible to support DMTT_BITMAP Tag: 38503
Check Irp->PendingReturned in IoComplete routine
In IoComplete routine, sometimes it check Irp->PendingReturned
and call IoMarkIrpPending if the flag is set.
Is there any rule for this?
According to DDK document, it says....
=================================================================
Any driver that sets an IoCompletion routine in an IRP and then passes
the IRP down to a lower driver should check the IRP->PendingReturned
flag in the IoCompletion routine. If the flag is set, the IoCompletion
routine
must call IoMarkIrpPending with the IRP. Note, however, that a driver that
passes down the IRP and then waits on an event should not mark the IRP
pending.
=================================================================
However, bulk usb sample code in DDK.
In IoComplete routine of set device power up, FinishDevPoUpIrp, it checks
Irp->PendingReturned and call IoMarkIrpPending if flag is set.
In IoComplete routine of set device power down, FinishDevPoDnIrp, it doesn't
check this flag. Why???
Does it have something to do with IoCompete's return value?
Best Regards
Jackal Huang Tag: Is it possible to support DMTT_BITMAP Tag: 38501
SMBIOS
Hi,
How do i access SMBIOS interfaces from Windows APIs.I
want to access both the read and write APIs of SMBIOS so
that i can do I/O operations on the BIOS "on the fly" from
an application.Can somebody help me on this.
Thanks in Advance,
Shyam. Tag: Is it possible to support DMTT_BITMAP Tag: 38500
Multi Processor
1. Does Windows see Hyper Threading as computer with
multi processor?
2. Are there any waysthat u can detect if the computer
has multi processor?
Ken Tag: Is it possible to support DMTT_BITMAP Tag: 38498
FakeModem sample
Hello,
Does anyone have any experience with the FakeModem sample?
I wanted to start experimenting with a modem driver and I thought I would try compiling and playing with the FakeModem example found in C:\WINDDK\2600.1106\src\network\modem\fakemodem. I made no changes to the code, just compiled and installed. I then fired up HyperTerminal--and nothing. Not a thing.
Are there any other modem samples somewhere that I could look at?
Thanks
Jim Tag: Is it possible to support DMTT_BITMAP Tag: 38483
Firmware files location
My driver need to write the hardware firmware files every time it starts.
The files are a bit big ~100K uncompressed and ~60K compressed.
Where should my INF file store these files?
We prefer not to couple the firmware files with the driver since the driver
might manage different versions of the firmware.
Yariv. Tag: Is it possible to support DMTT_BITMAP Tag: 38479
ai, no download?
I was under the impression that the DDK could be downloaded somewhere?
Am I right? Can I write a driver just for the fun of it? Tag: Is it possible to support DMTT_BITMAP Tag: 38477
one question about IoGetDeviceObjectPointer
dear all:
Is ObjectName SymbolicName? In higher level driver,how can I get the ObjectName of the lower driver?
thanks a lot 1 Tag: Is it possible to support DMTT_BITMAP Tag: 38476
VIA VT8237 SATA drivers and Win server 2003 64
I have tried to install the new OS Windows server 2003 trial 64 on my pc
based on a GA-K8VNXP MB with VIA VT8237 south bridge chipset and two SATA
HDD .
During the installation the drivers for SATA RAID controller are requested
(on a floppy disk). I cannot find such drivers. Does anybody knows where
these drivers can be found?
Thank you.
Alessandro from Italy
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.556 / Virus Database: 348 - Release Date: 26/12/2003 Tag: Is it possible to support DMTT_BITMAP Tag: 38475
Driver install without windows ?
Excuse the dumb question but how would I install drivers for my cd-rom
without using windows ? Some kind of dos command I'm guessing. I have
this p3 presario with no OS installed and need to install my cd-rom in
order to install windows ( I have the drivers, but no way to input them)
Thanks
BErt Tag: Is it possible to support DMTT_BITMAP Tag: 38468
monitor driver
I'm,trying to change my color settings. The problem seems
to be with the driver. How can I locate the proper driver
for my monitor Tag: Is it possible to support DMTT_BITMAP Tag: 38465
Penidng IOCTL
The IRP Pending IOCTL is taking longer time to return.please help me out.
thanks
sai Tag: Is it possible to support DMTT_BITMAP Tag: 38464
GDI_DRIVER Driver compilation with VS7.1 IDE
Hi,
Introduction:
**********
I am writing a display mirror driver, I am trying to use the VS7.1 (.NET)
IDE to compile the driver, conversion to an .vsproj solution is done by the
'Source to DSP converter' app provided with 'SoftIce driver suit'.
The Problem:
**********
The mirror is build of to files: the miniport driver and the display driver,
no problems has occurred converting compiling and using the miniport driver,
in contrast, conversion of the display driver failed: the 'Source to DSP
converter' doesn't support GDI_DRIVER conversions, SO..., I tried to do some
tricks: I have changed the TARGETTYPE of the GDI_DRIVER to DRIVER and then
used the 'Source to DSP converter' with the new source file, the result was
a new .vsproj compiling a .sys driver I have changed the name of the driver
to be .dll and removed the 'DriverEntry' DLL entry point from the project
configuration, still, using the new driver causes an 'Unhandled kernel mode
exception', using the display driver compiled by the 'source' makefile works
fine and doesn't reproduce this problem, what may cause the problem? what
went wrong during the 'Source to DSP converter' conversion? what special
configurations are required for a GDI driver?
Should there be any specific entry point to a GDI_DRIVER?
Thanks in advance,
Nadav, Tag: Is it possible to support DMTT_BITMAP Tag: 38463
PNP Manager
I have developed a failover driver for a fibre channel
medium changer device on Windows 2000 that is tightly
dependent on the PNP Manager. When I pull the cable out
of my hardware, one of my Win/2K systems immediately
rescans the bus without any intervention on my part,
notifies Device Manager of a hardware change, and sends
IRP_MN_SURPISE_REMOVAL to my driver.
I have another Windows system on which the rescan does
not automatically take place. On that system I have to
use device manager to manually "Scan for hardware
changes" before the surprise removal notification will
happen.
In order for this driver to work, the scan needs to
happen automatically. How do I get this to happen? Does
it depend on Windows or on the fibre channel adapter card
and its driver? Tag: Is it possible to support DMTT_BITMAP Tag: 38462
Hi ,want some tips about the report descriptor of a HID device,thankyou
Hi,now the HID device can be write ,but not read ,and app is
following:
Result = ReadFile (ReadHandle,
InputReport,
Capabilities.InputReportByteLength,
&NumberOfBytesRead,
(LPOVERLAPPED) &HIDOverlapped);
cout<<"ReadFile: "<<GetLastError()<<endl ;
GetLastError's return is always TIMEOUT.I think that it is something
wrong in the firmware,but I cannot find them out ,hope some tips ,the
following is the report descriptor:
PS: Createfile and Writefile are normal.
DSCR_DEVICE equ 1;; Descriptor type: Device
DSCR_CONFIG equ 2;; Descriptor type: Configuration
DSCR_STRING equ 3;; Descriptor type: String
DSCR_INTRFC equ 4;; Descriptor type: Interface
DSCR_ENDPNT equ 5;; Descriptor type: Endpoint
ET_CONTROL equ 0;; Endpoint type: Control
ET_ISO equ 1;; Endpoint type: Isochronous
ET_BULK equ 2;; Endpoint type: Bulk
ET_INT equ 3;; Endpoint type: Interrupt
public DeviceDscr, ConfigDscr, StringDscr, UserDscr, HIDDscr,
ReportDscr, ReportDscrEnd
DSCR SEGMENT CODE
;;-----------------------------------------------------------------------------
;; Global Variables
;;-----------------------------------------------------------------------------
;; Note: This segment must be located in on-part memory.
rseg DSCR;; locatethedescriptortableanywherebelow 8K
DeviceDscr:db deviceDscrEnd-DeviceDscr;; Descriptor length
db DSCR_DEVICE ;; Decriptor type
dw 1001H ;; Specification Version (BCD)
db 00H ;; Device class
db 00H ;; Device sub-class
db 00H ;; Device sub-sub-class
db 40H ;; Maximum packet size
dw 0B404H ;; Vendor ID
dw 0255H ;; Product ID
dw 0100H ;; Product version ID
db 1 ;; Manufacturer string index
db 2 ;; Product string index
db 0 ;; Serial numberstring index
db 1 ;; Number of configurations
deviceDscrEnd:
ConfigDscr:db ConfigDscrEnd-ConfigDscr;; Descriptor length
db DSCR_CONFIG ;; Descriptor type
db StringDscr-ConfigDscr;;Configuration+EndPoints length
(LSB)
db (StringDscr-ConfigDscr)/256;;Configuration +
EndPointslength(MSB)
db 1 ;; Number of interfaces
db 1 ;; Interface number
db 0 ;; Configuration string
db 10000000b;; Attributes (b7 - buspwr, b6 - selfpwr, b5 -
rwu)
db 0FAH ;; Power requirement (div 2 ma)
ConfigDscrEnd:
IntrfcDscr:
db IntrfcDscrEnd-IntrfcDscr;; Descriptor length
db DSCR_INTRFC ;; Descriptor type
db 0 ;; Zero-based index of this interface
db 0 ;; Alternate setting
db 2 ;; Number of end points
db 03H ;; Interface class (HID)
db 00H ;; Interface sub class
db 00H ;; Interface sub sub class
db 05H ;; Interface descriptor string index
IntrfcDscrEnd:
HIDDscr:
db 09h ;; length
db 21h ;; type: HID
dw 1001h ;; release: HID class rev 1.1
db 00h ;; country code (USA)
db 01h;; number of HID class descriptors tofollow
db 22h ;; report descriptor type (HID)
db (ReportDscrEnd-ReportDscr);;lengthofHID descriptor
db 00h
HIDDscrEnd:
Ep1InDscr:
db Ep1InDscrEnd-Ep1InDscr;; Descriptor length
db DSCR_ENDPNT ;; Descriptor type
db 81H ;; Endpoint number, and direction
db ET_INT ;; Endpoint type
db 40H ;; Maximum packet size (LSB)
db 00H ;; Max packet size (MSB)
db 1 ;; Polling interval (ms)
Ep1InDscrEnd:
Ep2OutDscr:
db Ep2OutDscrEnd-Ep2OutDscr;; Descriptor length
db DSCR_ENDPNT ;; Descriptor type
db 02H;; Endpoint number, and direction
db ET_INT ;; Endpoint type
db 40H ;; Maximum packet size (LSB)
db 00H ;; Max packet size (MSB)
db 1 ;; Polling interval (ms)
Ep2OutDscrEnd:
ReportDscr:
db 06h, 0A0h, 0FFh ;; Usage Page (FFA0H = vendor defined)
db 09h, 01h ;; Usage (vendor defined)
db 0A1h, 01h ;; Collection (Application)
;; The input report
db 09h, 01h ;; Usage (vendor defined)
db 15h, 00h ;; Logical minimum (0)
db 25h, 0FFh ;; Logical maximum (255)
db 75h, 08h ;; Report size (8 bits)
db 95h, 40h ;; Report count (64 fields)
db 81h, 02h;; Input (Data, variable, absolute)
;; The output report
db 09h, 02h ;; Usage (vendor defined)
db 75h, 08h ;; Report size (8 bits)
db 95h, 40h ;; Report count (64 fields)
db 91h, 02h;; Output (Data, Variable, Absolute)
;; The feature report
db 09h, 03h;; Usage Page (vendor defined)
db 75h, 08h ;; Report size (8 bits)
db 95h, 05h ;; Report count (5 fields)
db 0B1h, 02h;; Output (Data, variable, absolute)
db 0C0h ;; End Collection
ReportDscrEnd: Tag: Is it possible to support DMTT_BITMAP Tag: 38457
Hi ,want some tips about the report descriptor of a HID device,thankyou
Hi,now the HID device can be write ,but not read ,and app is
following:
Result = ReadFile (ReadHandle,
InputReport,
Capabilities.InputReportByteLength,
&NumberOfBytesRead,
(LPOVERLAPPED) &HIDOverlapped);
cout<<"ReadFile: "<<GetLastError()<<endl ;
GetLastError's return is always TIMEOUT.I think that it is something
wrong in the firmware,but I cannot find them out ,hope some tips ,the
following is the report descriptor:
PS: Createfile and Writefile are normal.
DSCR_DEVICE equ 1;; Descriptor type: Device
DSCR_CONFIG equ 2;; Descriptor type: Configuration
DSCR_STRING equ 3;; Descriptor type: String
DSCR_INTRFC equ 4;; Descriptor type: Interface
DSCR_ENDPNT equ 5;; Descriptor type: Endpoint
ET_CONTROL equ 0;; Endpoint type: Control
ET_ISO equ 1;; Endpoint type: Isochronous
ET_BULK equ 2;; Endpoint type: Bulk
ET_INT equ 3;; Endpoint type: Interrupt
public DeviceDscr, ConfigDscr, StringDscr, UserDscr, HIDDscr,
ReportDscr, ReportDscrEnd
DSCR SEGMENT CODE
;;-----------------------------------------------------------------------------
;; Global Variables
;;-----------------------------------------------------------------------------
;; Note: This segment must be located in on-part memory.
rseg DSCR;; locatethedescriptortableanywherebelow 8K
DeviceDscr:db deviceDscrEnd-DeviceDscr;; Descriptor length
db DSCR_DEVICE ;; Decriptor type
dw 1001H ;; Specification Version (BCD)
db 00H ;; Device class
db 00H ;; Device sub-class
db 00H ;; Device sub-sub-class
db 40H ;; Maximum packet size
dw 0B404H ;; Vendor ID
dw 0255H ;; Product ID
dw 0100H ;; Product version ID
db 1 ;; Manufacturer string index
db 2 ;; Product string index
db 0 ;; Serial numberstring index
db 1 ;; Number of configurations
deviceDscrEnd:
ConfigDscr:db ConfigDscrEnd-ConfigDscr;; Descriptor length
db DSCR_CONFIG ;; Descriptor type
db StringDscr-ConfigDscr;;Configuration+EndPoints length
(LSB)
db (StringDscr-ConfigDscr)/256;;Configuration +
EndPointslength(MSB)
db 1 ;; Number of interfaces
db 1 ;; Interface number
db 0 ;; Configuration string
db 10000000b;; Attributes (b7 - buspwr, b6 - selfpwr, b5 -
rwu)
db 0FAH ;; Power requirement (div 2 ma)
ConfigDscrEnd:
IntrfcDscr:
db IntrfcDscrEnd-IntrfcDscr;; Descriptor length
db DSCR_INTRFC ;; Descriptor type
db 0 ;; Zero-based index of this interface
db 0 ;; Alternate setting
db 2 ;; Number of end points
db 03H ;; Interface class (HID)
db 00H ;; Interface sub class
db 00H ;; Interface sub sub class
db 05H ;; Interface descriptor string index
IntrfcDscrEnd:
HIDDscr:
db 09h ;; length
db 21h ;; type: HID
dw 1001h ;; release: HID class rev 1.1
db 00h ;; country code (USA)
db 01h;; number of HID class descriptors tofollow
db 22h ;; report descriptor type (HID)
db (ReportDscrEnd-ReportDscr);;lengthofHID descriptor
db 00h
HIDDscrEnd:
Ep1InDscr:
db Ep1InDscrEnd-Ep1InDscr;; Descriptor length
db DSCR_ENDPNT ;; Descriptor type
db 81H ;; Endpoint number, and direction
db ET_INT ;; Endpoint type
db 40H ;; Maximum packet size (LSB)
db 00H ;; Max packet size (MSB)
db 1 ;; Polling interval (ms)
Ep1InDscrEnd:
Ep2OutDscr:
db Ep2OutDscrEnd-Ep2OutDscr;; Descriptor length
db DSCR_ENDPNT ;; Descriptor type
db 02H;; Endpoint number, and direction
db ET_INT ;; Endpoint type
db 40H ;; Maximum packet size (LSB)
db 00H ;; Max packet size (MSB)
db 1 ;; Polling interval (ms)
Ep2OutDscrEnd:
ReportDscr:
db 06h, 0A0h, 0FFh ;; Usage Page (FFA0H = vendor defined)
db 09h, 01h ;; Usage (vendor defined)
db 0A1h, 01h ;; Collection (Application)
;; The input report
db 09h, 01h ;; Usage (vendor defined)
db 15h, 00h ;; Logical minimum (0)
db 25h, 0FFh ;; Logical maximum (255)
db 75h, 08h ;; Report size (8 bits)
db 95h, 40h ;; Report count (64 fields)
db 81h, 02h;; Input (Data, variable, absolute)
;; The output report
db 09h, 02h ;; Usage (vendor defined)
db 75h, 08h ;; Report size (8 bits)
db 95h, 40h ;; Report count (64 fields)
db 91h, 02h;; Output (Data, Variable, Absolute)
;; The feature report
db 09h, 03h;; Usage Page (vendor defined)
db 75h, 08h ;; Report size (8 bits)
db 95h, 05h ;; Report count (5 fields)
db 0B1h, 02h;; Output (Data, variable, absolute)
db 0C0h ;; End Collection
ReportDscrEnd: Tag: Is it possible to support DMTT_BITMAP Tag: 38456
usb with ohci?..any simple tutorials?..code?
Howdy all,
well I was wondering if anyone had come across some really simple...but
good tutorials on the ohci specification with code...and how to use it with
a usb device...very low level stuff...for example mapping to the registers
in memory ...testing for bits...and with simple code examples that would
explain why......not working through the os though...a kernel driver
possible...like that is done in linux :)
Thanx for any help :)
Ben Tag: Is it possible to support DMTT_BITMAP Tag: 38453
CMOS sensor - USB Trust 120 Spacec@m Webcam
Hello.
Can someone tell me the name/model of the CMOS sensor in
the above webcam? Or an hint on how to retrieve it?
I don't have datasheets. Trust and Google don't help.
The name is not written on the hardware.
I analyzed the drivers for windows
(40 MB of zipped shit for just a driver..hu..): nothing
The only information is the it has 28 pins: **nothing** more.
Any idea would be much appreciated.
Thanks in advance. Tag: Is it possible to support DMTT_BITMAP Tag: 38441
HCT 11.2 - TestImports Problem
Can someone help me understand what this error means:
ERROR: 71: Public Imports Test failed to run, TestImports function call
failed.
This is from a run of HCT with an NDIS IM driver. What's odd is the NDISTEST
1c_KernelCalls passes (I assume that TestImports checks for invalid kernel
calls from an NDIS driver).
Also, the driver is not binary compatible (it's only used for XP). Would
that cause this problem. Tag: Is it possible to support DMTT_BITMAP Tag: 38439
HCT 11.2 - TestDrivers failure
Can someone help me understand what this error means:
ERROR: 71: Signability Test failed to run, TestDrivers function call failed.
This is from a run of HCT with an NDIS IM driver. Also, the driver is not
binary compatible (it's only used for XP). Would that cause this problem. Tag: Is it possible to support DMTT_BITMAP Tag: 38438
Service Name Issues With CheckInf
I get the following error with checkinf from Windows 2003 DDK:
Line 77: ERROR: (E22.1.1014) Service Net6IM already using binary
$WinDir$\system32\drivers\net6im50.sys.
This is odd since I am using the same service for both W2K and XP
installations. However, I've added a target OS version in the Manufacturer
section and am using separate NDI's for the OSs that the inf is used on.
Is this a WHQL requirement that different services must be used on different
OSs or is this a problem with the chkinf tool? Tag: Is it possible to support DMTT_BITMAP Tag: 38437
AVSTREAM and Power Management
Hi,
Is there any pointer on how to implement Power management in a Avstream minidriver
I have a video capture device that causes the machine to hang when it tries to resume from Standby. The device is USB2.0 compliant Tag: Is it possible to support DMTT_BITMAP Tag: 38431
ExtEscape directly to video miniport
Is it possible to do a createdc on a video miniport driver(.sys) and send it
escapes, or do i have to connect to the display driver(.dll) and send it
escapes?
Thanks a million
Brian Tag: Is it possible to support DMTT_BITMAP Tag: 38429
Hello
Is it possible for printer drivers to support DMTT_BITMAP as the value of dmTTOption in Windows 2000 using Unidrv