Help on NDIS WDM (USB) Miniport for Win9x
Hello Everyone,
I am writing NDIS-WDM Miniport Driver for my USB Network Device. I have
the sample code from Eliyas.
I am able to understand the Win2k/XP way of NDIS-WDM as NDIS5.x supports
built-in NDIS-WDM functionality.
I want to understand what additions or changes required for making the
NDIS-WDM (USB) miniport driver work on Win98/Me.
Thanks in advance for the great help.
Best Regards,
GNRaj Tag: hibernate & WM_POWERBROADCAST Tag: 35831
Creation of a file on Win ME OS
I used ZwCreateFile to create a file in Win ME OS. I got a
blue screen saying Windows Protection Error. According to
Walter Oney ZwXXX routines are not supported by Win 9x and
if used an error similar to what I have got will be seen.
Is there any other way to create a file in kernel mode on
Win ME OS? Tag: hibernate & WM_POWERBROADCAST Tag: 35828
PCMCIA Window Access Speed Wait
Hello, I have a PCMCIA card that uses i/o window and I
need to specify window access speed to use the wait
signal. I wonder if anyone has any idea how I can specify
this in my driver. Thanks.
Regards,
Wei Wei Tag: hibernate & WM_POWERBROADCAST Tag: 35827
Do GCAPS_VECTORFONT and GCAPS_HIGHRESTEXT work, and if so how?
Neither of these seem to function, at least on Win2K they
don't. No matter if GCAPS_VECTORFONT is set the vector
fonts always come through DrvStrokePath instead. And even
if GCAPS_HIGHRESTEXT is set the coordinates for placement
are just as LONGs, not at FIX resolution.
Regards,
Joe Hindmarsh Tag: hibernate & WM_POWERBROADCAST Tag: 35820
Please help with this crashdump
This crash dump is my only lead (for now)
I don't understand it. Where is the instruction pointer, it seems to be 0.
And virtually there is no stack trace because the first frame is not found
If you can understand any of this please help out :)
1: 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: 00000000, memory referenced
Arg2: 00000002, IRQL
Arg3: 00000000, value 0 = read operation, 1 = write operation
Arg4: 00000000, address which referenced memory
Debugging Details:
------------------
READ_ADDRESS: 00000000
CURRENT_IRQL: 2
FAULTING_IP:
+0
00000000 ?? ???
DEFAULT_BUCKET_ID: DRIVER_FAULT
BUGCHECK_STR: 0xD1
LAST_CONTROL_TRANSFER: from f6100b6c to 00000000
STACK_TEXT:
f38a0b74 f6100b6c 86278008 8627df58 8627dfb8 0x0
WARNING: Stack unwind information not available. Following frames may be
wrong.
f38a0ba4 f60f7385 858dfc48 00000011 f38a0bd4 fwdrv+0xcb6c
f38a0bb4 f60f5d25 858dfc48 864b0a08 864acca8 fwdrv+0x3385
f38a0bd4 f60f5d7e 864067e8 f38a0bec f60f639b fwdrv+0x1d25
f38a0be0 f60f639b 864067e8 f38a0bfc f60f5116 fwdrv+0x1d7e
f38a0bec f60f5116 864067e8 00000139 f38a0c14 fwdrv+0x239b
f38a0bfc f60f68de 864067e8 00000139 f38a0c94 fwdrv+0x1116
f38a0c14 f60f6c28 86585210 00000020 0000000e fwdrv+0x28de
f38a0c30 f60f6d76 864b3af0 86585210 f38a0c64 fwdrv+0x2c28
f38a0c40 804eb3c1 864b3af0 86585210 806bb2cc fwdrv+0x2d76
f38a0c50 805644d2 86585280 8652e0e0 86585210 nt!IopfCallDriver+0x31
f38a0c64 805651f6 864b3af0 86585210 8652e0e0
nt!IopSynchronousServiceTail+0x5e
f38a0d00 8055e288 000000a4 00000000 00000000 nt!IopXxxControlFile+0x5a6
f38a0d34 805306a4 000000a4 00000000 00000000 nt!NtDeviceIoControlFile+0x28
f38a0d34 7ffe0304 000000a4 00000000 00000000 nt!KiSystemService+0xc9
00f1ddbc 00000000 00000000 00000000 00000000
SharedUserData!SystemCallStub+0x4
FAILED_INSTRUCTION_ADDRESS:
+0
00000000 ?? ???
FOLLOWUP_IP:
fwdrv+cb6c
f6100b6c 8945f8 mov [ebp-0x8],eax
FOLLOWUP_NAME: MachineOwner
SYMBOL_NAME: fwdrv+cb6c
MODULE_NAME: fwdrv
IMAGE_NAME: fwdrv.sys
DEBUG_FLR_IMAGE_TIMESTAMP: 3cbaab4f
STACK_COMMAND: kb
BUCKET_ID: 0xD1_CODE_AV_BAD_IP_fwdrv+cb6c
Followup: MachineOwner
--------- Tag: hibernate & WM_POWERBROADCAST Tag: 35809
hibernate & WM_POWERBROADCAST
Hi,
is anyone can suggest how can i open an entry for os that
can enter and observe if i permit to activate a hibernate
or i deny hibernate activation??
Thanks Tag: hibernate & WM_POWERBROADCAST Tag: 35806
print spooler driver
PLEASE HELP every time i try to install my printer i get
a message saying PRINT (SPOOL DRIVER STOPPED) AND THEN IT
SAYS DO YOU WANT TO START DRIVER Y/N when i press the
yes nothing happens .
so i went into the drivers and tryed to start it but
cant ! because one of its dependeces is ether stopped or
up for deletion, but all are running
PLEASE HELP
THANKS Tag: hibernate & WM_POWERBROADCAST Tag: 35805
Question: about hard drive serial numbers?
hello,
Does anybody know if there API or COM objects available to access the serial
number of hard drives? The volume management functions appear to be specific
just for the label :-(
thank you in advance.
beth Tag: hibernate & WM_POWERBROADCAST Tag: 35803
Device Driver Hard Drive emulation
Hi
I hope this is the right place to ask this. I have a
client with a collection of operating systems, one of
which is an AS400, and I would like to right a bit of
software that would allow a windows machine
(98/ME/2000/XP they have a whole collection) to think
that it has a hard drive, but it is in fact a network
type of share. Do I need the DDK to do this, and what
would be the best approach, writing it so that it could
use the "map drive" type interface, or do a hard drive
emulator, must like Deamon does with CD-rom drives?
Any help and pointers in the right directions would be
greatly appreciated. Are there any Books on the subject
etc.
Thanks
Vaughan Tag: hibernate & WM_POWERBROADCAST Tag: 35802
ULTRA DMA 4 & 5 Crashes my XP system
This is a multi-part message in MIME format.
------=_NextPart_000_0046_01C3ABA9.E17DDA10
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Nature
Hi all genius people,
I spent many night hours trying to figure out why my promise Ultra DMA =
HD (SeaGate and Maxtor) always seemed to crash when doing intensive File =
transfer over the network. Replacing the Ultra.sys XP or 2000 driver =
won't help me at all. If I transferred files between HD in the same =
system thing is ok. Already changed the network cards, all kinds of =
cards to see if a particular network card might be using too much DMA =
timing, that didn't seem to solve my problem.
I am not developing a driver, I am trying to keep my system from locking =
up. There is no dump file to look at when the problem occurred. Any one =
knows what could be my problem?=20
I appreciate if you can share what you know to solve this problem.
Thanks a million,
Ramboi
------=_NextPart_000_0046_01C3ABA9.E17DDA10
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE id=3DridTitle>Nature</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252"><BASE=20
href=3D"file://D:\Program Files\Common Files\Microsoft =
Shared\Stationery\"><%@ Language=3DVBScript%>
<SCRIPT language=3Djavascript id=3DDebugDirectives runat=3D"server">
// Set these to true to enable debugging or tracing
@set @debug=3Dfalse
@set @trace=3Dfalse
</SCRIPT>
<% ' VI 6.0 Scripting Object Model Enabled %><!--#include =
file=3D"_ScriptLibrary/pm.asp"--><% if StartPageProcessing() Then =
Response.End() %>
<FORM name=3DthisForm method=3Dpost>
<STYLE><!-- body { font-family: Trebuchet MS, Verdana; font-size: 10pt; =
color: #333399; margin-top: 5px; margin-left: 30px; } img { margin-top: =
5px; margin-left: -30px; } --></STYLE>
<BGSOUND title=3D"Save from Ramboi Page" balance=3D0=20
src=3D"http://kams16.home.comcast.net/Cams16/thankyou.mid" volume=3D-190 =
loop=3D2>
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR></HEAD>
<BODY id=3DridBody bgColor=3D#ffffff background=3D"Nature =
Bkgrd.jpg"><IMG id=3DridImg=20
src=3D"anabnr2.gif" align=3Dbottom>
<P></P>
<DIV>Hi all genius people,</DIV>
<P>I spent many night hours trying to figure out why my promise Ultra =
DMA HD=20
(SeaGate and Maxtor) always seemed to crash when doing intensive File =
transfer=20
over the network. Replacing the Ultra.sys XP or =
2000 driver=20
won't help me at all. If I transferred files between HD =
in the=20
same system thing is ok. Already changed the network cards, =
all kinds=20
of cards to see if a particular network card might be using too much DMA =
timing,=20
that didn't seem to solve my problem.</P>
<P>I am not developing a driver, I am trying to keep my system from =
locking=20
up. There is no dump file to look at when the problem occurred. =
Any one=20
knows what could be my problem? </P>
<P>I appreciate if you can share what you know to solve this =
problem.</P>
<P>Thanks a million,</P>
<P>Ramboi</P><% ' VI 6.0 Scripting Object Model Enabled %><% =
EndPageProcessing() %></FORM></BODY></HTML>
------=_NextPart_000_0046_01C3ABA9.E17DDA10-- Tag: hibernate & WM_POWERBROADCAST Tag: 35796
Reboot without bluescreen
I am working with 1394 device driver over windows 1394 bus driver. I
kept night long testing for Isoch send requests. There was debugger on
a serial port.
My target PC rebooted sometime in the night. There was no bluescreen.
No error displayed on the debugger. If BSOD occurs, it should break
into my debugger which caught only one print regarding reboot
"Shutdown occured".
There are few prints before which suggest very strange pattern of
events occured. My "surprise remove" called. Later "Add Device". Again
"Surprise remove". Then later shutdown and no blue screen.
I am sure no one removed 1394 device cables. Is there any chance why
"Surprise remove" occured on its own.
If there is reboot without BSOD, how can I check.
How can I make windows always give me BSOD for error.
I even have "complete memory dump" set in recovery console.
This is not dumped even.
I also have driver verifier selected for my driver. Any clues ?
Everything worked as though I removed cable, connected it, again
removed and then restarted my PC..I dont think I came to lab in my
dream :)
Thanks. Tag: hibernate & WM_POWERBROADCAST Tag: 35791
device driver installation application in XP and Win9x
I need to write an application to install my WDM device driver. The user
will insert installation media before he plugs in the device. So when he
plugs in the device for the first time, the device installation will be
completely "silent".
1. For Windows XP, I followed the instructions in DDK. I use
"SetupCopyOEMInf" function to copy my INF file to %windir%\inf foler, and a
PNF file is generated too. However, when I plug in the device, the "New
Device Found Dialog" still pops up. According to DDK, this should not happen
if the PNF file is alreday generated. Is this because my driver is not
digitally signed?
2. For Windows 98 SE, the "SetupCopyOEMInf" dosen't work. Is there a way to
write a device driver installation program for Win9x/Me to install the
driver before the device is plugged in?
Thanks,
Zhen Tag: hibernate & WM_POWERBROADCAST Tag: 35789
driver recognition/windows 98SE
I am having problems with Windows 98 SE finding drivers
required to install a Creative Soundblaster Live 5.1
soundcard.Windows does not recognize the soundcard as
Creative Soundblaster, only as PCI sound/media.
Any help fixing this will be appreciated. Tag: hibernate & WM_POWERBROADCAST Tag: 35786
kernel mode to user mode
i want to port my kernel mode printer driver to user mode.
can u help in this regard.
thanks
-saurabh
. Tag: hibernate & WM_POWERBROADCAST Tag: 35781
kernel mode to user mode
i want to port my kernel mode printer driver to user mode.
can u help in this regard.
thanks
-saurabh Tag: hibernate & WM_POWERBROADCAST Tag: 35779
getting started
i have ordered the windows xp sp1 ddk, and i have a book
about the windows wdm and another about windows 2000
driver programming. i'm supposed to make a plotter driver
but i can't understand half of what is written in driver
source codes, what else do i need? any suggestions would
greatly help, oh and i don't have prior experience on
windows programming so please keep it simple, thanks!:)
fyi: i'm on a tight budget so anything for free is very
useful.:) Tag: hibernate & WM_POWERBROADCAST Tag: 35777
Driver hang after IRP_MN_START_DEVICE
Hi all, I have a PCMCIA card driver and it hangs at the
irp after the IRP_MN_START_DEVICE. I believe it is some
irp that queries the interface but my driver just simply
pass these irp down to the lower drivers. So I wonder
what is causing the hang?
What the irps after IRP_MN_START_DEVICE for?
Thanks Tag: hibernate & WM_POWERBROADCAST Tag: 35775
XP failing to enumerate HID devices
I am having problems getting some versions of XP to enumerate HID devices
(using the normal SetupDIxxxx functions). It is not just my code, or my
hardware, as I can't even get the standard DDK Hidclient example to
enumerate standard HID mice or keyboards on these machines.
The machines I am having trouble with are running "XP Professional Version
2002 Service Pack 1". I have tried to replicate this on other machines with
the same OS, but without success.
The devices are working perfectly, and appear in the device manager
correctly. I can even use Devcon to see them quite happily (using "Devcon
listclass hidclass").
Anyone else experienced this or have any ideas? .... it is causing me a real
headache as I've tried everything I can think of to get round it.
Adrian Taylor Tag: hibernate & WM_POWERBROADCAST Tag: 35754
What does 1394 bus driver ALLOCATE_ADDRESS_FLAGS_USE_COMMON_BUFFER flag mean?
I just encountered an undocumented value for the
u.AllocateAddressRange.fulFlags value in the Microsoft 1394 bus driver IRB
data structure, in the Windows XP DDK 1394.h file.
It is ALLOCATE_ADDRESS_FLAGS_USE_COMMON_BUFFER, with a value 0x2.
What does this mean? I can't find any documentation for it anywhere.
Thanks for any help.
-Charles Hanes Tag: hibernate & WM_POWERBROADCAST Tag: 35753
PCMCIA Registry settings for Win 2000
Where is the information for interpreting (and setting)
the registry entries for a PCMCIA device under Win 2000?
Is there a complete list of the req'd entries, optional
entries, etc?
Thanks
Larry D Tag: hibernate & WM_POWERBROADCAST Tag: 35749
Control Panel Extension
Can anyone point me to a _good_ resource of developing a control panel
extension? Any sample code perhaps? If not, am I on the right track with
IShellExtInit and IShellPropSheetExt and that this is a standard MFC dll?
What routines do I need to export, extend in order for this to run?
Thanks guys
--
Brian V. Minier
Interactive Imaging Systems, Inc
www.iisvr.com Tag: hibernate & WM_POWERBROADCAST Tag: 35744
link to opensource virtual com port driver ...
Hi
Thanks to those who replied to my post regarding help
with writing a virtual COM port driver. I am instead
using code from opensource project called
IrCOMM2k - a virtual COM port to Infrared driver
For those that are interested, you can find the project
at sourceforge.net/projects/ircomm2k
Regards
Fabio Tag: hibernate & WM_POWERBROADCAST Tag: 35735
MS iSCSI software initiator
Hi All
I am developing a SCSI port filter driver. This driver
works fine with other SCSI ports but there are some
problems when used with MS iSCSI software initiator.
When we send an SRB with SCSIOP_INQUIRY request to a SCSI
device through the port device, the port returns
STATUS_UNSUCCESSFUL (which does not explain the problem).
When we send the same request through the PDO that was
created for that specific SCSI device, it never returns.
It also does not return IOCTL_SCSI_PASS_THROUGH /
SCSIOP_INQUIRY requests.
Does the iSCSI initiator support SCSIOP_INQUIRY requests?
Why does it fail our requests?
Thanks,
Gregory Tag: hibernate & WM_POWERBROADCAST Tag: 35732
W2K3 ASR Restore With Non Native Supported Tape Drives?
Is it possible to make a ASR Restore on W2K3 Server with a
non native supported tape drive? Is there a way to load
my oem tape driver during the ASR Restore process?
I have no problem making the ASR Backup tape and floppy
but the tape drive is not recognized during ASR Restore
because it is natively supported (ASR Restore requires
W2K3 Server Install CD). I have no problem if the tape
drive is natively supported (tape drive listed in
tape.inf).
Thanks! Tag: hibernate & WM_POWERBROADCAST Tag: 35731
PCI Slot Expansion
I want to design a pci board which will expand one pci slot through a
pci-bridge and pci-local bus and get two slot. I wonder if there is
any driver problem? say i plug a audio card into the expanded slot?
thanks
Hui Tag: hibernate & WM_POWERBROADCAST Tag: 35730
where to find check build of wzcsvc.dll
Hi,
This might be the wrong newsgroup for this kind of question..
Using WinXp SP1 with WPA patch 815485.
Where can I find the check build of wzcsvc.dll (version 5.1.2600.1181)
msdn says that I am able to obtain check builds at msdn subscribers
download.
I browsed it and found Windows XP Professional with Service Pack 1a -
Checked/Debug - (English) from 11/4/2003 12:37:00 PM
my file (the not checked build) is from 10/3/2003 but before downloading
that one I would like to know that the file I am after is actually in this
package.
thanks
/Niklas Tag: hibernate & WM_POWERBROADCAST Tag: 35710
USB Port I/O
Hi,
I think microsoft does provides generic USB drivers. But I wonder how to
access USB ports from my C program ?
Is there any API's available for USB I/O ?? (...like one provided for Serial
Communication)
e.g. how do I enumerate number of USB Ports on my system programmatically ?
Or do we have to make a custom device driver for the same ?
Thanks & Regards,
Atur Shah Tag: hibernate & WM_POWERBROADCAST Tag: 35709
how to install a NT legacy driver to WIN2000 and WINXP?
I have developed a driver for a serial smartcard reader in WIN NT4.now I
want to develop one driver for the smartcardreader in WIN 2000 and WIN XP.I
have heard that the NT legacy driver directly controls the
hardware,however,in win 2000,Micrepsoft offers serial.sys and serenmum.sys
for serial.how can I directly control the hardware?
in a word ,what shall I do in order to install a NT legacy driver for a
serial smartcardreader in WIN 2000?The reader does not support PC98
specification,which means that it can not be enumed by serenum.sys,does not
support PNP.) Tag: hibernate & WM_POWERBROADCAST Tag: 35705
how to uninstall default driver and install my own?
I have to develop PCI card driver for our custom wireless card. My
role is to develop PCI device driver. As I do not have hardware
currently, I'm thinking of testing my driver using existing network
card - RTL8139(A) fast Ethernet.
To do above, I uninstall driver provided by Microsoft. And When I
restart the PC for installing my driver, default driver is installed
again already. I went to registry also and made changes, but without
any advantages.
Could somebody pour some light on how to uninstall default driver and
install my own?
TIA,
Sanjeev Tag: hibernate & WM_POWERBROADCAST Tag: 35700
viky@tridentinfosol.com
hello
i have a pci device,in which a particular bit in the
control register is meant for interrupt enable.
On interrupt enable i get interrupt. So i am supposed to
clear the interrupt.
i have few basic doubts
what would happen when next interupt is generated &
previous interrupt is still pending??
System hangs!! what this indicates.
How is the interrupt handling taken place internally??
any suggestion is appreciated.
viky Tag: hibernate & WM_POWERBROADCAST Tag: 35694
Display Properties
How do you go about adding a custom tab to the display
properties -> settings -> advanced monitor tab list?
Any samples available?
Thanks
T Tag: hibernate & WM_POWERBROADCAST Tag: 35686
Orientation disoriented
Hello,
I'm writing a printer driver. It's very generic except
for the small amount of custom stuff I needed to add. I
think the problem is in the <generic> code.
If I print a document that has three pages, for example,
the first is portrait, the second is landscape, and the
third is landscape the problem occurs. The first and
second print correctly, but the third always prints out as
portrait. Beyond that, if the document has more pages,
they will all remain "portrait" even if I used page setup
to make them portrait. If I print directly, the problem
does not occur, it only happens when I choose to spool.
Preview works fine as well. It seems that the default
devmode is being copied back over to the current devmode
just before the third page prints.
In general, it will only print the first "landscape" page
correctly and then forever print portrait. I think my
drvDocumentPropertySheets function may be the problem, I
don't show the property sheet dialog to the user, but must
still handle the calls to the function from the O.S. Is
it possible to have the DM_COPY and DM_MODIFY flags both
set on the same call? If so, do I copy the pdmIn param to
my internal devmode AND copy the internal devmode to
pdmOut? If so, it seems logical to update the internal
devmode first then copy it to pdmOut, rather than the
other way around. True? I've looked at the DDK plot
example, but it doesn't seem to apply. A sample
drvDocumentPropertySheets function that does not actually
show an interface would be most helpful.
Wishful thinking department:
I hope this is one of those "Oh yeah, I've seen that a
hundred times, here's the fix." type bugs. Any
takers...please.
Thanks for saving me from eternal agony,
Tom Tag: hibernate & WM_POWERBROADCAST Tag: 35680
Stopping mirror driver
How do you stop a mirror driver once it's been started ... without rebooting
the machine?
Thanks in advance to everyone!
--
Brian V. Minier
Interactive Imaging Systems, Inc
www.iisvr.com Tag: hibernate & WM_POWERBROADCAST Tag: 35673
accessing pcmcia function control registers, xp
First, some background. I've got a custom pcmcia card
based on an old memory card. The card contains the usual
flash memory for the disk (which I do NOT use or even care
about) and then some custom stuff that hangs off of I/O
space. The tuples in the CIS are correct but do not
contain the required resources.
My driver is implemented as a filter driver on top of
memcard.sys. I handle IRP_MN_FILTER_RESOURCE_REQUIREMENTS
to add my I/O requirement and also add the DevicePrivate
resource that dictates stuff like wait states and width. I
then get the assigned I/O resources when START_DEVICE
comes through my filter. Looking at a debug version of
pcmcia.sys with the debug mask turned on full, everything
looks ok as my card is installed. It sees my memory
window, it sees my I/O range, it has the right values in
the config resource section of the output, it correctly
reads my tuples and knows that I have one function control
register (FCR). It _seems_ happy.
Now for the "but" everyone is expecting. Part of the
project's functionality requires that I be able to change
that first FCR (the Configuration Option Register)
dynamically as dictated by the actions in a user program.
Everything I've read says the function control registers
are part of attribute memory and sit just after the 512k
area reserved for the CIS tuples. My approach is to issue
an IRP_MN_READ_CONFIG to device I'm filtering to read all
of attribute memory (length of 513 - 512 for CIS and 1 for
FCR), change my single register and issue an
IRP_MN_WRITE_CONFIG to change attribute memory. Doesn't
work - if I issue a second READ_CONFIG after I've done the
WRITE (which returns STATUS_SUCCESS), the data starting
after the CIS area is back to its old value. In fact, I
issued a READ_CONFIG with a big buffer and it contains the
512 CIS area repeated over and over for as big as the
buffer. My WRITE has no affect. If I can't set this
register on the fly, this whole effort is useless.
My question - how do I write to that first FCR?
Windows XP, SP1
Thanks,
Judy
(cross posted to OSR's ntdev list) Tag: hibernate & WM_POWERBROADCAST Tag: 35672
A fake USB bus driver
What I am trying to implement is a fake USB bus driver.
I took as a boilerplate Eliyas Yakub's bus driver and modified it to serve
IOCTL_INTERNAL_USB_ requests. Then as a root enumerated bus driver I try to
expose a fake USB mouse PDO. The Device Manager successfully enumerates it
and shows entries under "Usb Human Interface Device" and "Mice and other
pointing devices". So it seems stacks are build successfully. After
enumeration the PDO of the HID stack gets Create and Read requests, but the
PDO in the fake USB stack does not get a corresponding
IRP_MJ_INTERNAL_DEVICE_CONTROL request as it occurred in the case with a
regular USB mouse and normal USB stack.
And, yes, I register/activate GUID_DEVINTERFACE_USB_DEVICE on my PDO and
create SymbolicName parameter under Device Parameters (I wonder what for)
What do I miss here?
TIA
Andrew Tag: hibernate & WM_POWERBROADCAST Tag: 35658
How to stop Passthru miniport driver service
Hi,
I am having problem uninstalling the NDIS Passthru (MSDN
Sample) driver sometime on XP. From the setupapi.log, I
found out that whenever the reinstallation of the driver
fails, the previous instance of the NDIS Passthru
miniport driver service is marked for deletion only. So
I can reinstall w/ the driver same service before the old
one being removed.
Is there anyway to get around that problem w/o rebooting
the machine after uninstall? I have tried "net stop
<driver name>", but the return stats says the target
service doesn't support pause or stop. So is there other
way I can stop the driver service before I uninstall the
driver?
Wai Tag: hibernate & WM_POWERBROADCAST Tag: 35654
are u working on virtual com port driver ...
Hi
I am new to driver development and wondering if there is
anybody out there that
- is new to driver development as well
- has just started working on virtual com port driver
- wants to share code/ideas etc.
Please email me and we can chat about this.
Regards
Fabio
(Email me at hotmail.com; my username is fpiemontesi) Tag: hibernate & WM_POWERBROADCAST Tag: 35639
Installing IM driver with restart
At the moment I'm installing my IM driver on XP and 2000 like this:
SetupCopyOEMInfW
INetCfgClassSetup::Install
INetCfg::.Apply
in short just the way snetcfg example from DDK does.
Since I don't get good installation without rebooting the system I was
wondering I could install in such way that the IM driver is NOT inserted in
the protocol stack under the installation but rather when the computer is
restarted ?
One issue is that all network connections are broken under the install, and
I think it might help on stability if installation was not done "online"
--
best regards
Zuka Tag: hibernate & WM_POWERBROADCAST Tag: 35636
Creation of file using ZwCreateFile.
I want to create a file using the ZwCreateFile function
and I am working in kernel mode. In his book on Windows
Driver Model Walter Oney says :
"Depending on where your device falls in the
initialization sequence, you might or might not have
access to files using normal pathnames like \??
\C:\dir\file.ext. To be safe, put your data files into
some directory below the system root directory and use a
filename like \SystemRoot\dir\file.ext."
Now initially I was doing the first and I was being
returned the error :Object Path not valid. So now I
decided to do the latter. To get SystemRoot I am using the
Windows API GetWindowsDirectory. However I get an error
while building and I suspect its bcoz GetWindowsDirectory
works only in User mode. Can someone tell me the kernel
mode API to get the SystemRoot?
Or do u thinnk something else is wrong. Tag: hibernate & WM_POWERBROADCAST Tag: 35627
How to install a serial device manually?
I want to install a serial smartcard reader,I only have a .sys file and the
serial reader.What should I do to install the serial reader. should I modify
the registry? if so,how? or anything else? Tag: hibernate & WM_POWERBROADCAST Tag: 35624
Microsoft Verifier.exe
probem with Symantech Antivirus client. ie, if I chose Verifier.exe to
verify the driver (navap.sys) supplied or installed on my machine using
Verfier.exe machine BSOD during next restart. Is this a known issues with
Verifier.exe? Has any one else facing the same issue? This is happening on
a WinXP SP1 machine. I have used the default Verifier.exe that comes with
the OS.
Regards
Suchrithaa Tag: hibernate & WM_POWERBROADCAST Tag: 35618
802.1X Infrastrucutre Question
Hello,
I am developing a smart card device on USB to provide
passwords for the wireless link. The idea is to plug into
the EAP infrastructure in Windows XP & Longhorn. I
already have the hardware working with WDM compliant
driver. What I am looking for is information on how to
plugin my security device in XP so it shows up in the
802.1X Tab and what API do I have to adhere to. Tag: hibernate & WM_POWERBROADCAST Tag: 35611
How to migrate a NT legacy driver to WIN2000?
I have recently developed a driver for a serial device in NT4,it works well
.
Now ,I want to migrate it to WIN2000,however,it does not work!
How to migrate a NT legacy driver to WIN2000?HELP ME!!!! Tag: hibernate & WM_POWERBROADCAST Tag: 35610
GPD
I changed my resolution to 600 ( x & y ) in my GPD file (unidrv based) - but
Windows XP will not allow me to complete the add new printer wizard saying
the operation could not be completed.
It works ok with 100 dpi, but no go with 600 ..
Any ideas?
Thanks in advance.
Tom Tag: hibernate & WM_POWERBROADCAST Tag: 35606
Developing driver for the USB modem. Where to start?
Hi guys,
I'd like my USB device be visible as a serial port. Could you point me to
any examples. Is it possible to create serial port when USB device is
plugged in and remove it when device unplugged? I'm targeting WinXP.
Best Regards,
Dmitry. Tag: hibernate & WM_POWERBROADCAST Tag: 35604
USB Mass storage Device Drive letter
Hi,
I have to write a file onto my USB Flash Memory device
programmatically (to only my device. Even if multiple USB
devices are connected simultaneously, it should be able to
identify my device may be by Device ID).
How can I identify the drive letter (e.g. E:, F: etc.)
corresponding to the USB Flash Memory?
I have tries several options. But not able to find the
Drive
I have tried
-SetupDixxx functions
-QueryDosDevice
-WMI classes like Win32_LogicalDisk, Win32_DiskDrive etc.
I'm completely clueless at this stage about it.
Please help me out.
Thanks,
Kiran Tag: hibernate & WM_POWERBROADCAST Tag: 35597
1394 and backing store
I have a IEEE 1394 driver that I wrote that supports a line of
digital
cameras on Windows 2000 and XP. I have a status buffer in ring 3 that
I map to 1394 space using the AllocateAddressRange call. The
notification I request with this address range is on a write and I have
not used any backing store. I have had no problems up to now on
getting both solicited and unsolicited status. The digital camera line
I support has improved its 1394 performance and thus the cadence has
changed. I am now periodically missing status. I am considering using
the backing store mechanism but cannot find any documentation or
sample
code to set this up properly. Here are the steps that I think have to
take.
1. The device extension needs to have a a spin lock and fifo slist
members added
2. During the allocation of the address range that I want backing store
for I need to iterate n number of times the allocation of MDLs and push
them into the fifo slist.
3. Assign the spin lock, fifo slist, and call back function to the
allocate irb.
4. I have a set notification function that I call that ties a Ring 3
event to ring 0
5. In the call back function I set the mapped notification event. Then
I would create another MDL and push that onto the fifo slist.
Am I close to having an understanding of this or am I out in left
field? Is there a better way to do this? Tag: hibernate & WM_POWERBROADCAST Tag: 35591
WDM Filter Driver for a Graphics Card...
Hello,
I've got a client who is looking to protect sensitive information on a
computer. What they would like to have, is a WDM filter drive that gets
installed, that could intercept IOCTL calls to the graphics card and prevent
certain actions from occuring (i.e. reading video memory for a screen
capture). I've been looking hard for some examples of a WDM filter driver
for a graphics device, with no success so far...
However, I think there may be a flaw ... DirectX may by pass the GDI and the
driver chain, and communicates directly with the hardware using it's own
drivers I suspect. If this is true, then their is no point in wasting
anymore time with this, unless ofcourse we want to create 2 drivers, one to
intercept GDI calls, and one for DirectX.
I have the NT DDK, and have just ordered the XP DDK, but it won't arrive for
2 more days..
Any help would be appreciated...?
Thanks,
Richard Tag: hibernate & WM_POWERBROADCAST Tag: 35589
Hi,
is it possible to send "BROADCAST_QUERY_DENY",
from my application to Operatibg system .
i want to do that to avoid waiting for Operating system
message.
Gabi wrote:
> is it possible to send "BROADCAST_QUERY_DENY",
> from my application to Operatibg system .
> i want to do that to avoid waiting for Operating system
> message.
You might read up on SetThreadExecutionState.
--
Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Check out our schedule at http://www.oneysoft.com