Special IM driver??
Hi All,
I am trying to create a component (Network Driver etc ) which
will help in agnostically route packets between two or more
Interfaces
at the Layer 2 level i.e. at the Mac Address level switiching. So
that
the IP payload in those packets remain the same but the Interface it
travels to go out of the Mobile device is controlled by my component.
IMPORTANT : Both the interfaces will be Ethernet based.
What will be the basic component to build my solution around??
My guess : IM driver
Doubts : How does Mbridge(MSFT) provided helps in this scenario...
How it is different from Layer 2 Switch because i dont think Mbridge
is a Layer 2 switch. Please explain in this regard because I MAY BE
WRONG!!!
Any more pointers will be grateful.
regards
bisban Tag: Wait on File Access Lock Tag: 99774
Is there any tool publicly available to generate IPv6 traffic on Windows Vista?
Is there any tool publicly available to generate IPv6 traffic on Windows
Vista?
I am looking for a tool that can be used to generate IPv6 packets with
various Ipv6 extension option headers.
Pls let me know if someone is aware of such a utility.
Thanks,
-Praveen Tag: Wait on File Access Lock Tag: 99771
Different unidrv.dll versions - which consequences do they have?
We are using printerdrivers of HP, Kyocera and Lexmark which are based on the
same set of unidriver-dlls. Unfortunately all three vendors use different
versions of these dlls. We need to know the effects of the installation order
on our printerdrivers.
Here are the affected sets of dlls:
Filename Fileversion Filesize Filedate
unidrv.dll 0.3.1296.0 263680 03-25-2003
unidrv.hlp 18022 02-21-2003
unidrvui.dll 0.3.1296.0 203776 03-25-2003
unires.dll 0.3.1296.0 619520 03-25-2003
unidrv.dll 0.3.1296.4 264704 10-03-2006
unidrv.hlp 18022 10-03-2006
unidrvui.dll 0.3.1296.1 198656 10-03-2006
unires.dll 0.3.1296.1 619520 10-03-2006
unidrv.dll 0.3.3790.1830 269312 03-29-2007
unidrv.hlp 18022 03-29-2007
unidrvui.dll 0.3.3790.1830 207872 03-29-2007
unires.dll 0.3.3790.1830 620032 03-29-2007
1. Which changes have been applied between these dlls-versions ?
2. Do we need to follow a special order for the installation?
3. Does the unidrv.dll 0.3.3790.1830 still contain every api-function which
is contained in unidrv.dll 0.3.1296.0?
4. Will any driver which was based on the first set of unidriver-dlls still
work with the more recent set of dlls?
Thank you very much for your support. Tag: Wait on File Access Lock Tag: 99770
USB RNDIS
Hi Folks,
i hope you could help me.
Problem Description:
I have a device that i want to connect with my HomePC using an USB RNDIS
Connection. Setting up the inf File is not that Problem, the Inf File works
and Windows sets up an Network Device that i can use for this Connection.
After configuring the netzworkdevice (IP-Adress, etc.) everything works fine.
But:
Can i configure the Networkdevice automatically after Installation? That
means that after the correct driver is installed, the networkdevice should
have an IP-Adress.
Can i configure the IP of the connected Device remotely? (For testing
purpose i have set the Ip-Adress of the device manually..)
Thanks for advice
Stefan Tag: Wait on File Access Lock Tag: 99767
[layer 2 Switch] For Windows Mobile based OS
Hi All,
I am trying to create a component (Network Driver etc ) which
will help in agnostically route packets between two or more Interfaces
at the Layer 2 level i.e. at the Mac Address level switiching. So that
the IP payload in those packets remain the same but the Interface it
travels to go out of the Mobile device is controlled by my component.
IMPORTANT : Both the interfaces will be Ethernet based.
What will be the basic component to build my solution around??
My guess : IM driver
Doubts : How does Mbridge(MSFT) provided helps in this scenario...
How it is different from Layer 2 Switch because i dont think Mbridge
is a Layer 2 switch. Please explain in this regard because I MAY BE
WRONG!!!
Any more pointers will be grateful.
regards
bisban Tag: Wait on File Access Lock Tag: 99765
SAA7134 & Texas XIO PCI-e-2-PCI bridge
Hello All,
I have a board with PCI-e-2-PCI Bridge XIO2000 from Texas and four
SAA7134 Philips codecs behind it. Windows XP SP2 sees all four devices
as being connected to some PCI bus. I have developed a driver for
SAA7134 Philips codec and loaded it for all four devices behind this
PCI-e bridge. I tested the driver with Philips devices on conventional
PCI bus - it worked in the way I expected it. Everything changed with
this new board. I have tons of mysterious errors. Trying to access one
device memory mapped registers I affect register settings of another
device on the same bus. I miss critical interrupts with almost
enormous lag. Almost everything broke. My driver is conventional WDM.
It uses memory mapped registers and interrupts line. SAA7134 performs
bus master scatter-gather DMA video data transfer.
So, here is the question - are there any special things about
developing drivers for devices, connected to PCI-e bus?
With best regards,
Vladimir S. Mirgorodsky Tag: Wait on File Access Lock Tag: 99761
Accessing disabled SCSI devices via Storport
I am developing the SCSI device test application. It is intended mainly for
SCSI device firmware developers and testers, and allows user to execute
manually any SCSI command for the selected SCSI device. During the
development and testing of the firmware the device might not be able to
answer properly to SCSI commands. In this case it is necessary to disable the
device object in the Device Manger window. Disabling the device object
prevents the class driver from sending the SCSI commands for normal
functioning. The special pseudo class driver was developed for the
transparent device access. This driver sends IRP_MJ_SCSI IRPs with the SRBs
directly to storage adapter objects (Scsi0:, Scsi1:, etc). This worked fine
with SCSI Port but does not work with Storport. As I have learned from this
newsgroup the Storport does not allow sending SRBs directly to adapter
object. Sending SRBs to SCSI device object works fine but when the device is
disabled there is no device object at all. The SCSI PASS THROUGH interface
also does not work through the Storport for the disabled SCSI device.
Is there a way to send the SCSI command to the disabled SCSI device via the
Storport?
Thanks a lot for advice. Tag: Wait on File Access Lock Tag: 99759
Video Controller not found in Windows 2003
Hi,
I have a Windows 2003 server that, under Device Manager displays a
question mark under the Vieo Controller. The Video card within the
server is an ATI Radon X550. If I install the ATI supplied drivers the
installation runs well yet Remote Desktop fails.
If I uninstall the ATI driver, Remote Desktop works yet I get the
question mark. Searching through the internet, it seems that Windows
2003 supplies its own ATI drivers.
Is there a way I can reset this without having to reinstall the entire
server.
Thank You,
Al Tag: Wait on File Access Lock Tag: 99758
Disabling USB memory drives in windows
Hi Guys,
It has been always a challenge to disable to USB drives on the
employees PCs specifically using memory sticks without disabling the
USB keyboard, mouse etc. The following article explains how to do
that. A good read.
http://knowurtech.com/windows/disabling_usb.html
Cheers!!
Dinesh Tag: Wait on File Access Lock Tag: 99751
Reg:Debugging
I'm writing NDIS driver for RTL8139 ethernet card.Is there any
software for debugging.I need to restart every time when I get the
blue screen,which is time consuming.how can i avoid the blue
screen.Please help.
Thank You.
Raghu Tag: Wait on File Access Lock Tag: 99740
can driver prevent the handle?
hi all,
I want to know that, after I get the VALID_HANDLE
from SetupDiGetClassDevs (do the handle with a USB
device), whether the driver can prevent the windows
to communicate with the USB device?
That is to say, can driver let windows to know
the USB device is connected on the port, but the
driver won't let windows to communicate with the
USB device? Tag: Wait on File Access Lock Tag: 99739
can symbolicname be used to communicate with the device
I want to know after getting the USB device's symbolicname,
can I use it to communicate with the device?
If I can, what steps I shall take.
If I can not, how can I communicate with the USB device? Tag: Wait on File Access Lock Tag: 99738
deleting a registry ke
I save some device specific information in the registry that is created with
ACCESS_ALL. Sometimes it is necessary go back to default configuration, so I
would like to delete the information. I am opening an handle to the key and
calling ZwDeleteKey, but I get an error with the status that I can't delete
it (0xC0000121). The information has a tree structure (the key itself
contains sub keys) and it also contains values. Is this the reason the
delete fails? I can delete the node easily enough using regedit, why can't I
delete it in my driver entry? Tag: Wait on File Access Lock Tag: 99709
can symbolicname be used to get handle
hi all,
During the USB device design, a problem confused me.
I want to get the handle of the USB device, and the symbolicname
of this USB device in register, like following:
\??\USB#Vid_xx&Pid_xx#x&xx&x&x#{xxx..}
somebody told me, this symbolicname can be used in
CreateFile to create the handle.
After some tests (by change the symbolicname into the right
form), I can use the "new" symbolicname in createfile, and
the return handle is VALID_HANDLE.
I want to know, is this symbolicname the right parameter
in CreateFile?
And the handle is which handle? Can this handle be used
to communicate with the USB device? If it can, how? Tag: Wait on File Access Lock Tag: 99704
how many sys file i need?
Hi all:
My device has to support xp32,xp64,vista32,vista64,so generally the
solutions is to have 4 sys files for each OS:
xp32.sys,xp64.sys,vista32.sys,vista64.sys(built with corresponding build
enviornments)
My question is: can i reduce my sys file numbers?
for example,use vista x86 build enviornment,and this vista32.sys supports
both xp32 & vista32.
Is this possible?How to do?
Or just one sys file to support all the OS,possible??
Thanks in advance. Tag: Wait on File Access Lock Tag: 99703
How many packets in a PNET_BUFFER_LIST
Is there a way of telling how many actaul packets there are in a
NET_BUFFER_LIST?
Is there a packet (e.g. IP-packet, ARP request etc.) for every NET_BUFFER or
can a packet be divided on several NET_BUFFERS in the NET_BUFFER_LIST?
Brgds,
Fredrik Tag: Wait on File Access Lock Tag: 99701
Bootloader execution halts for DaVinci Board DM6446 with 64mb memo
Hi,
I am working on DaVinci Board DM6446.
I have written a small utility program which loads my UBL in the SRAM and
then loads the Bootloader in the memory on the address depending on the
settings of .bib file and imagecnf.inc file
while executing the Bootloader i.e. during the step of downloading the
NK.bin file it stucks when it reaches to loading the record where actually
the executables of bin are since the size is maximum in it.
Also I am using a SDRAM of 64 mb only in the board.
The log that I am getting is: (there are certain tracing statements that
have been included by me):
BOOTME BOOTME BOOTME BOOTMEMAC addr is 0:e:99:2:51:c7.
EBOOT
ReadEnvByName:Unable to find next valid block
Environment Variables Respective Values
ENV_SIG ENVER1.11
DEVICE_ID DAVINCIXXXX
IP_GATEWAY 0.0.0.0
IP_ADDR 0.0.0.0
SUBNET_MASK 255.255.255.128
IP_SVR 0.0.0.0
SVR_SUBNET_MASK 255.255.255.128
BOOT_ADDR 0x00040000
TFTP_CONFIG 1
BOOT_MODE 1 ->BOOT_DOWNLOAD
Using device name: 'DavinciC751'.
Using Ethernet download.
IP Address: 0.0.0.0
Subnet Mask:255.255.255.128
Invoking EbootInitEtherTransport with Platform Name DavinciC751
InitDHCP():: Calling ProcessDHCP()
ProcessDHCP()::DHCP_INIT
-DaVinciEmacSendFrame(rc = 0)
-DaVinciEmacSendFrame(rc = 0)
1111Got Response from DHCP server, IP address: 10.31.178.193
ProcessDHCP()::DHCP IP Address Resolved as 10.31.178.193, netmask:
255.255.255.1
28
Lease time: 691200 secon
1111Got Response from DHCP server, IP address: 10.31.178.193
+EbootSendBootmeAndWaitForTftp
-DaVinciEmacSendFrame(rc = 0)
Sent BOOTME to 255.255.255.255
trace msg-DaVinciEmacSendFrame(rc = 0)
Locked Down Link 1
Src IP 10.31.178.193 Port 0800 Dest IP 10.31.178.137 Port 06E9
EthDown::TFTPD_OPEN::boot.bin
-DaVinciEmacSendFrame(rc = 0)
-EbootSendBootmeAndWaitForTftp
aaaaOEMPreDownload: Returning 0.
r
in switch case
Downloadentry entry
-DaVinciEmacSendFrame(rc = 0)
image signature is correct
BOOOFF
read image end
imagestart = 80007000 and lenght = 24919E4 1
In MultiBinNotifyAnshul 1
pcurrentdownloadfile = 83FDAD6C, region start -2147454976, length
38345188
OEMVerifyMemory: Image Start Addr 0x80007000 Image Length 0x024919E4
+OEMIsFlashAddr
OEMVerifyMemory: Clearing Memory from 0x80007000 to 0x824989E4
Second pcurrentdownloadfile = 83FDAD6C, region start -2147454976, length
383
45188
+OEMIsFlashAddr
size of rec 4 dwredaddress 80007000
+OEMMapMemAddr
+OEMIsFlashAddr
OEMMapMemAddr Address: 0
-OEMMapMemAddr
lpdest = 80007000
Read Data counter 1
Verify Checksum counter 1
Loading Image 0 %..Anshul progress
Anshul End while.
size of rec 8 dwredaddress 80007040
+OEMMapMemAddr
+OEMIsFlashAddr
OEMMapMemAddr Address: 0x80007040
-OEMMapMemAddr
lpdest = 80007040
Read Data counter 2
Verify Checksum counter 2
Anshul progress
Anshul End while.
size of rec 4 dwredaddress 80007048
+OEMMapMemAddr
+OEMIsFlashAddr
OEMMapMemAddr Address: 0x80007048
-OEMMapMemAddr
lpdest = 80007048
Read Data counter 3
Verify Checksum counter 3
Size of rec 685024 dwredaddress 80008000
+OEMMapMemAddr
+OEMIsFlashAddr
OEMMapMemAddr Address: 0x80008000
-OEMMapMemAddr
lpdest = 80008000
-DaVinciEmacSendFrame(rc = 0)
-DaVinciEmacSendFrame(rc = 0)
-DaVinciEmacSendFrame(rc = 0)
-DaVinciEmacSendFrame(rc = 0)
-DaVinciEmacSendFrame(rc = 0)
-DaVinciEmacSendFrame(rc = 0)
-----------------------------------------------------------------End of
log-------------------------------------
According to bib file settings the addrss is 80007000 for copying the nk.bin
file in the SDRAM and at address 80008000 it is placing the 3rd record which
is of size 30 mb(For nk.bin i have reserved 40 mb in .bib file and other
files synchronized)
And the code stucks here.
after sending 6 frames the code stucks and nothing happens on the
Hyper-terminal screen.
Can anybody plz help me out on this topic???
thanks
Anshul.. Tag: Wait on File Access Lock Tag: 99700
How user wait for kernel?
Hello,
I am a new comer. I have a question:
My user application need to wait for kernel interrupt and than do something.
I think I will pass the request to kernel throught IOCTL call and wait for
return.
My kernel IOCTL function call
KeWaitForSingleObject
When interrupt happen, in ISR DPC, I will call
KeSetEvent
than my IOCTL function will return to user. Is this a good way to implement
this? If not, what is the best way?
Thanks,
Xinshou Tag: Wait on File Access Lock Tag: 99696
delreg section in INF not truly deleting registry entry
I have a heisenbug I could use help on.
I have service that creates several registry keys. The service has an
associated INF file which has a DefaultUninstall section which is called by
our product's installer when removing the service. The DefaultUninstall
section calls out a delreg section which deletes about 20 keys from the
registry. All but one of these keys gets deleted correctly.
Now for the heisenberg portion of the bug. The installer prompts the user
for a reboot at then end of the removal process. If I pull up regedit
before saying yes to the reboot, the key in question is indeed not in the
registry any longer and is not when the system comes back from reboot. If I
do not pull up regedit and just reboot, the key is still present when the
system comes back from reboot. Obviously, regedit is causing the change to
be permanent in some way.
Is there some lazy write problem here? Is there a way from the INF I can
flush or commit the reg changes?
Thanks.
Bill M. Tag: Wait on File Access Lock Tag: 99688
Verifier doesn't catch IRQL violation
I accidentally called ZwReadFile at APC_LEVEL IRQL (holding a fast mutex
actually) in a driver running on Vista RTM and got a weird result.
ZwReadFile just wouldn't return. No crash, no bad status return, the thread
just hung. Then of course the application was stuck with an open handle and
neither the app or the driver could die properly.
I turned on DriverVerifier for my driver with all options selected except
low resource simulation and it never complained.
It seems 1) ZwReadFile should be checking the current IRQL and returning a
bad status if it isn't PASSIVE_LEVEL and 2) DriverVerifier should have
caught this no?
Just FYI to any MSFT folks that might care.
I caught it pretty fast on my own, but this could cause someone no end of
pain if they didn't know what to look for.
Btw, this driver ran fine on XP SP2...don't know if that was (bad) luck or
just a change in under arching operation.
Haven't tried SDV on it yet.
Bill M. Tag: Wait on File Access Lock Tag: 99684
KeDelayExecutionThread not waiting
Hi, why is this not waiting at all, there is no delay:
LARGE_INTEGER x;
NTSTATUS y;
x.QuadPart = 100000000I64; // wait 10 seconds
y = KeDelayExecutionThread( KernelMode, FALSE, &x);
Here, y == STATUS_SUCCESS meaning the wait was completed, but it was not,
and IRQL == PASSIVE_LEVEL. Tag: Wait on File Access Lock Tag: 99679
Language Monitor
I wrote a language monitor for our custom made printers. It reads the status
of the printer every 30 seconds and flag if there is a problem with the
printer. Everything works fine, we can install different printers and it
works. The problem is when I reboot my PC, only the first installed printer
is seen by the language Monitor. I can see all the printers in the "Printers
and Faxes" window, but only the first one that was installed is polled by the
language monitor. I started our language monitor from the pjlmon example
from WINDDK.
--
Mario Tag: Wait on File Access Lock Tag: 99677
Vista does not allow config space reads beyond 0xFF
I have verified in winDBG in pci!PciExternalReadDeviceConfig that it
checks the offset and verifies that the aligned offset is below
0x100. If it is at or above 0x100 then the returning status is
0xC0000010 or STATUS_INVALID_DEVICE_REQUEST which is exactly what I am
getting.
This is contrary to msdn documentation http://msdn2.microsoft.com/En-US/library/aa906253.aspx
that says extended config space access is allowed:
"Drivers can read from the extended PCI device configuration space
(that is, more than 256 bytes of configuration data) using the
IRP_MN_READ_CONFIG request or the GetBusData method of
BUS_INTERFACE_STANDARD"
Please tell me that I am wrong! I really would rather not calculate
the offset from 0xe0000000 (using bus, dev, func) and manually read
physical memory at that location to get to the extended config space.
I WANT to use OS calls!
Thanks.
Gabe Tag: Wait on File Access Lock Tag: 99670
Ethernet driver buffer allocation
This may not be the proper spot to post, but I figured it was a good starting
point. I also suspect this may be dependent upon the actual Ethernet device
driver, and not an industry standard. That being said:
When data is transferred across an Ethernet connection using, say a TCP-IP
socket connection, the end caller issues a receive call, and passes in a
pointer to a buffer where the data is written.
My question is:
a) Is the data being transferred ONLY written into that buffer which is
passed in, or
b) is there an intermediate buffer contained w/in the driver to store the
data as it is transferred across the medium (and then copied into the buffer
passed in on the receive call)?
I am trying to minimize copies in my code, because I have large amounts of
data being transferred. Again, I realize that this may be totally dependent
upon the ethernet card being used, I just was curious if there was an
industry standard, or some underlying protocol/handshaking to which I was not
aware of.
Thanks. Tag: Wait on File Access Lock Tag: 99669
Getting started modifying a NT serial card driver to run on XP
Hello
I have the source code to a driver that works fine on NT4 but we now
need to get it to work on XP. Our testing indicates that the driver
does not work on XP. It is possible that it is a configuration issue
however - as the driver gets some data from the registry - I am
checking if we have that correctly configured. But I am guessing that
is not the problem.
Should a driver written for NT4 work on XP without change? The driver
is for an RS422 multidrop card. Are there any areas of the driver
code which I should be watching out for? Is this a total re-write
situation or only minor changes?
Any comments would be much appreciated.
Angus Tag: Wait on File Access Lock Tag: 99666
Can't get reading extended config space to work on Vista
I am pretty sure that the BIOS is allowing Vista to take control of
PCIe since in WinDBG I can do a !pci 0x101 3 0 0 (my device is on bus
3, dev 0, func 0):
..[Config Space 0x00-0xFF omitted]...
Enhanced Capabilities:
100: CapID 0002 Virtual Channel Capability
Version 1
NextPtr 800
800: CapID 0001 Advanced Error Reporting Capability
Version 1
NextPtr 000
However on another machine running Vista where I'm pretty sure the
BIOS does not do the _OSC method and I think it is verified when I
run !pci 0x101 on the same device there will be no "Enhanced
Capabilities listing at all.
Neither of the two Microsoft sanctioned ways (that I am aware of (i.e.
GetBusData and IRP_MN_READ_CONFIG)) to access extended config space
worked for me. I have even used the example verbatim from
http://msdn2.microsoft.com/en-us/library/ms795302.aspx. The status
returned from the IRP_MN_READ_CONFIG method is
STATUS_INVALID_DEVICE_REQUEST.
I've even tried installing Vista SP1 Beta, but the results are the
same.
Any other venues I should take/investigate?
Thank you in advance.
Gabe Tag: Wait on File Access Lock Tag: 99663
Application for printer installation
Hi,
I am using Windows Vista and want to use "AddPrinter" in my applictation
to install a printer driver. The problem is, that Windows creates an
error. This does not happen in older versions of Windows.
Please tell me how to solve my problem or where I should read because
the subject I am woking on is very urgent and I have spend a lot of time
the last days on it.
Thx
fussa Tag: Wait on File Access Lock Tag: 99662
missing DirectoryChange notifications
Hi all,
I'm writing an IFS minifilter doing some HSM stuff. Most operations are
queue using FltQueueXXX functions. In worker function changes to files are
done using e.g. FltSetInformation, FltWriteFile. This works very well.
But user mode applications using NtNotifyChangeDirectoryFile or
ReadDirectoryChangesW (e.g. Explorer) are not notified about these changes.
Changes on files triggered from any user mode application are notified!
How can I notify changes from IFS filter (system thread)? Tag: Wait on File Access Lock Tag: 99661
Multple LUN support question for USB flash drive
Hi,
I'm trying to expose a USB composite device with the mass storage interface
at interface 2. Although I reported support for Hierachial support (HiSUP
bit set to 1), the system does not try to query me for my other LUNs except
for LUN 0. I never received the REPORT LUNS command that is suppose to be
compulsory when HiSUP bit is set.
When I change the mass storage interface to interface 0, I get the INQUIRY
command for LUN 1 as well and all is well.
Question is, why doesn't the system check for additional LUNS when my mass
storage interface is not 0? Is this a requirement?
Thanks.
KS Tag: Wait on File Access Lock Tag: 99659
FTDI's FT232R chipset Junk data bytes
Hi All,
I am writing a Custom WDM USB-UART driver(Single VIRTUAL COM PORT)
for FTDI's FT232R chipset.
In my InitializationModule() and startdeviceroutine() I could able to
Get the device descriptor
and configure the Device perfectly. I am getting the Interface and
pipe information correctly.
My problem is after start device, If I try to Read data from the
device by calling the following
//Satrt the request
ulFlags = USBD_TRANSFER_DIRECTION_IN | USBD_SHORT_TRANSFER_OK;
UsbBuildInterruptOrBulkTransferRequest(pCtx->m_pUrb,
sizeof(struct _URB_BULK_OR_INTERRUPT_TRANSFER),
hPipe,
pbBuffer, NULL, cbBuffer, ulFlags, NULL);
// Setup completion proc
IoSetCompletionRoutine(pCtx->m_pIrp,(PIO_COMPLETION_ROUTINE)
RequestCompletedThunk,pCtx,TRUE,TRUE,TRUE);
// Call next device with this IRP
status = IoCallDriver(pCtx->DeviceExtension-
>TopOfStackDeviceObject, pCtx->m_pIrp);
in My Completion routine I am getting 2 bytes of junk data, Which is
unexpected(There is no data kept in port).
When I open the Virtual Com Port and write some data bytes, still I am
getting these 2 junk bytes.
I tried to resolve this issue by resetting the pipe. Still problem
exists.
Can anybody help me to get rid of that unnecessary junk bytes.
Your valuable suggestions are always appriciated.
Thanks in advance.
~Vijji Tag: Wait on File Access Lock Tag: 99656
NDIS Allocate memory fail???
Hi,
I am writing a NDIM IM driver. In order to communicate with user land
application, I allocate 3 buffers on nonpaged memory 10 MB each.
My driver gets success to allocate memory in first time only for all buffers.
Next time on wards, driver gets fail to allocate memory. I am very much
sure that there is no any memory leak which I have tested.
Please suggest me what should I do??
Configuration OS:: XP SP2
Ram:: 504 MB (8 MB shared)
Processor:: 2.8 GHz Pentium
--
With regards
thanks
Anand Choubey Tag: Wait on File Access Lock Tag: 99655
Driver Test Manager (2 tests fail in the unclassified tests)
Hi,
We are using the DTM (Driver Test Manager 1.0.6417.304) to test our
kernel mode device driver (mirror driver) to get a digital signature.
We are using the following configuration:
Controller: Windows 2003 Server
Studio: Windows 2003 Server
Client: Windows Vista Home Basic
We set up the unclassified tests and run them (we don't need a logo,
we only need a signature).
We received 2 errors in the following tests:
- Run INFTest against a single INF (Error message in RunJob: Could not
find user specified INF files)
- Plug and Play Driver Test (3 Error messages in RunJob: DeviceId is
NULL)
Do you have any idea ? Tag: Wait on File Access Lock Tag: 99654
IoReadPartitionTableEx
Hello
In my driver, a call to IoReadPartitionTableEx returns with
STATUS_NOT_IMPLEMENTED whereas IoReadPartitionTable returns successfully.
Running on WindowsXP with most latest service packs, building the driver with
WDK6000. When compiling with IoReadPartitionTable call in the code, get a
warning about the function being deprecated Tag: Wait on File Access Lock Tag: 99638
Windows XP & non-paged pool
Dear All,
At my driver I need a really huge memory buffer. I am trying to
allocate it from non-paged memory pool, since I need to perform a
series of DMA transfers from lots of PCI devices installed in the
system. Actually, every instance of my driver requires about 24 Megs
of memory and we are planning to have about 16 such devices installed.
What a disaster, I can load drivers only for 6 my devices, all other
fail on allocating memory from non-paged pool. I decided to allocate
memory from paged pool and lock it down in physical memory, using
MmProbeAndLockPages(), but was able to load only 4 instances of my
driver. What I am doing wrong?
With best regards,
Vladimir S. Mirgorodsky Tag: Wait on File Access Lock Tag: 99634
IOCTL, DMA questions?
Hello,
I have some questions:
1). Can I create two DMA Transactions at same time using one DMA enabler?
in what kind of case I can or canot?
2). If my IOCTL pass to kernel two buffers, one for read, and one for
write, can I use this way in CTL_CODE?
CTL_CODE(MY_DEVICE_TYPE,
0x909,
(METHOD_OUT_DIRECT | METHOD_IN_DIRECT),
FILE_ANY_ACCESS)
Thanks,
May Tag: Wait on File Access Lock Tag: 99631
IJolietDiscMaster->AddData returning STG_E_INVALIDFUNCTION
Hi there,
I am attempting to add a previously created IStorage container to an
IJolietDiscMaster interface, although the file appears to have been created
correctly and no errors were returned during it's creation, nor the streams
that were added to it, unfortunately it returns STG_E_INVALIDFUNCTION.
Could this be due to the way that I have created the streams? or not
closed them correctly after adding data?
Many thanks in advance as any help on this would be fantastic.
Nick. Tag: Wait on File Access Lock Tag: 99626
WDK version to use for release build of Windows Vista 32 and 64 bi
I am using WDK 6000 for driver builds which has the following disclaimer in
relnote.htm:
"Use the WDK build environments in this version of the WDK for evaluation
and preview purposes only. Do not use these WDK build environments for
production-level coding. At this time, you should use the Windows Server 2003
SP1 DDK for production."
I don't see the kmdf in the WDK 3790.1830 Windows Server 2003 SP1 DDK.
What version of the WDK should I use for WDF production-level code?
Thanks,
Conan Dickson Tag: Wait on File Access Lock Tag: 99612
Table of VendorIDs
Hello,
I'm looking for a table with the VendorID and the according manufacturer.
I'm only interessted in VendorIDs of Display. Does such a list exits?
Thanks! Tag: Wait on File Access Lock Tag: 99609
to call driverentry from service
How can i make a Driverentry point called in sys file?
I used checked build for XP to build the sys file.
I have only written Driverentry and Driverunload in it.
The configuration for service CreateService with SERVICE_KERNEL_DRIVER
option is used to write to registry .CreateSerrvice is also not
failing.If i use net start drivername or StartService API it doesnot
gives any error but Driverentry point is not called. Tag: Wait on File Access Lock Tag: 99606
link 2019 problem
I use part of the original code of moufiltr to complie since full size
code will crash the machine.But when linking, there is an error said
unresolved external symbol _MouFilter_IsrHook@32 referenced in
function _MouFilter_InternIoCtl@8 twice. What is that mean? where
can I get the answer to error list? Tag: Wait on File Access Lock Tag: 99598
Win2k Host Controller question
What is the GUID associated with a Universal Host Controller on
Windows 2000 SP4 .
For enhanced host controllers on Win 2k the symbolic link looks like
this
\\?
\pci#ven_8086&dev_265c&subsys_01791028&rev_03#3&172e68dd&0&ef#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
however i think that GUID #{3abf6f2d-71c4-462a-8a92-1e6861e6af27} is
not associated with Universal Host Controllers.
In that case what would be the GUID associated with the universal
host controller ?
Basically my final goal is to open a handle to the host controller
using its symbolic link other than using \\\\.\\HCD%d the way USBview
does ! Tag: Wait on File Access Lock Tag: 99592
talking directly to drivers
Hello,
I want to talk directly to the direct3d drivers without going through the
COM direct3d api, I want to directly call D3dContextCreate,
D3dDrawPrimitive2 etc. functions that are exposed by the driver. I want to
reinvent the wheel, just as the COM d3d api usermode dll is one alternative
to get to the driver, I want to make my own alternative. However I don't
know how to do this. It all starts with an application in usermode loading
my usermode dll providing an alternative to the COM api. How does my
usermode dll penetrate into the kernel driver ?
This is on xp
I have downloaded the ddk, but haven't found an answer, it seems it's mostly
targeted at writing the driver, not on how to program the 'other end'
thanks,
--
Sigurd Lerstad Tag: Wait on File Access Lock Tag: 99578
IMAPI Development
Hi there,
I am trying to write a C++ DLL that allows me to burn data CDs. I've
been following the following article,
http://msdn.microsoft.com/msdnmag/issues/04/04/CQA/
Unfortunately I am stuck as the CDiscMaster.GetActiveDiscRecorder fails,
as does the SetActiveDiscRecorder method. The recorders are enumerated fine
and I store them in a CSimpleArray object for index based referencing. I
can acquire information on the recorders, i.e. Path and PnPID, but Eject
does not work, nor does setting an active recorder as mentioned a moment
ago.
Any ideas what could be going wrong?
Nick. Tag: Wait on File Access Lock Tag: 99571
Ploblem on get ATIP imformation
hi
I use DeviceIoControl API to get an CDR/CDRW ATIP information . It
does well on my computer , but it does't work on other computer .
I guess the reason is that the mainbroad drives which contain the SCSI
command had not installed on my computer . But it just my opinion. And
even if my guess was right , I want to know which drives that i must
be installed or to containt to my application .
My main code here
SCSI_PASS_THROUGH_DIRECT_WITH_BUFFER spt_srb={0};
HANDLE hCDROM = CreateFile("\\\\.\\cdrom0", GENERIC_READ |
GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE , NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, 0);
BYTE myData[256]={0};
if(hCDROM!=INVALID_HANDLE_VALUE)
{
spt_srb.sptd.Length = sizeof (spt_srb.sptd);
spt_srb.sptd.DataIn = SCSI_IOCTL_DATA_IN;
spt_srb.sptd.TimeOutValue = 5;
spt_srb.sptd.DataTransferLength = 256;
spt_srb.sptd.DataBuffer = myData;
spt_srb.sptd.SenseInfoLength = 14;
spt_srb.sptd.SenseInfoOffset = sizeof(spt_srb.sptd) +
sizeof(spt_srb.Filler);
spt_srb.sptd.CdbLength = 0x0A;
spt_srb.sptd.Cdb[0] = 0x43; // read ATIP/TOC command
spt_srb.sptd.Cdb[2] = 0x04; // 4 ATIP - 0 TOC
spt_srb.sptd.Cdb[8] = 0x24; // low-order byte of buffer len
DWORD dwReturn ;
BOOL bRet = DeviceIoControl( hCDROM,
IOCTL_SCSI_PASS_THROUGH_DIRECT,
&spt_srb , sizeof(spt_srb), &spt_srb, sizeof(spt_srb), &dwReturn ,
NULL);
DWORD dwErr = GetLastError();
cd_atip* atip = ( cd_atip * )myData;
// free handle
CloseHandle (hCDROM);
// failed to read ATIP
CString str;
str.Format( "%dm%ds%df" , myData[8], myData[9],myData[10] );
AfxMessageBox( str );
}
Need you help , thanks .
Ano Tag: Wait on File Access Lock Tag: 99560
1394 hardware
I recently bought a 1394 PCI adapter for the desktop PC, which is the
debugging target. My notebook is the host and a 4-pin connector on the
notebook and a 6-pin on the desktop adapter connects the two machines.
Unfortunately, it's not working.
Could some of you share the hardware specs of a 1394 PCI adapter for a
desktop, and the cable specs, that you've used? I'd have to buy the
stuff again. Tag: Wait on File Access Lock Tag: 99558
please help me, how to record sound on playback device???
Hi experts, tt seem that here i can get your help.
I have:
Real audio playback device (RPD) . Real audio recording device
(RARD) and a Virtual audio device (VAD).
To test how to record sound on playback device , i try to do as follow :
1. Open GraphEdit (directX 2003).
2. Insert RAPD , VAD and RARD and make a connect between these filter .
3. Play an audio file in windows media player 9.
So, Sound will be followed same as below:
Sound is playing ---> RAPD ---> VAD ---> RARD ---> record sound is
playing by "SoundRecorder" tool.
I wonder these steps right? If i open Sound Recorder tool on windows and
press on Record button , can i capture sound is playing?
If not, can you show me how to connect (what filters to insert and order of
inserting) between these
filters so that i can record sound are playing on RAPD .
This is important to me, so thank so much for any your help. Tag: Wait on File Access Lock Tag: 99552
Wrong LINEATTRS data received from GDI?
Is it me or is it that the LINEATTRS values received in a printer's driver
DrvStrokePath(and equivalent) are broken on a WIN2000 machine?
I seem to receive extremely large numbers to describe pen width and mitter
limits on geometric lines and even when converted to the device space, and
the values from the calling application are normal. Is this behaviour
normal? Tag: Wait on File Access Lock Tag: 99539
S/PDIF Support on UAA
Hi,
Can anyone tell me if the standard UAA drivers available on Vista or
downloadable for Windows XP support S/PDIF output?
TIA
Fraser Tag: Wait on File Access Lock Tag: 99535
How to listen the Process for the resource usage?
Hi,
I am planning to write an kernel module for listening for the
create/modify/deleteion of resource like file/registry entry/etc by an
particular process. so can i use the KMDF dummy driver for this. Please
advise me if there is an another best method than using a dummy driver
Thanks
Kanagaraj M Tag: Wait on File Access Lock Tag: 99533
I can find no discussion in the Internet regarding whether this is possible.
I consider the spinlock on exception as a very ugly solution.