USB Disk Filter driver can't see read/write activity
Hi,
I'm a newbie to Windows driver writing. To start learning
I have a filter driver that is to simply put an entry into
the Application log whenever an IRP passes through it,
then passes the IRP on. This is on Windows 2000 using a
removable USB disk (Linksys 32 MB 'solid state' instant
disk device).
My filter is installed as an Upper Filter to usbstor.sys.
When I attach the USB disk, my filter sees the DriverEntry
call, the AddDevice call, and sees IRP_MN_START_DEVICE,
properly placing an entry in the log. Also sees some more
IRPs that I have not specifically identified, but simply
have noted in the log as having been passed on. All of
these happen before I have tried to access anything on the
USB disk.
When I access the disk, the filter sees no IRP activity.
I would have thought I'd see some IRPs pass through during
disk reading/writing. Reading/writing of the disk is
successful. The filter next sees IRPs when I remove the
device.
So, given the successful disk reads/writes and the lack of
IRP activity detected by the filter during these
operations the filter must be bypassed by the reads and
writes?
What part of the picture am I missing here, and how do I
get my filter to see the read/write related IRPs? Is
there some part(s) of the DDK that I should review more
thoroughly to understand this? .. Or is it somewhere else
I should read? If the filter is indeed being bypassed by
reads/writes is this behavior strictly related to USB
(i.e. usbstor.sys) or is this a common part of port and/or
class driver operation?
Thanks for any help.
-alan Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29723
Unable to write to USB HID Device
Can anyone verify if I am doing this right?
I am able to read the product and vendor ID's from an HID
device, so the CreateFile and the Get_Attributes
functions are working well. I am having a hard time
using WriteFile to send bytes to the device. I am
sending just 2 bytes to and x10 usb hid device. The
WriteFile call returns false.
Here is the CreateFile call:
handle = CreateFile(DeviceName,GENERIC_READ |
GENERIC_WRITE,FILE_SHARE_READ |
FILE_SHARE_WRITE,0,OPEN_EXISTING,0,0);
Here is the WriteFile definition and call:
[DllImport("kernel32.dll", SetLastError=true)]
private static extern unsafe bool WriteFile(int
hFile,void* lpBuffer,int nBytesToWrite,int*
nBytesWritten,int overlapped);
public unsafe bool WriteBytes(int handle, byte[]
OutputReportBytes)
{
int BytesWritten = 0;
fixed (byte* p = OutputReportBytes)
{
return WriteFile(handle, p,
OutputReportBytes.Length, &BytesWritten, 0);
}
}
Any help here would be greatly appreciated.
Thanks in advance. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29715
ddk download
is there such a thing anymore?
say 2000+, even the smallest subset will do. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29712
NDIS query and SNMP
Hi,
I am looking at NDIS to get some piece of
information that Microsoft implementation
of SNMP does not give me (mib2-transmission)
I have found how to get the required stats from
NDIS using IOCTL_NDIS_QUERY_GLOBAL_STATS
but there is a small piece of information that I
could not find anywhere in the documentation
Network adapters are identified by an index number
(called ifIndex) in SNMP. However I cant find any
corresponding information in the NDIS OID header
files. Without that identifier I have no way of correlating
the information about adapters SNMP gives me and
the information I can find out myself using NDIS.
If someone knows how this ifIndex number is found by
the inetmib1.dll which gives the mib2 data or how I
can get the ifIndex from NDIS or even from where I
can get the mib2-transmission group information in
windows please tell me about it
Thank you
arun Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29711
surpriseremove test error
My driver is for usb device. I try to test
surpriseremove. HCT simulates unpluging device. My driver
steps into PnpSurpriseRemove, PnpRemove and Unload
routine. Whwn HCT try to "insert" device, the device
manager shows :"Windows cannot load the device driver for
this hardware because a previous instance of the device
driver is still in memory. (Code 38)". Why?
I've never seen this error when using this driver before. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29706
IpRenewAddress FAILED!!
hi
Using IP Helper Api to dynamically assign ip to my
interface.
I am calling GetInterfaceInfo to get IP_ADAPTER_INDEX_MAP
(InterfaceInfo->Adapter)
which i am passing to IPRenewAddress.
The GetInterfaceInfo returns me following values.
InterfaceInfo->NumAdapter =1
InterfaceInfo->Adapter->Name = /Device/TCPIP_{C767E2D2-
8994-470F-9D84-9446D40CD0DB}
InterfaceInfo->Adapter->Index = 2
GetInterfaceInfo also gives the number od bytes written.
its value is 3120 which is very large.
the buffer contains all garbage value after the name of
Adapter.
IPRenewAddress is failing it is returning error code 2
(i.e The system cannot find the file specified )
where i am going wrong?
Thanks in Advance
Jyotsna Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29705
Problem about NT SCSI disk filter driver
Hello,
I have written a scsi virtual disk miniport driver and a filter driver
to intercepte all srbs that sent to this virtual disk device by attaching
itself to the disk device object, but i find that can not intercept
SCSIOP_READ and SCSIOP_WRITE. However, i can intercepte
IRP_MJ_DEVICE_CONTROL and IRP_MJ_INTERNAL_DEVICE_CONTROL(function is 1,
perhaps is claiming device to disk class). why this happened? what other i
should consider?
BTW, my OS is NT SP6.
Any comments or concern will be appreciated .
Thanks.
David Yan Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29703
Detecting floppy present
Is there a way to detect the presence a 1.44 floppy
without having to open the drive. Opening the A: drive
takes more than a second and I need to detect whether a
folopy is inserted in the drive periodically.
Thanks Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29689
Code works in NT doesn't work in Win2K(SP4) and Win2003
I have 2 drivers and 1 user mode application, one driver
runs in NT, one driver runs in Win2K and Win2003, they
share some common codes. The application uses IOCTLs to
communicate with driver.
There is an IOCTL, if device is in a specific internal
state, this IOCTL fails and the driver return
STATUS_INVALID_PARAMETER to system, but the driver also
return some internal error information to application,
this information is returned through output buffer
argument when calling IODeviceControl. In Windows NT,
this error information can be returned to application, so
when this IOCTL fails, the application can tell user why
it fails. In Windows 2000(SP4) and Windows 2003, this
error information cannot be returned to application, the
result is when this IOCTL fails, the application tells
user "unknown error", this is very bad.
This IOCTL uses BUFFERD_IO to communicate with kernel, I
wonder if this is because of security reason, when an
IOCTL fails, Win2K(sp4) and Win2003 doesn't copy the data
in kernel buffer to user mode buffer, but Windows NT still
does that?
Thanks. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29688
win2k3 SCSI miniport driver "code 37" problem
I have a SCSI miniport driver which installs and works OK under NT, 2000
and XP. I am trying to install this driver under Server 2003 Enterprise
Edition. The "Found New Hardware Wizard" reports: "Windows can not
initialize the device driver for this hardware. (Code 37)". After that I
can see that the entire driver related registry settings are done
correctly, according to my INF file. Before attempting to install the
driver, I could see the device in the registry
(HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi\Scsi Port...). After
attempting to install the driver, the device disappeared from the
DEVICEMAP registry.
What does Code 37 mean, and what do I need to do to get this device to
install under Win2K3? Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29685
Booting from a RAMDISK image
Hi,
I used the RamDisk sample driver in the DDK and I was able
to use the Disk Administrator to create a partition and
format the RamDisk. My goal is to copy an NT bootable
image to the RamDisk and save the image. This image would
be downloaded to a reserved RAM before the system is
started. The BIOS (after hooking INT 13h) should access
this image as a bootable disk. Currently the RamDisk
driver formats the RamDisk as non bootable. Is it possible
to create a bootable image using the RAM DISK driver with
some modification? How NT determines the offset that it
passes to the driver? Does it use the drive geometry that
was provided by the driver to calculate this offset? If so
what is the “equation” in terms of the CHS parameters?
Thanks in advance,
Daniel Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29683
Releasing Device Names
I am writting a 1394 device driver for my system. All is
working as expected with one exception.
When I enumerate the bus with a device attached my device
names are as follows:
\DosDevice\000001
\DosDevice\000002
The 000001 represents the bus interface and the 000002 is
the plugged in device.
When I unplug the device the 000002 device rightly is
removed from the enumeration. However, if the the device
is replugged on to the device the emuneration 000003 is
added instead of 000002.
The question is: what am I missing to allow the release
of the 000002 name so it can be reused and is there
anything else I should be aware of?
I am writing for CE.net 4.1
Thank you.
Graham.... Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29665
rsm media recognition within a MOD library
We are currently developing a windows 2003 driver for our
SCSI library and now I found a problem with the media
recognition. The Microsoft Removable Storage service
detects the media in the library and creates database
entries for each piece. I currently work with two
libraries one with two SMO-F551 and the other with four
SMO-F561 drives. The library with SMO-F551 identifies the
media as '5.25" REWRITABLE DISK' and creates a media entry
with two sides. The library with SMO-F561 identifies the
media as 'Removable media' and creates a media entry with
only one side.
Why does it not work with the SMO-F561 drives? Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29664
How to distinguish stack frame from dataseg?
Hi, All!
Suppose I want to check, for testing purposes, if the object was
created statically or allocated on the stack (say in the thread
function). How to do this?
For example:
struct SomeStruct
{
// shareable data.
// ...
// lock
KSPINLOCK lock;
};
BOOL InitSomeStruct(SomeStruct& someStruct)
{
ASSERT_STATICALLY_ALLOCATED(someStruct);
KeInititalizeSpinLock(&someStruct.lock);
}
I want ASSERT_STATICALLY_ALLOCATED macro not to ASSERT when someStruct
is allocated on the dataseg and ASSERT, when it is allocated on the
stack (i.e. not accessible from other threads). Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29659
Calling DLL from VXD
hi!
i am writing a vxd to hook file i/o.
i want to call a dll function from my vxd.
i tried to use SHELL_CallDll,SHELL_LoadLibrary etc.
but i am getting link error
"unresolved external symbol _SHELL_CallDll"
"unresolved external symbol _SHELL_LoadLibrary"
i also tried to use PELDR_LoadLibrary
but iam getting same errors.
how do i link them properly?
thanks
Anshu Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29647
Question about Virtual Serial
I followed the step of Eliyas Yakub How to Make a Virtual Port.
Frome Step 1 to Step 3 I was success, but the step 4:
Step4
Once the steps above have been completed, the bus driver
can now start receiving IRPs from any application such as HyperTerminal.
For a list of all the IOCTL IRPs that have to be handled, refer to
the "SerialIoControl " function in the "serial" sample in the DDK. By
implementing the handler code for these IRPs, the virtual com port should
now be fully
functional.
Yes, I can use HyperTerminal to open the COMx that I had installed, but I
can not handled the Serial IOCTL IRPs,
I don't know what happened. I added the "SerialIoControl" function in the
Bus_IoCtl(busenum.c)£¬
if (!fdoData->IsFDO)
{
...
status = SerialIoControl(DeviceObject,Irp);
...
}
I can't see any DebugCode of IOCTL IRPs in the DebugView, and the
HyperTerminal said "Unable to open COMx.
Please check your port settings"
please reply me...
Best Regards...
Daniel Xu Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29645
MPIO DDK
Dear All,
We need to develop a failover driver for our storage
system. In Microsoft's document, this driver must develop
under MPIO DDK, but I can't find it neither in Win Server
2003 DDK or in win xp DDK. Can any body tell me where or
how to get this DDK?
Thanks,
Karl Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29644
Call ACPI Method. How?
The idea to create driver to be able to call any ACPI method.
Calling to methog that belongs to particular device not a solution.
Yevgen Goryachok Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29639
Is DrvEnableDriver exported by default?
Hi! I am trying to use EngLoadImage and
EngFindImageProcAddress to install a "filter" driver
around a third party display driver. When I use
dumpbin.exe /EXPORTS "dispdll_001.dll" (a utility that
ships with VStudio6), it returns no exported functions. So
how can I call the DrvEnableDriver function of the main
driver from my "filter" if its not exported by the main
driver's dll? The main display driver that I am trying to
link to is S3 Trio32/64. I also tried with nvidia geforce4
driver and it doesn't export DrvEnableDriver either.
It states on the msdn documentation that DrvEnableDriver
must be exported by the driver dll. Well, I guess it makes
sense since GDI as to link to it, but in that case
shouldn't the exported function appears when I run
dumpbin.exe? I'm just completely lost, that's all!
Thanks in advance for your reply. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29638
[Q] Checked build ndis.sys file
Hello, every one.
I'm trying to test my driver for WHQL test, but it require Ndis.sys file for
HCT 11.2 at WinXP.
Where can i get checked build ndis.sys file?
Should i purchase it or is it included in HCT test kit or XPDDK?
Thank you for your information in advance.
//DAUM Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29634
Installing DiskPerf.sys on disk drive!
Hello,
I am trying to install the "DiskPerf.sys" filter driver using
addfilter utility, but everytime I install it on devices listed by
addfilter (addfilter /listdevices), the system fails to boot.
The DiskPerf.sys help file mentions that the addfilter utility needs
to be changed to install the filter driver, does anyone knows what
need to be changed.
I am using the following command line to install the Diskperf.sys as
an upper filter;
addfilter /device \Ide\IdeDeviceP0T0L0-3 /add diskperf.sys
and
addfilter /device \HarddiskVolume1 /add diskperf.sys
Any help would be highly appreciated.
Thanks,
WD Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29628
EngLoadImage and function pool?
Hi. Lets suppose a display driver would load an existing
dll into its memory using EngLoadImage. Would that image
be limited to call EngXXX functions as is the case for a
display driver, or can the image call any kernel
function? What I'm really trying to do is access the
registry from my display driver but there doesn't seem to
be any supported function for this!! so I was thinking of
loading an image that uses ZwOpenKey and calling it from
my driver. Can this be done or is there a simpler way?
Thanks in advance. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29623
Win SP1 XP DDK error
Can someone tell me what the following error means:
Linking c:\sio0_ezmon directory ********************
'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1
NTTEST= UMTEST= 386=1'
NMAKE : U1073: don't know how to make 'C:\WINDDK\lib\i386
\free\usbd.lib'
I am trying to rebuild one of Cypress's USB drivers using
the Windows XP SP1 DDK in a checked environment can't
figure this one out. Thanks. JSS Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29621
im crash
I have an NDIS filter that works on "most" machines. However, on a couple
machines we get a nasty crash:
BugCheck D1, {0, 2, 0, 0}
Stack trace:
ChildEBP RetAddr Args to Child
eb823974 8042c0c3 00000003 eb8239bc 00000000
nt!RtlpBreakWithStatusInstruction (FPO: [1,0,0])
eb8239a4 8042c487 00000003 00000000 00000000 nt!KiBugCheckDebugBreak+0x31
(FPO: [Non-Fpo])
eb823d30 8046856f 00000000 00000000 00000002 nt!KeBugCheckEx+0x390 (FPO:
[Non-Fpo])
eb823d30 00000000 00000000 00000000 00000002 nt!KiTrap0E+0x27c (FPO: [0,0]
TrapFrame @ eb823d4c)
eb823dbc eb823dec bfb4fdd2 81f92c50 81f4df08 0x0
WARNING: Frame IP not in any known module. Following frames may be wrong.
00010246 00000000 00000000 00000000 00000000 0xeb823dec
In the stack trace, on the second-last line, the value "81f92c50" is the
pointer to the adapter structure we allocated and passed as the
"ProtocolBindingContext" to NdisOpenAdapter(). This happens during bootup,
after the BindAdapter() calls finish successfully but while the system is
still coming up - we're getting bunches of QueryInformation() and
SetInformation() OID's. To me it looks like someone is dereferencing a null
function pointer. Any ideas who or why?
Thanks,
Warren Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29606
How do I periodically update my driver during development?
I'm new to the DDK. I've never developed any drivers. I
have the XP DDK.
We have developed a custom PCI card (64-bit @ 66 MHz).
We need to develop a throw-away driver that tests our
hardware/firmware design.
My driver needs only simple functionality.
1) Master true 64-bit transfers accross the PCI bus.
2) Allow our custom card to master single 64-bit transfers
back into PC memory.
I don't need to handle interrupts. My application will
periodically check for a transfer.
3) Control multiple cards.
Our target machine is a Dell Xeon Precision 650 under
Win2K. It is a 32-bit machine with a couple of 64-bit PCI
slots.
I've watched the DDK videos and begun architectural tests
on the toaster func example. For my first test, I've
added three integers to the device extension and defined
control codes for getting and setting each.
How do I periodically update my driver during development?
I seem to recall Brian Catlin suggesting that I need only
install the driver once. After that, I can simply copy
toaster.sys to C:\WINNT\system32\drivers. I can't get
this to work on Win2K. I have to update the driver from
the Device Manager using the inf file AND reboot the
system. Is there a better way? Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29605
Starting and Stopping a driver
Hi,
NT4 had a panel to start and stop drivers without rebooting. Where can I
find this panel in Win2000 ?
It seems to no longer exist... so how can I do start and stop a driver now ? Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29597
HID Report
Maximum packet size for low speed devices over interrupt
endpoint is 8 bytes. Can I use reports longer than 8
bytes? How do I have to format such reports? Can I use
report ID field for such long reports ?
Thanks. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29588
is wmi supported by display drivers?
Since display drivers are not "normal" wdm drivers, I
would like to know if they support windows management
instrumentation (WMI)?
Also, is wmi bidirectionnal? As I understand, wmi is used
to send driver information to user mode application, but
can the opposite by done? That is user mode application
sending information to driver?
Thanks in advance. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29578
Drivers for Windows XP
Hi there! I have a Slot 1/Socket 370 M748LMRT PC100 Motherboard from PcChips
and i need drivers for Windows XP. Does anyone know where i can download the
drivers? Thanks.
--
[]'s
woodlong Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29577
can display driver access registry?
What function can a display driver call to get registry
settings. Videoport driver can simply call
VideoPortGetRegistryParameters but i wasnt able to find
any similar function for display drivers. I really hope
there is, but if not how should I store setting
information? Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29576
Booting over USB 2.0 (with XP), some success...
Hi all,
I am attempting to make XP boot over USB (1.1 or 2.0). I know that this type
of booting is "unsupported" by Microsoft. In fact, you cant even install XP
on a USB drive. However, if the bios supports it, it is possible to boot
from USB form a pre-installed version of XP.
First, I really think that there is no need for any driver developpement
since XP has every driver needed to boot over USB. My first attempt at a
boot from USB resulted in a reboot after MUP.sys. Now it crossed my mind
that maybe USB was not enabled at boot time so I created a new Group called
USB miniport and USB storage and placed usbehci.sys, usbohci, usbhub and
usbstor right after SCSI miniport in load order. I also changed the types so
that USB is loaded at kernel time.
I boot in /sos and see the USB drivers load right after the SCSI miniport.
Unfortunetly, no luck I still have a reboot after MUP.sys.
I then installed DriverStudio to see if I could write a simple USB mass
storage driver to make things work. But after installing DriverStudio I
tried again to boot over usb to see what happens with SoftIce and behold:
the thing boots! It works even when you skip the boot message stating if you
would like to skip the debugging.
The only wierd part is that to log in to XP I now need to press cntl-alt-del
when it says "loading personnal setings..." when you click on your username
because it freezes.
I investigated and found that SoftIce creates a group called NTIce that
loads 4 drivers: nwfilter, sigvid, sigsym and ntice. Now something in these
drivers is causing the USB boot to work. I just have no idea what that is.
My idea is that sigsiv is printing a message on the screen saying "Do you
want to load .... (press ESC to skip)" and waits a couple of seconds. Is it
possible that this give the USB drivers enough time to enumerate the storage
disk and boot or are these 4 drivers doing some obscure thing that would
suddenly make the USB boot work? I know that sigsiv does more than just
print a message to the screen. It must capture mouse events and connect to
the VGA adapter to print the message. Maybe this is what is causing the boot
to work for some unknown reason...
Without this knowledge what approach could I use to boot over USB? Would it
be a good approach to write an upper layer driver that would make the glue
between USBSTOR and the primary boot disk drivers? Should I write my own USB
storage driver which I could then use in the installation of XP using F6 in
the textual part?
What options do you think would work?
Thanks in advance for any help,
Daniel Shane Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29562
STATUS_IO_TIMEOUT
Hi,
Sometimes I get STATUS_IO_TIMEOUT when I send Async request to the
1394 driver stack.
Why will we receive STATUS_IO_TIMEOUT? How to avoid this error? The
same code works fine other times.
Any help is appreciated.
Thanks. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29555
AV/C driver help!
Hi,
I'm trying to make a driver for a AV/C Tuner device, but I have major
problems.
The driver is there and I can communicate with avc.sys and
avcstrm.sys, but I cannot open a stream. I found out that the problem
is the hPlugLocal value which make the function fail. I'm not sure
where i can get that handle from. Using the result from 61883's
CreatePlug didn't gave me any success.
I would like to know which function I have to use to establish the
connection to the tuner to receive the data stream from the
isochronous channel.
Is there an example source how to use avcstrm.sys?
Thanks ... Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29552
Which video card registers a driver is setting?
I am trying to reverse engineer the Windows 98 driver for a video card in
order to find out what hardware registers on the card the driver is setting.
To do this under DOS, all I have to do is get the PCI offset in memory of
the video card, and then instruct my debugger to break when the memory
address corresponding to the register I am interested in is written to. I
have absolutely no idea where to begin to do this under Windows, or if it is
even possible. Can anybody point me in the right direction on how to
accomplish this?
Cody. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29549
Dual DDK?
Can the XP sp1 DDK reside on the same box as the Win 2000
DDK? I haven't received the XP DDK yet so I wanted to
prep my computer prior to installation.
Thanks. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29543
WMI .Put() works on XP, but fails on Windows 2000
I've added some custom OIDs to an NDIS driver we are developing. I also
wrote a user app in C# that correctly querys and sets these ULONG values as
long as it is run on Windows XP.
When running on Windows 2000 I can query at will, but all attempts to set a
value fail with a result of WBEM_E_INVALID_PARAMETER.
I have a breakpoint set at the beginning of my driver's xxxSetInformation
function that never gets hit.
I get the same result, (query OK, set object fails, breakpoint never hit),
when I access the OID via
<windows>\system32\wbem\wbemtest.exe,
so the problem isn't in my user level code.
I'm running as an administrator in both cases so I don't think there are any
security releated issues.
Q1) Do I need to configure Windows 2000 in some way to allow write access to
custom OIDs?
Q2) Does my NDIS miniport driver need to do anything special for Windows
2000 to allow write access? Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29539
Printing from remote machine returns incorrect page numbers
Hello!
I hope this is the correct newsgroup for this question.
I wrote a program using API to monitor a printer queue on
a Windows 2000 Server. It monitors all printjobs that are
being printed and stores important information like the
number of pages printed,... in a database.
Monitoring printjobs that are being printed locally is no
problem - all the fields are filled with the correct
information. If a user prints a document from a Windows
2000 client machine using Word2000 or Notepad I also get
all information (but there is a problem in one specific
case).
Windows 2000 Server local printjob (OK)
Word document has 1 page - I print 100 copies
Result is: Pages Printed: 1 - Total pages: 1 - Copies:
100 (In this case I can at least calculate the number
of pages printed)
Windows 2000 Client using shared printer from Windows 2000
Server (PROBLEM!!!)
Word document has 1 page - I print 100 copies
Result is: Pages Printed: 1 - Total pages: 1 - Copies 1
(????)
and even more confusing
Windows 2000 Client using shared printer from Windows 2000
Server (OK)
Word document has 2 pages (more than 1 is enough) - I
print 100 copies
Result is: Pages Printed: 200 - Total pages: 1 - Copies 1
(This is also OK
for me since I just want to know the number of pages
printed)
Both server and client are running Windows 2000 SP4 Office
verison is 2000 with all SPs but this shouldn't matter
since it also happens using notepad,...
Also when watching the printer queue in Windows you can
see the same information that I explained above.
Why does Windows tell that there is just one page printed
even if I print 100 copies from a client machine using the
shared printer?
Is this a bug - and is there a hotfix or some sort of
workaround for this?
Thank you for your help!
Thomas Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29534
COM port init
hello!
i need monopolize com ports by my prog. i can't use
standart windows com port api because i have to
immediatelly response to request. i decided to use kmd.
driver works under XPE with "standart computer"
(not "computer with acpi"). driver works properly until i
deleted serial.sys and serenum.sys to prevent windows to
connect to ports. when i deleted drivers port read always
return 0xff.
what i have to do to initiate ports.
thank you! Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29531
UsbHid driver
About 50% of HID reports (every second one) from my custom
device are lost. I use ReadFile function in the loop to
read reports.
What is interesting that another third-party utility
receives about 95% of valid data. About 5% is lost.
Any idea where can be the problem ?
Some more details:
Device is low-speed, using interrupt endpoint for sending
8 bytes of data each 10 ms. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29517
Kernel DLLs in NDIS drivers
I have a quite big and complex NDIS/WDM driver (~ 300 Kb) and would like to
split some stuff into several DLLs.
1. What are my chances to pass compatibility test & get it logo'ed?
2. Do kernel DLLs work on win9x?
Thanks,
- PA Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29511
assigning ipaddress dynamically to IM Driver.
Hello,
We want to assign the ip address to virtual miniport of IM
Driver (TCP/IP->virtual miniport) for some session.
Modifying registry does not help...
How these things are getting managed on windows..
We need to this in application or driver??
ipconfig and all utilities does not show changes done in
registry till reboot(which is not possible in our case)
how dhcp address assignment works dynamically..(without
reboot..like winipcfg)??
So similar kind of thnig is possible(not dhcp) but
assigning ip address dynamically to virtual miniport of
driver.
Thanks in Advance,
nimeesh Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29510
PASSTHRU bugs?
Hi, all!
I've looked through PASSTHRU (nice pun =) ) recently
and found out, that it conflicts with PnP section of IM drivers.
1.DDK states:
"No Receives nor Status should be indicated while virtual miniport of
NDIS intermediate driver is sleeping"
PASSTHRU checks for MPDeviceState at the ProtocolStatus and not
retranslates it up when virtual miniport is sleeping, but does not do
this for its ProtocolReceive. Is it a bug?
2. DDK states:
"No sends nor queries (requests) should be send to lower driver while
protocol part of NDIS intermediate driver is sleeping"
Again, PASSTHRU checks for PTDeviceState in
MiniportSetInformation/MiniportQueryInformation, but does not check it
in the MiniportSend nor MiniportSendPackets. Is it a bug?
Thank you in advance. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29504
CYPRESS USB DRIVER
Hi all,
Let me go right to the point.
1) Is there any substitution for ezusb driver such that allows asynchronous
bulk transfers?
2) When the request (for bulk transfer) stalls what is the best way to
cancel the request?
3) Suppose I need to arm the driver (issue bulk request for reading to the
host) and after that issue interrupt request to the periph to start writing
the data. So far with blocked transfer mode, my second request is not sent
because host is stalled on the first request. The first request could not be
satisfied because only after the second request is sent the data will start
coming. If I would have driver with asyncronous capabilities could the
second request be processed ealier? (are all requests passed through the
same driver's queue in first-in first-out fashion?). I guess if I will send
the second request from the other thread it will go to the different
driver's queue and can be processed ealier but I don't want to do it becasue
of the possible race conditions.
Thank You,
Dmitri. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29500
Using IPrintOemUni::ImageProcessing and soft fonts
I am trying to use IPrintOemUni::ImageProcessing combined
with soft fonts to use unidrv to drive a printer which
requires custom compression of low resolution (images,
lineart) data as well as custom compression of high
resolution (ie font) data. I was hoping to compress the
low-res data in ImageProcessing() and then use the
TTDOWNLOAD_TTOUTLINE option of TTDownloadMethod() to get
the font data separately through calls to OutputCharStr().
However when I try this I find that OutputCharStr() is
never called and the text is always rendered at the low
resolution. Is what I want to do possible? I have tried
all the options to TTDownloadMethod(), and none of them
seem to make a difference.
Regards,
Hank Jones Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29495
setupdi calls
I was working with the setupapi calls on windows 2000, the
only error i got while executing, was
" unresolved external symbol _imp_setupdideviceinfo "
and such for all the setupdi calls.
can Anyone help me out to resolve these errors in the obj
file.
thanks a lot
shradha Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29491
Is this a valid INF directive?
[Xscan.]
I noticed this delimiter within an INF file. I can't find any documentation
within the MSDN that states this is valid. Is anyone familiar with this type
of undecorated section? Can someone confirm it is valid?
Thanks!
JW Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29490
Watchdog in WinXP
Hi,
I want to know if there are any ways to tweak the Windows
Watchdog registers/values.
One of our Driver functions takes up more than 15seconds
(WAtchdog timer value), to complete its operation. And
hence the Watchdog fires and the system bugchecks with
THREAD_STRUCK_IN_DEVICE_DRIVER.
As I cannot reduce the execution time in my driver, I
want to know, if there are any interfaces to tweak
watchdog registers or parameters if watchdog is emulated
in software.
Regards,
ashok. Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29489
USB BULK speed, driver
hello,
I am developing driver for CYPRESS USB2.0 FX2, EP2, BULK IN,
My problem is that I must do BULK_READ within every melliSecond or even
500uS or less. Otherwise the data will losed between two BULK_READ, because
the FIFO in CYPRESS FX2 is very small. How can I do that?
Is it possible to let the Driver continuesly do BULK_READ, and fill an
ring_buffer? time between 2 BULK_READ must be 1ms or less.
thank you very much.
william Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29488
Where to start learning to program drivers
I'm an applications developer and have been for 15 or so years. I'm finding
it necessary in my job to work on drivers, including writing a brand new one
from scratch. The only experience I have writing drivers is for the old
MacOS where I could do whatever I wanted with no real kernel to speak of.
With Windows it seems to be a very different story.
Where should I begin when learning how to develop drivers for Windows. 9x
and 2k/XP? ( I really don't care about NT 3/4 right now ). Are there any
books that start from the basics and go from there? I don't need a "for
dummies" book but I do need something that starts from the beginning and
ends with most of what I need to know to write a fully functional driver.
Thanks,
Janik Tag: HELP - Does anyone own a Tiny PC model number TT440BXM Tag: 29465
I need someone who owns a tiny pc with the above model number if someone
could please help me I would be grateful