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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer Driver Tag: 39667
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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer 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: Looking for Printer Driver Tag: 39544
Add new HW Wizard - how to auto install a nonPnp Device
Hi all..
I have a Nokia30 GPRS Modem which has no Pnp. So when I plug in the modem,
it is not detected by add new hardware wizard.
To install the modem I do the following:
1) start HW Wizard
2) select Yes, HW is alreday connected
3) Add a new HW Device
4) install from a list
5) Modems
6) dont detect my modem, I will select it from a list
7) Then I select the modem and define a COM port.
now the modem works.
But I have the install the modem at 100+PC's, so I want to automate the
install process!
Is there any way per script or code to do the same as I described
automatically?
Thanks in advance,
Mario Tag: Looking for Printer Driver Tag: 39522
OID_GEN_MINIPORT_INFO??
I am running NDISTEST 4.03.0030 as required now for Win2k Network Driver
testing. I keep getting warnings about missing OID_GEN_MINIPORT_INFO, but it
is not documented anywhere in the DDK Help file. Where is this thing
documented and used? Tag: Looking for Printer Driver Tag: 39521
UpdateDriverForPlugAndPlayDevices does not call AddDevice in Windows 2000
Using the UpdateDriverForPlugAndPlayDevices appears to work fine for the
installation of an initial multifunction device in Windows 2000. However,
when used to install subsequent devices, there is no call made to may
AddDevice function. As a result, when my DIF_NEWDEVICEWIZARD_FINISHINSTALL
function attempts to pass it's information to my driver, there is not
extension into which the driver can store it. This is failure to call my
AddDevice function for subsequent devices is true regardless of whether I
use the INSTALLFLAG_FORCE or not.
Does anyone know why UpdateDriverForPlugAndPlayDevices fails to call my
AddDevice function in Windows 2000 but works fine in Windows XP and 2003
Server? Tag: Looking for Printer Driver Tag: 39520
USB power management problem?
Hello, all!
While testing recently developed USB measurement device I found a problem
with power management that I still can't resolve.
Device is single-interface single BULK endpoint device.
Device driver is DDK's BULKUSB sample with a couple of IOCTLs added.
When the device is plugged into Vitek 2-port USB hub, Windows 2000 crashes
(3 machines) with STOP 0x0000001e - KMODE_EXCEPTION_NOT_HANDLED
or reboots unexpectedly (old PIII machine), after installation of device
driver.
With SoftICE installed, a page fault is reported in the driver, with a very
strange
stack trace, even before the DriverEntry is called.
When the device was plugged in the Windows 98 system (by accident), a dialog
appeared,
saying that USB cannot provide enough power to power the device.
Our device reports a maximum consumption of 180 mA, in it's configuration
descriptor.
Then we've changed this report to 100 mA and the all began to work.
Can this be a feature of Windows 2000 power management in that BULKUSB
sample does not process gracefully?
Thanks in advance,
Alexei N. Adadurov.
alexei.adadurov_nspam_@mtu-net.ru
Remove _nspam_ when anwering by e-mail. Tag: Looking for Printer Driver Tag: 39518
USB device driver installation problem
Hello all!
I'm expierencing the following device/driver installation problem.
We developed a specialized measurement USB device and a BULKUSB-based driver
for it.
With the most of our test systems installation of device and its driver is
not a problem.
But with one machine running Windows 2000 Professional + SP4 it turned to
hell.
When I plug in the device it is detected ('BioSensor USB device', as it's
USB string descriptor for device says).
Then Device Manager asks for the INF file and I point to the file.
And after a second it says that this file contains no information on
compatible devices.
Setup log (setupapi.log) in the highes verbose level showed nothing useful.
The log goes like:
.... file bm_usb22.inf opened...
.... searching for compatible device ID: usb\vid_71E4&pid_0005&rev_0001,
usb\vid_71E4&pid_0005
.... no compatible device ID found (error 0xE0000228)
I used NTDDK's usbview to find out if PID, VID and RID were read OK, and it
seems they were.
(I could also see it from setupapi.log.)
Using the REGEDIT I found that device manager creates a node in the registry
under
HKLM\SYSTEM\CurrentControlSet\ENUM\USB\ with correct VID and PID.
This happens on a machine running Microsoft Windows 2000 with Service Pack
4.
Problem could not be reproduced on another machine with the same software
configuration
(i.e. Windows 2000 with Service Pack 4).
FYI: KB822831 did not help.
Your suggestions? Reinstallation of Windows 2000? Other?
Thanks in advance,
Alexei N. Adadurov. Tag: Looking for Printer Driver Tag: 39515
Howto get MAC addresses of all NICs prior to their bindings
I have an NDIS IM project for XP.
My question is how to browse all network cards in the system and collect their MAC addresses (or infos)
without (or prior to) binding them.
Thanks in advance. Tag: Looking for Printer Driver Tag: 39513
Anyone know how to access the Link between Page File & Physical Memory?
I went through debuging a call to malloc() to try to find out where the link between virtual memory and physical memory is stored, but ended up with calls to HeapAlloc() that are stepped over by the debugger.
What I need to do is, given a buffer such as
int myBuffer = (int*)malloc(whateverSize * sizeof(int));
I want to lock the pages in physical memory and then map those pages to another virtual address.
Does anyone know how to do this?
Thanks in advance.
Antranik Tag: Looking for Printer Driver Tag: 39511
SpotDiameter (Mini Printer Driver)
What exactly means SpotDiameter in context of the Mini Printer driver
development?
After the WinDDK:
Numeric value representing the spot diameter size, as a percentage of the
pixel size, for the resolution specified by *DPI.
Is there somewhere a better explenation?
Thanks
Eric Tag: Looking for Printer Driver Tag: 39510
USB devices need drivers (again) when you change port?!?
If I connect an USB device to an USB port the "Found new hardware wizard" pops up. Installation works and all is fine. However, if I disconnect the device and reconnect to ANOTHER port on the PC the wizard pops up again! The drivers are already there so why the ---- does it need to install the drivers again?
After some fiddling in the registry (HKLM) it seems that the driver database is implemented in such a way that each peripheral is identified by its connected port... duh!
Does anyone know of a work around? I would really like to install the drivers ONCE and dont care much about which USB port the user chooses to plug into.
Best regards,
Mikael Tag: Looking for Printer Driver Tag: 39509
DeviceIOControl XP
Hi,
I am using DeviceIOControl() API to get connection information of
any USB devices connected for my application. I am calling
DeviceIOControl() in a timer every 2 seconds.
My problem is that when I plug-out and plug-in my device when my
application is running, the UHCI port crashes and fails to identify
any devices connected to this port. The crash happens only in Windows
XP, but works fine in Windows 2000 and Windows 98. Could anyone tell
me what could be the reason?
Thanks in advance,
Ajay Tag: Looking for Printer Driver Tag: 39508
Printer UniDrv
Hi,
I have a serial printer (Epson TM-L60). He has 368 pixel width labels. For
this printer I'm writing a GPD File.
How I need to define CmdSendBlockData (and other parameters), when the
following data structure exists for the printer (Bit Image):
The CmdSendBlockData is "<ESC><2A><m><n1><n2><d>"
m = Print mode 24-dot double density
n1, n2 = defines the width in dots
d = databytes, bit image data
The data need to have the following format (Height: 24 dots = 3 bytes):
d1 d4 d7
d2 d5 d8
d3 d6 d9
These are 9 data bytes, which defines a 24x24 dot image.
My problem is, that the driver outputs the raster with the correct format
Thanks for helping
Eric Tag: Looking for Printer Driver Tag: 39506
Anybody know of any Native/Monolithic printer driver for Windows 2000 that supports DMTT_BITMAP and has Device Fonts
TI
alvin