Unknown Manufacturer Unsuported Device Driver Type
XP Pro SP2
I have previously used the above device type to provide support for Minolta
Dimage Scan Dual Film Scanner, once installed as this device type the
associated software can find and use the scanner, I have done this many
times on Intel based machines under W2K and XP Pro & XP Pro SP2
I have recently purchased and AMD64 based machine and installed XP Pro and
the driver type no longer exists, it is also missing after installing SP2,
is this device type only available on intel based PCs or has it been
withdrawn form current XP distributions ?
Is there a way arround this problem ?
Thanks
Cybersloth Tag: test Tag: 63972
multimedia LPS
I know this is not the right group, but I'm sure someone here can point me
to the correct group or give me some help.
I'm looking for more information on the multimedia "LivePlaybackSystem".
This page implies it's a set of programs, but I've also herd it's just C#
code and you need to roll it into your own app. Either way I'd like to get
ahold of it.
http://www.microsoft.com/windows/windowsmedia/content_provider/broadcast/profiles/liveplaybacksystem.aspx#Top
Any typically the e-mail link on the page generates "550 host not found" .
Any clues? Any MSFT people here know where to point me?
Dave August Tag: test Tag: 63970
How to make sure a Service starts BEFORE a user logs on?
Hi:
I have a regular Windows Service program (not a kernel driver) which must
start BEFORE a user logs into his machine (XP or W2K). It works most of the
time, but sometimes, I noticed that it started AFTER I log on the machine;
especially if I logged in the machine fast right after a reboot.
Is there a way in the service program, I can do something to make sure that,
after reboot, the service starts before a user logs in the machine (no
matter how fast the user is trying to complete his logon process)?
Thanks In Advance !
Polaris Tag: test Tag: 63962
debugging related question
Hi all,
is it legal to let the Power management dispatcher function always return
STATUS_UNSUCCESSFUL?
i am finishing the pnp handling of my first driver, and i'd like to debug
that separatly from power management.
kind regards,
Bruno. Tag: test Tag: 63961
how to install a custom version of ndisuio.sys
Hi all,
i'm working on a device driver for the first time ever - a bit out of my
depth here, and i would appreciate anyones help ...
I'm trying to make a copy of the ndisuio.sys device driver supplied with
the winxp ddk, as suggested here http://www.ndis.com/pcakb/KB01010301.htm
I've compiled a new version of the driver as directed in the above page
seemingly without any problems. this is called ndisvi.sys.
The problem i'm having is that i can't get it to install.
I've copied it into the \windows\system32\drivers directory and updated
the .inf file as suggested (see below). when i try to install it (from
network connection->properties->install->protocol->add->have disk) i get
the following error message:
'The specified location does not contain information about your hardware'
any suggestions would be much appreciated,
Chris
-----------------------------------------------
[version]
Signature = "$Windows NT$"
Class = NetTrans
ClassGUID = {7B1707CC-4E47-4691-9B44-61EDD981E9D8}
Provider = %Msft%
LayoutFile = layout.inf
[Manufacturer]
%Msft%=MSFT
[MSFT]
%NDISVI_Desc%=Install, NDISVI
;-------------------------------------------------------------------------
; Installation Section
;-------------------------------------------------------------------------
[Install]
AddReg=Inst_Ndi
Characteristics=0x28 ; NCF_HIDDEN | NCF_NOT_USER_REMOVABLE
CopyFiles=CpyFiles_Sys
;-------------------------------------------------------------------------
; Ndi installation support
;-------------------------------------------------------------------------
[Inst_Ndi]
HKR,Ndi,Service,,"Ndisvi"
HKR,Ndi,HelpText,,%NDISVI_HelpText%
HKR, Ndi\Interfaces, UpperRange,, noupper
HKR,"Ndi\Interfaces","LowerRange",,"ndis5,ndis4,ndis5_uio"
;-------------------------------------------------------------------------
; Service installation support
;-------------------------------------------------------------------------
[Install.Services]
AddService=Ndisvi,,NDISVI_Service_Inst
[Ndisuio_Service_Inst]
DisplayName = %NDISVI_Desc%
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 3 ;SERVICE_MANUAL_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary = %12%\ndisvi.sys
LoadOrderGroup = NDIS
Description = %NDISVI_Desc%
[Install.Remove.Services]
DelService=Ndisvi
;-------------------------------------------------------------------------
; Declare Destination Directories for file copy/deletion
;-------------------------------------------------------------------------
[DestinationDirs]
CpyFiles_Sys = 12 ; DIRID_DRIVERS
;-------------------------------------------------------------------------
; Files to Copy/Delete - Referenced by Install and Remove sections above
;-------------------------------------------------------------------------
[CpyFiles_Sys]
Ndisvi.sys,,,2
[Strings]
Msft = "CSM"
NDISVI_Desc = "NDIS Usermode I/O Protocol (VI)"
NDISVI_HelpText = "A driver to support user-mode I/O on NDIS devices" Tag: test Tag: 63950
Difference between CreateFile & Com_Open
Hi,
For a serial port device like modem, can any one please tell me the
difference between the APIs CreateFile(), COM_Open() and HWOpen().
Thanks,
Arsalan Tag: test Tag: 63945
NDIS and memory 2
Hi all,
Is it possible to use paged memory in NDIS drivers? I found ExAllocatePool
in list of prohibited functions and ExAllocatePoolWithTag in list of
discouraged functions and both NdisAllocateMemory and
NdisAllocateMemoryWithTag allocate only nonpaged pool. Does it mean that
paged memory shouldn't be used in NDIS drivers?
Thank's for answer
Michal Tag: test Tag: 63937
How to enumerate USB Mass Storage devices?
hello.
i'm working on a hobby project for my own mp3 (usb mass storage) player and
try to enumerate all usb mass storage devices currently connected to my
computer. i've been working on this quite a while because i can't get through
the msdn efficiently enough. i planned to identify my player like this:
1) enumerate all disks (by SetupDiEnumDeviceInterfaces in conjunction with
guid GUID_DEVINTERFACE_DISK)
2) find out those who are mass storage devices
(IOCTL_STORAGE_GET_MEDIA_TYPES_EX)
3) get each mass storage device's partition info
4) get a handle to the volume
i chose the method above because i wanted to avoid a low level enumeration
through the usb hubs. now i'm stuck with step 2 because i don't know how to
find out the correct buffer size, needed by DeviceIoControl for the
IOCTL_STORAGE_GET_MEDIA_TYPES_EX flag. the documentation didn't explain a
proper use any further. so i wonder if any veteran can give me a hint, how to
find out the buffer size.
thanks.
wan-hi Tag: test Tag: 63927
Serious problem with IO manager and device removal
Hi All
Scenario:
i)PnP NIC PcCard USB driver with an IO manager interface created with
NdisMRegisterDevice().
ii)Application opens device with CreateFile() and gets a valid handle.
iii) Stop NIC driver with Safely Remove Hardware. (Driver Halt
function gets called and devext is freed)
iv) Application calls DeviceIoControl() on the STILL VALID HANDLE.
v) NIC driver image stil in memory, so IOCTL handler called which
refgerences the now invalid devext.
vi) CRASH.
Now, to quote the DDK: "Note that, if a handle to the device object
created with NdisMRegisterDevice is open, the driver that created the
device object cannot be unloaded."
Oh yeah, even NdisMDeregisterDevice() returns 0 if an application
still has the handle open.
And further: "Before opening a handle to the device object, a user-mode
application should therefore register for device event notification,
specifying GUID_NDIS_LAN_CLASS as the interface class GUID. On
receiving a DBT_DEVICEQUERYREMOVE device event for the device object,
the application should close the handle"
So it is up to the good behaviour of an application to controlll wether
the kernel crashes or not. Hmmm not a very good idea.
I suggest the IO manager returns INVALID_HANDLE_VALUE if the device got
unloaded and an app calls an IO manager function on it. Tag: test Tag: 63924
Trying to get an IM filter driver to bind to my IM MUX driver at install time
Hi,
I've got an NDIS IM MUX driver, which is based on the MUX sample in the
W2k3 DDK.
I'm trying to get an IM filter driver to bind to this, at *install
time*.
This filter driver is bound to the physical miniport before install
(along with TCPIP, MS Client, File & Printer sharing). I've built the
MUX notifyob with "DISABLE_PROTOCOLS_TO_PHYSICAL" defined, so ideally,
i would expect that after the install, all the protocols that were
bound to the physical NIC should now be bound to the MUX miniport.
Unfortunately, the filter driver is not bound to it (incidentally,
neither is the nlbs driver).
I can bind the filter driver after the install, manually from the UI,
by checking the box on the MUX miniport, so there isnt anything in the
NDIS upperRange or lowerRange to prevent the binding from happening.
I've stepped through the notifyobject in the debugger (from breakpoints
in SysQueryBindingPath, and NotifyBindingPath) to see if the notifyob
ever even got the binding paths with the filter driver in it. I didnt
see any.
The filter driver's protocol inf has the following interesting lines:
1. [ndi]
Characteristics = 0x4490 ; NCF_NDIS_PROTOCOL | NCF_HAS_UI | NCF_FILTER
| NCF_NO_SERVICE
2. [AddReg]
HKR, Ndi, FilterClass, , failover
HKR, Ndi\Interfaces, UpperRange, , noupper
HKR, Ndi\Interfaces, LowerRange, , nolower
HKR, Ndi\Interfaces, FilterMediaTypes, , "ethernet, nolower"
Why isnt the filter drivers binding paths showing up in the notifyob
methods ?
Alternatively, is there any other way to programmatically bind the
filter driver to the MUX driver ? (This is what i really want to
achieve)
Thanks,
Gaurav Tag: test Tag: 63920
Design considerations of usbhub.sys, usbehci.sys....
Hi,
About usbhub.sys, usbehci.sys, usbohci.sys, usbuhci there is no
documentation available in the DDK.
Any help / Any articles regarding the usbhub.sys & usbehci.sys architecture,
design considerations (codelevel), URB management, URB queueing, URB
Chaining, handling Isochronous & Bulk devices and any other code level
architectures?
Thanks,
Shravan Tag: test Tag: 63907
IOCTL ATA PASS THROUGH..
my task is to copy the 'My Doucments' folder to a specified partition on my
local hard disk (using win xp - sp2)
Has anyone been able to obtain sample code for this or Any info or
directed/related links greatly appreciated.
Many thanks in advance.
Meyya Tag: test Tag: 63897
Printer driver woes
I'm using the bitmap driver sample from the LDK, and am running into a few
problems. All I want to do is take the individual scan lines and pass them
to an existing DLL that then does some processing.
I can't seem to get the FilterGraphics method to get called. I'm return
S_OK in the GetImplementedMethod, but no joy. Any hints on how to get that
method called would be most appreciated.
Since I can't get FilterGraphics working, I've been using ImageProcessing.
I've set the PinsPerPhysPass and PinsPerLogPass commands in the GPD to 1, 8,
16 and several other variations, but I always get the same pSrcBitmap sizes
when ImageProcessing is called. How do I tell it to only send me one
scanline at a time?
--
Floyd Tag: test Tag: 63896
DrvTextOut/DrvSendPage overlap
Hi,
I have written a monolithic printer driver. There is a problem when using
MS-Office applications and printing with the my driver. My driver defines
fonts that are resident in the printer. Most of the time, the driver works
fine using MS-Word and selecting the printer fonts. However, occasionally,
the page is terminated too soon. I have narrowed it down to where my
DrvTextOut is interrupted (has not hit the return statement yet) by a call to
my DrvSendPage (same PDev too). This seems to happen totally random.
How can this happen? What should my driver do in this case? It seems like
a bug with MS-Office, but I've never heard of it. Any ideas? Please? I'm
getting deperate.
Thanks Tag: test Tag: 63890
How do I determine modem type?
Hi,
If I'm looking at modem entries in the registry (class "Modem"), how can I
determine the modem's physical connection to the system? For example, how
can I tell if a specific modem is connected through PCI, USB, IR, Bluetooth,
etc.? I noticed that the "MatchingDeviceId" value (SPDRP_HARDWAREID) usually
has the correct type in it, but a few modems seem to be misleading. For
example, I have a PCMCIA modem that seems to think its a USB device
(apparently it implements a USB hub inside the card, but its not available
externally). Is there some other way to determine the physical connection
type?
Thanks,
Ed. Tag: test Tag: 63885
USB Video Capture frame rate drop after Standby/Wake-up cycle
Our USB Video Capture device running on XP on USB 2.0 runs
at 30 fps. However, if we put the system into Standby mode while
capturing a video (either capturing to file or simple video preview)
then when the system awakes the video capture resumes but at a
frame rate which now fluctuates around 24fps and goes as low as as
22 fps. It is visibly slower - not just a quirk in frame-rate reporting.
This reduction in frame rate is not cumulative. i.e. if we repeatedly
go into Standby mode and reawaken it remains at around 24fps.
The framerate can be is restored to 30fps by simply stopping and
restarting the video capture application.
The problem does not occur if we attach our device on a USB 1.1
port; the framerate then remains constant through Standby/Wake-up
cycles.
We have tried to test this on other vendor's USB video capture
devices to determine if it is a problem in our drivers but to date
have not yet found one that can survive running an application
through a Standby/Wake-up cycle without other, far more serious
problems.
Any assistance, or redirection to a more appropriate forum would
be appreciated.
Steve Thorpe Tag: test Tag: 63884
OID_802_11_BSSID_LIST_SCAN
I try to get signal strength and MAC's of all access points in user-mode. I
try to make it without NDISUIO writing in pure C.
I made a little app which uses WMI and Setup Api to find wireless network
card.
Unfortunately I do not know how to SET OID_802_11_BSSID_LIST_SCAN oid.
Passing it to DeviceIoControl with IOCT_QUERY_GLOBAL_STATS returns FALSE
and error: "50. The network request is not supported."
ERROR_NOT_SUPPORTED".
Although using only the query: OID_802_11_BSSID_LIST seems to work (list
refreshes itself) but e.g. when I run Netstumbler (during work of my app)
DeviceIoControl fails and getlasterror() shows error: "31 A device attached
to the system is not functioning. ERROR_GEN_FAILURE ". And the most
irritating thing is, that Netstumbler sees more access points than my
programm.
help.....
--
Thanks,
Wojtek
E-mail hint: add [usenet] to the subject
"Ipsa scientia potestas est." Tag: test Tag: 63878
Remove one of the prefered networks in Wireless Connections
Hi,
In "wireless network connection properties" there is "wireless network"
tab that has a list in the prefered networks box.
Is there an API to remove one of those entries ?
I have heard of IProvisioningProfileWireless that may help to create
one, but did not see anything that is related to remove.
Thanks,
Gilad. Tag: test Tag: 63862
Implementing HideStandardUI
Hi.
Newbie question:
What do I have to do to be able to implement the HideStandardUI-method?
I have tried to change to inherited interface to IPrintOemUI2 instead
of IPrintOemUI, but that doesn't seem to work as I get a compilation
error.
/Erik Tag: test Tag: 63861
NDIS: Ethernet checksum
Hi all,
I'm interested in following questions. Who is in charge of ethernet frame's
checksum? It means if I change ethernet frame in my NDIS IM, will I have to
"repair" checksum too, or it is done in underlying miniport?
Thank's for answer
Michal Tag: test Tag: 63854
user unable to print on windows 2000 cluster via port monitor.
Hi
I have written a cluster aware port monitor. It works fine in a normal
environment.
BUT when it is used on a Windows 2000 cluster, only users with
Administrator rights can print!! Normal users fail to print.....
Looking at my debug it seams that the monitor is failing on reading the
cluster registry when the 'normal' user is attempting to print. Now I
thought this was left to spooler /portmonitor, not to the user
permissions.
What I am asking is :-
1. Have I made a mistake in the configuration of the culster? with user
permissions etc. or
2. Have I missed something in the port monitor its self?
I have been trawling through the msdn documentation but have come up
with nothing.
Any tips would be welcome as its driving me mad.
Cheers Tag: test Tag: 63849
PC won't boot if my device is connected to the USB port
Hi,
Please would anyone tell me what could be the problem when the PC stops
booting when we have the device(a phone) connected to the PC.
when i plug the device out of the PC the booting resumes.
It does not happen all the time.
It is mostly likely to happen when we restart the PC with phone
connected. If we do a shutdown and then boot it is less likely or does
not happen.
This is not specific to any Windows version. happens both on XP and 2k
as well.
Is it trying to boot from the phone?
Any idea??
, thanks,
mridu Tag: test Tag: 63848
where is USBVideo.sys?
Hi,
The DDK says that UsbVideo.sys ships with XP SP2. I have SP2 but on
UsbVideo.sys. Please let me know where to find it or download it.
Thanks. Tag: test Tag: 63844
One more bug - please vote
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackId=FDBK28013
--
http://www.cristalink.com Tag: test Tag: 63840
NDIS and Memory
Hi all,
I'm not sure in following question ... Is it correct to use
ExAllocatePool( PagedPool, size) in NDIS IM (in part running at
PASSIVE_LEVEL) or there is an other Ndis specific function?
Thank's for answer
Michal Tag: test Tag: 63838
AVStream : Remote controller (IR)
Dear All,
I am developing an AVStream device driver for an MPEG2 USB box. Now I
want to implement the remote controller (IR) function. But I don't know what
kind of device drivers (HID, IrDA NDIS and etc) should I implement? Where
could I get remote controller (IR) sample driver codes? Any comments are very
appreciated.
Thanks,
Edward Tag: test Tag: 63836
Does exist this file on disk ?
Is possible to verify in kernel mode if some file on disk exist without calling
InitializeObjectAttributes() and ZwCreateFile() and controlling result
status ?
Does exist some method for enumeration files in directory without using
ZwCreateFile() ?
Peter Tag: test Tag: 63835
question about still image capture device definition.
Hi,
We are developing usb2.0 camera. Now, i have some question want to confirm:
first, If my usb camera's firmware writted according to Still image Capture
device class and i want to capture an image from WIATEST or TWAIN
application, what should i do in PC side? Should I writte user mode driver or
some dll linking to application?
second, If my device is standard still image capture and i want to provide a
set of API to customer, what document should i refer?
Best Regards Tag: test Tag: 63825
keyboard filter driver
Hi,
Currently iam doing a keyboard filter driver
based on kbfiltr example from ddk.
My objectives are to
1. Insert multiple keystrokes from a single key press.
For example, when user press <a> i must send it as <SHIFT><F1>
in the same context of <a>.
2. Drop and remap multiple keystrokes.
For example,when user press <ALT><F2> I must send it as <b>
In my previous post,Mr.Doron suggested me the following for my 1 objective.
>>>>>>>>>>>>>>>>>>>>>>>Doron's post>>>>>>>>>>>>>>>>>>>>
>> if this is with in the context of <a> being reported to your own callback,
>> just declare a KEYBOARD_INPUT_DATA array on the stack, initialize it, then
>> call the upper service callback with the new keystrokes, then finally report
>> <a> using the caller's buffer.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I tried to execute what Doron told,and in the usermode application trace,
iam getting <SHIFT><F1><F1><F1><F1><F1><F1>...... where <F1> goes infinite.
Can anyone plz tell me where iam doing wrong ? below is my code.
Please give me some suggestions or reference for my 2 objective too.
Thanks for the patience shown to read this on.
>>>>>>>>>>>>MY CODE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
VOID
KbFilter_ServiceCallback(
IN PDEVICE_OBJECT DeviceObject,
IN PKEYBOARD_INPUT_DATA InputDataStart,
IN PKEYBOARD_INPUT_DATA InputDataEnd,
IN OUT PULONG InputDataConsumed
)
{
PDEVICE_EXTENSION devExt;
ULONG i=0,j=0;
KEYBOARD_INPUT_DATA data[1];
devExt = (PDEVICE_EXTENSION) DeviceObject->DeviceExtension;
i = (ULONG)((PCHAR) InputDataEnd - (PCHAR) InputDataStart);
for(j=0;j<i;j++)
{
if(InputDataStart[j].MakeCode != 0)
{
switch(InputDataStart[j].MakeCode)
{
case 0x1E: // If scancode for <a>
data[0].UnitId = 0;
data[0].MakeCode = 0x2A; // Left Shift
data[0].Reserved = 0;
data[0].ExtraInformation = 0;
if(InputDataStart->Flags == KEY_MAKE)
data[0].Flags = KEY_MAKE;
else if(InputDataStart->Flags == KEY_BREAK)
data[0].Flags = KEY_BREAK;
(*(PSERVICE_CALLBACK_ROUTINE)
devExt->UpperConnectData.ClassService)(
devExt->UpperConnectData.ClassDeviceObject,
data,
data+1,
InputDataConsumed);
InputDataStart[j].MakeCode = 0x3B; // F1
break;
default:
break;
}
}
}
(*(PSERVICE_CALLBACK_ROUTINE) devExt->UpperConnectData.ClassService)(
devExt->UpperConnectData.ClassDeviceObject,
InputDataStart,
InputDataEnd,
InputDataConsumed);
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Tag: test Tag: 63824
Is anyone familiar with the sonydcam.sys sample?
Hi,
I have a 1394 camera that is IIDC (DCAM) compliant. I would like
to connect this camera to a DirectShow based viewer, but the
camera does not have a WDM driver.
Apparently, the Windows DDK has a sample called 'sonydcam.sys',
which I believe is a WDM Stream Class driver. Unfortunately, when
I tried connecting the camera using the associated 'image.inf' file it
did not work. Obviously, I'm new at this and would like to ask the
following questions:
Questions:
1. Is the sonydcam.sys file a WDM Stream Class driver for DCAM cameras?
2. If it is a WDM driver, can I modify the image.inf file in some way so
that
it would recognize my camera as 'Generic'?
3. To view the camera with a DirectShow app, do I need more than the
sonydcam.sys file?
Thanks for any help.
RickL Tag: test Tag: 63822
Converting 32bit drivers to 64bit
Is there some kind of conversion tool to change
32bit driver to 64bit driver. I heard there was some way to change
it manually but dont know if it's possible.
Thank you
Eric Tag: test Tag: 63817
Filter Hook Driver and NAT
I have written a application based on the Windows 2000 Filter Hook Driver.
Basically the application was designed to run on a Windows 2000 server with
two Network interfaces. It monitors traffic between the two interfaces and
enforces security, performs proxy redirection, etc.
When the Windows 2000 Server is configured for routing mode and both
interfaces have real address subnets (in other words Network Address
Translation (NAT) and Internet Connection Firewall (ICF) are not enabled),
the hook correctly works and our application receives the packets (header
and payload).
However, when NAT or ICF is enabled (the network we are checking security
on does not have real addresses) the Packet pointer (payload) passed to
us is NULL. Therefore we can not look at the rest of the packet to make
a determination of what we should do. See this link for the call back
function description (parameter two is the one that we are not getting):
http://msdn.microsoft.com/library/en-us/network/hh/network/fltrhook_cb402c5c-f5db-498b-8db6-c2994bbf7870.xml.asp
Why does the behavior of the Filter Hook Driver difer betwen NAT and routing
mode? I would think the behavior should be the same regardless. Tag: test Tag: 63808
Irp->IoStatus.Status vs return value?
Hi All,
What is the difference between setting Irp->IoStatus.Status and the Dipatch
function return value?
I have a little trouble seeing the difference between those, as they seem to
fulfil the same functionality, ie telling the system about the status of the
Irp.
kind regards,
Bruno. Tag: test Tag: 63791
USB COM port as Serial port
Hi All,
Here is my problem. I have a USB modem which is exposing COM port with
help of usbser.sys. Everything works fine with microsoft Dial up connectoid.
When I am trying to use the USB COM port as normal serial port interface
through serial IOCTLs it fails. I am accessing the port from my WDM driver.
I am able to get the device object pointer of the port and able to
dereference the same, but I am failing in configuring the port like set
baudrate.
Can I use this USB com port exposed in modem as normal serial port
interface.
Waiting for expert's comments. All your comments are welcome.
Thanks in Advenace,
Cyril Tag: test Tag: 63784
rundll32 printui.dll,PrintUIEntry Question
I did a setup program in VB to install a printer driver using
rundll32 printui.dll,PrintUIEntry for a silent installation.
When trying it on a PC with Windows 2000 Professional just installed, it
seems to have a problem installing.
We installed a previous version of our driver and it created the folder
C:\WINDOWS\system32\spool\drivers\W32X86\3
and then the setup program worked with the new driver. It seems to be
unable to create the "\3" folder. It only works when that folder exist. I
would like to know what is the "\3" folder and what creates it in a printer
installation.
--
Mario Tag: test Tag: 63782
using devcon or dpinst for serial driver install
I'm running a windows XP system with 2 standard serial ports. I have a
proprietary driver (Mydriver.sys) that i want to install with DPInst on just
one of the COM Ports. Both ComPorts however use the same Device ID (
*PNP0501), so DPInst will automatically install the driver for both COM
Ports. Is there a way to install the driver for just one of the com ports?
Would it be better to use devcon? Tag: test Tag: 63779
Unloading driver
Hy All,
I've made a Pnp driver that I can load / unload in normal conditions (I can
see that the module is unloaded when I disable the last device using that
driver).
The thing is that my driver is also a bus driver. And once the child driver
has been plugged, loaded and unloaded (everything seems ok there), when the
the bus driver is disabled, the device is correctly removed but the module is
not unloaded (and I then have to reboot in order to update the .sys).
Any hint on what could be stuck somewhere in my stack that could prevent the
driver from being unloaded although both chil and bus devices are unloaded????
Many thanxes in advances,
Francois. Tag: test Tag: 63770
WIA Scan minidriver--WHQL(ACPI) Problem
I am facing a problem in WIA minidriver for Scanner through USBScan channel.
I have used the sample WIA scan minidriver sample provided in DDK and
modified the device communication part with USB scan. My minidriver works
perfectly fine and scanning can be performed through WIA dialog, WIA enabled
application (Adobe Photoshop) and TWAIN enabled application like (MS WORD,
Kodak Imaging etc). But the WHQL test fails in ACPI scanner. I have tried my
level best to solve this issue of WHQL but unable to get any clue. If you
gurus are helping me out in this regard it will be a great help to me. Any
clue in this regard will be greatly appreciated. I am attaching the Logs
along with this mail.
Hope to get a help from you all.
Regards,
Deb. Tag: test Tag: 63753
64 bit printer driver problem bugcheck 0x3b when print to file
Hi,
Any tips on this issue is highly appreciated..
In AMD 64 bit printer driver on Win XP 64 bit beta 1 sp 1, When I print
to file or FILE port from 64 bit application works fine....when printed
to file from 32 bit application
It crashes the OS with BSOD of bugcheck 0x3b SYSTEM_SERVICE_EXCEPTION
*******************************************************************************
*
*
* Bugcheck Analysis
*
*
*
*******************************************************************************
SYSTEM_SERVICE_EXCEPTION (3b)
Arguments:
Arg1: 00000000c0000005
Arg2: fffff97fff03d9b1
Arg3: fffffadfe23b2060
Arg4: 0000000000000000
STACK_TEXT:
fffffadf`e23b2878 fffff97f`ff2b52f5 : fffffa80`0209de60
00000000`00b05800 00000000`00000000 00000000`00000000 :
win32k!EngMultiByteToUnicodeN+0x1161
fffffadf`e23b2880 fffff97f`ff2b580d : 00000000`03d70040
00000000`00000000 fffffadf`e23b2980 fffffa80`0209de60 :
win32k!EngSetPointerTag+0x11385
fffffadf`e23b2950 fffff97f`ff14163b : fffffadf`e23b2a68
00000000`00000002 fffffa80`00000002 fffffa80`027fc020 :
win32k!EngSetPointerTag+0x1189d
fffffadf`e23b2a30 fffff97f`ff14143a : fffff680`00000001
fffffa80`002f7ed0 00000000`00000000 00000000`00000074 :
win32k!EngAllocUserMem+0x69b
fffffadf`e23b2bb0 fffff800`01041422 : 00000000`0a210471
fffffadf`00000074 00000000`002dcea8 fffffadf`00000002 :
win32k!EngAllocUserMem+0x49a
fffffadf`e23b2c70 00000000`78bc7eaa : 00000000`78bbc521
00000000`0013e5a0 00000000`78bf89dc 00000000`00000002 :
nt!ZwUnloadKey+0x2092
00000000`0013e4a8 00000000`78bbc521 : 00000000`0013e5a0
00000000`78bf89dc 00000000`00000002 00000000`002dcdb0 :
wow64win!Win32kCallbackTable+0x35a3a
00000000`0013e4b0 00000000`0013e5a0 : 00000000`78bf89dc
00000000`00000002 00000000`002dcdb0 00000000`00000014 :
wow64win!Win32kCallbackTable+0x2a0b1
00000000`0013e4b8 00000000`78bf89dc : 00000000`00000002
00000000`002dcdb0 00000000`00000014 00000000`002dd208 : 0x13e5a0
00000000`0013e4c0 00000000`00000002 : 00000000`002dcdb0
00000000`00000014 00000000`002dd208 00000000`041f58e0 :
wow64!Wow64EmulateAtlThunk+0xbddc
Crashes at IMAGE_NAME: win32k.sys
Similar issue I see in KB Artilce(823650) at
Printer KB Articles BUG: The ExtEscape() Function Is Unsuccessful When
You Print from a 32-Bit Application on a 64-Bit Version of Windows
(823650) Unfortunately the link doesn't seem to work...
Thanks,
Shiva P Tag: test Tag: 63752
IRP_MN_QUERY_CAPABILITIES return STATUS_WAIT_2
Dear Sirs.
please give me some words.
What should i do when Windbg appears IRP_MN_QUERY_CAPABILITIES worning
messages during HCT testing?
The HCT will pass IRP_MN_QUERY_CAPABILITIES irp to my driver , and then my
driver will wait (if STATUS_PENDING returned )and pass it down to the low
layer driver.My driver will do some working after low layer driver complete
IRP_MN_QUERY_CAPABILITIES .
Now , i don't know what should i do when HCT testing program make the low
layer response me STATUS_WAIT_2.
Sould i return STATUS_PENDING or STATUS_UNSUCCESSFUL , or?
What is the meaning of STATUS_WAIT_2? Tag: test Tag: 63742
Problem with the NDIS MUX IM driver (decapsulation not working)
Hi,
I'm using the Win2003 DDK and MUX sample, building using ddk tools.
Running the driver on Win2003 machines.
I'm writing a MUX IM driver based on the sample to do some form of
'tunneling'. I slap on my own ethernet header infront of the real
ethernet header (with a custom eth type) when sending packets down
(MiniportSendPackets). When my IM receives a packet
(ProtocolReceivePacket, ProtocolReceive) with my header, I take it off
and send the packet up.
The problem i'm seeing is that the IM driver takes this extra header
off, but the higher layer protocols seem to get this packet with the
original tunneling header included. I've verified that i take the
header off by stepping through my code in the debugger, and, I've
verified that higher protocols get the original packet by attaching
ethereal to the IM miniport.
Whats interesting is that this thing worked 2 weeks ago. A couple of
things could have changed, but i've tried to roll back everything to
then, and i cant seem to get it to work. One thing that i noticed
today is that earlier i was sure that my packets were coming in on
ProtocolReceivePacket. Now i see all my packets coming in on
ProtocolReceive. I'm wondering if this is a problem. I've attached my
code snippet below.
I'm also suspicious of this line:
NDIS_SET_ORIGINAL_PACKET(MyPacket,
NDIS_GET_ORIGINAL_PACKET(Packet));
Maybe someone in an upperlayer protocol is ignoring MyPacket and using
the OriginalPacket instead ?
Someone had posted in 2002 how they faced a similar issue - their IM
was stripping of part of the packet, yet upper layer protocoles were
getting the original packet. Their problem was something to do with
retransmissions but it doesnt make sense here to me.
Anyone seen anything like this ?
I've been debugging this for 3 days now and i'm running out of ideas.
Suggestions/Hints/Comments welcome.
Thanks,
Gaurav
-------------------------------------------------------------
Heres how my code strips the header off (based off the MUX sample)
called from ProtocolReceice and ProtocolReceivePacket.
//
// Strip off the tag header "in place":
//
pDst = (PVOID)((PUCHAR)pVa + TAG_HEADER_SIZE);
//
// Allocate a new buffer descriptor for the first
// buffer in the packet. This could very well be the
// only buffer in the packet.
//
NdisAllocateBuffer(&Status,
&pNdisBuffer,
pVElan->BufferPoolHandle,
pDst,
BufferLength - TAG_HEADER_SIZE);
if (Status != NDIS_STATUS_SUCCESS)
{
//
// Drop the packet
//
Status = NDIS_STATUS_RESOURCES;
MUX_INCR_STATISTICS(&pVElan->RcvResourceErrors);
break;
}
//
// Prepare the new packet to be indicated up: this consists
// of the buffer chain starting with the second buffer,
// appended to the first buffer set up in the previous step.
//
MyPacket->Private.Head =
NDIS_BUFFER_LINKAGE(Packet->Private.Head);
//
// Only one buffer in the packet
//
if (MyPacket->Private.Head == NULL)
{
OnlyOneBuffer = TRUE;
}
NdisChainBufferAtFront(MyPacket, pNdisBuffer);
if (OnlyOneBuffer)
{
MyPacket->Private.Tail = MyPacket->Private.Head;
}
else
{
MyPacket->Private.Tail = Packet->Private.Tail;
}
------------------------------------------------------------- Tag: test Tag: 63741
which verifier is the most rigorous?
As Windows improves, so does driver verifier's ability to spot
problems. At this point, which driver verifier is the most rigorous of
them all? The ones I would think would be in the running are Windows
x64, 2003 Server, and XP SP2. Related question: are there any other
similar tools out there? Tag: test Tag: 63739
usb mass storage in win Me
I have a lower filter driver for usbhub.sys for my usb composite device.It is
working fine in Win 2K and win XP enumerating all three functions
(Audio,video and mass storage )
properly .However in Win Me, the mass storage is not enumerated properly.
I saw that in the registry in Win 2K the CompatibleID created is
USB\Class_08&SubClass_06&Prot_50,USB\Class_08&SubClass_06,USB\Class_08
while in Win Me it is
USB\CLASS_08&SUBCLASS_06&PROT_80,USB\CLASS_08&SUBCLASS_06,USB\CLASS_08
My device has Protocol Id 50 in it's interface descriptor
If I manually change the id in the registry to 50 in win Me ,the mass
storage driver (usbstor.sys ) is loaded and the it's works fine
any hints on how I could go about debugging this issue are welcome ? Tag: test Tag: 63734
porting WDM driver to solaris
Hello All,
The task I have is to create a driver for a device that will run under
Solaris (in a new SunBlade 2500). I have developed a WDM driver for the
device that runs great under Windows XP, and haven't ever developed a driver
for a UNIX based kernel. The question I have is; Is there a way to use my
existing WDM code to create a Solaris kernel driver, or maybe a Linux kernel
driver?
Any thoughts greatly appreciated,
Brendan Illingworth Tag: test Tag: 63733
How to get the current resolution size of the 2nd monitor?
Hi all,
I am having two monitor displays. I want to know the current resolution
(horizontal number of pixels x vertical number of pixels) of the second
monitor? How to do that?
If it is the primary display, I can easily get its current resolution using
the following apporach.
XRes= (double)GetSystemMetrics(SM_CXSCREEN);
YRes= (double)GetSystemMetrics(SM_CYSCREEN);
But how to do that for the second monitor?
Also, how to set the second monitor to a certain resolution? For example,
how to first enumerate its resolution list and pick an supported resolution
to switch the current resolution to that target resolution?
thanks a lot Tag: test Tag: 63726
bogus PREfast warning
I am running DRVfast (PREfast for drivers) on my IM driver, and see the
following warnings:
warning 8126: The AccessMode parameter to ObReferenceObject* should be
IRP->RequestorMode.
warning 309: Potential NULL argument 3 to 'ObReferenceObjectByPointer'.
The "offending" source line looks like this:
status = ObReferenceObjectByPointer(pCtx->pDeviceObject, FILE_ALL_ACCESS,
NULL, KernelMode);
The MSDN docs for 'ObReferenceObjectByPointer' say that the 3rd argument
SHOULD be 'NULL' for lower-level drivers, and it also says the 4th argument
SHOULD be 'KernelMode'.
Can I in any way tell PREfast that my driver is a "lower-level driver" ?
/ Hannes. Tag: test Tag: 63720
DiskProbe Microsoft support tool
Hi,
I saw this pretty useful tool which allows to directly manipulate the
disk bits.How is this utility being written?
I have tried looking at win32 file system apis and have seen no way of
reading the low level disk bits of a volume (FAT/NTFS) to be displayed in a
editor. Is the utility using undocumented APIs to acheive this?
Thanks
Vipin Tag: test Tag: 63708
pscript5 customization
Ok here is my setup. My company uses pscript5 as the driver for there
software printer. We use our own port monitor to show a dialog box to the
user so they can save to disk in various file formats. My goal is to be able
to share this printer on a server machine, and have the clients get the
dialog box on there machine, instead of on the server.
What I think needs to happen is I'll have to update/replace/mod the pscript5
driver so that when its shared over the network it will be installed on the
new machine, and when the user printer from that new machine the driver will
cause a dialog box to display on that users machine before sending anything
over the network (maybe never send anything). This way a client can use the
printer and save what ever there printing to disk.
I've tried a few approaches to doing this but seem to hit dead ends. If
some one could point me in the correct direction I can follow the path.
Just for reference I've already gotted the ddk and managed to compile the
oemps drivers, but cant figure out how to install them, I've also tried
writting wrapper dlls for the pscript5.dll tried creating inf files for them.
Thanks in advance,
Eric Brooks Tag: test Tag: 63697
AddPrinterDriver returns ERROR_EXE_MACHINE_TYPE_MISMATCH
I seem to be doing something wrong wherein the AddPrinterDriver() is
returning this error. Is it possible to get more information about this
error viz. any componet of the driver having probles etc.
Thanks in advance,
Ashish Tag: test Tag: 63692