usb2.0 power management
I am working with a usb2.0 composite device under winxp which has three interfaces printer,scanner and mass storage device. I have my own host2.0 stack and my composite driver takes care of the device. micrososft client drivers are loaded for the different functions(usbstor.sys,usbprint.sys and usbscan.sys).
I have two problems during suspend/resume.
1. before initiating suspend, i access the mass storage device and leave the explorer associated with it open. after wake up i am able to still access the mass storage device, but i am not not able to access my printer. pls note that this problem does not happen when i close all the documents or the explorer from the mass storage device.
2. when i try to disconnect the device, my parent composite driver deletes all pdo and gets unloaded, when i connect the composite device again, windows says that " the previous instance of the mass storage driver is still in memory and so culdnt load the mass storage driver", in this case mass storage driver is never loaded unless i reboot the system.
i strongly feel that the leaving the handles open from the mass stroage device has got some impact, becos i never encounter such problems when all the handles associated with the mass storage device is closed.
any suggestion is appreciated,
thanks Tag: FAT16 and FAT32 File system driver Tag: 39707
KERNEL_STACK_INPAGE_ERROR
Hi,
I have 1394 devie driver. I am writing async data of 10K each in loop.
I got this problem. I didnot understand what caused the problem.
Looking for suggestion on how to debug this problem.
Sometime, I get DEVICE_IO_ERROR if the device otherside is in
breakpoint or something like that. But I didnot understand why that
caused BSOD.
If the problem is in my driver, it doesnot say so. How can I further
debug this.
****************************************************************************
Use !analyze -v to get detailed debugging information.
BugCheck 77, {c0000185, c0000185, 0, 4075000}
Probably caused by : ntoskrnl.exe (
nt!MiMakeOutswappedPageResident+2b9 )
Followup: MachineOwner
---------
kd> !nalyze -v
No export nalyze found
kd> !analyze -v
*******************************************************************************
*
*
* Bugcheck Analysis
*
*
*
*******************************************************************************
KERNEL_STACK_INPAGE_ERROR (77)
The requested page of kernel data could not be read in. Caused by
bad block in paging file or disk controller error.
In the case when the first and second arguments are 0, the stack
signature
in the kernel stack was not found. Again, bad hardware.
An I/O status of c000009c (STATUS_DEVICE_DATA_ERROR) or
C000016AL (STATUS_DISK_OPERATION_FAILED) normally indicates
the data could not be read from the disk due to a bad
block. Upon reboot autocheck willl run and attempt to map out the bad
sector. If the status is C0000185 (STATUS_IO_DEVICE_ERROR) and the
paging
file is on a SCSI disk device, then the cabling and termination should
be
checked. See the knowledge base article on SCSI termination.
Arguments:
Arg1: c0000185, status code
Arg2: c0000185, i/o status code
Arg3: 00000000, page file number
Arg4: 04075000, offset into page file
Debugging Details:
------------------
STATUS_CODE: (NTSTATUS) 0xc0000185 - The I/O device reported an I/O
error.
BUGCHECK_STR: 0x77_c0000185
DEFAULT_BUCKET_ID: DRIVER_FAULT
LAST_CONTROL_TRANSFER: from 8044045e to 80440d9e
STACK_TEXT:
eb457d50 8044045e c03ad0dc ffffffff 00000001
nt!MiMakeOutswappedPageResident+0x2b9
eb457d7c 80464390 82098000 00000000 00000000
nt!MmInPageKernelStack+0x10e
eb457d90 80464355 00000000 00000000 00000000
nt!KiInSwapKernelStacks+0x2f
eb457da8 80455a16 00000000 00000000 00000000
nt!KeSwapProcessOrStack+0x80
eb457ddc 80469bb2 804642d5 00000000 00000000
nt!PspSystemThreadStartup+0x69
00000000 00000000 00000000 00000000 00000000 nt!KiThreadStartup+0x16
FOLLOWUP_IP:
nt!MiMakeOutswappedPageResident+2b9
80440d9e b102 mov cl,0x2
FOLLOWUP_NAME: MachineOwner
SYMBOL_NAME: nt!MiMakeOutswappedPageResident+2b9
MODULE_NAME: nt
IMAGE_NAME: ntoskrnl.exe
DEBUG_FLR_IMAGE_TIMESTAMP: 3ee6c002
STACK_COMMAND: kb
BUCKET_ID: 0x77_c0000185_nt!MiMakeOutswappedPageResident+2b9
Followup: MachineOwner
--------- Tag: FAT16 and FAT32 File system driver Tag: 39698
USB networking driver for Media ATM
I need to develop a driver for a USB device. The media type is ATM. I already have the PCI driver working
I wonder what should be my starting point
I searched Microsoft and got RNDIS USB Kit. Unfortunately this does not include any source
Does anyone have any idea about
1. Where to star
2. What are the resources available from Microsof
3. What are the resources available form outa\side M
We are MSDN member(Professional Level). I woonder if they can help Tag: FAT16 and FAT32 File system driver Tag: 39697
NDIS and IPv6
I've got an NDIS driver that does IPv4 packet filtering. If I try to use the same code to filter IPv6 packets, I don't see any reaching my driver. I don't see any updates in the DDK documentation for IPv6 - should I be seeing both v4 and v6 packets? Or is there an API change for this
Thanks
Chris B. Tag: FAT16 and FAT32 File system driver Tag: 39692
time stamp in crash dump file
FOLLOWUP_NAME: MachineOwner
SYMBOL_NAME: sfb+1c27f
MODULE_NAME: myDriver
IMAGE_NAME: myDriver.sys
DEBUG_FLR_IMAGE_TIMESTAMP: 3fcfd534
STACK_COMMAND: kb
I want to know if there is any useful information like date deductible
from time stamp. I want to get the driver file compiled and build
date(file created date). Hope this is what this field is. I have no
clue to decipher this number. Changed into 1070585140. My driver was
possibly buit in Oct. Is this what most significant '10' tells me in
decimal number.
Thanks. Tag: FAT16 and FAT32 File system driver Tag: 39691
VaryingResourceMap and mf.sys problem
I am writing an XP driver for a multiport serial PCI card. I am using
mf.sys and VaryingResourceMap to split the card BAR0 memory range
between the serial ports (memory mapped). I can see the ports
enumerated in Device Manager as expected. However, when I get
IRP_MN_START_DEVICE, the CmResourceTypeMemory resource in
pIrpStack->Parameters.StartDevice.AllocatedResourcesTranslated->
List[0].PartialResourceList has u.Memory.Start identical for all
(four) child devices.
The Length member is 80, as expected.
It looks like PnP manager (or mf.sys?) assigns all child devices the
same memory range that is last 80 bytes of the PCI card memory range.
The line in the inf file where I define the Varying Resource Map looks
as follows:
HKR,Child01,VaryingResourceMap,1,00, 00,01,00,00, 80,00,00,00
I understand that this means that I want memory on BAR0 at offset
0x100 bytes of length 0x80 bytes to be assigned to Child01. The full
inf file is included at the end of this post.
When I get IRP_MN_QUERY_RESOURCE_REQUIREMENTS I fill the memory
resource requirement as follows:
descriptor->Type = CmResourceTypeMemory;
descriptor->ShareDisposition = CmResourceShareDeviceExclusive;
descriptor->Flags = CM_RESOURCE_MEMORY_READ_WRITE;
descriptor->u.Memory.Length = SERIAL_REGISTER_SPAN +
SERIAL_STATUS_LENGTH;
//7*0x10 + 1*0x10
descriptor->u.Memory.Alignment = 0x1;
descriptor->u.Memory.MinimumAddress.QuadPart = 0;
descriptor->u.Memory.MaximumAddress.QuadPart = 0xFFFFFFFFFFFFFFFF;
I do not modify this memory requirement when I get
IRP_MN_FILTER_RESOURCE_REQUIREMENTS.
What can I be doing wrong?
Any help is appreciated.
Slawek
Here is the full inf file:
; xrsio.inf
;
; Windows XP driver for MyCompany serial cards
;
; Copyright 2004, MyCompany, Inc.
[Version]
Signature = "$Windows NT$"
Class=Multifunction
ClassGUID={4d36e971-e325-11ce-bfc1-08002be10318}
Provider=%MyCompany%
LayoutFile=layout.inf
CatalogFile=cert.cat
DriverVer= 01/26/2004,1.0.0
[ControlFlags]
ExcludeFromSelect=*
[Manufacturer]
%MyCompany%=MyCompany
[MyCompany]
%POctalDesc%=POctal_Inst,PCI\VEN_124B&DEV_0001&SUBSYS_0308124B
%POctalDesc%=POctal_Inst,PCI\VEN_124B&DEV_0001&SUBSYS_0408124B
[POctal_Inst]
Include = mf.inf
Needs = MFINSTALL.mf
[POctal_Inst.HW]
AddReg=POctal_Inst.RegHW
[POctal_Inst.Services]
Include = mf.inf
Needs = MFINSTALL.mf.Services
[POctal_Inst.RegHW]
HKR,Child00,HardwareID,,MyCompanyXR16C854PORT
HKR,Child00,VaryingResourceMap,1,00, 00,00,00,00, 80,00,00,00
HKR,Child00,ResourceMap,1,06
HKR,Child01,HardwareID,,MyCompanyXR16C854PORT
HKR,Child01,VaryingResourceMap,1,00, 00,01,00,00, 80,00,00,00
HKR,Child01,ResourceMap,1,06
HKR,Child02,HardwareID,,MyCompanyXR16C854PORT
HKR,Child02,VaryingResourceMap,1,00, 00,02,00,00, 80,00,00,00
HKR,Child02,ResourceMap,1,06
HKR,Child03,HardwareID,,MyCompanyXR16C854PORT
HKR,Child03,VaryingResourceMap,1,00, 00,03,00,00, 80,00,00,00
HKR,Child03,ResourceMap,1,06
[Strings]
; *******Localizable Strings*******
MyCompany= "MyCompany, Inc."
Desc_x860= "PETER"
POctalDesc= "P-Octal " Tag: FAT16 and FAT32 File system driver Tag: 39690
system mouse pointer
Can someone tell me the process, classes, procedures that the system mouse
pointer uses to display itself?
Thanks,
Tim Tag: FAT16 and FAT32 File system driver Tag: 39686
How to use Visual Studio for driver development
hello
I would like to develope a driver for windows XP using Visual Studio .NET 6.0 or Visual Studio 6.0. Wich one is the best suited for this purpose? I try to use Visual Studio .NET with Windows XP SP1 DDK but I haven't a project wizard called driver development at the begenning of Visual STudio .NET. Before uninstalling Visual Studio .NET 6.0 and trying Visual STudio 6.0 with Windows XP DDK I wonder wether someone could help me ?? (I remember that the installation of windows 98 DDk after Visual STudio will create a projet wizard called Driver Development. I experienced it several years ago. That's why I expected it was the same for VS .NET with XP DDK. was I wrong ??
Best regard
Shan Tag: FAT16 and FAT32 File system driver Tag: 39684
W2K Driver load problem
This is a multi-part message in MIME format.
------=_NextPart_000_0022_01C3EC07.33BE46A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi All,
I wrote an CoNdis Driver and have a problem during loading on some W2K =
computers.=20
The driver use as lower Interface an other PCI-Device (which need time =
to load his Firmware ).
In the CoNdis Driver I use 'IoGetDeviceObjectPointer(.....) to =
establish the interface to the lower-driver. This =
'IoGetDeviceObjectPointer' failed on some Computers because the other =
Driver is in 'loading' yet. =20
What can I do to ensure that the PCI-Devicedriver ist loaded bevor the =
CoNDis driver ?
=20
------=_NextPart_000_0022_01C3EC07.33BE46A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I wrote an CoNdis Driver and have a =
problem during=20
loading on some W2K computers. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The driver use as lower =
Interface an=20
other PCI-Device (which need time to load his =
Firmware ).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>In the CoNdis Driver=20
I use 'IoGetDeviceObjectPointer(.....) </FONT><FONT =
face=3DArial=20
size=3D2>to establish the interface to the lower-driver. This=20
'IoGetDeviceObjectPointer' </FONT><FONT face=3DArial size=3D2>failed on =
some=20
Computers because the other Driver is in 'loading' yet.=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>What can I do to ensure that the =
PCI-Devicedriver=20
ist loaded bevor the CoNDis driver ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0022_01C3EC07.33BE46A0-- Tag: FAT16 and FAT32 File system driver Tag: 39682
link between logical drive and device instance
Hi
Is there a way to determine the logical drive that XP/W2K has assigned to a given device instance? How can I get the logical drive letter if I know the device instance handle (class DISKDRIVE or VOLUME)? Or vice versa - can I get a device instance handle for a given logical drive
Regards
Andreas Koke Tag: FAT16 and FAT32 File system driver Tag: 39680
bug: Printer driver with IP connection
Hi,
I have make a driver for a serial printer that wotks fine (2k/XP).
But a customer want to use it with a network.
So he use the "Digi One SP" adaptator that convert a network communication
in serial one.
My driver send data to the printer, but I can't read the answers in my
language monitor (based on the pjlmon sample).
Does anyone know the problem or have a solution ?
Please Help me, I don't understand.
Benoit Tag: FAT16 and FAT32 File system driver Tag: 39678
Looking for Printer Driver
Anybody know of any Native/Monolithic printer driver for Windows 2000 that supports DMTT_BITMAP and has Device Fonts
TI
alvin Tag: FAT16 and FAT32 File system driver Tag: 39672
what is the relation between between driver and firmware(eg card reader).
I know that for a device,such as a smartcard reader ,firmware and driver are
two important parts.
what is the relationship between them???
if I develop both the firmware and driver ,is there any procedure that I can
follow ? Tag: FAT16 and FAT32 File system driver Tag: 39671
how to develop a driver to read memory cards?
I have developd a driver to read CPU cards ,now I want to develop a driver
to read memory cards .But?
what is the maindifference between CPU cards and memory cards while
developing drivers??
can you offer me any key opinions on developing the driver to read memory
cards.
Thanks in advance. Tag: FAT16 and FAT32 File system driver Tag: 39669
how to develop a driver to read memory card?
I have developed a driver to read CPU card.
Now ,I want to develop another driver to have my reader read the memory
cards.
what is the difference between the driver for CPU cards and memory cards??
while developing the driver for memory cards,can you offer me some key
opinions ?
Do I have to revise firmware for my reader in order to
read memory cards?
Thanks in advance. Tag: FAT16 and FAT32 File system driver Tag: 39668
IRP_MN_START_DEVICE won't pass any resource
Hallo,
I have to write a driver for a PCI device, but I have some problem I
can't understand: when loading the driver I got an IRP_MN_START_DEVICE
with Parameters.StartDevice.AllocatedResources and
Parameters.StartDevice.AllocatedResourcesTranslated set to NULL, whilst
I expect to have some IO range and a Memory Range.
How can I obtain those resource ?
Thank you very much,
Jane Tag: FAT16 and FAT32 File system driver Tag: 39667
FY: BUG: Driver Development Kit build fails when you use hard-coded font replacement
http://support.microsoft.com/default.aspx?scid=kb;en-us;834542
--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx Tag: FAT16 and FAT32 File system driver Tag: 39661
FYI: How to debug a device installation co-installer
http://support.microsoft.com/default.aspx?scid=kb;en-us;833909
--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx Tag: FAT16 and FAT32 File system driver Tag: 39660
Smartcard Unload Error
Hello Everybody,
Currently I Am making a Smart-CArd Driver. I have managed to iorn out almost all the problems but i enounter the Following error after the driver is unloaded
SCardSvr!Assert *ERROR* Failed Assertion: IsValid() at ..\..\Server\inc\Locks.h(430
What does this error Mean? is anybody familar with this Error?
Best Regards
Rikki Tamay Tag: FAT16 and FAT32 File system driver Tag: 39655
generating low-level mouse messages
MouseHead
=========
Regarding www.spitbit.com/mousehead/index.htm web cam and voice
activated hands-free mouse controller; even though MouseHead was an
enormous amount of work, I am making it a no-cut-off freeware/tipware
download, so please help.
MouseHead works well on 160x120 video input feed at 10 fps, excellent
at 20+ fps, with good pointer control, coverage and stability,
primarily developed and tested at 1600x1200 desktop resolution (also
works well on lower resolutions), low cpu utilization, about 3-12% on
various test machines including Athlon1000, Laptop P3 650Mhz, P4
2.4GHz and Athlon2600.
Given the following constraints:
=====================
A) I don't have the Win DDK's except dating back many years to maybe
MSDN WinNT 3.51 beta and before and have no money to pay for the
current MSDN update.
B) I want to support Win 9x/NT/2k/XP, preferably with one unified
approach if possible. Two variations will be okay also.
Specifically what I need is:
==================
1) Best approach to generate low kernel level mouse messages, because
low level messages seems more of a natural fit, better than user
level, and with the addition of mouse move message.
2) Best approach to display stable system-wide pointer. Currently
using a transparent window with regions and a graphic painted on it.
Please help.
Thank you,
Tim Reago Tag: FAT16 and FAT32 File system driver Tag: 39653
TURN $12 INTO $12,000 NOW!!!
make extra cash
GREAT WAY TO BECOME RICH...INSTANT THOUSANDS This is no scam, read
it!!!!!!
------------------------------------------------------------------------
-------- HOW TO TURN $12 INTO $12,000!!!!!!!!!!!!!!!!!!!!!!!!!!!! THIS
REALLY CAN MAKE YOU EASY MONEY!! IT WORKS !!! BUT YOU HAVE TO FOLLOW IT
TO THE LETTER FOR IT TO WORK!!!! : A little while back, I was browsing
through newsgroup, just like you are now and came across an article
similar to this that said you could make thousands dollars within weeks
with only an initial investment of $12.00! So I thought, "Yeah, right,
this must be a scam", but like most of us, I was curious, so I kept
reading. : Anyway, it said that you send $2.00 to each of the 6 names
and address stated in the article. You then place your own name and
address in the bottom of the list at #6, and post the article in at
least 200 newsgroup. (There are thousands) No catch, that was it. So
after thinking it over, and talking to few people first, I thought about
trying it. I figured what have I got to lose except 6 stamps and $12.00,
right? Like most of us I was a little skeptical and a little worried
about the legal aspects of it : All, So I checked it out with the U.S.
Post Office (1-800-725-2161) and they confirmed that it is indeed legal!
Then I invested the measly $12.00. Well GUESS WHAT!!?. Within 7 days, I
started getting money in the mail! I was shocked! I figured it would end
soon, but the money just kept coming in. In my first week, I made about
$25.00. By the end second week I had made a total over $1,000.00! In the
third week I had over $10,000.00 and it's still growing. This is now my
fourth week and I have made a total of just over $42,000.00 and it's
still coming in rapidly. Its : Certainly worth $12.00, and 6 stamps, I
have spent more than that on the lottery!! : Let me tell you how this
works and most importantly, why it works?.also, make sure you print a
copy of this article NOW, so you can get the information off of it as
you need it. STEP 1: Get 6 separate pieces of paper and write the
following on each piece of paper "PLEASE PUT ME ON YOUR MAILING LIST."
Now get 2 US $1.00 bills and place TWO inside EACH of the 6 pieces of
paper so the bills will not be seen through the envelope to prevent
thievery. Next, place one paper in each stating the above phrase, your
name and address, and 2 $1.00 bills. What you are doing is creating a
service by this. THIS IS ABSOLUTELY LEGAL! Mail the 6 envelopes to the
following addresses:
#1) Corteney Tomson P.O. Box 55 Dupo, IL 62239
#2) Brad Taylor 6 Terry Ln. Hutchinson, KS 67501
#3) Cedric Etienne 239 Autumn Breeze Way Winter Park, FL 32792
#4) Stephen Mitchell 1977 Alcovy Trace Way Lawrenceville, GA 30045
#5) Melissa Martinez 15440 sw 74 cir ct #607 Miami, FL 33193
#6) Maurice Sawyers 49 Middle Rose St Trenton, NJ 08618
STEP 2: Now take the #1 name off the list that you see above, move the
other names up (6 becomes 5, 5 becomes 4, etc?.) and add YOUR Name as
number 6 on the list. STEP 3: Change anything you need to, but try to
keep this article as close to original as possible. Now, post your
amended article to at least 200 newsgroups, message board. (I think
there are close to 24,000 groups) All you need is 200, but remember, the
more you post, the more money you make!---- DIRECTIONS----HOW TO POST TO
NEWSGROUPS, MESSAGE BOARD----------Step 1) You do not need to re-type
this entire letter to do your own posting. Simply put your cursor at the
beginning of this letter and drag your : Cursor to the bottom of this
document, and select 'copy' from the edit menu. This will copy the
entire letter into the computer memory. Step 2) Open a blank 'notepad'
file and place your cursor at the top of the blank page. From the
'edit' menu select 'paste'. This will paste a copy of the letter into
notepad so that you can add your name to the list. Step 3) save your new
notepad file as a .txt file. If you want to do your postings in
different sittings, you'll always have this file to go back to. : Step
4) Use Netscape or Internet explorer and try searching for various
newsgroups (on-line forums, message boards, chat sites, discussions.)
Just example you log on any search engine like yahoo. com,google.
com,altavista. com,excite. com then you search with this subject ?
millionaire message board? or ?money making message board? or ?
employment message board? or ?money making discussions? or ?money making
forum? or ?business message board? etc. You will find thousand &
thousand message board. Click one by one then you will find the option
post a new message. : Step 5) Visit these message boards and post this
article as a new message by highlighting the text of this letter and
selecting paste from the edit menu. Fill in the Subject, this will be
the header that everyone sees as they scroll through the list of
postings in a particular group, click the post message button. You're
done with your first one!. : Congratulations? THAT'S IT! All you have to
do is jump to different newsgroups and post away, after you get the hang
of it, and it will take about 30 seconds for each newsgroup! **
REMEMBER, THE MORE NEWSGROUPS OR MESSAGE BOARD YOU POST IN, THE MORE
MONEY YOU EILL MAKE!! BUT YOU HAVE TO POST A MINIMUM OF 200** That's it!
You will begin receiving money from around the world within days! You
may eventually can rent a P.O. Box due to the large amount of mail you
will receive. If you wish to stay anonymous, you can invent a name to
use, as long as the postman will deliver it. **JUST MAKE SURE ALL THE
ADDRESSES ARE CORRECT. ** : Now the WHY part: Out of 200 postings, say I
receive only 5 replies (a very low example). So then I Made $6.00 with
my name at #6 on the letter. Now, each of the 5 persons who just sent me
$2.00 make the MINIMUM 200 postings, each with my name at #5 and only 5
persons respond to each of the original 5, that is another $30.00 for
me, now those 25 each make 200 MINIMUM posts with my name at #4 and only
5 replies each, I will bring in an additional:$150.00! Now, those 125
persons turn around and post the MINIMUM 200 with my name at #3 and only
receive 5 replies each, I will make an additional $750.00! OK, now here
is the fun part, each of those 625 persons post a MINIMUM 200 letters
with my name at #2 and they only receive 5 replies, that just made me
$3,750.00!!! Those 3,125 persons will all deliver this message to 200
newsgroups with my name at #1 and if still 5 persons per 200 newsgroups
react I will receive $18,750.00! With an original investment of only
$12.00! AMAZING! When your name is no longer on the list, you just take
latest posting in the newsgroups, and send out another $12.00 to names
on the list, putting your name at number 6 again. And start posting
again. The thing to remember is, do you realize that thousands of people
all over the world are joining the internet and reading these articles
everyday, JUST LIKE YOU are now!! So can you afford $12.. and see if it
really works?? I think so? People have said, 'what if the plan is played
out and no one sends you: the money? So what are the chances of that
happening when there are tons of new honest users and new honest people
who are joining the internet and newsgroups everyday and are willing to
give it a try? Estimates are at 20,000 to 50,000 new users, every day,
with thousands of those joining the actual Internet.
AND YES YOU HAVE TO SEND THE MONEY FOR THIS TO WORK!!!dont try not to,IT
WONT WORK TRUST ME Tag: FAT16 and FAT32 File system driver Tag: 39649
How to handle system suspend when the device has been in selective suspend mode?
To support selective suspend feature, the driver needs to submit an idle
request Irp with IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION
device I/O control code. This idle request Irp will not be returned until
it's cancelled or some other conditions. Currently, I never see the status
is
success when the complete routine is called. What kind of condition will
cause the status is success?
The complete routine will power on the device if the status is not success.
If I try to suspend the system when the device has been in suspended mode ,
the idle request Irp is also cancelled. The complete routine try to power on
the
device since the status is not success. However, the system is currently
trying
to suspend. They will conflict!!
If the complete routine power on the device before system suspend, it will
be OK since the device will be power down again. However, if the complete
power on the device after the system suspend, the system suspend will fail.
I think the complete routine should not power on the device in this case.
However, how do I know the idle request Irp is cancelled is due to system
suspend?
What should be the correct sequence for this condition??
Best Regards
Jackal Huang Tag: FAT16 and FAT32 File system driver Tag: 39648
how to detect the location on disk of a file when can't open it?
Hi,
We can find file LCN number by calling function FSCTL_GET_RETRIEVAL_POINTERS with a handle to the file, but there are some files can't open because it has already been opend by system, such as pagefile.sys, I know there is a tool(nfi.exe) can do it( It also failed if you just specified pagefile.sys, but will success if you dump all file info on disk. ) Does anyone know how to do?
Thanks in advance!
Polo Tag: FAT16 and FAT32 File system driver Tag: 39647
Driver Installer
Hi,
I have used this newsgroup so far and am able to do this,
I have an inf to write an installer for a usb device, so I have SetupCopyInf to copy and update thed river into Windows.
Now is there anything else that I can do to improve the user experience when they install our device.
There are things like vid,pid, class of device that are mentioned in the newsgroup, but since I am new, I am not sure
whether I have to use these or not.
Now the way the installer or the four lines of code that I have written works is.
1.You run the installer first, after that when the device is connected, new hardware wizard pops up, you click next there,
2.On the next screen you select a driver from the list of drivers presented
3.Then click next and the driver is finally installed(i think ) and the device is ready to b used.
Now I know since the driver is not signed, since its mentioned on the screen 2, maybe we have ge it signed.
I have seen that for most installers the screen 1 or for that matter 2 never comes, you run the installer, you see a message that driver is not sined do you still want to install and then click yes there and after installation when device is connected, you dont again have to select the driver that you want to use for your device from a list of drivers available.
So maybe I have to use some more functions to do that.
All i need is some pointer / suggestion to which functions I can use and will look them up.
Thanks a lot
Shania Tag: FAT16 and FAT32 File system driver Tag: 39637
Reading Audio CD Text Data
Anyone have an example of how to read cd text data? I am trying to use the IOCTL_CDROM_READ_TOC_EX command to return CDROM_TOC_CD_TEXT_DATA, but all I have been able to get is various errors: "The device is not ready" and "Incorrect Function" (each error with the same compiled exe but on different machines). Using the same drive handle and same audio CDs I have successfully read Track ISRCs and basic TOC info using IOCTL_CDROM_READ_Q_CHANNEL and IOCTL_CDROM_READ_TOC.
What I do is I get a handle to my cd-rom, then I lock the cd-rom drive using IOCTL_CDROM_MEDIA_REMOVAL then I read the TOC from the cd using IOCTL_CDROM_READ_TOC then I loop through each of the songs from FirstTrack to LastTrack in the TOC and I get the ISRC using IOCTL_CDROM_READ_Q_CHANNEL and print it out and get the text data using IOCTL_CDROM_READ_TOC_EX and would print it out if it worked through each iteration. Then I unlock the cd drive.
Below is the code I have in C++ that I am trying to use but getting the errors (DeviceIOControl returns FALSE and I get the text of the error with GetLastError()):
hDevice is a a HANDLE to my cd rom drive retrieved with the CreateFile function. I know it is a valid handle because I can successfully open and close the cd drive and read the TOC (first & last track numbers and TRACK_DATA items) and read the track ISRCs.
I am also curious if anyone knows how I can figure out the size I should specify of the output buffer for this command. Currently I am just setting it to 255 bytes, but don't know if that is enough or too much or what.
BOOL getTrackTextData(HANDLE& hDevice, UCHAR trackNum, CDROM_TOC_CD_TEXT_DATA& output)
{
CDROM_READ_TOC_EX inBuf;
inBuf.Format = CDROM_READ_TOC_EX_FORMAT_CDTEXT;
inBuf.Reserved1 = 0;
inBuf.Msf = 1;
inBuf.SessionTrack = trackNum;
inBuf.Reserved2 = 0;
inBuf.Reserved3 = 0;
BOOL bResult;
DWORD bytesRet;
bResult = DeviceIoControl(hDevice, IOCTL_CDROM_READ_TOC_EX, &inBuf, sizeof(inBuf), &output, 255, &bytesRet, (LPOVERLAPPED) NULL);
if (bResult)
{
printf("Success with %i bytes returned.\n", bytesRet);
}
return (bResult);
}
the above function is then called with the following (where i is a loop counter and cdDevice is the cd-rom handle):
....
CDROM_TOC_CD_TEXT_DATA trackCDText;
bReturn = getTrackTextData(cdDevice, i, trackCDText);
....
ps. sorry if this is not the best looking code, I am pretty new to c++
Thank You for any help you can provide. Tag: FAT16 and FAT32 File system driver Tag: 39636
How to launch process from a Kernel Mode Driver
I have a Kernel Mode driver (a keyboard filter driver). I want to do a "CreateProcess" from the driver. How can this be done? If it can't, any advice on how to accomplish the same effect? As a contrived example, how could I launch notepad.exe from the filter driver.
TIA, phil Tag: FAT16 and FAT32 File system driver Tag: 39627
SetPrinterData ERROR_ACCESS_DENIED
Hi I am trying to install a windows printer driver uploaded on a
RED-HAT 9.0 machine through a samba server. During Installation in the
windows client, the setprinterdata function gets called to write the
printer setting onto the registry. But here I get an access_denied
error. But then I modified the code to open the registry manually and
then write to the registry. This works fine. So I if I can still write
to the registry using RegSetValue why does SetPrinterData give me
Access_denied???
Please let me know if you guys ever had this problem and is there some
fix to this behaviour of setprinterdata function.
Thanks
Debashis Tag: FAT16 and FAT32 File system driver Tag: 39619
Options for a NDIS-over-USB driver
Hi,
I am trying to figure out the best (i.e. easiest, fastest and least
prone to error; yeah, I know) approach to developing a network driver
for a USB-connected network card. From my research so far, I think I
can do this in 3 different ways:
1. Remote NDIS - not really an option in this case because the network
card has only 64Kbytes of RAM and most of it is used by the device
firmware.
2. custom USB + NDIS driver - This seems to be the most complex
option. I have written NDIS drivers before but have no experience
writing a USB driver.
3. Use an NDIS-WDM driver - write an NDIS driver with a WDM lower
edge. I am guessing that this will allow me to use the native USB
driver leaving me to focus on the NDIS driver.
Am I correct so far?
Based on the above, (3) sounds the most promising way to go.
If anyone has any other suggestions or comments, please let me know.
Thanks,
Harshal Tag: FAT16 and FAT32 File system driver Tag: 39616
CHAT: Common Driver Security Bugs: Feb 12
Announcing our next Ask the Experts driver chat:
*** Common Driver Security Bugs ***
This Ask The Expert Online session discusses examples of common classes of
security bugs in kernel drivers. The session focuses on avoiding and
detecting these bugs, not how to exploit them.
February 12, 2004
11:00 A.M. - 12:00 P.M. Pacific time
2:00 - 3:00 P.M. Eastern time
19:00 - 20:00 GMT/BST
Chat room:
http://communities2.microsoft.com/home/chatroom.aspx?siteid=34000014
Add to your Calendar:
http://msdn.microsoft.com/chats/outlook_reminders/win_feb12.vcs
MSDN chat calendar: http://msdn.microsoft.com/chats
Archived Ask the Experts chats:
http://msdn.microsoft.com/chats/recent.asp#windows Tag: FAT16 and FAT32 File system driver Tag: 39612
How to make rescan for new hardware
Hi
I'm writting an installator for usb modem (W2k, C++). I can install it and
uninstall.
For installing i'm using UpdateDriverForPlugAndPlayDevices. But after
uninstall i can't install drivers again until i do hardware rescan or plug
out and plug in device. So my question is: how to make rescan for new
hardware programatically with API functions?
thanks in advance
P Tag: FAT16 and FAT32 File system driver Tag: 39604
Unidrv's Download Font Support
I have a minidriver. I do not have rendering plug-in
In the GPD file I don't support Font Downloading and even Font Substitution
But when I check using DocumentProperties the dmTTOption value, it is 2, which means t
download TrueType as soft fonts
Why is this so
Is it the default value of the Unidrv
How will the TrueType fonts be printed
TI
alvin Tag: FAT16 and FAT32 File system driver Tag: 39598
IPrintOemUI::DocumentPropertySheets
I want to modify the value of DEVMODE during this timing, is it valid?
But according to the DDK, in the CPSUICALLBACK-typed callback function, the IPrintOemDriverUI::DrvUpdateUISetting
method should be called to inform the driver.
However, the DEVMODE value is not currently supported by the UI setting.
In IPrintOemUI::CommonUIProp I modified the DEVMODE values and so far its working.
Thanks in advance.
alvin Tag: FAT16 and FAT32 File system driver Tag: 39596
DMA & PCI
Is it possible to use dma transfer with a pci card without using
bus-master?
And what is the performance?
Thank you,
Salvatore Tag: FAT16 and FAT32 File system driver Tag: 39591
For free copy of IFS Kits Win2k
Hi all,
I have lost my IFS Kit for win2k on my PC , and I haven't do a backup, my
job need to use it now !!But I can not find a free download copy through
internet! Who can help me ?
Thanks Tag: FAT16 and FAT32 File system driver Tag: 39586
help:one question about driver verifier
When I test my usb driver by driver verifier, I find the system will crash when I remove device.I trace the driver and find the crash will happen after the irp of removal has been finished. The bugcheckcode of Numega driverworkbench is 0xc4 .It means driver verifier detect violation.
I can transfer the data by the driver .
Here is the Driver Verifier setting for Windows 2000.
1). Install the driver via INF.
2). Click Run -> type verifier
3). Click on Settings Tab
4). In the Verification Type, check "Special Pool", "Force IRQL checking", Pool Tracking", "I/O Verification" (Level 1)
5). Select the Driver files that belongs to your test device.
6). Click "Verify" button below.
7). Click "Apply" button.
8). Modify the boot.ini and put /debug to enable the debug mode.
9). Reboot the system. Tag: FAT16 and FAT32 File system driver Tag: 39585
Generating interrupts before my driver is loaded ?
Hi All,
I have a faulty PCI device which generates faulty interrupts.
The device generates interrupts before my driver is loaded.
This does not seem to bother WIndows NT 4.0 (probably it
does not bother Win2K also).
After my driver is loaded and I connect to the interrupt, it
emmidiately calls my ISR routine and ....
My questions are :
*) How come it does not bother windows ?
*) What does Windows do, with a PCI device generating an
interrupt, before it's driver is loaded ?
*) Does Windoes behaviour depend on the PC's HW (PIC/APIC) ?
*) Does Windoes behaviour depend on the BUS causing the interrupt ?
*) What will happen if the PCI device will cause a faulty
interrupt after I Unload/Disable my driver ?
*) Does Windoes behaviour depend on the whether or NOT this
interrupt is shared ?
*) Did Microsoft change it's behaviour between NT 4.0 to Win2k to
WinXP ?
*) What are the details of what Microsoft does when I connect/disconnect
from an interrupt ?
Thanks
Maurice Tag: FAT16 and FAT32 File system driver Tag: 39584
beginthread in DrvDocumentEvent crashes under NT4
The driver is compiled in C++ under XP. It generally runs under NT4, except
that a beginthread crashes every application. Must it be compiled unter NT4
or do i have to take special settings. The only thing i do for NT4 is to
define -D_WIN32_WINNT=0x0400.
Any ideas? Tag: FAT16 and FAT32 File system driver Tag: 39578
Smartcard Driver Using Generic
Hello Everybody,
I am trying to mage a smartCardDriver using the "Generic" driver.. what additional things do i need to do (Aside from those specified in the windows DDK) so that this driver can be detected by the Smartcard Resource Manager?
Best Regards,
Rikki Tamayo Tag: FAT16 and FAT32 File system driver Tag: 39571
surprise removal during suspend mode
If I disconnect the usb2.0device during suspend from s3 mode, the pnp manager doesnt notify my host stack especially the usbd driver, about the surprise removal of the device after wake up. Can anyone tell me why does it so behave? Tag: FAT16 and FAT32 File system driver Tag: 39569
Driver Unload Problem
Hello Everybody,
What factors will a Driver Skip Unloading? On the First Time i open My Device The Driver Loads properly. When i close the device i get some message about
****** Skipping unload of driver (HidUsb), DriverObject->DeviceObject != NULL
after that i cannot load my driver again.. Opps and by the way after i unload my driver i get the following error.
'HIDCLASS> Code coverage trap: file D:\nt\private\ntos\dd\wdm\input\hidclass\device.c, line 591..
Are any of you familar with these errors?
With Best Regards,
Streax Tag: FAT16 and FAT32 File system driver Tag: 39565
PS ui plug-in doesn't work in NT4SP6
Does anyone tried to write a PS UI plug-in for NT4SP6 ? I wrote one PS
UI plug-in DLL which works fine in Win2000/XP, but it doesn't work in
NT4SP6. Is there any trick for this ?
Thanks Tag: FAT16 and FAT32 File system driver Tag: 39562
Network driver
Hi,
I have developped a packet driver and use NdisFreeSpinLock() function to free my spinlock when PacketClose function was called. Somehow, the NdisFreeSpinLock() was neve
compile and link with my code when doing debugging.
the following code compile and link without error but we I run the routin
I can see the line 12 and line 13 in source windows but no execution code
it has no opcodes or anything between line 10 and line 1
What could be the problem ?????
I use Windows 2000 DDK
Best regards
Simon La
NTSTATU
PacketClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp
POPEN_INSTANCE Open
NDIS_STATUS Status
PIO_STACK_LOCATION IrpSp
IrpSp = IoGetCurrentIrpStackLocation(Irp)
Open=IrpSp->FileObject->FsContext
Open->OpenCloseIrp=Irp
IoMarkIrpPending(Irp)
===>>>line 10 Irp->IoStatus.Status = STATUS_PENDING
===>>>line 12 NdisFreeSpinLock(&Open->SiplookupAvailEntrySpinLock)
===>>>line 13 NdisFreeSpinLock(&Open->SipcnctAvailEntrySpinLock)
===>>>line 15 NdisCloseAdapter( &Status, Open->AdapterHandle )
if (Status != NDIS_STATUS_PENDING
PacketCloseAdapterComplete
Open
Statu
)
return(STATUS_PENDING) Tag: FAT16 and FAT32 File system driver Tag: 39559
WaitCommEvent
Hi developers
I am writing a serial port device driver, however it doesn't seem to work with WaitCommEven
When WaitCommEvent is called on the port, it doesn't block and returns immediately. Moreover, the returned modem status is always zero even though in the mask I had specified certain bits to wait on
ANy help is appreciated! Tag: FAT16 and FAT32 File system driver Tag: 39551
Getting up to speed with AVStream Driver
Hi All,
Just want some links to info on AVStream driver writing (outside of DDK if
anyone knows of some good resources).
Been to WinHec site as well.
Thanks in advance, Tag: FAT16 and FAT32 File system driver Tag: 39550
Synchronization in filesystem drivers
Hi,
I am developing a filesystem filter driver, I have it to the
point now where I am recording filesystem events by
storing them in a queue, which is then processed (and emptied)
by a system worker thread.
Currently I am recording these events in the dispatch routine,
to synchronize with the worker thread I am acquiring a spinlock
(which the worker thread also has to acquire).
So just a couple of basic questions:
The dispatch routine will execute at PASSIVE_LEVEL, right?
which means that using spinlocks is perhaps overkill?
Can I use some other synchronization object, maybe mutexes,
resources or critical sections? This would be better for me because
then none of my code executes at DISPATCH_LEVEL whilst the
lock is held, and I can work with pagable memory no problems.
Assuming mutexes/whatever are OK, do I have any worries using
them in a filesystem filter - are there any issues regarding blocking
APC delivery - i.e. being alertable/not alertable??
Finally, what would the be the most appropriate sync object? I really
can't decide between mutex/event/critical section etc..
Thanks,
James Tag: FAT16 and FAT32 File system driver Tag: 39548
Driver Installer
Hi
I have used this newsgroup so far and am able to do this
I have an inf to write an installer for a usb device, so I have SetupCopyInf to copy and update thed river into Windows
Now is there anything else that I can do to improve the user experience when they install our device
There are things like vid,pid, class of device that are mentioned in the newsgroup, but since I am new, I am not sur
whether I have to use these or not
Now the way the installer or the four lines of code that I have written works is
1.You run the installer first, after that when the device is connected, new hardware wizard pops up, you click next there
2.On the next screen you select a driver from the list of drivers presente
3.Then click next and the driver is finally installed(i think ) and the device is ready to b used
Now I know since the driver is not signed, since its mentioned on the screen 2, maybe we have ge it signed
I have seen that for most installers the screen 1 or for that matter 2 never comes, you run the installer, you see a message that driver is not sined do you still want to install and then click yes there and after installation when device is connected, you dont again have to select the driver that you want to use for your device from a list of drivers available
So maybe I have to use some more functions to do that
All i need is some pointer / suggestion to which functions I can use and will look them up
Thanks a lo
Shan Tag: FAT16 and FAT32 File system driver Tag: 39547
Mirror Driver problem...
I'm new programming drivers, and I build the mirror.dll and mirror.sys, but
now i can't install that's into my windows, i make and inf file, but when I
try to install the driver show me an exclamation sign.... Pleas someone help
me with and working sample... Tag: FAT16 and FAT32 File system driver Tag: 39544
Hi all ,
I just need some information about FAT16 & 32 file system and their FSD .