One more bug - please vote
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackId=FDBK28013
--
http://www.cristalink.com Tag: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? Tag: 63733
How to test BDA driver useing HCT??
dear all,
I want to get WHOQ log , how to test my bda driver by HCT first??
thanks Tag: where is USBVideo.sys? Tag: 63727
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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? 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: where is USBVideo.sys? Tag: 63692
printer driver crashes Acrobat Reader 7.0
Hello,
my printerdriver is written from scratch, but I have looked a lot at the
plotter driver from the DDK samples.
My Driver initializes the structures GDIINFO, DEVINFO, DEVMODE and so
on. The surface is created in "DrvEnableSurface" using functions
"EngCreateDeviceBitmap((DHSURF)pPDev, SurfSize, BMF_24BPP)" and
EngAssociateSurface(pPDev->hsurf, (HDEV)pPDev->hpdev, HOOK_COPYBITS |
HOOK_STROKEPATH | HOOK_TEXTOUT).
The driver compiles very fine and applictaions like OpenOffice,
MS-Paint, WordPad and Webbrowsers assess my functions like DrvTextOut.
Only "AcrobatReader 7.0" crashes if I want to print a document. The
crash occures, if a accept print dialog with ok.
Thx for help and please ask each question you have.
Best regards
AF Tag: where is USBVideo.sys? Tag: 63675
Correct group for WDM development??
Just wanted to know if this was the right group to discuss Windows
Driver Model (WDM) type drivers?? Particularly for Win2K?
Q1: Is the book "Programming the Windows Driver Model" by Walter Oney
useful?
Q2: The MS Windows .Net DDK. IS that still available from Microsoft,
and does anyone know the cost? I assume that's necessary??
Q3: Is Visual Studio 6 still required for the book's examples, or will
VC++ 5 do?
Q4: Is there another less expensive way to develop Windows drivers?
Thanks,
Lou. Tag: where is USBVideo.sys? Tag: 63673
Windows: How to support 2 chip in a single driver?
Hello,
I have to write a mini-port driver which must handle 2 chip
simultaneously. Is it possible? If it is, what's the difference?
If no, do I have to write a filter driver to do this? Thanks.
Andy Tag: where is USBVideo.sys? Tag: 63667
SCSI interface.
I have one problem with a printer on WinXP through SCSI port. When I turn on
the printer the system find new hardware and the Windows wizard procedure
search one driver for my printer device. I have not a specific driver and I
have not a INF file for installation this device , because is not necessary.
There is any way for disable the plug and play for SCSI devices ?
How could I make a INF file for my printer device (note that I have not a
device driver) ?
The system identify my printer device as ( Preprocessor device ) is it wrong
?
Thanks. Tag: where is USBVideo.sys? Tag: 63666
legacyMode Problems
Hi,
I am trying to use the legacyMode element within the dpinst xml schema, so
that we can install non signed drivers using the Device Package Installer.
However i do not seem to be bale to get it to work as it will not install the
drive as it is not signed. Is there anything else that one should do to get
this to work?
Many Thanks,
Bruce
<?xml version="1.0"?>
<dpinst>
<language code="0x0409">
</language>
<icon>App.ico</icon>
<watermarkPath>AClogo.bmp</watermarkPath>
<legacyMode/>
</dpinst>
--
Bruce Philp
Software Engineer
Astron Clinica Ltd Tag: where is USBVideo.sys? Tag: 63656
about SdBusOpenInterface() and SDIO
the sdbusapi.doc said, the SdBusOpenInterface() should be called in
AddDevice(), but I develop a driver for NDIS NIC, then I have no this
callback routine , I call it in my MiniportInitialize(),but it failed all
the time,I have no idea.
please help me, if you know this.
and it said, SD function drivers are WDM drivers that are linked to the SD
bus driver lib.they are not minport driver like NDIS or SCSI driver.
How to understand it?who can explain for me. thanks!
THX very much!
AMon Tag: where is USBVideo.sys? Tag: 63654
windows multicast configuration
Should I be setting any particular configuration for multicast support on
windows host? Are there any ms applications which support multicast and could
be used for testing?
thanks Tag: where is USBVideo.sys? Tag: 63653
Understanding the MSplotter
Hi all,
My aim is to modify the plotter.dll so that I can get a bitmap image(print
to file).
I have been looking around for the point from where I can extract the data
in its 'raster format' and then pass it on to some buffer and then write it
to a file.
I am using the source code provided by DDK
(\\WINDDK\2600.1106\src\print\msplot\plotter) and I think that the data maybe
available at the file 'output.c' b'coz this is from where the data passes on
to the spooler after rendering(but i would like to capture it before the
rendering process). Could anybody guide me as to where I can extract the data
in its RAW or raster format so that I may copy this to a file?
do i need to look at other files like htbmp1.c etc.?
Regards
--
***ljose*** Tag: where is USBVideo.sys? Tag: 63652
USB Over IP
Hi,
I have some requirement like... attach a USB-device (i.e. USB-printer,
USB-Scanner and other USB-devices etc... ) to a remote computer on LAN
network.
And through some application network software be able to see this
USB-printer, USB-Scanner as it was plugged directly into my own computer and
use it.
So this is more like a redirector driver.
I have taken some idea of Doron Holan [MS] from this news group & thinking
to write my own Bus Driver & instead of sending URB traffic to local usb
controller, I'll encapusalte the URB into network packet and send it over
the network. The other side (the remote one), takes the packet and then
sends it to the controller on the remote host.
Here are my queries:
1) Apart from the URB's, how to handle the some of the USBDLib function
calls like USBD_CalculateUsbBandwidth, USBD_RegisterHcFilter, etc. These
calls are direct function calls. They are not URB's. They are direct calls.
They wont come to the virtual Bus driver. How to handle these kinds of
request?
Any Help??
2) Comming to the server side....
At the remote side how should I proceed? What are the characteristics of
this "remoting" driver? How do I design the driver which will take these
URB's come
from remote side and communicate with the device? Do I have to write a filter
driver for usbhub.sys (USB Hub or Bus driver)?
3) How about supporting a USB-Isochronous device? Will there be any issues?
Any one is working on similar kind of thing? Any ideas? Any help?
Thanks Tag: where is USBVideo.sys? Tag: 63648
Display Mirror Driver disables DirectDraw Overlays, DVD playback
Hi,
I'm having the same problem that was referenced about a year ago in this
thread:
http://groups-beta.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/51715b3805247298/6b3237452b8466b1?q=%22mirror+driver%22+overlay&rnum=1#6b3237452b8466b1
However, the above thread ends without a confirmed resolution of the issue.
Curious if there is any more information available. I have tried all the
same tests described in that thread. I am also targeting DX7, but if it
would resolve the issue could target DX8.
Specifically, I have written a simple mirror driver based on the mirror
sample that is able to capture the coordinates (but not contents) of most
on-screen changes. Unfortunately, when this driver is active (attached to
the desktop), Windows disables DirectDraw support. This in turn, breaks DVD
playback, among other things. I do not care to capture the contents of any
updates (just the coordinates), but people get cranky when DVD playback is
broken.
Simply detaching the driver from the desktop resolves the problem, but
ordinary users cannot set the necessary registry setting to turn on/off the
driver as necessary. Also, this causes additional repaints of the entire
desktop when Windows modifies the display devices.
Another wrinkle, as mentioned in a different thread, is that if I test on a
multi-monitor system with the desktop extended that the problem does not
occur at all -- DirectDraw remains enabled despite the presence of the
mirror driver. If I could cause this behavior on a single-monitor system, I
would be all set.
I am looking for any of the following solutions:
1) A setting I may use to cause Windows to keep DirectDraw enabled when my
mirror driver is enabled. I would be very happy if Windows would simply
overlook my driver for the purposes of DirectDraw without hampering other
applications.
2) An example of a working DrvGetDirectDrawInfo for a mirror device. As
described in the previous thread on this topic, I see 2 calls to
DrvGetDirectDrawInfo, but no other DD calls. It would be helpful if this
were in the DDK sample code.
3) Suggestions of alternate workarounds.
Thanks,
Andy Tag: where is USBVideo.sys? Tag: 63639
Sd bus interface open?
How about SdBusOpenInterface()
I call it in my MiniportInitialize() function, but it failed.
NdisMGetDeviceProperty(
Adapter->MrvDrvAdapterHdl,
&(Adapter->PhyDeviceObject),
&(Adapter->FuncDeviceObject),
&(Adapter->LowerDeviceObject),
NULL,
NULL
);
KdPrint(("NdisMGetDeviceProperty() Adapter = %x,\nPDO = %x,\n FDO
= %x,\n LDO = %x\n",Adapter->MrvDrvAdapterHdl,
Adapter->PhyDeviceObject,Adapter->FuncDeviceObject,Adapter->LowerDeviceObject));
//Open Sd
Status = SdBusOpenInterface(
Adapter->LowerDeviceObject,//UnderlyingPDO
&Adapter->SdBusIfStd,
sizeof(SDBUS_INTERFACE_STANDARD),
SDBUS_INTERFACE_VERSION);
where should I modify? thanks! Tag: where is USBVideo.sys? Tag: 63638
Passing MSVAD buffer to user space
Hi All,
I am working with the MSVAD from the Win XP DDK. What I'd like to do
is to share the buffer "m_pDataBuffer" (non-paged pool) with the
user-space because I'd like to do some further processing on the
captured data in user space. I have done some research and there's a
few ways:
1) Use DeviceIoControl and use METHOD_IN_DIRECT or METHOD_OUT_DIRECT.
2) Mapping kernel memory to user memory.
3) Use Shared Memory Object Method (memory-mapped file backed by the
paging file)
In case of MSVAD, I just don't see how I can use method 1 because this
is a "passive" driver and I see no code to handle IOCTLs.
Method 2 is ok but you have to call MmMapLockedPagesSpecifyCache() from
the context of the process that will be using the mapping. I am not
sure that this will work for MSVAD because the app will be run after
the driver is loaded and the context will be arbitrary.
Method 3 is not recommended by MS because "the scope of the address is
limited to the process in which the object is mapped, and it cannot be
accessed in a DPC or ISR."
Ref: http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q191840
I am not sure if Method 3 effects the MSVAD driver. Can anyone explain
how to use this method to give user-space access?
Does anyone know how else I can map "m_pDataBuffer" to user-space, with
MSVAD in particular??
The stuff I have read references real device drivers and things get
muddy when you are using MSVAD because it is a virtual device driver.
Any help appreciated.
Regards,
James Tag: where is USBVideo.sys? Tag: 63637
Unidrv's DrvNextBand hangs
In this third pary virtual driver i'm looking at, the OEMNextBand
function mades a call to Unidrv's DrvNextBand. This hangs for a long
time until the printing dialog prompts about error. Only when i cancel
the printing does the call returns and OEMNextBand completes.
This only occurs when doing color printing. Printing the same document
on black and white does not invoke OEMNextBand, but OEMStartPage
instead.
Can someone enlighten me on what's wrong here?
Thanks! Tag: where is USBVideo.sys? Tag: 63635
HID device enumeration problems.
First, I apologize if this post is out of context for this newsgroup.
I am experiencing an unusual behavior when connecting multiple USB-based HID
devices. The devices are data loggers, and are identical (Vendor/Device IDs)
except for their serial number.
I am not using custom drivers. Everything is being done through the
Microsoft-supplied HID and Setup APIs.
My application program uses SetupDiEnumDeviceInterfaces in conjunction with
SetupDiGetDeviceInterfaceDetail to get the device details.
Normally, all devices are found during the enumeration, and all devices work
properly.
However, if I keep the devices open for for an extended period, close the
devices, and then reopen the application, occasionally one or more of the
devices drop out of the enumeration. The devices remain missing until I
physically disconnect and reconnect the USB cable from the device. Once
reconnected, everything works again.
Interestingly, all the devices show up in Device Manager, regardless of
whether or not SetupDiEnumDeviceInterfaces finds the device.
I should add that if only one device is present, there are no problems.
Does anyone have any thoughts? Am I missing something? Tag: where is USBVideo.sys? Tag: 63628
What is pcl5ems.dll for?
What is pcl5ems.dll for? The Northeast Data (NED) virtual printer
installs nedip.dll and nedres.dll, both of which are actually just
pcl5ems.dll.
Why the need for 2 copies to be installed?
thanks Tag: where is USBVideo.sys? Tag: 63624
Sample code for performing a DMA from local memory to local memory
Hello All,
I'm new to the Windows programming/development world having all prior
experience in the embedded world.
In the embedded world I could access and setup the DMA controller, but it
appears that it is not easily accessible from Win XP.
Does anyone have any sample code that shows how to do a memory-to-memory DMA
transfer on Win XP. Specifically I'm trying to transfer data to a remote
device whose physical memory is mapped to a virtual address on my machine, so
my machine thinks it is local memory.
Thank you in advance.
--
Gerald Chang Tag: where is USBVideo.sys? Tag: 63623
Surprise removal reported, device disappears
Windows XP is being used as an application platform for SCSI device testing.
The devices do not have valid file systems. After downloading new firmware
to the drive, Windows will detect the drive as being different(Inquiry data?)
and issue a plugplaymanager event id 12 indicating a surprise removal. From
that point it takes about 2-5 minutes or a reboot for the application to find
the device again. A bus scan ignores the existing device at this ID and the
associated commands which would be issued with a bus rescan to the driver do
not occurr. Our application commnicates to the device via a custom class
driver and a standard SCSI mini-port driver.
1: how can I make the device re-appear quickly? Bus scan for the missing
devices are apparently bypassed inside the OS somewhere. Reboot is painful.
2: Or how can I prevent windows from marking it as removed. Disabling Plug
and Play does not appear to help. It turns itself back on and it could have
some other undesired side effects with it off. Tag: where is USBVideo.sys? Tag: 63615
Printer driver problem in a mixed OS environment (XP and NT)
Hi all,
I have developed a kernel mode printer driver which works
fine on NT4, Win2k and XP.
There are only problems when using in mixed environment:
- XP as PrintServer
- NT4 as Client
After 'Point and Print' installation on NT4 following
errors occur:
1.
In the Printer port settings on the NT4 client, the
port to which the printer is connected is not visible
(no port is selected). When I want to leave the port
tab an error occured, that no port is selected (sounds
logical ;-)).
2.
Sometimes while 'Point and Print' insatallation the
Spooler on the Server PC (XP) crashes.
So printing is (most) impossible from NT4.
Any Ideas?
Thanks in advance
Martin
Background:
- The printer driver is installed via a setup program
on the server (with the AddPrinterDriver / AddPrinter
calls).
- The printer is connected to a 'self made' port, which
writes printer output to disk
- A test with an inf installed HP kernel mode driver
did not have this problems (printing to the same port
as my driver). Tag: where is USBVideo.sys? Tag: 63613
NDIS_PACKET
Hi all,
I'm trying to create unified view for data incoming into my ProtocolReceive.
I try to create NDIS_PACKET from LookAheadBuffer (and others) if NDIS_PACKET
cannot be obtained from underlying miniport. What I do is
1) allocate new buffer
2) copy into it HeaderBuffer and LookAheadBuffer (and rest of data using
NdisTransferData)
3) set up header size (NDIS_SET_PACKET_HEADER_SIZE) and
NDIS_STATUS_RESOURCES
This approach seems not to be correct (ping from remote computer doesn't
pass thru my IM). What is wrong?
Thanks for patient
Michal Tag: where is USBVideo.sys? Tag: 63612
Read spool file
Hello to all in the ng.
I am writing my own print processor and my question is as follows:
Is there any other way to read the spool file than getting the path from
the registry
(System\CurrentControlSet\control\Print\Printers\DefaultSpoolDirectory)
or use the ReadPrinter function?
Thanks in advance. Tag: where is USBVideo.sys? Tag: 63611
Driver Stack Load Order
Hi,
I am also making USB driver for our USB keyboard which send scan codes in
our specific format. But I am not able to fetch the proper devicedescriptor
from USB keyboard. On analyzing further, we found that our driver was not on
top of USB Bus Driver and all USBD*() calls were failing.
What is the procedure to insert our driver on top of USB Bus Driver so that
USBD*() calls can succeed?
Thanks
Ashish Tag: where is USBVideo.sys? Tag: 63603
Copying file in kernel mode
Does exist more confortable way to copy file in kernel mode than opening,
reading to buffer, creating new and writting buffer to new file ?
Thanks !
Peter Tag: where is USBVideo.sys? Tag: 63597
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.
"Smarty Phoney" wrote:
> 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.