Getting an error wile tring to install my printer
i recently bought the kodak easy share 5100 printer and wile tring to install
the drivers i get and error on Unidrv.hlp is missing and it wants me to put
in the windows xp service pack 2 disk well i dont have the disk i have
windows xp media center on my comp i lost the disk. can anyone help me with
this.
Thank you for your time
Scott Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104482
Extracting text from PDF documents for virtual printer driver
I'm developing a virtual printer driver, and it handles most documents
well. Where it fails is with PDF documents containing east Asian
characters. I've found some other posts which mention that Adobe
provides glyph indices, rather than unicode characters. How do I get
the actual text in this situation?
Thanks,
chris Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104481
do not use CM_xxx function call
Hi,
I need to discover and know the scsi disk enclosure port/bus/target/LUN
numbers. I read some MSDN sample and learn how to enumerate them and can find
the disk enclosures attached to my Windows 2003 x64 server. And I use the
CM_Get_DevNode_Registry_Property to get the bus/target/LUN of the enclosure,
but I could not get the scsi port number. And MSDN mentioned "Do not use..."
the CM_ function I used and suggest to use SetupDixxx instead. But they
require different input parameters: CM_xxx use "handle of device instance"
while SetupDixxx use "handle of device infoset" and "device info data" I
think. May someone hint me how to get the parameters used in SetupDixxx from
the CM_xx device instance handle? Also how to get the scsi port number please?
Thanks,
Ken Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104477
Drive letter from WdfDeviceCreateSymbolicLink not removed when driver
Hi,
I'm building something like the ramdisk example in the WinDDK. It uses
WdfDeviceCreateSymbolicLink to attach to a drive letter. The problem is
that when the driver unloads, the drive letter doesn't completely go
away. It remains in Windows Explorer as a disk with a red circle and a
white question mark in the middle. The "Map Network Drive" wizard shows
the drive letter as available. It completely disappears from explorer
after a reboot.
Any ideas? I want it to go away completely after the driver unloads.
Regards,
Kevin Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104470
IoGetDeviceProperty returns STATUS_OBJECT_NAME_NOT_FOUND
In the AddDevice() handler from our driver for USB device, we call the
IoGetDeviceProperty() and it returns STATUS_OBJECT_NAME_NOT_FOUND.
We use the same PhysicalDeviceObject given as a parameter in the
AddDevice() handler.
Can you see one possible reason for this ?
Our driver is BDA driver with USB WDM lower edge. The strange thing is
that problem occurs only on Windows 2000 platform with USB composite
device. On Windows XP/Vista, or if the device exposes only one single
USB interface, the call to IoGetDeviceProperty() is successful.
Thanks for your help
Francois Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104451
KeAcquireSpinLock or KeAcquireSpinLickAtDpc?
I have a function that uses KeAcquireSpinLock(). This function will be called
for each packet in a data stream at DISPATCH_LEVEL and I was interested to
tune the performance. Then I read documentation that KeAcquireSpinLockAtDpc()
will improve performance. I also want to use this function in few places
where it rarely be called at " less than DISPATCH Irql".
I am thinking of using KeGetCurrentIrql() to decide whether I use
KeAcquireSpinLock() or KeAcquireSpinLockAtDpc(). I am not sure if I should
bother to do this or simply always use KeAcquireSpinLock(). Is the
performance be considerable to use conditional KeAcquireSpinLockAtDpc() ?
Thanks,
Raj Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104442
Accessing card in USB card reader
I would like to issue an ATA Identity command to a CF card in a USB card
reader. I understand that card readers in general (and in this specific case)
are using USBSTOR.SYS which is a SCSI interface, so unless I were to make my
own driver and have support for that in the unit, I really can't do that.
What I can do is send SCSI commands down to the unit, but when I use SCSI
passthrough and ask for the identity, I get the identity of the card reader
and not the card.
Wondering if anyone in this group knows how to access to the card. I
understand its possibly vendor specific, but figured it worth a shot here. Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104438
SMART_SEND_DRIVE_COMMAND
Hi,
I'm trying to issue smart_send_drive_command with the sub command
SMART_WRITE_LOG. Does anyone here has been able to successfully work with
this command. Could you please provide a sample code.
I was successful at issuing smart_rcv_drive_data with the sub command
SMART_READ_LOG.
The operating system I'm using is Vista.
Thanks in advance,
Regards,
Suresh. Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104425
Memory related questions
I have some memory related questions:
1. Is the object and handle allocated from paged/nonpaged pool? If yes, any
tag will be there to track?
2. Can any allocation be there in paged/nonpaged memory without tag (even
without wdm/ddk tag)?
3. If any handle/object leakage is there, can we catch this with Driver
Verfier? I saw that Driver verfier could not find one object leakage (I
selected only my driver in Driver Verifier). Or should I select any microsoft
driver to catch this?
4. If I map user buffer to a kernel addres space, does it map to the paged
memory address or some where else? If yes, does it have any tag?
Regards,
Deepakumar Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104417
Resetting a CD/DVD writer
I've got some code which does low level access to CD/DVD writers using SPTI.
That's all fine, except when something goes wrong (usually, sadly, the
result of my bugs :( ).
Then I'm left with a device which thinks it's busy and I can do nothing to
persuade it otherwise (save reboot the machine).
What I think I want to do is a device reset, but this seems not to be
supported, either as a SCSI command or an IOCTL.
How can I reset the device/subsystem so that I can gracefully back out of my
error condition and start to re-use the device?
(Sample code would be particularly nice)
Thanks
Iain Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104416
Howto increase NT kernel stack size? (if it is possible at all)
Is there a way to set the kernel stack size somehow?
To increase it by setting some value? In the registry, or elsewhere?
The story:
It is known the NT stack size to be 12k (approximately).
There is a bug of NT when a call to MmGrowKernelStack fail with
STATUS_STACK_OVERFLOW.
(the bug is concerned with DLL embedding and WH_CALLWNDPROC)
There is a hope to somehow overcome the problem if increase the kernel stack
size.
Thanks.
BTW, is the 64bit NT stack size is 12k too (just wonder)? Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104415
vhidmini.pnf is needed using filemon
I want to use devcon to install vhidmini sample driver according to reame.
but it claims update failed always. so I use filemon to check which file it
is accessing,
found that vhidmini.pnf.
this is generated by setup application when installing, why it didn't do
that?
TIA Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104414
File System Driver, OLE Structured Storage problems-help!
Hi!
I'm having a problem in my FSD, trying to support StgOpenStorage. Basically
I
can create a store okay, but when I go to try and read it with another call
to
StgOpenStorage call I get the error (0x80030050, already exists). More
specifically, I first create a store with STGM_TRANSACTED, STGM_READWRITE,
STGM_SHARE_DENYWRITE and STGM_CREATE. The StgCreateStorageEx call works
fine with these flags. But then when I try to get StgOpenStorage to work to
open that already opened store, I get the error 0x80030050). This works on
the FAT file system, but not in my own FSD.
I've spent quite a bit of time looking at the activity of StgOpenStorage.
When STGM_TRANSACTED and STGM_READ is indicated for an existing open DocFile
,
it seems like there is a cache read for the existing data, then a bunch of
lock
ops and then another cache read of size 0x200 with data that starts out as
0xFD
0xFF 0xFF 0xFF.... . Is this the two-phase commit process referred to here
<http://msdn2.microsoft.com/en-us/library/aa380017(VS.85).aspx>, where "a
table is updated in the file using a single-sector operation to indicate that
new data
is to be used in place of the old"? When I try this on a regular FAT
filesystem, filesys shows the second cache read to be the same as the first
(after the StgmOpenStorage is called to open a store that is already
opened).
When I try this on my own FSD, the second cache read shows the 0xFD 0xFF
0xFF... for the first 512 bytes. The StgmOpenStorage call then fails with
0x80030050 (already exists). What might the StgOpenStrorage be looking at to
determine if it can read the opened store, and why should it return the
"already exists" error? Why would this first reference for data in 0xFD 0xFF
0xFF... for the
first 0x200 bytes in cache happen for my FSD, and not for the FAT FSD (for
example?). Please note, I see no additional actual writes that start with
0xFD
0xFF..., but what I see is that in the second cache read, this data
mysteriously
gets put there, which I interpret to perhaps be the "single-sector
operation".
Thoughts?
Any help with this is greatly appreciated!!!
Best,
Steve
PS To recap, here is what happens in my FSD, and in FAT-pay attention to
steps
4,12, and 18:
FAT My FSD
1) StgCreateStorageEx - returns OK, 1) StgCreateStorageEx -
returns OK,
handle is left open (not closed before #2) handle is left open (not
closed before #2)
2) StgOpenStorage call to open #1 2) StgOpenStorage call to
open #1
3) IRP_MJ_CREATE returns OK 3) IRP_MJ_CREATE returns OK
4) IRP_MJ_READ first 0x200 bytes 4) IRP_MJ_READ first 0x200
bytes
buffer looks like 0xD0 CF 11 E0 A1.. buffer looks like 0xD0 CF
11 E0 A1...
5) FileBasicInformation: Attrib ARCHIVE 5) FileBasicInformation:
Attrib ARCHIVE
(I set the
ARCHIVE bit cuz FAT does)
6) FASTIO_LOCK 6) FASTIO_LOCK
7) FASTIO_LOCK 7) FASTIO_LOCK
8) FASTIO_UNLOCK_SINGLE 8) FASTIO_UNLOCK_SINGLE
9) FASTIO_LOCK - 9) FASTIO_LOCK -
STATUS_LOCK_NOT_GRANTED STATUS_LOCK_NOT_GRANTED
10) 4 FASTIO_LOCKs 10) 4 FASTIO_LOCKs
11) 4 FASTIO_UNLOCK_SINGLEs 11) 4 FASTIO_UNLOCK_SINGLEs
12) IRP_MJ_READ with DATA the SAME 12) IRP_MJ_READ ,DATA DIFFERENT!!!
as #4 Data starts
with 0xFD 0xFF 0xFF
13) FASTIO_LOCK 13) FASTIO_LOCK
14) FASTIO_LOCK 14) FASTIO_LOCK
15) FASTIO_UNLOCK_SINGLE 15) FASTIO_UNLOCK_SINGLE
16) FileStandardInformation 16)
FileStandardInformation
17) FileBasicInformation 17)
FileBasicInformation
18) FastIORead - SAME as #4 and #12 18) IRP_MJ_READ, buffer starts
with
"Root
Entry"
19) IRP_MJ_READ offset 0x1000, all zeroes 19) IRP_MJ_READ, offset 0x1000,
0's
20) IRP_MJ_READ, offset 0x10000, EOF 20) IRP_MJ_READ, offset
0x10000,EOF
21) FASTIO_UNLOCK_SINGLE 21) FASTIO_UNLOCK_SINGLE Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104413
Handle call to FlushFileBuffers in UMDF driver
Hi,
I have a UMDF driver which creates a virtual serial COM port. An
application, which calls FlushFileBuffers with a handle to this COM port,
receives error 50, which indicates that this request is not supported. The
driver for the normal COM port, however, supports a call to FlushFileBuffers,
at least this call does not fail. In the KMDF serial port driver example one
can find that it handles IRP_MJ_FLUSH_BUFFERS. So I guess I need to implement
the corresponding interface in UMDF. However, I was not able to find it.
Which interface must be implemented to handle IRP_MJ_FLUSH_BUFFERS.
Thanks for any suggestions and best regards,
Andre Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104412
KMDF Usb Multiple Configuration
hi all,
I am writing a driver for USB to Serial device in KMDF, which has 2
configurations. After selecting 1 configuration and downloading the firmware,
i am not able to switch to 2 configuration. I want to know whether KMDF
supports multiple configurations and how to select the required configuration.
thank you,
siddu. Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104411
mapping device memory to userspace through MDL direct io interface
I am trying to map the device memory(128MB) to userspace through direct IO
interface using MDL's.
I have choosen below approach for mapping the memory to user space:
IoAllocateMdl for allocating buffer for MDL(with virtual address of the
device memory, from MmMapIoSpace)
MmBuildMdlForNonPagedPool
MmMapLockedPagesSpecifyCache
By doing in above method, i have observed that, i could map the memory to
less limit onlyi.e <0x20000, but if i tried to use the full size(128MB),
system
is giving Blue screen with error as KERNEL_IN_PAGE_ERROR.
I am building the driver using WDF tool kit & trying in Visat-32 bit OS.
Kindly suggest me, is this is a right approach to map the memory to user
space or any other method can be used to map the memory to user space.
Attached the BUGCHECK windbg output:
KERNEL_DATA_INPAGE_ERROR (7a)
The requested page of kernel data could not be read in. Typically caused by
a bad block in the paging file or disk controller error. Also see
KERNEL_STACK_INPAGE_ERROR.
If the error status is 0xC000000E, 0xC000009C, 0xC000009D or 0xC0000185,
it means the disk subsystem has experienced a failure.
If the error status is 0xC000009A, then it means the request failed because
a filesystem failed to make forward progress.
Arguments:
Arg1: 00000001, lock type that was held (value 1,2,3, or PTE address)
Arg2: d0000006, error status (normally i/o status code)
Arg3: 83b674e8, current process (virtual address for lock type 3, or PTE)
Arg4: c000e000, virtual address that could not be in-paged (or PTE contents
if arg1 is a PTE address)
Debugging Details:
------------------
ERROR_CODE: (NTSTATUS) 0xd0000006 - The instruction at "0x%08lx" referenced
memory at "0x%08lx". The required data was not placed into memory because of
an I/O error status of "0x%08lx".
BUGCHECK_STR: 0x7a_d0000006
DEFAULT_BUCKET_ID: VISTA_RC
PROCESS_NAME: rfm2g_util.exe
CURRENT_IRQL: 2
LAST_CONTROL_TRANSFER: from 818d873f to 81881760
STACK_TEXT:
a95df4d4 818d873f 00000003 a95d4e64 00000000
nt!RtlpBreakWithStatusInstruction
a95df524 818d91ac 00000003 c0603000 83d57580 nt!KiBugCheckDebugBreak+0x1c
a95df8d0 818263d2 0000007a 00000001 d0000006 nt!KeBugCheck2+0x5f4
a95df914 818bb1da c000e000 83b674e8 00000000
nt!MiMakeSystemAddressValid+0x19e
a95df938 81815137 83b674e8 00000000 83d57580
nt!MiMakePdeExistAndMakeValid+0x68
a95df980 819d3606 01c00000 83a6a09c 00000000
nt!MiMapLockedPagesInUserSpaceHelper+0xb8
a95df9c4 818ba69b 83a6a000 00000001 01be0000
nt!MiMapLockedPagesInUserSpace+0x38c
a95dfa24 8ad5e1a4 83a6a000 00000001 00000001
nt!MmMapLockedPagesSpecifyCache+0x29
a95dfa74 8ad5d35a 839cfa70 7c4589d0 839cfc58 pmc55xx!CreateMDL+0x104
[d:\test\rfm_xp32fromxp64\legacy\pmc5565_wdf_driver\plx9x5x\sys\init.c @
1131]
a95dfb70 804e2ba4 7c2d31e8 7c400270 0000000c
pmc55xx!PLxDrvEvtIoDeviceControl+0x1aa
[d:\test\rfm_xp32fromxp64\legacy\pmc5565_wdf_driver\plx9x5x\sys\pci9656.c @
920]
a95dfb94 804e3f7c 7c2d31e8 7c400270 0000000c
Wdf01000!FxIoQueueIoDeviceControl::Invoke+0x30
a95dfbc4 804e6598 7c400270 83bffd88 83d2ce10
Wdf01000!FxIoQueue::DispatchRequestToDriver+0x445
a95dfbe0 804e7d2c 83d2ce00 8050d188 83d2ce10
Wdf01000!FxIoQueue::DispatchEvents+0x485
a95dfbfc 804e8e67 00000000 83bcfe88 83d85020
Wdf01000!FxIoQueue::QueueRequest+0x237
a95dfc20 804d7d9a 8377e560 a95dfc44 81827ecf Wdf01000!FxPkgIo::Dispatch+0x377
a95dfc2c 81827ecf 83d85020 8377e560 8377e560 Wdf01000!FxDevice::Dispatch+0x7f
a95dfc44 81988f65 83bcfe88 8377e560 8377e618 nt!IofCallDriver+0x63
a95dfc64 81989f25 83d85020 83bcfe88 019c1200
nt!IopSynchronousServiceTail+0x1e0
a95dfd00 8198ee8d 83d85020 8377e560 00000000 nt!IopXxxControlFile+0x6b7
a95dfd34 8188c96a 00000098 00000000 00000000 nt!NtDeviceIoControlFile+0x2a
a95dfd34 77680f34 00000098 00000000 00000000 nt!KiFastCallEntry+0x12a
0012fd2c 7767f850 75f27c92 00000098 00000000 ntdll!KiFastSystemCallRet
0012fd30 75f27c92 00000098 00000000 00000000 ntdll!ZwDeviceIoControlFile+0xc
0012fd90 10001b15 00000098 00122000 00000000 kernel32!DeviceIoControl+0x14a
WARNING: Stack unwind information not available. Following frames may be
wrong.
0012fdf8 75f28574 00412558 00000000 00425900 rfm2gdll_stdc+0x1b15
0012feb0 00409241 0012ff00 01bd0144 01030f78 kernel32!ReadFile+0x294
00000000 00000000 00000000 00000000 00000000 rfm2g_util+0x9241
STACK_COMMAND: kb
FOLLOWUP_IP:
pmc55xx!CreateMDL+104
[d:\test\rfm_xp32fromxp64\legacy\pmc5565_wdf_driver\plx9x5x\sys\init.c @
1131]
8ad5e1a4 8b55e4 mov edx,dword ptr [ebp-1Ch]
FAULTING_SOURCE_CODE:
1127: UserMode,
1128: MmCached,
1129: NULL,
1130: FALSE,
> 1131: NormalPagePriority)) == NULL)
1132: {
1133: /* Uh-oh */
1134:
1135: Status = STATUS_INSUFFICIENT_RESOURCES;
1136: break; Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104407
USB composite device on Window 2000
We have developped one BDA driver for USB devices. The driver is able
to handle single interface devices as well as multiple interfaces
devices (USB composite devices).
On windows XP and Vista platforms, everything works fine.
On windows 2000 with single interface devices, it works fine.
But on windows 2000 with USB composite devices, we are facing problems
in the AddDevice() handler :
The call to KsCreateDevice() fails with return code
STATUS_INSUFFICIENT_RESSOURCES.
One call to IoGetDeviceProperty() fails with return code
STATUS_OBJECT_NAME_NOT_FOUND
The strange thing is same function calls succeed on Win XP with
composite devices or on Win2000 with single interface devices.
I'm suspecting something going wrong with the usbhub.sys. Any advise
would be appreciated.
Thanks
Francois. Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104401
Where can I get system tmf files for Windows Server 2003?
Are the tmf files for the OS trace providers publicly available? Couldn't
find them online. I have collected a trace and need to transform into a
readable log.
Thanks. Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104400
Supported way for installing NDIS filter driver on Vista
Hi,
My Windows Installer package needs to install NDIS filter driver on
Vista. DIFxApp looks good, because it supports Windows Installer. Does
DIFxApp support also installing NDIS filter drivers?
I succeeded in installing NDIS filter driver by adding
'DriverPackageType = Network' to the INF file. However, DIFxApp 2.1
doesn't document that anymore. Is there any documented way for
installing NDIS filter driver? If not, should I stick with C++ Custom
Actions using INetCfg classes?
BR, Antti Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104395
usbser.sys- .INF - WHQL certification regarding.
We got a (device with USB port)hardware and we plan to use existing(system
provided) USB2SER driver. This driver will be signed (as it is OS provided),
But we have our own .INF file with some details adjusted in it.
Now we would like to certify this adjusted driver via WHQL.
Has anyone done this in the past and could give some tips to certify the
drivers ?
Any help in this task is appreciated.
BTW: The driver should be certified to the OS Win2k, WinXP,Win Vista (32/64).
--
Thanks in advance,
Shankar G. Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104394
BSOD with user-mode display driver (WDDM) in Vista
Hi All,
I'm working on r200umd user-mode sample display driver and I'm facing some
problem after its Openadapter function is getting called.
Openadapter is returning status as S_OK. In this call, it is passing
pointers of
CreateDevice and GetCaps.
After this call, GetCaps is getting called but in the WDDM documentation
nothing much is mentioned about this function. And inside this function,
sometimes I'm getting BSOD after calling 'bDD4DISPInitDD' function inside
R200D3DDevInit function. And sometimes GetCaps is getting called repetitively
and after some iterations getting crash.
But never got a call for CreateDevice. Actually I would like to know what
actually
GetCaps should return and when CreateDevice will get called and why GetCaps
is getting called repetitively??
Thanks & Regards,
Anuj Agarwal Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104392
Driver for serial port through TCP/IP
Hello
I need to develop a Serial Port driver for XP that redirects the COM
port commands to a remote machine via TCP/IP. For writing a pure
Serial Port driver I found an example in Win DDK. But I don't know how
to access TCP/IP stack from kernel mode - I can't use WinSock, can I?
Is there a possibility to send IP packets from kernel mode driver?
Thanks for answers.
Regards
Dominik Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104389
devcon.exe and unattended install from floppy
Hi:
I'm using devcon.exe to install a NIC driver in an unattended install
from a boot floppy and the vanilla distribution Window XP CD (i.e.,
not a custom boot CD with answer files,drivers, etc on the custom CD).
The problem is that while the finished install shows the driiver
installed (in Device Manager), the network information, joining the
workgroup (not WORKGROUP), and the attachment to the network printer
are not being completed.
I'm assuming it's because the network adapter is not being installed
early enough in the installation process. Is there some way to get
devcon.exe to execute in the text mode setup part of the install, when
the txtsetup.oem file is being executed?
Thank you for any light you can throw on this problem.
-- Roy Zider
I'm trying all known methods:
Sections of winnt.sif:
------------------------------
[GuiUnattended]
detachedprogram = "a:\gronce.bat"
[SetupParams]
UserExecute=a:\GROnce.bat"
[GuiRunOnce]
"A:\GRonce.bat"
Content of gronce.bat:
-------------------------------
start /wait A:\devcon update A:\DRIVERS\NIC\nvenetxp.inf "PCI
\VEN_10DE&DEV_0066"
start /wait net use \\MPX\HPLaserJ /user:Administrator <password>
REM not required rundll32 printui.dll,PrintUIEntry /in /n \\MPX
\HPLaserJ Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104384
WinDbg question
Hi
How can I see user mode OutputDebugString or kernel mode DbgPrint by WinDbg?
Is there any quick way ?
Thank you . Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104383
How can I disable the specific folder sharing in kernel mode or user
I wish to learn the principle of file sharing in windows.
Does it base on registry? Which module or driver does that work?
How can I disable the specific folder sharing in kernel mode or user
mode ?
And I have another question.
When I open a file shared on the other PC, IRP_MJ_CREATE comes
to \Device\LanmanRedirector device and PFO's file name is formed
as \192.168.1.1\sharedfoldername.
And when I open a shared file on my PC, it is also come in same form.
How can I distinguish between them?
And If it is on my shared file on my PC, How can I get the exact file
path
such as "C:\sharedfoldername\1.txt" from net path such as
\192.168.1.1\sharedfoldername\1.txt?
Thank you for your help. Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104382
Obtain FAT32 volume data just as it's done for NTFS
Hi.
I have problems with obtaining FAT32 volume data. For NTFS there's a
FSCTL_GET_NTFS_VOLUME_DATA control code, and nothing similar for
FAT32. Actually I need only 2 pieces of information:
1) The offset of the starting sector of the volume from the beginning
of the disk;
2) The number of the sectors per cluster, or the number of bytes per
cluster.
At the first glance you may think it's easy to obtain them using
IOCTL_DISK_GET_PARTITION_INFO control code, but the things are
somewhat complicated. For NTFS volume the starting sector offset can
be obtained easily dividing the starting offset of the partition (in
bytes) by the number of the bytes per sector (the mentioned arguments
are obtained through IOCTL_DISK_GET_PARTITION_INFO and
IOCTL_DISK_GET_DRIVE_GEOMETRY control codes). For FAT32 volumes data
sectors start from partition offset + reserved sectors + n*FAT size,
and it's impossible to get these arguments through any conrol code.
The only obvious way to obtain them is reading sector 0 of the
partition, which contains all the necessary data. Unfortunately I have
problems with reading exactly sector 0 - a legacy filter driver
encrypts/decrypts all read/write operations and it functions
incorrectly just for sector 0 read operation, as a result I get
garbage.
Question: Is there another way to obtain the 2 abovementioned pieces
of volume information?
Thanks in advance
Martin Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104380
WPP: error C4013: 'WPP_BIT_' undefined; assuming extern
I am evaluating WPP and am trying to add it to my project. When I
build I get the error:
error C4013: 'WPP_BIT_' undefined; assuming extern returning int
I must have missed a step. I am trying to follow the sample code
osrusbfx2.
I have added this to my sources:
RUN_WPP=$(SOURCES) \
-km \
-func:TraceEvents(LEVEL,FLAGS,MSG,...) \
-gen:{km-WdfDefault.tpl}*.tmh (added this as a test, made no
difference)
I have added this to my header file:
/
*****************************************************************************
WPP Tracing stuff
*****************************************************************************/
#define WPP_CHECK_FOR_NULL_STRING //to prevent exceptions due to NULL
strings
#define WPP_CONTROL_GUIDS \
WPP_DEFINE_CONTROL_GUID(EpTraceGuid,(e7cd1840 ,f9bf, 11dc ,95ff ,
0800200c9a66), \
WPP_DEFINE_BIT(ES_ERRORS) /* bit 0 = 0x00000001
*/ \
)
/* You can have up to 32 defines. If you want more than that,\
\
you have to provide another trace control GUID */
#define WPP_LEVEL_FLAGS_LOGGER(lvl,flags) WPP_LEVEL_LOGGER(flags)
#define WPP_LEVEL_FLAGS_ENABLED(lvl, flags) (WPP_LEVEL_ENABLED(flags)
&& WPP_CONTROL(WPP_BIT_ ## flags).Level >= lvl)
I include <driver.tmh> after my other header file.
I call it like this:
TraceEvents(TRACE_LEVEL_INFORMATION,
ES_ERRORS,
("This is a test trace message %d\n"),
9);
Any ideas on what is going wrong here ?
Thanks. Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104374
Accessing more than 4 serial ports in DOS
Hi,
I want to write a DOS utility than can access all the serial ports
present on my system. Typically I have a Plug-n-Play card, which has
six serial ports present on it, that are I/O mapped. Since we can
program at max four serial port addresses in the BIOS, I'm unable to
access all the ports. Does someone has any idea to do it in DOS.
Thanks,
Shakti Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104372
Checksum Offload With IPV6 On Server 2003
Hi!
Does anyone know if checksum offload is enabled by default with the IPV6
stack on Server 2003? It does not appear to be the case since I never see
the NdisPacketChecksumV6 bit set in the OOB NDIS_TCP_IP_CHECKSUM_PACKET_INFO
packet info.
Is there a way to enable checksum offload with the IPV6 stack?
Thanks! Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104362
mapping device memory to userspace through MDL direct io communica
I am trying to map the device memory(128MB) to userspace through direct IO
interface using MDL's.
I have choosen below approach for mapping the memory to user space:
IoAllocateMdl for allocating buffer for MDL(with virtual address of the
device memory, from MmMapIoSpace)
MmBuildMdlForNonPagedPool
MmMapLockedPagesSpecifyCache
By doing in above method, i have observed that, i could map the memory to
only less limit,0x20000, but if i tried to use the full size(128MB), system
is giving Blue screen with error as KERNEL_IN_PAGE_ERROR.
I am building the driver using WDF tool kit & trying in Visat-32 bit OS.
Kindly suggest me, is this is a right approach to map the memory to user
space or any other method can be used to map the memory to user space. Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104354
The first effort going to install bulkusb driver.
I have changed VID/PID in inf according to bulkusb sample.
then I copy bulkusb.sys to the same dir as bulkusb.inf.
when I plug into my hardware, there is a driver being loaded automatically
in the Human Interface Devices. not USB HID interface device, but a
HID-compliant devices. so I choose to uninstall, refresh, it is always being
installed automatically. then I choose to update driver, and choose my setup
disk where bulkusb.inf/bulkusb.sys is.
it says: the wizard could not find a better match for your hardware than the
software you currently have installed.
so I am stuck.
TIA Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104350
Where can I get symbols for wdfldr.sys and wdf01000.sys?
Where can I get symbols for wdfldr.sys and wdf01000.sys?
The debugger cannot find them anywhere on the symbol server.
A google search suggests that they are in the WDK but I am currently
running the WDK as installed from WDK_6000.16386.061101-2205.iso and cannot
find these symbol files anywhere.
Can someone please point me to symbol files for these drivers and if
necessary, new versions of the drivers that match these symbols files (the
version of both files I currently have is 1.5.6000.0) Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104326
.inf for using usbser.sys with CDC Vcom on Windows 98
My company has a device that uses usbser.sys in WindowsXP/2000/Vista to act
as a CDC Vcom port. It works fine in those OS versions. The problem I am
having is that when I attempt to use the same .inf file in Win98 I see my
device as installed with no problems in device manager but the device never
seems to be issued a port number. I have not been able to find any example
inf files for USB CDC vcom that use Win98. I have read some documentation on
version with XP/2000 that claim that you can use CDC on Win98 by modifying
the .inf file. Has anyone used or seen a CDC .inf file for Windows98 that
correctly installs a CDC VCOM device and issues it a port number correctly in
device manager? Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104325
[OT] Process Monitor Symbols loading Problem on Windows 2000 Professional,...
Hi,
i know this is not the NG for this, but even after asking this
question on Sysinternals Forum, i did not get a solving answer
on this. The Process Monitor does not load/download the symbols
for my Windows 2000 Professional System. Any other Application
WinDbg, Process Explorer works fine and the configuration is not
different from the others, since they all use the same method to get
the symbols from MS Symbol Servers. Process Monitor still wont
resolve callstack/frames, even there is the pdb files available for the
binaries. It also does not download the symbols from MS Sym Server.
All other applications work well with ms symbol server. I really
dont know what the problem here is. It seems like Process Monitor
(i use the latest) does try to access the pdb files with wrong filenames,
e.g. instead of using e.g. kernel32.pdb it tries to get the symbols
for the kernel32.dll with its original name, which means that it looks
for a debugging database file with the extension dll, which for sure
does not exist on the server and the local system. But if you like, you
can read this thread i started on sysinternals forum, which has more
information about:
http://forum.sysinternals.com/forum_posts.asp?TID=14076
Any more ideas,...i must apologize, this is my second post here,
but maybe someone has a idea on this, after reading the sysinternals
posting from me, that has some more information about this s***.
Regards
K
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied." Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104324
Driver Profiling On Server 2003/2008
Hi!
What do folks suggest for profiling tools to tune an NDIS miniport on Server
2003 and 2008. What results have people found with tools such as VTune?
Thanks! Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104320
SCSI Pass Through to SAS Enclosure
Hi,
I need to send various SCSI commands to a SAS disk enclosure connected with
LSI SCSI HBA. I read the SPTI sample in DDK and realize I need to use
CreateFile with device name such as \\.\PhysicalDrive0, \\.\scsi1: to get a
handle of the device and then use the handle in the SCSI_PASS_THROUGH IOCTL
call to send SCSI command to the specific SCSI device. But I could not find
the name for the SAS Disk Enclosure. Can anyone give me a hint on the disk
enclosure name and how to discover a disk enclosure?
Thanks,
Ken Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104319
verifier - caller complete power irp without passing down
Just wondering peoples opinions. I normally just leave verifier
running for my stuff with the standard settings. I just saw the below
error when the system was sitting idle. My driver is a WinXP SCSI
miniport (so both my miniport and the scsiport are being "verified".)
"Caller has completed successful IRP_MJ_POWER instead of passing it
down". That sounds like its out of my control since its not getting
passed down to the scsiport or me? Just wanting to confirm.
POSTPONED WDM DRIVER BUG: [SCSIPORT.SYS @ 0xBACE344C] Caller has
completed
successful IRP_MJ_POWER instead of passing
it down
(Irp = 81880F48 ).
IRP_MJ_POWER.IRP_MN_SET_POWER(PowerSystemWorking.S0.PowerActionSleep)
[ DevObj=8173CA38, FileObject=00000000, Parameters=00000000 00000000
00000001 00000002 ]
http://www.microsoft.com/hwdq/bc/default.asp?os=5.1.2600&major=0xc9&minor=0x231&lang=0x9 Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104318
Graphic-Tablet driver
Dear Newsgroup,
I have a Graphic-Tablet that I like to use, but there is no driver support
for Windows-Vista. So I decided to write an application that takes the
role of a driver. Reading out the Tablet was quite easy because it is
connected by serial port.
To say the operating system were the mouse curser is, is although easy.
But how to set the pen-pressure-information? Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104317
IPV6 Checksum offload Win2k3
Hi All,
I'm supporting IPV6 checksum offload on Windows 2003 server. Though I
return IPV6 capabilities in the MiniportQueryInformation, still NDIS does
not seem to enable the IPV6 checksum offloads in the MiniportSetInformation
call. Is there some registry parameter etc required to be set explicitly to
enable IPV6 offload capabilities on Windows 2003 ?
Thanks,
Indira Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104316
Upper filter driver - attaching to devices
I'm using IoAttachDevice. It returns OBJECT_NAME_NOT_FOUND. I'm using
the same device name as shown by irptracker and devicetree utilities.
Any ideas? Also, are they any other methods to attach to a lower
device?
Thanks
/kmk Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104311
BDA driver and MS Windows MCE
Hello,
I have a problem with developing BDA driver for MS MCE.
First thing I did was to compile a BDA sample from MS DDK. This sample
works in MS XP perfectly, but when I try to use this BDA driver in MCE
it doesn't work
I'm trying to run Media Center in MCE and this application can't find
this BDA sample driver to receive TV.
Can anybody help me to understand my problem?
Thanks. Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104307
Debug tool question
Hi
What is the best tool to debug Windows driver, is it SoftIce ?
I use DebugView to see DebugPrint message, could you suggest some
more powerful free tool or Microsoft tool ?
Thank you. Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104292
How to kill driver process ?
Hi
I am debugging some driver, I build and replace its sys file in
system32\drivers.
I find that I should reboot Windows to see new debug messages. If I remove and
add this device, or disable then enable it, I cannot see new debug messages.
Is there any way or tool to clean driver process, I have seen other driver
which
do not need to reboot Windows, what's the root cause ?
Thank you . Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104291
enumerating all open WDFFILEOBJECTs?
My device is not exclusive and can have multiple file handles open. I
would like to store an integer that is unique to each file handle.
It seems the recommended method is to store the data in the
WDFFILEOBJECT's device context. However, when new data arrives from
my device, the driver needs to examine and potentially update each
integer that is unique to each file handle. Therefore, I need some
way to enumerate all open WDFFILEOBJECTS. Is this possible?
If not, my alternative would be to store a hash map or linked list
containing all of the WDFFILEOBJECT handles and their corresponding
integers. This map/list would be stored in the device context of my
Device Object and updated in EvtDeviceFileCreate and EvtFileCleanup
callbacks. Are there some built in data structures for hash maps or
linked lists that would be helpful for implementing this?
I'd prefer the first approach (enumerating the WDFFILEOBJECTs) so that
I can let the framework manage the map between file objects and
integer data. Any other solutions are welcomed.
Thanks,
Jonah Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104287
Visual Studio 2008
Could you recommend a dev tool (VS) to connect to MySQL from Visual Studio
2008? Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104283
My AVStream driver can't show video with YUY2 format in AMCAP
Dear All,
I use avshws sample to write the video capture driver for my PCI
video capture card. I can show YUY2 video with graphedit. But when I
use AMCAP or AMCAP2, the video will show up first time when the AMCAP
is executed. But if I open the Video Capture Pin property and choose
the same YUY2 320x240 mode, the AMCAP window just show black display.
However, if I drag the AMCAP window to outside of the desktop area or
overlap by another window, the AMCAP will update one or two frames. If
I drag the AMCAP window and move continuously, the video frames will
update continuously. It's quite strange. I have no idea what it
related in my code. I have struggled almost one month to investigate
the problem. Please give me some idea. Thanks a lot!
Best regards
Jerry Pan Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104275
About USB composite parent device driver - Usbccgp.sys
Hi
I have developed an USB composite device driver. The driver uses usbccgp.sys
as its parent driver. Now I got a question about the parent driver that does
it support USB selective suspend feature?
Thanks
Abei
2008.3.20 Tag: Getting Checked NDIS For Windows Server 2008 Tag: 104272
Hi!
Short of installing the full checked build of this OS, how do I get the
checked version of NDIS from the DVD?
Re: Getting Checked NDIS For Windows Server 2008 by antti
antti
Fri Mar 28 05:20:39 CDT 2008
On 28 maalis, 05:09, "Peter" <ImInSoq...@nospam.nospam> wrote:
>
> Short of installing the full checked build of this OS, how do I get the
> checked version of NDIS from the DVD?
>
One solution is to mount install.wim file using ImageX[1] and copy
ndis.sys from the mounted directory. ImageX is included in WAIK[2].