Device Extension for NDIS miniport driver
I am writing a NDIS miniport driver. From DDK
documentation, I was told to use NdisRegisterDevice
instead of IoCreateDevice to create a device object.
However, the same documentation also says that the device
extension for an object created with NdisMRegisterDevice
is reserved for use by NDIS and cannot be used by the
driver. I want to modify the device extension to store any
state status and information. How can I do that?
Thanks,
Billy. Tag: Win2k printer minidrivers running on NT 4? Tag: 38370
Win2000 startup w/o VGA
Can an embedded Win2000 system be started without VGA,
keyboard and mouse hardware? NT4.0 used to choke when VGA
was absent. Thanks. Tag: Win2k printer minidrivers running on NT 4? Tag: 38369
SetupCopyOEMInf - avoiding prompts during install
I have a new driver install and an old driver install that use different
source media locations. I have been using SPOST_PATH for the
OEMSourceMediaType when I call SetupCopyOEMInf. This is leading to setup
problems because the old INF is selected by SetupAPI during install. This
INF points to an installation directory that does not exist and the user is
prompted for the correct location of required files.
I think the root of this problem is that the PNF has to old source media
information. Should I call SetupCopyOEMInf with SP_COPY_REPLACEONLY copy
style to update the old PNF if it exists and then call it again with the
SP_COPY_NOOVERWRITE copy style to copy it sure the PNF has the current
source path info (if needed)?
I'm installing an IM driver on 2000/XP.
Thanks,
Shawn Tag: Win2k printer minidrivers running on NT 4? Tag: 38364
Hardware ID in win 2000 and UpdateDriverForPNP
My .inf has an entry for that says _01
%xyz.DeviceDesc%=xyz.Device,USB\VID_xxx&PID_yyy
I am trying to install the driver for the device for the case where
the device is plugged in but the Add New hardware wizard was cancelled
by the user.
Now, if I pass the HWID "USB\\VID_xxx&PID_yyy", updateDriverfor..
fails with 20B (no_such_device) I think.
Then if I change it to "USB\\VID_xxx&PID_yyy&Rev_0001" (which I know
from the registry whenever I install this successfully in the nice ol'
plug device after software installation way) AND also change it in
.INF, my updatedriver.. succeeds and device is shown working properly
with the correct name in device manager.
So my question is, what is that Rev.. thing? is it like a hardware
revision? if so, I would not know every possible revision number in
advance and would like to keep it generic for the device? How do I
achieve that? What is the correct entry in .INF and correct HardwareID
to be passed to the function updatedriver..
Thanks for your time. Tag: Win2k printer minidrivers running on NT 4? Tag: 38363
Installing devices
Could you give me any example how to programmatically
install devices. It should work properly at 9x, 2000/XP
platforms.
I've tried "working" samples from ddk's, but they were not
worked properly.
Thank you. Tag: Win2k printer minidrivers running on NT 4? Tag: 38360
Child Display Driver...
Hi,
I want to implement a WDM Child Display Driver and request I2C interface
from display driver which I am going to use to send the DDC/CI data to
Monitor. One option was to have WDM child driver to miniport but I am
exploring this possibility. Is it possible to make a WDM driver a child
driver to main display driver and how do I specify that this is child driver
of display driver so that system and display driver can understand this ?
Any help in this regard will be appreciated..
Vishvesh Tag: Win2k printer minidrivers running on NT 4? Tag: 38358
What's the rule to call IoCompleteRequest for power Irp?
I understand when should call IoCompleteRequest for PnP Irp.
For Power Irp, it seems have different rule.
I am confused, I don't know when I should call IoCompleteRequest
for power Irp, when should not.
For example, bulk usb sample code of XP DDK.
In set device power state process, IoComplete routine of power Irp
calls IoCompleteRequest to complete Irp when power up.
However, IoComplete routine doesn't call IoCompleteRequest when
power down. Why it needn't call IoCompleteRequest?
What's the rule to call IoCompleteRequest for power Irp? Can anyone
tell me?
Best Regards
Jackal Huang Tag: Win2k printer minidrivers running on NT 4? Tag: 38354
Writing Data to BIOS
Hi,
Is there a way for writing data onto BIOS.I want to
write data of size 20 bytes for validation purposes in the
BIOS from an Application.Can we do this with C APIs.Any
help is appreciated.
Shyam. Tag: Win2k printer minidrivers running on NT 4? Tag: 38352
Help on Win2k and USBD_STATUS_DEV_NOT_RESPONDING
Hello Everyone,
I have written a NDIS-WDM (USB) driver. I ran the NDISTest on Windows
XP. There was no problem.
Then I used (ported) the same driver on Win2K (by setting NDIS50 instead
of NDIS51).
Surprisingly, I am getting a strange problem. When I run heavy traffic
tests (like 2c_PerformanceProfile and 2c_SendRecv1), I get a strange
error in the middle of the transfer.
I get STATUS_DEVICE_DATA_ERROR in the IRP Status and
USBD_STATUS_DEV_NOT_RESPONDING in the URB Status. But the device is
connected and running. I tried doing RESET_PORT at the error condition.
But it does not help.
Also, when I remove the cable also, I don't get
STATUS_DEVICE_NOT_CONNECTED in Win2k (like I get on WinXP). Instead I
get STATUS_DEVICE_DATA_ERROR (and USBD_STATUS_DEV_NOT_RESPONDING).
How can I handle the conditions? Even though the device is connected and
working, I get USBD_STATUS_DEV_NOT_RESPONDING and when the device is not
connected also I get the same error. There is no difference in the errors.
Since mine is a NDIS-WDM driver, I don't get SURPRISE REMOVAL event on
Win2K (as I get on XP). So, I cannot detect the surprise removal also. I
have to wait for the MiniPortHalt to be called which does not happen
until I stop the USBD IN/Read transactions. If I ignore the first error
of USBD_STATUS_DEV_NOT_RESPONDING, I get ENDPOINT_HALTED error in the
subsequent IN/read transactions.
I know at least one of you might have faced the same/similar problem.
Can anyone please help me in having a work-around for this problem. If I
am doing something wrong in my driver, please let me know so that I can
correct the same.
Thanks in advance for the great help.
Best Regards,
GNRaj Tag: Win2k printer minidrivers running on NT 4? Tag: 38350
Enumerating NIC's Registry key
Is there a way to get the NIC's registry entry path in
order to open it with the standard ZW registry routines?
I want to open a key under the NIC's key and then enumerate its entries.
Is there a way to do that?
Gram, Tag: Win2k printer minidrivers running on NT 4? Tag: 38349
pull man from burning printer Passers-by, neighbors fight fire in Exeter.
Re: pull man from burning home Passers-by, neighbors fight fire in Exeter.
> !!!!!! wrote
>
>Okay, there was a fire and a couple of guys were heroes. That's nice, but
>it's obviously nothing more than a religious agenda. So why crosspost it to
>misc.emerg-services?
berry
why not thats where it should be Tag: Win2k printer minidrivers running on NT 4? Tag: 38347
Device object creating in 2003
Hello,
I am making some device driver for DVD media. But I have
trouble for DVD multi-drive that can support DVD-R/RW, DVD-
RAM media at same time. So I need change it's device type
depending on media. Also, I want to create DosDevice which
will be a mount point of media.
( This works good in Windows 2000 )
What I am trying to do:
1. Change device type from FILE_DEVICE_DISK to
FILE_DEVICE_CD_ROM or reverse.
2. Create virtual driver letter( ex, z:\ ) which is
symbolic linked to '\Device\xxxx'.
* basically both 1 & 2 are working good in windows 2000,
but not in windows 2003.
Where I am at:
1. When the system boots up, I create Device node with
FILE_DEVICE_DISK. When a DVD-ROM media inserted, delete
that node and create new device node with
FILE_DEVICE_CD_ROM as same device name. ( In case of DVD-
RAM media, use it as it is. ) The deletion and new
creation device node returns success. But when I try to
get File system using NtQueryVolumeFile, the process is
hang. I quess the device type is not changed.
2. When I got some ioctl, I create 2 device nodes. One is
\Device\xxxx with FILE_DEVICE_DISK and the other is
\DosDevice\z:. And I did symbolic link both. Here, I got
success return value for all step. But I cannot look up
\DosDevice\z: even if I can see \Device\xxxx.( with
WinObj.exe ) The data I/O to z: works good. But I can't
see z: drive in window explorer.
* But when I make a windows service application which do
as same step of #2, the service application can create
\DosDevice\z: and z: is visiabl in window explorer.
Both 1&2 device driver is made of LEGACY type not PNP.
Let me know if you need any more details.
Thanks. Tag: Win2k printer minidrivers running on NT 4? Tag: 38346
Triggering DrvNotify calls in multi-monitor environment
I have a multi-monitor environment in Windows XP (both primary and secondary
monitors active) and am trying to determine what I can do in the graphics
driver of the secondary to trigger a DrvNotify call to the primary's
graphics driver. DrvNotify calls are made to both primary and secondary if
the origin of the secondary changes. But all I want to do is trigger the
primary DrvNotify call without doing something drastic like changing
origins.
Thanks,
Armin Tag: Win2k printer minidrivers running on NT 4? Tag: 38343
Problem in Resuming the machine after suspend
I have a USB2.0 video capture device connected to a laptop. If the video capture device is connected through a USB 2.0 hub, then the machine resumes properly from a suspend. But if connected directly (without a hub), then the machine does not resume after suspend and it hangs. How should I go about debugging this issue ?
Thanks.
Hannah Tag: Win2k printer minidrivers running on NT 4? Tag: 38342
Similar Devices in Device manager: UPDATE
I do not know what subject I used earlier and cannot see my post until
3-4 hrs since I am using google.
Just to let people know that I formed the right search string and
found this helpful post:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=%23WQ%24H%23VfDHA.2236%40TK2MSFTNGP12.phx.gbl
and my problem has been solved.
Sorry if anyone spent their time already. Tag: Win2k printer minidrivers running on NT 4? Tag: 38335
Information of PEPROCESS
Or I can find the good format of recording of variable
PEPROCESS?
I have make research on Internet and what I find is
information completely bad.
For example imagefilename is actually in the position
0x173 (PEPROCESS) instead of 0x1fc.
I nothing any more includes/understands there. Tag: Win2k printer minidrivers running on NT 4? Tag: 38330
Two similar devices in Device Manager after preinstall
Hello,
What I am trying to do: Preinstall a driver so that a device that is
already connected (but not gone through/cancelled the found new
hardware wizard screen) works without disconnect and reconnect. (since
I cannot make animations showing "plug it in now" :) )
Where I am at: I know the hardware id of the device and I am using a
code very similar to install.c in the DDK sample for installing the
driver using UpdateDriverForPlugAndPlayDevicesSoThatTheUserDoesNotHaveToGoThroughTheFoundNewhardwareScreen
function. It seems to be working, well, only partially.
I am on w2k, and have to use the SetupDiGetINFClass/
SetupDiCreateDeviceInfoList/ SetupDiCreateDeviceInfo sequence. In the
end, the call to Updatedriver.. succeeds but I can now see *two* USB
devices with same name in the device manager (the name is correct),
one is shown working correctly and the other has a yellow companion.
Enum\USB has information about 1 device and it is what it should be. (
My removal code thinks there are two devices also I do GetClassDev,
EnumDevices and then callClassInstaller with REMOVE, it thinks it has
removed two devices.)
What am I doing wrong? Let me know if you need any more details. I am
new to this and do not know exactly what things are most relevant.
cheerio! Tag: Win2k printer minidrivers running on NT 4? Tag: 38329
No InterlockedAnd available in builds
When using WDM.H in the XP DDK (same problem in the 2003 Server DDK), my
build isn't finding any conditional- compile section that has a definition
for InterlockedAnd in it. Are there special compile options or something I
need to set to get to use this function? As far as I know, I'm doing a
regular x86 build. Tag: Win2k printer minidrivers running on NT 4? Tag: 38323
where can I get Driver Install Frameworks Tools?
Hi, Everyone!
I read a couple of papers on the Microsoft site about the
upcoming new "Driver Install Frameworks Tools" (DIFxApp
and DPInst) that were supposed to have come out in
December 2003 (Version 1). But all I ended up doing is
filling out some survey about participation in Beta 1
program which seemed to have ended already. I want to
try out these Tools and see if they help us develop good
driver installations, but I cannot even find trial
versions of this software. What is the status of these
Tools? When and where can I get a hold of trial/beta
versions of these?
-igor. Tag: Win2k printer minidrivers running on NT 4? Tag: 38318
silent install of non PnP Modems
I am new at the driver topic, I hope anyone can help me:
I want to silent/automatically install a non Pnp Driver.
It is a modemdriver...
Any ideas how to do this?
Thanks in advance!
Mario Tag: Win2k printer minidrivers running on NT 4? Tag: 38317
USB MIDI driver under Windows XP
Hi all,
We have designed an USB firmware that is a combined
Audio+Midi device. We have choosen to use standard USB
descriptors to avoid developping drivers under Windows XP.
Everything is working fine under Windows XP SP1 except
that if we use the midi port with whatever application,
if we unplug the USB device (Even if the midi port is
closed !) then it stalls the complete plug-and-play
system for a good 10 minutes !
Any idea ?
Thanks
Vincent Tag: Win2k printer minidrivers running on NT 4? Tag: 38316
Support for IADs
How do add support for IADs in Win2000.The driver will be
a bus enumerator as I understand it.What IRPs will the
driver support and how will it expose the interfaces to
the upper layers Tag: Win2k printer minidrivers running on NT 4? Tag: 38313
Need help to develop WDM child driver
Please point me to msdn or links where I can get
information on how to develop WDM child to which is used to
fetch i2c interface from Video miniport driver on WIndows
XP and Windows 2000 platform Tag: Win2k printer minidrivers running on NT 4? Tag: 38310
What must I do to trigger Autorun on my USB storage device?
I am looking for some infomation that would help me make
my installation program automatically execute from a USB
Flash Drive. I found some information in MSDN the
following is an extract of that
----------
If you need to make a USB storage device that executes
Autorun, the
following two conditions must both be true:
. Media must be marked as removable.
. The device can be set to either static or removable.
-----------
The complete information can be found at this location
http://www.microsoft.com/whdc/hwdev/bus/USB/usbfaq.mspx
The problem is that incase of a USB storage device the
media may not be marked as removeable. My question,
1. Is it possible to fool windows by specifying removeable
media even for USB drives by burning the media type as
removeable on the device itself?
2. Does windows read the media type information from the
device or it simply ignores the value of the media for USB
drives?
Any help would be appreciated.
Thanks,
Rajesh Tag: Win2k printer minidrivers running on NT 4? Tag: 38308
[Q] Passthru Questions
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C3D475.3AF82930
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi!
I'm looking at the Passthru sources from the Windows 2003 DDK and I've =
got some questions about it:
1.. MPQueryInformation() returns NDIS_STATUS_PENDING even if the =
return from NdisRequest() is NDIS_STATUS_SUCCESS. MPSetInformation() =
doesn't do this, so why is it necessary to always return =
NDIS_STATUS_PENDING from MPQueryInformation?
2.. MPHalt() does not wait for any pending rx packets to be returned. =
This goes against what the DDK docs say for the MiniportHalt function. I =
looked at the MUX sources and the mux driver's MPHalt() does wait for =
all pending rx packets to be returned. Why would this not be needed for =
passthru?
Thanks!
------=_NextPart_000_0008_01C3D475.3AF82930
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD><FONT face=3DArial><FONT size=3D2>
<BODY>
<DIV>Hi!</DIV>
<DIV> </DIV>
<DIV>I'm looking at the Passthru sources from the Windows 2003 DDK and =
I've got=20
some questions about it:</DIV>
<OL>
<LI>MPQueryInformation() returns NDIS_STATUS_PENDING even if the =
return from=20
NdisRequest() is NDIS_STATUS_SUCCESS. MPSetInformation() doesn't do =
this, so=20
why is it necessary to always return NDIS_STATUS_PENDING from=20
MPQueryInformation?<BR></LI>
<LI>MPHalt() does not wait for any pending rx packets to be returned. =
This=20
goes against what the DDK docs say for the MiniportHalt function. I =
looked at=20
the MUX sources and the mux driver's MPHalt() does wait for all =
pending rx=20
packets to be returned. Why would this not be needed for =
passthru?</LI></OL>
<DIV>Thanks!</DIV></BODY></HTML></FONT></FONT>
------=_NextPart_000_0008_01C3D475.3AF82930-- Tag: Win2k printer minidrivers running on NT 4? Tag: 38306
Is that true?
Microsoft website
(http://www.microsoft.com/whdc/ddk/winddk.mspx) said
that "Microsoft Windows XP SP1 DDK is not supported",
but "Microsoft Windows 2000 DDK is supported". Is that
true?
It seems to me XP DDK is more current than 2000 DDK. Tag: Win2k printer minidrivers running on NT 4? Tag: 38302
Filtering Read
Hi,
I am modifying a upper volume filter driver (similar to
diskpref).
The operation i am trying is to filter the read. In
IRP_MJ_READ i try to block the IRP and then issue my own
read IRP to read some data from the disk and then return
my read buffer with the original IRP.
Now the problem I am facing is the new IRP I am sending
down is returning status pending. And after that the
system becomes unstable when i try to wait for the IRP
completion :( . Can any one help me getting to the bottom
of this problem.
Is there any i/o mgr restriction that only one read irp
can be sent to the underlying device at a time? Please
help.
Praveen. Tag: Win2k printer minidrivers running on NT 4? Tag: 38300
Unidriver conflict warning problem
Dear ALL:
I'm developing a driver based on Unidrv. I have a problem as follows:
After opening Printer Preferences property sheet, I go to
"Paper/Quality" tab, then I go back to "Layout" tab and check
duplex(print on both sides). Conflict warning signs for media types
such as transparency does not display immediately in the media list
box. The warning signs will come out after I select the media type as
transparency, click apply and let the system solve the conflict.
Also, the conflict warning signs will display correctly if I do not go
to "Paper/Quality" tab before checking duplex.
I checked .gpd file. It should be correct. I suspect it might be the
problem in my ui plug-in dll. Can anyone give me a suggestion?
Thanks. Tag: Win2k printer minidrivers running on NT 4? Tag: 38293
UpdateDriverForPlugAndPlayDevice not working in Server 2003
I have an application which launches the installation of my driver using the
UpdateDriverForPlugAndPlayDevices function. Under XP Pro SP1 it works as
expected. However, under Server 2003 SP1 the device does not install, even
when logged in as the administrator. It appears from the setupapi.log that
the error is related to my CoInstaller indicating that the default action to
should be taken in response to the DIF_REGISTERDEVICE callback request.
According to the Server 2003 SP1 DDK, the request is documented as "Can
Handle" for Class Installers and CoInstallers, not "Must Handle". So the
question is why Server 2003 is finding the default action should be
performed response as not acceptable? Tag: Win2k printer minidrivers running on NT 4? Tag: 38289
Question about Unidriver conflict warning
Dear ALL:
I'm developing a printer driver based on Unidrv. I have a problem as
follows:
After opening the Printer Preferences property sheet, I go to the
"Paper/Quality" tab, then I go back to the "Layout" tab and check
Duplex(print on both sides). The conflict warning signs for media
types such as transparency in the "Media" list box does not display.
The warning signs will come out after I select transparency, click
apply and let the system solve the conflict.
Also, the conflict warning sign will display correctly if I do not go
to the "Paper/Quality" tab before checking duplex.
I checked the .gpd file. It should be fine. I suspect it's the problem
of my ui plug-in dll. Can anyone give me any sugestion on this
problem?
Thanks Tag: Win2k printer minidrivers running on NT 4? Tag: 38288
Loading lower filter on disk devices.
I have a lower filter driver that I would like to attach
to the DiskDrive device class ({4D36E967-E325-11CE-BFC1-
08002BE10318}). Unfortunately, when I try to load it on
this device class, the system will crash during the boot
process. The stack trace indicates the fault occurs in nt!
IopMarkBootPartition. It does not seem that any code in
the driver itself, even DriverEntry, is ever getting
called. The same drive will load and function if it is
attached to the CDROM device class ({4D36E965-E325-11CE-
BFC1-08002BE10318}). Is there some trick to loading lower
filters on DiskDrive device that I don't know about? Tag: Win2k printer minidrivers running on NT 4? Tag: 38286
WriteCommand - PJLmon
Is it possible to do a writeCommand in pjlmon,
to send a command directly to the printer and not
in the print job queue?
if yes, I want to know how..
Thanks Tag: Win2k printer minidrivers running on NT 4? Tag: 38285
how to prevent OS from picking the old INF over new one
Hi, everyone!
I am having a problem with automatic driver
installation. Namely, I followed the general guidelines
from the DDK examples when pre-installing the drivers: I
copy the INF with SetupCopyOEMINF to the Inf directory.
Everything works fine until the time when I need to
install the updated version of the driver. If I copy
another INF with a different DriverVer (new date and
version), the OS invariably picks the first INF (oem1.inf
and not oem2.inf).
Setupapi.log records the fact that since the driver is
unsigned, the date is ignored. I know that if I manually
delete the old INF, the OS will pick my new one
(oem2.inf). But I want to avoid scanning through every
INF to see which ones can be deleted.
Our device is used for highly specialized purposes and
works only with our software, so there is not much hope
for getting it signed. What can I do to my new INF to
make sure that the Configuration Manager picks the newer
one every time the automatic device install runs? Are
there any other options for me?
-igor. Tag: Win2k printer minidrivers running on NT 4? Tag: 38274
Steps to create WDM Child Display Driver
What are the steps to create WDM Child Display Driver on
Windows XP. This driver is required to get i2c interface
exposed by Miniport driver provided by display adapter
vendor. Tag: Win2k printer minidrivers running on NT 4? Tag: 38273
reading sectors from hard disk under Win9x
Hi everyone
i'm developing some Win application.
How to implement reading sectors from hardisks under this OS.
Under W2K i have used CreateFile and ReadFile, but i'm looking
way how to do it under 9x.
Regards, Robert Tag: Win2k printer minidrivers running on NT 4? Tag: 38265
Printer driver questions
Hi, a couple of questions.
1)
I cant read data in my language monitor, without using StartDocPort ( when
not printing )
This seems OK, but when selecting output to FILE: it keeps prompting me for
a filename.
How do I avoid this ?
2)
When updating the language monitor, I need to reboot for changes to take
effect.
Is this how it is supposed to work ?
3)
When I use SetPort with an error, the spooler isnt notifyed unless Im
printing
When I try to print later, the spooler is halted ( as expected ) but I dont
get a status telling me what is wrong
I use custom errors, ie settings the string member in SetPort PORT_INFO_3
structure
Any help ? Tag: Win2k printer minidrivers running on NT 4? Tag: 38264
Memory Re-Allocation Question
HI,
I was going through the halloc() function for allocating huge memory.
I wanted to know if there was any system call that can be used to reallocate
the memory allocated using halloc().
If anyone is aware, could you please reply.
Also, I am interested in knowing what is the limitation in using Global
ReAllocation, GloabalReAlloc(), in an appliation.
Thanks.
Madhu. Tag: Win2k printer minidrivers running on NT 4? Tag: 38263
Microsoft EHCI driver & Multiple URBs
Hello,
There seems to be a problem of posting concurrent URBs
down to the USDB when working with high a speed devices
over Microsoft EHCI driver - Sometimes the second pending IRP never
completes.
In a message from Alexander Grigoriev posted here it can be understood
that this is an issue of Microsoft EHCI driver.
We are using the latest EHCI driver from Microsoft on an
XP SP1 Os (Driver ver: 5.1.2600.1106) with a USB2.0 hub based on Ali
chipset.
Replacing this driver with the driver from the USB2.0 hub vendor (Ali in
our case)
solved the issue.
Has anyone had a similar problem, has anyone managed to send multiple
concurrent
URBs to the USBD (with high speed device over Microsoft's EHCI driver)
without the driver getting stuck?
Any info suggestions or comments regarding this issue will be highly
appreciated.
Regards,
Yariv Ze'evi. Tag: Win2k printer minidrivers running on NT 4? Tag: 38262
send raw packet
hi, everybody,
I can use the Sniffer program or Winpcap library to send
raw packet, because they have a protocal driver. Dose have
any method to send raw packet without a protocal driver?
thanks Tag: Win2k printer minidrivers running on NT 4? Tag: 38255
How to install pnp driver automatically under windows 98?
Dear all
Under win2000,I can use setupcopyoeminf to install the pnp driver.Under win98 ,the setupcopyoeminf only can be used under win2000 or winXP.How can I setup the driver of PNP device automatically?I use the fastinst to install the PNP driver , there are two icon in control panel
Thanks a lot ! Tag: Win2k printer minidrivers running on NT 4? Tag: 38254
FSD Filter
Hi,
I am modifying FileSpy from IFSKit to enable me to
hide files/folders.
Everything is working fine except one problem.
When my completion routine is called with just one file entry
(SL_RETURN_SINGLE_ENTRY set)
which I want to hide, I issue another request to get the
next file entry. If another file entry exists, the file I want to hide
get's hidden properly. If no next entry exists, I return NO_MORE_FILES
from the completion routine. The problem is that the user mode seems
to ignore this error status altogether. I can still see the file entry for
which I returned NO_MORE_FILES (in IO_STATUS_BLOCK). I am properly
setting the Information field of iostatus block to zero.
If I zero out the buffer for this request, I can still see a folder/file
named '0' !
with all it's information (time/attributes etc.).
Any clues on what I am missing?
Thanks in advance,
--
-Farooque Khan
http://farooque.150m.com Tag: Win2k printer minidrivers running on NT 4? Tag: 38253
2 Kewaitforsingleobject which waits for same event.
Hi, everyone.
I posted a message a week ago about
ExFreeToNPagedLookasideList.
But I found that another matter and maybe above function
does not have any problem.
KeWaitForSingleObject was used as follows
------
int function A {
KeWaitForSingleObject(&Event, Executive, KernelMode,
FALSE, NULL);
...
KeSetEvent(&Event, 0, FALSE);
return int;
}
static VOID NTAPI function B {
KeWaitForSingleObject(&Event, Executive, KernelMode,
FALSE, NULL);
...
KeSetEvent(&Event, 0, FALSE); +++++++
Call Function A();
}
In this case, I thought that Function A will be called
after executing function B. But when I debug, event
(+++++++) was got in function B in sometimes...
my thought : [B -> A] -> A or B
debug result : [B -> B] -> A -> A or B (sometimes)
Is there any method to solve this problem? Tag: Win2k printer minidrivers running on NT 4? Tag: 38252
Usb isoc transfers and meaning of StartFrame
Hello,
What I see is the following. The first line is my data stream which
consists of packets of 3 frames (ABC is one complete data packet). The
second and third lines are from the Urb in the completion routine.
Data A x x B C A | B ...
IsoPacket.Length 17 0 0 17 17 17 | 17 ...
StartFrame 100 | 106 ...
The part that's confusing me is that the Data portion looks as though frames
101 and 102 did not occur at all. But the StartFrame member in the next Urb
says that they were in fact 6 frames. I would assume that either the Data
portion should be A x x A B C | A, or that StartFrame would be 104. Has
anyone seen this before, or would hazard a guess as to what is going on?
The platform is WinXP, and the device is a USB1.1 device.
Thanks in advance,
Todd Tag: Win2k printer minidrivers running on NT 4? Tag: 38247
IoCallDriver take long time for USB transaction?
I just wrote one USB 2.0 driver for our usb device, we
use bulk pipe for receiving and transmitting (one in bulk
pipe and one out bulk pipe). I found one problem,
IoCallDriver take long time, based on my measurement,
this single function call will take average around 30
microsecond (max time is 150 microsecond). My
TransferBufferLength is 1536, and I can transmit/receive
total 16 Irp in one millisecond (200 MBPS throughput),
but IoCallDriver will take total 480 microsecond, it eat
almost 50% my CPU time (my system is IBM T40 with 1.3G
pentium M CPU), it really not make sense because my
entire system become super slow. Anybody know why this
single function call take so long time and how can I
reduce it?
Thanks in adavance
Long Tag: Win2k printer minidrivers running on NT 4? Tag: 38245
I wonder Microsoft doesn't lock the search registry so
I wonder Microsoft doesn't lock the search registry so no one else is
permitted to tamper?
It should be an option for the user to chose, many Spam invaded user's
search engines,
I hate it!
Ramboi Tag: Win2k printer minidrivers running on NT 4? Tag: 38244
Dynamic Disk info -> need IFS?
[Posting here because we're doing this task via a device
driver.]
Our goal is to find out what (perhaps remote) disk volumes
are being used by a set of applications.
With Basic Disks, this is not a problem (but they're
local).
When an application uses a file on a dynamic disk volume,
we can -- by using ObQueryNameString() on the file and
device handles from a kernel FILE_OBJECT -- see a file
handle, as referring to, say,
\Device\HarddiskDmVolumes\PhysicalDmVolumes\BlockVolume1
\skyzx.txt
but with QueryDosDevice() and such we get that F: (which I
know a priori to be the drive letter in this case) is
\Device\HarddiskDmVolumes\MachineNameDg0\Volume1
(Dg==DiskGroup)
So does anyone know how we can match those two up?
Either the two paths or the first path to the drive letter.
I've seen no available API or documented dmio.sys IOCTL
that can tell us this, so I had hoped that we could match
the last part ("Volume*" == "BlockVolume*") but we've seen
those be inconsistent, so either we're going down the
wrong path or else we just need a smarter matching
algorithm.
Any suggestions? (I have spent some time looking, so
I'm pretty sure it's nothing *too* obvious). Would
something in the IFS (Installable File System) definitely
provide us this information?
Windows 2000 and later. And at this point I'm not
worrying about local (i.e., private) mount points.
Thanks in advance,
Larry West
San Diego Tag: Win2k printer minidrivers running on NT 4? Tag: 38243
newbie questions
Hello
I am reading "the windows 2000 device driver book" in order to learn
win2k device driver coding. I have a few questions.
1. When I installed the ddk, it created a directory structure like
this: d:\winddk\2600.1106\
bin\
debug\
inc\
etc.
Should I move everything in the directory 2600.1106 up a level, or
should all my include path's refer to 2600.1106?
2. The book has some sample code and tools. The readme for the cd
says to move the contents of the tools\DDAppWiz.awx file to the
...\Microsoft Visual Studio\Common\MsDev98\Template directory
in order to use devstudio appwizard to build device drivers. I am
using visual studio .net 2003 and I don't have this directory. I
don't have any .awx files in my devstudio directory either. Where
should I put this file?
3. The book says to build the chapter 6 files as a test of my
installation. It also says to modify the system properties to match
the location of your ddk. I made the below changes to include path
and lib input path, but I still get this error during the link:
Additional Include Directories =
d:\winddk\2600.1106\inc\ddk\w2k;d:\winddk\2600.1106\inc\ddk\w2k
Additional Library Directories =
d:\winddk\2600.1106\lib\w2k\i386
The error is =
Linking...
Driver.obj : error LNK2019: unresolved external symbol
___CxxFrameHandler referenced in function
__ehhandler$?CreateDevice@@YGJPAU_DRIVER_OBJECT@@K@Z
Unicode.obj : error LNK2001: unresolved external symbol
___CxxFrameHandler
LINK : error LNK2001: unresolved external symbol __load_config_used
Debug\Minimal.SYS : fatal error LNK1120: 2 unresolved externals
Any help is much appreciated Tag: Win2k printer minidrivers running on NT 4? Tag: 38235
Win32 application access to parallel port
Any sample code for a Win32 application accessing the
parallel port? Need to use parallel port data lines as
discrete outputs (not strobing data). Thanks. Tag: Win2k printer minidrivers running on NT 4? Tag: 38230
Surprise Removal problem in NDIS-WDM Drivers in XP SP1a
Hello Everyone,
I am resending this message as I didn't get any reply.
I am sure at least one of you might have faced the same problem.
I am developing a NDIS-WDM (USB) driver for my USB Device.
I followed the sample for NDIS-WDM driver given by Eliyas.
I browsed through the Mailing Lists and found that for making the
Surprise Removal work, I have to set the
NDIS_ATTRIBUTE_SURPRISE_REMOVAL_OK bit while calling the
NdisMSetAttributesEx function in my MiniPortInitialize function.
I did this. But to my surprise, the "Safely Remove Hardware" icon in the
system tray still was coming.
I tried a lot to debug. Then later I reinstalled the Windows XP. Now I
found that the "Safely Remove Hardware" icon does not appear in the
system tray when I connect my device and load my driver.
Now, I applied the Windows XP Service Pack 1a and rebooted.
After rebooting, the "Safely Remove Hardware" icon appears again in the
system tray.
This concludes that Windows XP Service Pack 1a is containing some
modifications to the NDIS/WDM framework which makes this feature of
Surprise Removal not work.
Am I the only one facing this problem?
Please correct me if I am wrong somewhere in my analysis or debugging.
Any pointers in way of URLs or documents would be of great help to me.
Thanks in advance,
Best Regards,
GNRaj Tag: Win2k printer minidrivers running on NT 4? Tag: 38227
Is it possible to run Win2k printer minidrivers
(Unidrv-based) on NT4? I'm told that SP6 installs Unidrv -
is it compatible?