Mouse driver for shared PS/2 for Win NT
Hello ,
I need to write a Win NT driver for shared PS/2 Connection.
I`m a beginner for driver developing but a good C++ - Programmer /Developer .
Now my Questions:
Can I write Win NT driver with the new DDK ?
How can I learn fastest to write them.
Have someone an example for a Mousedriver / PS/2 ?
Thanks in advance
Sönke Tag: can i use setupAPIs in a cd-rom driver? Tag: 91594
Is there any difference in ftp xfer done via Internet explorer and ftp xfer done when window opened in windows explorer?
Hi,
When I goto an ftp site in Internet Explorer, I see an option Page->"Open
ftp site in Windows Explorer".
I see that throughput drops and it takes mroe time for xfer when I choose
to use 'Open ftp site in Windows Explorer".
Are there any differences between this option and the regular ftp interms
of app behaviour?
Regards,
-Praveen Tag: can i use setupAPIs in a cd-rom driver? Tag: 91590
Camera Custom Property Page Sample code
Hi, Does anyone know which CD-ROM or DVD contains property page sample
code released by Microsoft dated 1998. I have searched platform SDK
2000, 2001, and 2005, but nothing comes up. This sample code will
generate a camprop.ax file that will be installed and worked with a
WDM driver. I believe one of file name is camprop.cpp. Tag: can i use setupAPIs in a cd-rom driver? Tag: 91588
Toaster Filter driver
Hello guys,
I have a question. I have modified some of the KMDF toaster sample
filter driver from WDK6000 and tried to install this to one of usb
function driver to see if I can get the right IRPs from it. But
unfortunately I couldn't make it work when I install it with the INF
file coming with the sample code. How can I modify this INF file to
make it sit on top of one of the USB devices? or is there a simple way
to do it manually as use to be with the WDM??
I used to make a registry key "UpperFilters" in the designated device
and disable/enable the device manually, then it was working fine. How
can I do this with the KMDF? Should I always use the INF to install
it? even to the filter driver?
Thank you. Tag: can i use setupAPIs in a cd-rom driver? Tag: 91586
SetupDiGetClassDevs couldn't detect medium changer
hello all,
I am workinging on SPTI to access my SCSI medium changer (Jukebox)
with blueray drive. Now I have trouble to detect medium changers. I
can see "unknown medium changer" showup in Device Manager.
code like this:
guid = (GUID*)&GUID_DEVINTERFACE_MEDIUMCHANGER;
// Get device interface info set handle for all devices attached to
system
HDEVINFO hDevInfo = SetupDiGetClassDevs(guid, NULL, NULL,
DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
......
while ( SetupDiEnumDeviceInterfaces(hDevInfo, NULL, guid, dwIndex,
&devInterfaceData))
{
..........
if( SetupDiGetDeviceInterfaceDetail(hDevInfo, &spdid, pspdidd,
dwSize, &dwSize, &spdd))
{
HANDLE hDrive = CreateFile(pspdidd->DevicePath, 0, FILE_SHARE_READ
| FILE_SHARE_WRITE, NULL, OPEN_EXISTING, NULL, NULL);
............................
}
}
It always return 0 item when doing enumeration. I also tried
createfile on "\\.changer0". none of those work. does anyone have any
idea? Thanks
Fred Tag: can i use setupAPIs in a cd-rom driver? Tag: 91585
When exactly USBD_STATUS_ISO_NOT_ACCESSED_BY_HW is reported ?
Hi,
To give you a little background of my query, We are developing a USB
Host Controller and it is expected to work with the standard HCDs
(usbehci / usbohci) on Windows XP SP2.
All the devices, except high-speed isochronous (camera), work
properly.
With the HS camera (logitech) we see that enumeration is all success,
but we don't see any picture. Upon debugging further we observed that
the client driver of the camera gets all the packets back with the
status 'USBD_STATUS_ISO_NOT_ACCESSED_BY_HW' !
The URBs are posted with USBD_START_ISO_TRANSFER_ASAP flag set.
On the bus however we see the Isoch transactions going (and device
responding to it).
As very little information is available on this, I was curious as to
when the USBEHCI resorts to this return value. Exactly what causes it
to deduce that 'the controller did not access the TD asocated with
this packet' ?
Any pointers will be greatly appreciated.
Thanks and Regards,
Abhijit Tag: can i use setupAPIs in a cd-rom driver? Tag: 91584
WHQL for mirror drivers
hi everyone,
how should I start to participate to WHQL with a mirror driver?
I cannot find in miscrosoft tones of docs of which category this mirror
driver belongs and how should I start.
After all the searches I guess this is unclassified, but how can I be sure?
thanks in advance Tag: can i use setupAPIs in a cd-rom driver? Tag: 91583
1394 Driver Install Prompts When Only Chip ID Differs
Hi All,
Is there any way to prevent the user from being prompted for
.inf and .sys files when a second or more 1394 device is plugged
in of the same type? e.g. When only the Chip ID of my device is
different?
It seems Windows should recognize when it sees a second 1394
device of the same manufacturer and device name (but only the
chip id differs) and load the driver for that device.
It seems that this can be done since I'm not prompted,
for instance, when two different USB memory sticks are plugged
in of the same model.
Thanks in advance.
As always, any help is appreciated.
Thanks,
Scott Kerchner Tag: can i use setupAPIs in a cd-rom driver? Tag: 91579
Mirror Driver Installation
I need to install mirror driver with minimal user interaction during
application setup. WDK help mentions driver file destination folders. What
must I do to make system accept the driver and enlist it in device manager?
What action is required for uninstall? Tag: can i use setupAPIs in a cd-rom driver? Tag: 91577
Network adapters immediately re-detected/installed after uninstall
Can anyone explain why, when uninstalling a network adapter class device, the
OS immediately reinstalls it. Sometimes even while the uninstall is still in
progress? Or can anyone confirm that this is actually a bug in Vista?
It doesn't appear to happen with any other device class - just network
adapters. Uninstalling any other class makes it's instance disappear from
Device Manager. With network adapters though, it looks like there is a PnP
refresh and it re-detects the hardware.
Thanks Tag: can i use setupAPIs in a cd-rom driver? Tag: 91575
Can't attach buffer into resource for 1394
I am using two PCs, one Transmits and other receives. On transmiting
side, I have BW allocated, channel 3 allocated, resource allocated,
but
I failed to attach buffers when i use default params of win1394.exe
of
DDK sample.
What's different between the MaxBytesPerFrame of allocating
resource and that of attaching buffers??? Are they necessarily the
same?
Could anyone give me one set of parameters used for
successfully
transmiting and receiving Isoch data..I want to know BW used, channel
used, number of buffers, number of Isoch descriptors used, Max. Packet
size, speed, Buffer size.
I feel I am making mistake in giving param values.
Alan Tag: can i use setupAPIs in a cd-rom driver? Tag: 91570
Job at startup in Silicon Valley for Device Driver Software Engineer candidate!!
Senior Applications Engineer - Embedded Software
I represent a very sharp company that has been around for a few years
and they are hiring local talent for this company. The leaders of this
company have had successes in startups before and they and the VC's
see this as being another successful venture. The company was founded
in October, 2003 with the goal of building a wireless technology
company offering semiconductor solutions for the wireless broadband
market. Since that time they have established a leadership position in
the WiMAX market including holding a position in the WiMAX Forum, one
of only seven companies worldwide to do so.
Job Overview:
They are currently seeking an experienced and talented APPLICATION
ENGINEER with specific DEVICE DRIVER development, embedded software
and BSP development to provide engineering expertise for the Win XP,
Win CE, VxWorks, specifically for their complete line of WiMAX
products. They need an Applications Engineer for real-time embedded
wireless systems. You will provide primarily pre-sales and
potentially some post-sales technical marketing support for the
development and implementation of customer applications dealing with
embedded wireless systems (there is travel and the amount of travel
varies). You will deliver technical presentations regarding all
aspects of company products. Assist the sales staff in assessing
potential application of company products to meet customer needs and
preparing detailed product specifications. Implements detailed
customer installation requirements. Provide follow-up support in
disseminating technical information on specific applications to
service personnel, company sales representatives, and customer's
employees.
Your key responsibilities will involve the support and integration of
the products into various platforms and product lines, with your
primary focus being in the area of embedded software in the wireless /
mobile phones / PDA products.
You will be responsible for support of Device Drivers in Windows CE,
Windows XP, Linux and other embedded operating system environments and
you will serve as the primary customer technical interface and,
therefore, must have strong communications skills.
We need this person to be a VERY strong communicator and problem
solver, as you will regularly be required to identify, debug and
resolve driver issues on customer platforms, AND to work closely with
the engineering and application solutions teams ( In-House teams) to
identify/understand issues and drive customer problems to closure.
Requirements
MSEE or MSCS with 6+ years exp. or BSEE or BSCS with 8-15 years exp.
=B7 6 plus years experience developing wireless and networking products.
=B7 Experience in software development in 802.11, 802.16 802.16e or
other wireless products.
=B7 Experience in Networking standards and stacks.
=B7 Proficient in C/C++ with product development experience.
=B7 Experience with real-time operating systems (RTOS) such as VxWorks.
=B7 Experience with Device driver development for either Windows.
=B7 Adept at using embedded software development tools.
=B7 Conduct design/code reviews internally & with customers.
=B7 System-level knowledge of wireless networking.
=B7 Kernel, OS, Embedded software, BSP development
=B7 Ability to develop test routines in C/C++/Perl/Python or Assembly to
debug and test wireless systems.
Please apply if you are a local candidate to Maryellen O'Connell
directly. maryelleno@volt.com or call me to discuss 415-298-1926 Tag: can i use setupAPIs in a cd-rom driver? Tag: 91561
Binplace - how to use?
I've read http://msdn2.microsoft.com/en-us/library/ms791451.aspx , but
what it suggests just doesn't seem to work as expected.
Short summary of things: I've installed WDK 6000.16384. I've got
the following directory setup:
d:\full\ (empty)
d:\mini\ (empty)
d:\InfinitySnapshot\ , contains Infinity_O.exe and Infinity_O.pdb
In the directory I run binplace from, I've got a file
'placefil.txt', which has the following contents:
---
Infinity_O.exe retail
---
If I run binplace as follows, I get the following results:
binplace -v -a -x -r d:\full -s d:\mini -p ./placefil.txt d:\InfinitySnapshot\Infinity_O.exe
BINPLACE : warning GNA0293: Not a response file (-a)
BINPLACE : warning GNA0293: Not a response file (-x)
BINPLACE : warning GNA0293: Not a response file (-r)
BINPLACE : warning GNA0293: Not a response file (d:\full)
BINPLACE : warning GNA0293: Not a response file (-s)
BINPLACE : warning GNA0293: Not a response file (d:\mini)
BINPLACE : warning GNA0293: Not a response file (d:\mini)
BINPLACE : warning GNA0293: Not a response file (-p)
BINPLACE : warning GNA0293: Not a response file (./placefil.txt)
BINPLACE : warning GNA0293: Not a response file (./placefil.txt)
BINPLACE : warning GNA0293: Not a response file (d:\InfinitySnapshot\Infinity_O.exe)
BINPLACE : warning BNP0000: Looking at file Infinity_O.exe
BINPLACE : warning BNP0000: place d:\InfinitySnapshot\Infinity_O.exe in d:\full\.\Infinity_O.exe
BINPLACE : warning GNA0127: Command line finished
After this is done, d:\full\Infinity_O.exe exists, and is the same
size in KB as the copy d:\InfinitySnapshot . There is no pdb file
here. Under d:\mini, there's 2 directories created, d:\mini\retail\exe
However, no files are placed under d:\mini
What I want is a stripped .pdb, containing only the public symbols
(line #s). Infinity_O.exe and .pdb were created with VS.NET 2003, and
I know that the .pdb is valid. Any tips for how to achieve this? Thanks.
Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein Tag: can i use setupAPIs in a cd-rom driver? Tag: 91556
Where should I post questions for the Device Simulation Framework
Hi,
is there a good place to post questions regarding the Device Simulation
Framework (USB device sim) ?
Not able to use the SoftUSBEndPointEvents events in managed code...
Thks in advance. Tag: can i use setupAPIs in a cd-rom driver? Tag: 91555
Coinstaller question
Hi all,
I have the following fragment in my inf file:
[DestinationDirs]
MyCoInstaller.CopyFiles = 11
[MyModelSection]
"Printer Name" = MY_DRV,MY_PNP
[MY_DRV]
CopyFiles = ...
DriverFile = ...
ConfigFile = ...
DataFile = ...
HelpFile = ...
[MY_DRV.CoInstallers]
AddReg = MyCoInstaller.AddReg
CopyFiles = MyCoInstaller.CopyFiles
[MyCoInstaller.AddReg]
HKR,,CoInstallers32,0x10000,"mycoinst.dll,MyEntryPoint"
[MyCoInstaller.CopyFiles]
mycoinst.dll,,,0x10
[SourceDisksFiles]
mycoinst.dll = 1,,
mycoinst.dll is in the root of the driver package.
After the installation the following appears in the setupapi.dev:
ndv:Installing interfaces...
dvi:{DIF_INSTALLINTERFACES} 15:40:37.368
!!!dvi: Loading module 'C:\Windows\system32\mycoinst.dll' failed.
!!!dvi: Error 126: The specified module could not be found.
!!!dvi: Error 126 loading CoInstaller(mycoinst.dll,MyEntryPoint)
!!!dvi: Error 126: The specified module could not be found.
dvi: No CoInstallers found
I expected to have the coinstaller mycoinst.dll in Windows\system32
because of the CopyFiles in the CoInstallers section but it is obvious
that it was not there.
If I add the MyCoInstaller.CopyFiles in the [MY_DRV] section like this:
[MY_DRV]
CopyFiles = MyCoInstaller.CopyFiles, ...
...
everything is fine.
Am I missing something?
Thanks Tag: can i use setupAPIs in a cd-rom driver? Tag: 91553
Filesystem overlay (poor mans unionfs)
Hi there.
For a legacy application that expects all its customization (.dlls,
mostly) in its working directory and because I need to constantly
switch projects (which involves "copy the working directory, replace
it with another one and restart") I searched for a kind of unionfs[1]
for windows, which would allow me to create a logical view on the
application directory which includes external directories as
neccessary.
Sample:
C:\MyApp\Bin\
C:\MyApp\Projects\Foo\
I'd like to map all file requests that would fail for the Bin to check
another directory again.
Being new to this stuff (and doing it out of lazyness, since the
process described above sucks) I'd love to hear that this barely
involves dispatching IRP_MJ_CREATE?
My current idea would be to deploy a minifilter which does the
following steps in the PreCreate event:
- Check if this request wants a file inside of my Bin directory., else
ignore the request
- Check if the request is readonly (no create file, no append), else
ignore the request
- Check if the requested file exists (ZwFileOpen?) and
- ignore the request if the file exists
- redirect the request to the overlay directory otherwise (setting
the filenameinfo and marking the request as dirty)
Since I'm bloody new here: Can anyone comment on obvious mistakes? Is
this too hard for a beginner's (talking about drivers here) task?
Thanks in advance,
Ben Tag: can i use setupAPIs in a cd-rom driver? Tag: 91547
WDF supplied functions send reset packet twice through USB
Hi All.
I am using wdf to make a usb dfu driver. Trying to reset USB device through
the call of WdfUsbTargetDeviceResetPortSynchronously or
WdfUsbTargetDeviceCyclePortSynchronously I see in the trace that both of them
reset device twice. That behavior prevents dfu from proper work.
Is it made intentionally? Or am I wrong? How to reset device just single
time using wdf?
--
Thanks, Stanislav. Tag: can i use setupAPIs in a cd-rom driver? Tag: 91544
Vista Printer Drivers
Can anyone tell me when the Lexmark Vista drivers will be released namely
X8350 any help would be good as I cannot use my printer with vista
Mal Tag: can i use setupAPIs in a cd-rom driver? Tag: 91542
SDDL string in NdisRegisterDeviceEx()
Hi all, further:
Running with an SDDL string of "D:P(A;;GA;;;SY)(A;;GA;;;BA)
(A;;GRGW;;;BU)(A;;GRGW;;;WD)" and calling NdisRegisterDeviceEx()
retruns STATUS_SUCESS,
In WinObj I can see the device, and its security is set to:
System, Administrators and Everyone: Delete and Query State are
checked in the Allow column, everything else is unchecked.
Restricted, Query State is checked in the Allow collumn, everything
else is unchecked.
What ever I set the SDDL to this doesnt change, which is odd.
With the result that I cannot open the symbolic link from user land.
(My dispatch handler is _not_ getting hit)
This is a Miniport ontop of a multifunction USB bus driver (ours). Is
there any reason why changing the SDDL doesnt work? Is there any
kind of inherited security from the lower bus?
Thanks in advance, Tag: can i use setupAPIs in a cd-rom driver? Tag: 91535
bulkusb sample with DTM test
Hello,
I am new to DTM test. I use Vista DDK's bulkusb sample to transfer MP3
files between PC and Handset. The Handset just has a bulk-in and a bulk-out
pipe, and our purpose is just to transfer MP3 files. It works on Vista.
Now I use DTM to test it, the .inf shows it belongs to USB class (just
like bulkusb.inf). I use usb cable connect handset and pc. And I choose
WDK\ConfigureUSBController in MCU Ploicy tab to start DTM test. And then I
create a submission(x86 Vista) to run test items(it shows 7 items on DTM
Studio) and always failed immediately after I schedule these jobs. All I
want to ask are: If the .inf must has a CAT file first and I must add a
CatalogFile=XXXX.cat and can not give it a blank CAT file? If I should make
a CAT file first and then can do other test items, or they will all fail?
Should it must connect through a usb 2.0 HUB? I had test HCT before, it
seems simpler than DTM. I am not sure about DTM whether something important
that I must to do and I forget to do. Please help me. Thanks.
Ricky Tag: can i use setupAPIs in a cd-rom driver? Tag: 91533
what API should i use for remote port/device blocker?
hi, i am developing a remote port/device blocker. i am planning to use
SetupAPI for blocking devices. will it be the best way or are there any
better APIs for this purpose? thanks Tag: can i use setupAPIs in a cd-rom driver? Tag: 91531
Poor DMA read rate
I have a PCI device (32-bit/66MHz) that has a really poor DMA read rate (host
to device) that is somewhat decent in one machine (59MB/s) but is really poor
in another machine (4MB/s). The performance in the second machine is
equivalent to directly reading memory from the host 4-bytes at a time. The
DMA write rate (device to host), however, is roughly the same in both
machines and close to the theoretical (262MB/s). The device acts as the
master for both reads and writes.
I have a limited knowledge of the details of the PCI bus. Does this look
like an issue with the PCI bridges getting configured differently, resulting
in the read transactions being terminated prematurely? I have access to a PCI
analyzer and will be setting that up as soon as I have access to the machines
again, but I was wondering if this looks like something obvious to someone
more knowledgeable about the PCI bus.
Also, are there any parameters that can be tweaked to improve the read DMA
rate overall? I realize that this is probably highly dependent on the DMA
engine on the device itself. Tag: can i use setupAPIs in a cd-rom driver? Tag: 91529
Ethernet Controller LCS 8036 TX-R Driver for Wndows98 wanted
Hello Windows friends,
I have an old LAN card for use with DSL connection on an old PC. Does anybody know a driver for it ? the manufacturer has ceased support.
thanks for any help
J. Tag: can i use setupAPIs in a cd-rom driver? Tag: 91525
Help!! Out of the Pot and into the Driver Fire
I need some help. I have been thrown in front of a bus at work. We are
having trouble fully testing our network enabled apps for their resilience to
the effect of lag and dropped packets and I got tagged as the lucky developer
to find a solution. As usual, we can't buy anything; but, in this case I
cant find anything that would work anyway. I need to create a small app that
will allow me to catch UDP/TCP packets going up and down the stack and hold
them for a resizeable amount of time to "fake" lag for our app. I also need
to be able to throw out packets based on some known frequency and unknown
(psuedo-random).
Of course, None of us here are Windows driver developers, but from the
research that I've done, it looks like I will need to make a Intermediate
NDIS driver and/or Filter driver. I am pretty sure I can't do this project
in VS 2005, and I need the WDK....Right? Are there any other things that I
will need before I install the WDK? I have been studying the MSDN literature
on NDIS intermediate/filter drivers, but I am not real sure where to go next.
Thanks a billion for any help. Sorry such a newb.
.NETMystified Tag: can i use setupAPIs in a cd-rom driver? Tag: 91515
Virtual disk problem
I'm trying to port my virtual disk driver to Windows Server 2003 SP1 running
on Virtual Server 2005 x64. I create symbolic link using DefineDosDevice. And
I get "X:\ is not accessible. Incorrect function." every time I try to access
created drive. My driver gets only IRP_MJ_CREATE.
Symbolic link is correct: x: --> \Device\Mydevice.
In CreateClose routine:
irp.Status = STATUS_SUCCESS;
irp.Information = FILE_OPENED ;
IoCompleteRequest(irp, IO_NO_INCREMENT);
return STATUS_SUCCESS;
Seems to be OK. I'v tried to call IoCreateSymbolicLink. Same promblem. Whats
wrong? Tag: can i use setupAPIs in a cd-rom driver? Tag: 91513
Communication with driver
Hi,
I'm currently developing a user mode application that creates a rather big
linked list which contains lots of structures that may contain linked lists
theirselves. Now, how can I transfer this rather complex linked list into
kernel mode? What's the best approach?
Thanks a lot,
Peter Tag: can i use setupAPIs in a cd-rom driver? Tag: 91508
HP lagging in providing printer drivers for Vista
my HP1012 laser printer does not work in Vista. I have posted asking
for help elsewhere ... I am interested in reading opinions on why HP
would be so slow in having printer driver support for printers on
Vista.
- the 1012 is no longer sold by HP but it is still relatively new.
assuming HP is providing Vista support for the printers it sells, will
it be difficult for HP to clone one of their working drivers to work
with the 1012?
- in general are printer drivers harder to write in Vista than XP?
- has HP simply become a lame company that has little regard for its
legacy customers?
-Steve Tag: can i use setupAPIs in a cd-rom driver? Tag: 91507
How to properly support an interface in an upper filter driver ?
I am an upper filter driver and set & Enable an interface
(IoRegisterDeviceInterface & IoSetDeviceInterfaceState() . Depending what
stack this filter is on , the stacks below it will fail IRP_MJ_CREATE ,
some will succeed it. Some stacks depend on the IRP_MJ_CREATE , if filter
completes with success , they are not happy.
If the IRP_MJ_CREATE fails , user mode apps cannot access my interface, and
value of filter. What is the proper method for supporting this ? Tag: can i use setupAPIs in a cd-rom driver? Tag: 91506
How do I clean up the registry
Hi,
When I run ndistest, 1c_faulthandling test modifies the registry to
simulate various error conditions (causing scenarios).
During one of the test-runs, system crashed in 1c_faulthandling.
Now I am unable to load the driver because of some tweaking done by
1c_faulthandling.
Question is: How do I restore the registry/fix this problem?
Regards,
-Praveen Tag: can i use setupAPIs in a cd-rom driver? Tag: 91501
USB Selective suspend support by Vista?
Our device is a usb 1.1 low speed device with remote wake up
capability.
and it runs with the Vista in-box hid driver.
it also passed USBCV suspend/remote wake up test,
Well, after choosing maximum power saving policy in the Vista,
we still can not obeserve the driver would send out the "set feature"
command to enable the remote wake up function in our device.
The deivce keep working on D0, and was not able to go into a power
saving state.
""=========
Per the ..http://msdn2.microsoft.com/en-us/library/ms793200.aspx
In Microsoft Windows XP and later operating systems, the USB core
stack supports a modified version of the "selective suspend" feature
that is described in revision 2.0 of the Universal Serial Bus
Specification.
The USB selective suspend feature allows the hub driver to suspend an
individual port without affecting the operation of the other ports on
the hub. Selective suspension of USB devices is especially useful in
portable computers, since it helps conserve battery power. Many
devices, such as finger readers and other kinds of biometric scanners,
only require power intermittently. Suspending such devices selectively
reduces power consumption. More importantly, as long as any USB device
remains powered, it will prevent the system from entering deeper sleep
states, such as C3. The Windows selective suspend behavior is
different for devices operating in Windows XP and Windows Vista.
""==========
Once the device keep working on D0, it would prevent the CPU enter C3,
it would result in the whole system consume more power..
Does anyone knows
1. The in-box HID driver in Vista support seletive suspend feature?
2. If yes, what's the requirement for arming the command to the
device?
Thanks.
-chueh8 Tag: can i use setupAPIs in a cd-rom driver? Tag: 91495
Multiple MiniportMessageInterruptDPCs on the same CPU
In the following scenario, does NDIS call one
MiniportMessageInterruptDPC per MSI message or just one DPC call?
1. The driver uses two MSI-X messages.
2. MiniportMessageInterrupt always sets QueueDefaultInterruptDpc to
TRUE and returns TRUE.
3. The device sends one MSI message and interrupts a CPU. This causes
a DPC.
4. While the last DPC is either running or is scheduled to run, the
device sends a different MSI message and happens to interrupt the same
CPU. Is this always going to result in another DPC because the
interrupt is due to a different MSI message? Thanks... Tag: can i use setupAPIs in a cd-rom driver? Tag: 91490
1394 Debugging - So Close - Need Help
I've set up my host and target machines for 1394 debugging. I have the
virtual 1394 device drivers installed on the host machine and am able to
connect to the target machine to begin the debug session. Right after the
target's 1394 host controller loads, the debugging connection is lost. When
I check the target's hardware properties, the 1394 host controller is whacked.
I've read the documentation that warns to disable the target 1394 host
controller before debugging with the caution "Be careful not to accidently
disable the 1394 net adapter instead". The problem is, when I disable the
1394 host controller on the target, the 1394 net adapter disappears from the
listing and thereby not allowing a debug connect at all.
Any help would be greatly appreciated. Tag: can i use setupAPIs in a cd-rom driver? Tag: 91488
Widcomm bluetooth drivers
Hello all
Anyone had problems with Windows Vista and getting their in built Bluetooth
device by Widcomm working.
Cant find drivers to work with Windows Vista, everything else has installed
without many tears being spilt.
Dan
UK Tag: can i use setupAPIs in a cd-rom driver? Tag: 91486
IOCTL_SCSI_PASS_THRU commands in limited user mode
Hi,
Currently I am using IOCTL_SCSI_PASS_THRU commands in admin user mode, when
logged in limited user mode I am not able to send IOCTL_SCSI_PASS_THRU
commands to an USB device. The reason is Create file will fail due to
Generic_read/Generic_write which is not available in limited user modes, and
IOCTL_SCSI_PASS_THRU needs these options in DeviceIOControl.
As I am working with USB Mass Storage device using usbstor.sys mass storage
driver is there a method that would send same commands through USB end points
or pipes.
Also I found IOCTL_USB_USER_REQUEST which has USBUSER_PASS_THRU option but
I could not locate any sample codes, i guess these are not documented. What I
am trying to do is to send an vendor specfic command to an USB Mass Storage
deivce.
Thanks,
JK Tag: can i use setupAPIs in a cd-rom driver? Tag: 91485
machine hanging after reboot when enabling driver verifier
When enabling the driver verifier and rebooting the machine (done
automatically for some tests by DTM), the machine is hanging during the
reboot. I can reproduce the problem also by doing the same thing manually
(without DTM). I have Windbg attached and it seems the system is hanging at
the very beginning: it seems the driver under test is not loaded yet, the
last messages from windbg are "kernel debugger connection established", some
stuff about symbol paths and "system uptime: not available" as last message.
I'm only able to break into the debugger until after a very long time (more
than 10 minutes). The strange thing is that I do not see the problem on all
my test machines. I'm currently using 2 machines: the one which has the
problem is a single-processor machine, the other one, which is a
multi-processor machine, does not have the problem. Another difference
between them is that the one with the problem has both XP and Vista installed
on it while the other has only Vista installed. Both are 32-bit machines.
Has anybody already seen this problem before or does anybody have
suggestions to debug this problem?
Thanks,
Jeroen Tag: can i use setupAPIs in a cd-rom driver? Tag: 91476
inf update
Hi,
I made a USB WDM driver.
I am trying to make an update on my driver.
Every time I use the update driver the system crash. And I can't find
anything wrong.
I have to physically remove first the old driver and reboot
I was wondering if there is anything in INF to specify the removal and/or
the replacement and/or reboot of the system.
Thanks.
DC Tag: can i use setupAPIs in a cd-rom driver? Tag: 91475
Tcpip.sys bug: FTP Upload. MiniportHalt isnt called untill it has returned all the outstanding sends.
So, set up an FTP upload, then do a safe remove.
Result, underlying USB bus driver gets the query remove and retuend
INVALID_DEVICE_STATE for the Ndis miniport driver writes, but the
miniport drivers Halt routine doesnt get called and the device doesnt
get unloaded, hanging the PnP manager with device manager showing the
device stil present. (You can tell the PnP manager is hung because an
inserted USB stick isnt recognised).
Via an applet and an IOCTL interface, the Ndis driver can be told to
stop, whereupon it cancels all its send packets with a status of
NDIS_STATUS_MEDIA_DISCONNECT. After this has hapened the miniport
halt function does get called.
So, from looking at the DDK:
The PnP Manager issues an IRP_MN_QUERY_STOP_DEVICE request.
On receiving this IRP, NDIS calls the ProtocolPnPEvent function of all
protocol drivers that are bound to the adapter. In this call, NDIS
specifies an event code of NetEventQueryRemoveDevice.
If a protocol driver fails the NetEventQueryRemoveDevice event by
returning a failure code from ProtocolPnPEvent, the PnP Manager might
ignore the failure and subsequently succeed the
IRP_MN_QUERY_STOP_DEVICE request
(but it looks like it doesnt)
...
After all protocol drivers are unbound from the NIC, NDIS calls the
miniport driver's MiniportHalt function.
So, it looks like tcpip.sys is failing the NetEventQueryRemoveDevice
because it still has outstanding sends with the Nic driver, but the
Nic driver cant complete them till its Halt function is called.
Chicken...egg...chicken...egg.
This is on XP SP2.
I wonder if its 'fixed in Vista', like selective suspend ; ) Tag: can i use setupAPIs in a cd-rom driver? Tag: 91474
Auto deletion of files in SDHC cards
Hi all,
We are developing SD high capacity(4GB) card driver in WinCE.We
are able to write and read the files after detection.But when we eject
and insert the card later,we found the files missing in the card.If we
paste some files in the card using card reader and then use the card
in WinCE,we are able to view the files all the times.We miss the files
only when written under WinCE.Whatshll we do?Pls help.......
Thanks,
Praba. Tag: can i use setupAPIs in a cd-rom driver? Tag: 91468
What build target to use for Windows XP 64?
What build target should I use for Windows XP 64 in 3790.1830 DDK? What
about WDK 6000? Tag: can i use setupAPIs in a cd-rom driver? Tag: 91451
DIFx and virtual device drivers...
I would like to use DIFx to install some virtual device drivers. Since
these are virtual drivers I have to create the device instances manually.
Is there a recommended way to do this with DIFx? DIFx appears to require a
real device before it will create an instance. Is there a DIFx way to do
this or should I use the SetupAPI and create the device?
Robert Randall Tag: can i use setupAPIs in a cd-rom driver? Tag: 91445
How user mode drivers handle client application crash?
Hello,
I write a user mode USB driver which serves overlapped ReadFile requests
from the client application. There will be exceptions in the driver when the
client application crashes(or is closed by the Task Manager). Is there any
special requirment for the user mode driver to handle this situation?
BTW, I'm a newbie to the driver development. I'm using Vista and WDK.
Thanks!
zxli Tag: can i use setupAPIs in a cd-rom driver? Tag: 91438
Parallel Dispatching in KMDF drivers
I have a PCI hardware with two communication channels. (A and B)
Only DeviceIoControl() is used to communicate with this hardware,
because there are In- and Outdata for each IRP.
In NT4.0 driver I use the standard-queue for Type-A IOCTLs
and a user-defined-queue for Type-B IOCTLs
NTSTATUS MyDeviceControl(...)
{ ...
switch(pIoStack->Parameters.DeviceIoControl.IoControlCode)
{
case IOCTL_MY_SIMPLE:
// read some bits from hardware and complete IRP
...
pIrp->IoStatus.Information=...
pIrp->IoStatus.Status=...
ntStatus=STATUS_SUCCESS;
IoCompleteRequest(...) // no queue used
break;
case IOCTL_TYPE_A:
ntStatus=STATUS_PENDING;
IoMarkIrpPending(pIrp);
IoStartPacket(...) // the default queue
break;
case IOCTL_TYPE_B:
ntStatus=STATUS_PENDING;
IoMarkIrpPending(pIrp);
MyAlternateStartPacket(...) // my second queue
break;
...
} ...
}
--------------
Now I want to port my driver to KMDF.
But I can define only one separate queue for Read, for Write and for
IoControl.
My Problem is, that I need two queues for IoControl like in my NT4.0
driver,
because two User-Mode threads are communicating with my hardware
(one thread with channel A, the other with channel B)
Question 1:
Is it possible in KMDF to return the IRP without using a queue (like
IOCTL_MY_SIMPLE)
Question 2:
Can I direct my IRPs into different queues in KMDF?
EvtIoDeviceControl is called for all types IOCTLs. (IOCTL_TYPE_A and
for IOCTL_TYPE_B)
Thanks
Jacques Tag: can i use setupAPIs in a cd-rom driver? Tag: 91437
Print Monitor Needs to Access Interactive Services
I have a print monitor that is installed for a custom Postscript printer
driver.
This print monitor needs to display a screen asking the user to name a file
and select some processing options during the call to LcmStartDocPort. It
also invokes a COM object that display several interactive screens to process
the file during the call to LcmEndDocPort.
The printer driver and monitor installs and runs on OSes Win2K and up. It
also installs on Vista, and it will properly interact with the user and
process files as designed.
However, on Vista the OS intercepts the dialog boxes and displays a dialog
titled "Interactive Services Dialog Detection". The message is that "The
program [my port monitor] may need information or permission to complete a
task." When the user clicks OK, the dialogs are displayed.
My questions:
1. How can I properly set permissions (programatically, during the
installation) on the port monitor so that it can interact in the user session
without the OS intercepting the dialog boxes?
2. Do these permissions need to be applied to the port monitor (a dll) or
to the spooler that invokes it?
Thanks,
Mike Tag: can i use setupAPIs in a cd-rom driver? Tag: 91436
How to support DRM in AVStream?
Hi,
I would like to implement support for DRM content in a AVStream based
driver. The DDK only mentioned about how to declare support for a WaveCyclic
or WavePCI miniport driver, and nothing about AVStream. Can anyone provide
any info? Thanks
KS Tag: can i use setupAPIs in a cd-rom driver? Tag: 91435
How can I get certification stored in WinXPX64?
Which API do I use and it makes me to get certification stored in "WinXPX64"?
I tried to use CertOpenSystemStore() and CertEnumCertificatesInStore() APIs.
Some certifications stored in local computer, but I sometimes get no
certification. I don't know what the reason is. Whether do I need to use
other APIs, not these or not? Do these APIs not work completely? Does
somebody help me to solve this issue? I need you some suggesstion. Thanks. Tag: can i use setupAPIs in a cd-rom driver? Tag: 91434
Strange Monitor behaviour and debug messages on win2k3
Hi there,
I have a question, it seems that when I print and exaclty afterwords attempt
a XcvDataPort() on the Monitor that has recieved my print data I get error
170 (requested resource is in use).
On the debugger it I saw that this module gets loaded "pcl5eres.dll" and
someone prints this debug information:
"Entering SimpleDocumentPropertiesinside DDPS returning sizeofEntering
SimpleDocumentPropertiesEntering SimpleDocumentPropertiesinside DDPS
returning sizeofEntering SimpleDocumentPropertiesEntering
SimpleDocumentPropertiesinside DDPS returning sizeofEntering "
What is it? Does anyone what this data means and why such a think could be
happening.
Thanks
Adam Tag: can i use setupAPIs in a cd-rom driver? Tag: 91433
can we use setupAPIs for writing device drivers especially a cd-rom driver?