wlan ndis; how to know if everything works fine
Hi,
If I have set the OID for wep and ssid and such. Is there a way to know if
for example the wep password is wrong? so that I can prompt the user for a
new password. The only thing I see (from a user perspective) is that I
havn't recieved any packets. But that just tells me that "something" is
wrong.
thanks
/Niklas Tag: spool file Tag: 31462
About linking date/time related function in a .sys file.
IF I use any time/date function for calling in a .sys
file, I always get an error :->
error LNK2001: unresolved external symbol __imp___strdate
error LNK2001: unresolved external symbol __imp___tzset
It is very essential enough to me to call those functions.
, so, Please help me regarding this. and also, Please
help me regarding creating a VC++ project for making
a .sys file ??? Tag: spool file Tag: 31460
WPA
Hi all,
I updated the ntddndis.h to get the WPA related OIDs
But how can we use them since there are no entries in the
CIM repository.
Any patches to receive proper OIDs from the OS ?
Thanks Tag: spool file Tag: 31456
PCI device behaves differently in checked and free build
I have a PCI device here which behaves differently in free and checked
builds (using the same checked build driver, Win2000 DDK) of Windows
2000.
In the free build, my ISR (which is called periodically, each time a
hardware FIFO on the card is half empty) stops being called after a
while (time varies, at least a couple of thousand interrupts,
though), and after that I only read 0xffff from every register on the
card, as if it was not there at all.
In the checked build, however, the card continues to run smoothly!
The card's registers are mapped with MmMapIoSpace(). Does anybody know
what could cause this? PCI handling? Memory management?
Thorsten, really at his wit's end Tag: spool file Tag: 31454
Getting rid of the New Hardware Found Wizard...
I have been working on updating a printer driver from NT to XP - now almost
there.
I am getting the XP New Hardware Wizard popping up to say it has found new
hardware (the printer).
How can I switch this off? - as my drivers are already installed ok
I have found the printer is entered in the registry under
HKLM\Sysrem\CurrentControlSet\Enum\LPTENUM
Regards
Colin McKean Tag: spool file Tag: 31435
NDIS Mux IM Driver : HCT 11.2 Sub tests require or not ?
Hello Sir,
I am developing a NDIS Mux IM Driver for Windwos
2000/Xp and Windows Server 2003 on the base of
Mux Sample code from Microsoft DDK 2003. I want to
complete Microsoft WHQL 11.2 Test suite for my IM
Driver. I am not sure about below tests which are required
or not for my IM Driver to test and also
for WHQL Test certification.
NDIS Intermediate Driver Tests:-
1. DCDP 14 Day stress Test (Network)
2. Large Memory/PAE Phase-1 & Large Memory/PAE Phase-2
3. VPN Compliance Test
Can you help me for above test which are required or
not for my IM Driver Testing ? If possible,
give me more detail description about these tests.
Thankyou.
Amit Dhaduk Tag: spool file Tag: 31431
driver reinitialization
Hi,
I have a three layer virtual disk driver.All these drivers starts and gets
initialized during boot time. Is it possible to reinitilize these drivers
without rebooting?These are not pure WDM drivers?
Any Suggestions are warmly welcomed.
Regards
Deeps Tag: spool file Tag: 31430
Mapping of open TCPIP connections to owning processes?
How can I do this on other system besides XP ?
I found a framework that says you can do this on NT, Win2000 and WinXP but
it costs a fortune.
Should this be så hard to do?
Thanx
Zuka
--
p.s. Back from the kolotechina to kolotechina Tag: spool file Tag: 31427
1450 Insufficient system resources ... when calling WriteFile w/large chunk.
The code pasted below generates the following error
1450 Insufficient system resources exist to complete the requested
service. ERROR_NO_SYSTEM_RESOURCES
when it writes an approximately 64MB block of data to a file share. The
source and destination systems in the test were Windows 2000. The source
system running the program below is running SP3, and the destination system
with file share is SP4. I don't think the SP's matter as I tried other tests
with others sytems.
My **guess** is that the source system's Workstation and/or file sharing
drivers cannot handle the 64MB request from sent from the WriteFile API.
This is a guess so any hints are welcome. A workaround is to send smaller
chunks, and that's fine, but I thought it was worth seeing if anyone had
thoughts on this. Since error 1450 is used in so many scenarios, it seems
that the answer lies in Microsoft's source code or with someone who's
familiar with this problem and/or internals causing this.
Thanks,
Thomas
----
#include "stdafx.h"
#include <windows.h>
#include <io.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char* argv[])
{
// fails on 67076033 but succeeds on 67076032 on write from Win2K to Win2K
//unsigned long ulSizeToTest = 64*1024*1024; // fails.
unsigned long ulSizeToTest = 67076033; // fails.
//unsigned long ulSizeToTest = 67076032; // succeeds.
printf("Testing %lu bytes\n", ulSizeToTest);
int fdWrite = _wopen(L"\\\\somemachine\\myshare\\big.dat", O_WRONLY |
O_CREAT | O_APPEND | O_BINARY | O_NOINHERIT, 0666);
/*
The open style doesn't matter. This fails too. FYI.
HANDLE h = CreateFile(
"\\\\talaptop\\myshare\\big.dat",
GENERIC_WRITE,
0,
NULL,
CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL,
NULL);
*/
if (fdWrite != -1) {
HANDLE h = (HANDLE) _get_osfhandle(fdWrite);
char *pLarge = new char[ulSizeToTest];
if (pLarge) {
memset(pLarge, 32, ulSizeToTest);
DWORD dwWritten = 0;
if (WriteFile(h, pLarge, ulSizeToTest, &dwWritten, NULL)) {
printf("Write succeeded %ld bytes.\n", dwWritten);
}
else {
printf("Write failed: %d.\n", GetLastError());
}
}
else
printf("Can't create large bug. %d\n", GetLastError());
_close(fdWrite);
}
else {
printf("Fail open for write. %d\n", GetLastError());
}
return 0;
} Tag: spool file Tag: 31424
A driver with a few different devices (One PCI CARD)
Hi all,
I have a PCI card, which has a few differenrt sub units (Comunication
ports, D2A, A2D, etc.). From the PCI BUS point of view, it is one
device with one function.
I want to create different device for each sub unit (4 typeA, 2 TypeB,
1 D2A, etc.).
I already have an NT 4.0 device driver, which woks fine. Each sub unit
has it's own device. In Driver entry we create multiple devices.
The questions are : What is the best way to approach this under WDM ?
If I create multiple devices in AddDevice, will it cause any trouble ?
Does win-2000 expexts ONLY one device to be created in AddDevice
routine ?
For example : will win-2000 send power management to each of these
devices or only to one of them ?
Someone told me that I should write a BUS driver (toaster example). Is
that true ? Any code examples ?
Thanks
Maurice Tag: spool file Tag: 31422
Kernel mode debugging - a very basic question
I have windows xp and the latest DDK Tools, i'm working on
a Filter-hook firewall and i've reached a point where
debugging is a must.
first, to debug kernel-mode drivers, do i have to do it
using 2 pc's(remote debugging)
if yes, then what hardware do i need to debug my driver, i
have a lan between 2 pc's, is it enough
second, is there someway to get results(simple test
messages) from my driver without using remote debugging.
i tried debugging the user-mode client program, but
DbgPrint() calls in the driver didn't work! i think it
needs a kernel-mode debugger. Tag: spool file Tag: 31411
Win2003 DDK (3790) bug: No LCD backlight IOCTLs for wnet build environment?
The Windows Server 2003 build environment does not properly define
IOCTL_QUERY_SUPPORTED_BRIGHTNESS and other IOCTLs/structures associated with
the LCD backlight power interface.
(According to the DDK documentation, these should be in
\WINDDK\3790\inc\ddk\wnet\ntddvdeo.h).
These structures and IOCTLs *are* properly defined for the Windows XP build
environment, in \WINDDK\3790\inc\ddk\wxp\ntddvdeo.h.
From the DDK documentation for IOCTL_VIDEO_QUERY_SUPPORTED_BRIGHTNESS:
The header file used to build applications that include this functionality,
Ntddvdeo.h, is included in the Microsoft Windows Driver Development Kit
(DDK). For information on obtaining the DDK, see www.microsoft.com/ddk/.
Requirements
Client: Included in Windows XP SP1.
Server: Included in Windows Server 2003.
Header: Declared in Ntddvdeo.h.
Either the documentation is incorrect in stating that these features are
available under Windows Server 2003, or ntddvdeo.h is incorrectly omitting
them for the wnet build environment. Tag: spool file Tag: 31406
Win2K device driver wizard doesn't find the device names in my INF file
I have an installable network device driver that is working fine, but
there must be a problem with the INF file. If I choose a specific
driver for Windows 2000 to install, and click Have Disk, I get no
devices listed.
If I let windows do it, there's no problem. If the driver is already
installed, the device choices show up in the list. (not very useful at
that point!) The INF looks correct and complete.
How can I tell why Win2K is rejecting this as matching hardware, only
in this one scenario? How do I start to debug? Tag: spool file Tag: 31405
IOCtl Problem.
Hello,
I am writing a driver to create a virtual disk partition using some RAM.
Driver is installed properly and a symblic link at \DosDevice\F: is created.
But when I start using this partition I get an error message,
"F:\ is not accessible
Incorrect function."
After debugging through the code I found that my DispatchIOCtl() is getting
following IOCtl's calls repetedly,
IOCtl command = 0x00074804 IOCTL_STORAGE_MEDIA_REMOVAL
IOCtl command = 0x00070024 IOCTL_DISK_IS_WRITABLE
IOCtl command = 0x00070000 IOCTL_DISK_GET_DRIVE_GEOMETRY
IOCtl command = 0x0007405C Unknown IOCTL
IOCtl command = 0x00074804 IOCTL_STORAGE_MEDIA_REMOVAL
I tried to find out the command using CTL_CODE of ntdddisk.h, but getting
Function value 0x0017 which does not exist.
I am not able to figure out what's the flaw here?
Could you please let me know what is going wrong here.
Thanks in Advance,
~rushikesh.
--
----------------------------------------
Rushikesh Patil.
Persistent Systems Pvt. Ltd.
cell: +(91)98226-39056
http://www.rushikeshpatil.8m.com
---------------------------------------- Tag: spool file Tag: 31403
In my IM driver, can I find which process has sent a network packet ?
I'm after mapping TCPIP connections to owning processes.
Is there a way ?
Also I know about a way to do this in user space, through iphlpapi.dll, but
this only works with XP. Is there any way this can be done under other Win
systems?
TIA
--
p.s. Back from the kolotechina to kolotechina Tag: spool file Tag: 31402
About Device Driver's Disk Read/Write tracking
Sir,
I am a .sys Developer. Now, I want to know from you
that, when-ever there will be either read/write on any
disk, I want that a message should get stored in sd.log
file , but I have done every possible steps regards to
this, but neither log file gets created nor does
anything ?? No other function gets executed, when I do
IRP_MJ_READ/IRP_MJ_WRITE ? How I can read/write a disk
through this ? Tag: spool file Tag: 31395
multi function PCI driver
Can you explain what will the correct way(must pass WHQL)
for writing a driver that enables multiple services
(networking + block device + DUMB NIC interface) from a
single node PCI device ? Should I use a bus driver and
build the rest on top of that ? or is there any other
solution ? Tag: spool file Tag: 31393
Virtual serial port
I'm trying to write a basic virtual serial port driver.
basicly, the code of the AddDevice routine is:
IoCreateDevice(DriverObject, sizeof(DEVICE_EXTENSION), &uNtDeviceName,
FILE_DEVICE_SERIAL_PORT, FILE_DEVICE_SECURE_OPEN, TRUE, &pDeviceObject)
IoOpenDeviceRegistryKey(pDO,PLUGPLAY_REGKEY_DEVICE,STANDARD_RIGHTS_READ,&key
Handle);
ZwQueryValueKey(keyHandle, L"PortName", KeyValuePartialInformation,pInfo,
length, &length);
but, ZwQueryValueKey always returns STATUS_OBJECT_NAME_NOT_FOUND.
Anyone has any idea what is wrong or how to make it work ? Tag: spool file Tag: 31391
CPU Driver
I'm shopping for a new PC. I've noticed that the multiple-CPU machines have
a CPU device class and at least one CPU driver.
What are the responsibilities of a CPU driver?
Are there any examples of such a driver using the DDK for educational
purposes? Tag: spool file Tag: 31390
Will start to recommend ALL small corps do not go for W2k3 unless driver support is improved
MS.. if you stop supporting drivers for equipment you have by default
supported in the past then heck I won't continue to suport you. Take for
example a simple test - Pioneer DVD/CRRW DCR-111 is not suported in 2003 but
okay in Windows 2000... something MS have changed. Here in Japan the
suppliers need to provide change control recommendations - do to simply say
our s/w works with Windows 2003 or whatever is incorrect if Windows 2003 is
not... backward compatible with 2000. Thank you Microsoft... another case
when you can say .. not our problem...
bye to couple of 1000 users.
S. Tag: spool file Tag: 31383
Unknown device control codes
Whilst monitoring my device driver I noticed it being sent device code that
I do not recognise. The codes are 0x700080 and0x7000A0. These appear to be
disk functions but the function codes 0x14 and 0x28 do not appear in the
header files supplied with the DDK.
Does anyone know what these codes are?
Does anyone know of a more complete list of function codes? Tag: spool file Tag: 31382
Re-posting: AcquireWriteLock returns ERROR_INVALID_FUNCTION
I see. But in this case when AcquireWriteLock() is very
much a member function INetCfgLock, why the function call
returning ERROR_INVALID_FUNCTION? Any specific reason for
that?
rgds,
Kiran
>-----Original Message-----
>Wrong again, from the docs:
>
>"[..] returns one of the following codes:
>
>S_FALSE [..]"
>
>Actually, I have seen INetCfg functions returning all
kinds of codes,
>not only the ones mentioned in the docs.
>
>Stephan
>---
>On Wed, 27 Aug 2003 04:18:53 -0700, "Kiran"
<kiran_rooge@hotmail.com>
>wrote:
>
>>Well, that was wrong, but what MSDN says is, it will
>>return NETCFG* codes, but what I am getting in return is
>>totally different value. So any specific reason for this?
>>
>>Kiran
>.
>
. Tag: spool file Tag: 31381
Printer UniDrv, DMS, StretchBltROP & other stories
Thanks to help from Ashwin I am able to do more with my printer driver
(getting more from GDI.) My question now concerns device managed surfaces
and UniDrv. I have implemented DriverDMS to set flags for all DDI hooking
methods (I have implemented all of them.) During debugging I see that the
device surface handle on the destination surface object is non-NULL. Up
until now, I have not needed to actually use that surface. However, I now
need to be able to handle what I would characterize as "cached" raster
operations before final output. Consider the following:
Using Visio, I create a non-rectangular room (an L-shape) with a colored
horizontal fill (pink lines on dark blue.) In 24bpp color mode, the first
call made to the driver is a StretchBltROP; the rop4 is SRCINVERT
(0x6666). Both source and destination surfaces are 24bpp. The source
surface bitmap info is available and valid. The destination surface
contains no bitmap (scan) buffer. Following this operation, a SRCAND
(0x8888) and another SRCINVERT come through. Typical masking. Anyhow, as
I mentioned (or didn't) above, my DriverDMS method does nothing but set
hook flags; so I wasn't surprised to see no destination buffer as I never
created one. My goal is to accumulate those operations by having the
engine to the heavy lifting and finally hand me a StretchBlt that I can
write out.
The code path these operations follow is:
GDI -> StretchBltROP -> I punt to EngStretchBltROP to handle the ROP4
-> GDI -> BitBlit -> I punt to EngBitBlit to handle the ROP4
-> GDI -> CopyBits
Now I need to move the source bitmap into the destination rect. Having no
bitmap, I create one with EngCreateDeviceBitmap using the destination
surface handle, destination rect size and 24bpp. The call succeeds
however if I punt to EngCopyBits the call fails.
So this leads me to the following: That I will always have to allocate
bitmaps and store them in my private oem data struct and
perform all blitting operations to them myself never calling a
EngXXX method for help.
This is logic correct or am I horribly off base here?
If I am missing something, please help me understand the interaction and
process of using DMS with UniDrv.
A few other questions:
1. Is it ever possible to create a bitmap and associate it with the
destination surface?
2. If so, how does this occur? When must it occur?
Thanks in advance for any insight.
hs Tag: spool file Tag: 31370
TDI Client drivers
Hi all,
Does the TDI Client driver is compatible with 9x platforms? My question is
if i write a TDI driver to create a socket or to connect to other sockets
will it work under 98 and me?
Any information is appreciated.
Thanks,
-Venkatesh Tag: spool file Tag: 31364
Simple, stupid question about debugging mirror driver
I am writing a mirror driver, and am having trouble setting
breakpoints in mirror.dll. I get debug messages from the driver, and
when I made a mistake and caused an access violation, it showed me my
source and locals and I could see the problem, but when I
control-break into windbg, I can't see my module. What do I have to do
to set the context to my mirror driver ?
TIA
J. Wesley Cleveland Tag: spool file Tag: 31353
NDISUIO and writing raw packets
I need some advice. I need to be able to write 802.11 packets from the
application layer to the network under Windows CE 4.2. I know that
NDISUIO can be used to do this to some extent. To what extent is this
possible? Can I write a packet that includes the 802.11 header and
have it written to the network unmodified? It's important to have as
much control as possible over fields in the 802.11 header.
If NDISUIO writes don't give this flexibilty, what is the best way to
do this?
Thanks,
Jon Tag: spool file Tag: 31352
Windows 98 usb
Hi All,
I would like to know if the windows 98 mass storage sample
driver ( UMSS) supplied by microsoft works directly for
scsi based device. Is it enough if the vendor id and
product id in the umss.inf file is changed or any other
changes needed.
Thanks Tag: spool file Tag: 31346
How to indicate change in link speed?
Hi, All!
I've tried to simulate the change in LinkSpeed value by using NDIS
IM driver and unf. failed. In my IM driver I postprocess
OID_GEN_LINK_SPEED and change the value of InformationBuffer returned by
lower card to 20000 (to simulate the speed 2Mbps). The system tray icon
for card status periodically polls my driver with OID_GEN_LINK_SPEED,
but indicates 11Mbps, as it does as if there were no IM driver.
Is it a bug in the system tray applet for net status or what? May be it
is asking the lower card directly? How to correctly indicate specific
link speed or media connect status change from IM driver?
Thanks. Tag: spool file Tag: 31338
NDIS Mux IM Driver : 1c_Reset Test fail
Hello,
I am developing a NDIS Mux Intermediate Driver
fdor winXp and win 2003 server. I implement this driver on
the base of Mux sample code from 2003 DDk. I want to Pass
1c_Reset test from Microsoft WHQL Test and for that want
to implement new MpRest Routine in my driver. I had
implement this one and sending some log of execution of my
driver during reset test. But after Over MpRest routine
the test wait for get status and it will fail. I did not
implement any thing in send/receive routine. I call
NdisReset in MpReset routine and AddressingReset=TRUE
value. In ptResetcomplete if NDIS_STATUS_PENDING than call
NdisMResetComplete. Not do anything in PtStatus for handle
this NDIS_STATUS_RESET event. After some test it will rest
result fail.
So can you tell me what I have to do for pass my
1c_reset test ?
Can you tell me what exactly happen in this test
for my greater understanding.
Log of my 1c_Reset Test : Fail
NdisTestProtocolStatus: Status = NdisTest:
NDIS_STATUS_RESET_START [0x40010004]
NdisTest: NdisTestProtocolStatus: Status = NdisTest:
NDIS_STATUS_RESET_START [0x40010004]
MUX-IM: =====================> MpReset ....
MUX-IM: -------> PtStatus: Adapt FF92D7E0, VElan
FF92D2F0, KIRQL 2
MUX-IM: <=====================Ptstatus reset start ....
MUX-IM: -------> PtStatus: Adapt FF92D7E0, VElan
FF92D2F0, KIRQL 2
MUX-IM: <=====================Ptstatus reset end ....
MUX-IM: <=====================Ptstatus reset end
indicate ....
MUX-IM: =========> PtResetComplete
MUX-IM: ============ PtResetComplete : status not pending
MUX-IM: <=============== PtResetComplete
MUX-IM: ================ MpReset: Status Pending ....
MUX-IM: <===================== MpReset ....
MUX-IM: => MPSetPacketFilter VELAN FF92D2F0, Filter
B,ADAPTER FF92D7E0
MUX-IM: SetPacketFilter VELAN FF92D2F0, ADAPTERfILTER B
MUX-IM:
MPSetPacketFilter::PacketFilter==MUX_ADAPTER_PACKET_FILTER
MUX-IM: <= MPSetPacketFilter VELAN FF92D2F0, adpt Filter
2B Velan Filter B
MUX-IM: MPSetInformation: PacketFilter=B
NdisTest: NdtDispatch: request PENDING in handler.
MUX-IM: PtCompleteForwardedReq: pVElan FF92D2F0, OID
fd010103, Status c0000001
MUX-IM: PtCompleteForwardedReq: pVElan FF92D2F0, OID
fd010103, Status c0000001
MUX-IM: PtCompleteForwardedReq: pVElan FF92D2F0, OID
fd010103, Status c0000001
NdisTest: NdisTestProtocolStatus: Status = NdisTest:
NDIS_STATUS_RESET_END [0x40010005]
NdisTest: NdisTestProtocolStatus: Status = NdisTest:
NDIS_STATUS_RESET_END [0x40010005]
NdisTest:
NdtDispatch: IRP_MJ_DEVICE_CONTROL.
NdisTest: Command = ulRESET.
OpenHandle = FF720D98
NdisTest: NdisTestProtocolStatus: Status = NdisTest:
NDIS_STATUS_RESET_START [0x40010004]
NdisTest: NdisTestProtocolStatus: Status = NdisTest:
NDIS_STATUS_RESET_START [0x40010004]
MUX-IM: =====================> MpReset ....
MUX-IM: -------> PtStatus: Adapt FF92D7E0, VElan
FF92D2F0, KIRQL 2
MUX-IM: <=====================Ptstatus reset start ....
MUX-IM: -------> PtStatus: Adapt FF92D7E0, VElan
FF92D2F0, KIRQL 2
MUX-IM: <=====================Ptstatus reset end ....
MUX-IM: <=====================Ptstatus reset end
indicate ....
MUX-IM: =========> PtResetComplete
MUX-IM: ============ PtResetComplete : status not pending
MUX-IM: <=============== PtResetComplete
MUX-IM: ================ MpReset: Status Pending ....
MUX-IM: <===================== MpReset ....
MUX-IM: => MPSetPacketFilter VELAN FF92D2F0, Filter
B,ADAPTER FF92D7E0
MUX-IM: SetPacketFilter VELAN FF92D2F0, ADAPTERfILTER B
MUX-IM:
MPSetPacketFilter::PacketFilter==MUX_ADAPTER_PACKET_FILTER
MUX-IM: <= MPSetPacketFilter VELAN FF92D2F0, adpt Filter
2B Velan Filter B
MUX-IM: MPSetInformation: PacketFilter=B
NdisTest: NdtDispatch: request PENDING in handler.
MUX-IM: PtCompleteForwardedReq: pVElan FF92D2F0, OID
fd010103, Status c0000001
MUX-IM: PtCompleteForwardedReq: pVElan FF92D2F0, OID
fd010103, Status c0000001
MUX-IM: PtCompleteForwardedReq: pVElan FF92D2F0, OID
fd010103, Status c0000001
NdisTest: NdisTestProtocolStatus: Status = NdisTest:
NDIS_STATUS_RESET_END [0x40010005]
NdisTest: NdisTestProtocolStatus: Status = NdisTest:
NDIS_STATUS_RESET_END [0x40010005]
NdisTest:
NdtDispatch: IRP_MJ_DEVICE_CONTROL.
NdisTest: Command = ulRESET.
OpenHandle = FF720D98
NdisTest: NdisTestProtocolStatus: Status = NdisTest:
NDIS_STATUS_RESET_START [0x40010004]
NdisTest: NdisTestProtocolStatus: Status = NdisTest:
NDIS_STATUS_RESET_START [0x40010004]
MUX-IM: =====================> MpReset ....
MUX-IM: -------> PtStatus: Adapt FF92D7E0, VElan
FF92D2F0, KIRQL 2
MUX-IM: <=====================Ptstatus reset start ....
MUX-IM: -------> PtStatus: Adapt FF92D7E0, VElan
FF92D2F0, KIRQL 2
MUX-IM: <=====================Ptstatus reset end ....
MUX-IM: <=====================Ptstatus reset end
indicate ....
MUX-IM: =========> PtResetComplete
MUX-IM: ============ PtResetComplete : status not pending
MUX-IM: <=============== PtResetComplete
MUX-IM: ================ MpReset: Status Pending ....
MUX-IM: <===================== MpReset ....
MUX-IM: => MPSetPacketFilter VELAN FF92D2F0, Filter
B,ADAPTER FF92D7E0
MUX-IM: SetPacketFilter VELAN FF92D2F0, ADAPTERfILTER B
MUX-IM:
MPSetPacketFilter::PacketFilter==MUX_ADAPTER_PACKET_FILTER
MUX-IM: <= MPSetPacketFilter VELAN FF92D2F0, adpt Filter
2B Velan Filter B
MUX-IM: MPSetInformation: PacketFilter=B
NdisTest: NdtDispatch: request PENDING in handler.
MUX-IM: PtCompleteForwardedReq: pVElan FF92D2F0, OID
fd010103, Status c0000001
MUX-IM: PtCompleteForwardedReq: pVElan FF92D2F0, OID
fd010103, Status c0000001
MUX-IM: PtCompleteForwardedReq: pVElan FF92D2F0, OID
fd010103, Status c0000001
[429207]NdtCore: NDTCore: lNdtLibDeviceIO() :
NDT_STATUS_TIMEDOUT, NOT freeing OVERLAPPED
LOG: FAILED: [0] Reset failed: NdisStatus = 1073872893
[429247]NdtCore: NDTCore: DoReset() : NDT_STATUS_TIMEDOUT,
NOT freeing RECEIVE_BUFFER
LOG: FAILED: [20958] Unable to query media connect status
NdisTest:
NdtDispatch: IRP_MJ_DEVICE_CONTROL.
NdisTest: Command = ulRESET.
OpenHandle = FF720D98
NdisTest: NdtReset: reset handle not null on entry!
pNdtReqHandle = 811D6C48
NdisTest: NdtDispatch: request COMPLETED by handler.
LOG: FAILED: [0] Reset failed: NdisStatus = -1073741823
LOG: FAILED: [20958] Unable to query media connect status
thankyou Tag: spool file Tag: 31335
Filter driver problem
I am just starting writing a XP upper filter driver. I have started with a
skeleton driver that passes the irq onto the function driver without
modification. This appears to work OK i.e. debugprint shows expected
results. However the volume associated with the disk disappears from My
Computer when ever my driver is hooked in.
What could possibly be causing this? Tag: spool file Tag: 31333
Print Processor Problems
Dear Ashwin,
Thank You very much for your support,
your suggestion has been the correct way.
The problem about "EnumPrintProcessorDataTypes" function
described yesterday, was a side effect generated by "ODS"
macro.
For trace, I had scattered some of them along the function.
Removed these insertions of ODS, fixed the problem.
OK, i make the most of your patience for ask You another
think.
In "Printers and Faxes", -> "Properties" -> "Advanced",
when i install my .GPD, .DLL plus my Print Process, the
fields "Print spooled documents first" and "Enable
advanced printing features" are enabled by default under
Win XP.
Where and How can i set these fields disabled by default?
I forgot something in GPD file or in PrintProcess?
Still Thanks,
Regards,
Giandomenico. Tag: spool file Tag: 31331
Intermediate driver
Hi
Is there any way to install an NDIS intermediate driver
from command line on WIn 2k? what about Win me or 98? Tag: spool file Tag: 31328
Who can provide this driver source code, i know this is for free.
hi,
i am a beginner in Ndis and want to make the miniport
driver based on the Prism2.5. Recently, i read one article
(i forgot which on).that tell me the the source code of
prism2.5 for wince is for free. if that's true, who can
can provide this driver source code for me. it's emergency
for my graduation project. Tag: spool file Tag: 31325
IE6.0 vs. MirrorDriver
Hi,
i have problems in getting informations from IE6.0 by the
display mirrordriver.
the problem occures when html page is a dynamic page whith
some klient script generated text (by example the lettet
counter or system clock).
There is a changing text, finaly in IE i see tex, but from
mirrordriver i get a bitmap. I have trying mozilla browser
and everthing was ok.
Is that some performance feature? Can i disable it
somewhere?
thanks,
Josef Vesely Tag: spool file Tag: 31322
troubleshoot icon in the Device Manager tree
Hi there,
I wish to implement an error reporting code, to see my driver with a
troubleshoot icon in the Device Manager tree.
Note that my driver is not-pnp !
How could I do that ?
TIA,
Sabin Tag: spool file Tag: 31321
A strange uninstallation of the network card
Hello all,
I have written a PCI network ISDN card device driver
and inf file.The card is used for makeing a voice call as
well as browes the internet.
I have installed this card in windows 2000 platform and
try to make a call. call didn't go through. I tried two
three times again. But didn't work. I gave restart to the
system. after restarting system says "new hardware found "
for my device, though my device drivers are present in the
respective directories. even in registry all the entries
are present. when I set show hidden devices. my device is
displayed in the hidden devices. I uninstlled the device
and installed again. still the problem exists.
But if I try making call, and if it wont go through and if
I give hard reboot(push button) ,this "new hardware found"
problem doesn't exist.
"new hardware found" problem is existing only when I
select the option reboot from the system to reboot the
machine.
I dont know what is the problem. Can please anyone suggest
some solution?
Thanks in advance.
lakshmi Tag: spool file Tag: 31316
Reply: ORB_POINTER problem with Multiple Different LUN under Firewire
Hi Don,
Yes, it is a problem that is preventing us from shipping
our device later this year.
I'm convinced it should be "relative easy" to fix in
sbp2port.sys, since it seems that the next_ORB field
always contains a null pointer, so the lun is in
suspended state. (probably need to prevent both lun's are
active at the same time processing commands). I don't
think a filter is the best solution, if even possible?
I mean it's a bug and not a By Design type of issue,
since multiple different lun's is allowed by the SBP-2
protocol.
I would be happy to test new versions of sbp2port.sys or
help with the code. I'm using FireBug to see exactly what
going on, and have a lot of log files showing the problem.
Thanks,
Sune Jorgensen, MS EE
Firmware developer
Imacon AS
sjorgensen@imacon.dk
http://www.imacon.dk
>-----Original Message-----
>Hi Sune,
>
>Sorry for the response delay.
>
>I want to make sure I understand you correctly. Are you
passing the info
>on as a suggestion for us wrt modifying sbp2port.sys for
a future version
>of Windows? Or is this something that is preventing you
from
>shipping/developing your device right now?
>
>We are interested in working with you and do our best to
see if we can
>get you past this problem. As you mention, we don't
have (or have tested)
>devices like yours, ie, multiple luns's of different
classes.
>
>|Solution:
>|Host write to the ORB_POINTER register in the target,
>|whenever it changes focus from one LUN to another. Is
>|this possible (the agent has to be in reset or
suspended
>|state), or is there a workaround?
>
>For each of the functions of your device (camera and
hdd) there should be a
>seperate
>pdo created and io should be routed appropriately. Is
the issue that at
>the sbp2 level
>,ie, sbp2port.sys, you want it to something different
than it's doing now?
>Would a filter
>driver (provided by you) above/below sbp2port.sys give
you the control you
>need?
>
>Getting design changes to sbp2port.sys would only happen
in the context of
>a new
>Windows version release. If it was considered a bug
then a QFE/hotfix
>would be the
>context but cannot say this is a bug but a By Design
type of issue.
>Installing a filter
>driver and providing the necessary functionality is your
best chance of
>getting the
>desired behavior.
>
>Thanks,
>
>Don Miller
>MS DDK Support
>===============
> Tag: spool file Tag: 31314
OID_GEN_MEDIA_CONNECT_STATUS - - NdisMIndicateStatus
hi
we are using the MUX- IM driver for our development.
i want that the status of link should be 'cable disconnected' in boot
up.
i'm doing this by replying "NdisMediaStateDisconnected" to
OID_GEN_MEDIA_CONNECT_STATUS.
but when i reply with "NdisMediaStateConnected" to
OID_GEN_MEDIA_CONNECT_STATUS generated because of call to ipconfig,
the status doesnt change to connect
i also tried using NdisMIndicateStatus but didnt help.
NdisMIndicateStatus(Handle,NdisMediaStateDisconnected,NULL,0)
is this syntax correct????
is it possible to change media status connect /disconnect of virtual
miniport without actually connecting and disconnecting link.
has anybody tried it??
Thanks in Advance
jyotsna Tag: spool file Tag: 31310
what difference is the driver under win2000 and winxp?
I have finished a usb smartcard reader driver applying for
pcsc under win2000.But when I installed the driver under
winxp,I found the resource manager could not identify the
reader.
Note : the icon in control panel can be seen Tag: spool file Tag: 31309
OutputCharStr() and *PrinterType=SERIAL
Hello.
Im currently trying to develop a Barcode-printer for a SERIAL(impact)
printer using Unidrv. In my rendering plugin specifically in the
OutputCharStr() I'm trying to retrieve the RC_UFM ID of my device
fonts through the pUFObj->ulFontID parameter of OutputCharStr() but
all I get is a value of zero for every call to OutputCharStr(). Has
any one of you encountered such behavior? Can you give an alternative
way to catch/trap the RC_UFM ID for the device fonts in the Resource
DLLs.
I was told that Unidrv has a different code path when it comes to
device font handling when *PrinterType is PAGE or SERIAL. We have
already successfully made the rendering plugin for our PAGE(laser)
printers, and now I'm working on our SERIAL(impact) printer's
rendering plugin to support barcode printing. Any help or information
regarding OutputCharStr() would be really appreciated.
TIA
-andrew Tag: spool file Tag: 31305
Bus Filter Driver & Verifier Problem
We are writing a PCI bus filter. The purpose of the
filter is to extract proprietary information from some of
the PDOs the PCI bus driver reports.
We are seeing a strange behavior when running with driver
verifier enabled.
Without verifier our filter receives various
IRP_MN_QUERY_DEVICE_RELATIONS - Busrelations IRPs (at
last once for each PCI bridge in the system). The bus
driver reports all the devices, we determine if the
device if of interest to us and extract the information.
That all works fine and without problems.
With verifier enabled our filter DOES NOT get the
IRP_MN_QUERY_DEVICE_RELATIONS - Busrelations IRPs??? Our
whole scheme does not work anymore. The code that
determines if the device reported is of interest and that
extract the information is not executed, hence verifier
cannot do its "magic".
We have tried to create the Busrelation IRPs and send
them down in our
filter, but they come back with STATUS_NOT_SUPPORTED.
We don't like to ship a driver on a server system that
has not been tested with verifier!!
Has someone seen this?
Is verifier blocking the IRPs and why?
Any ideas would be helpful.
DDK and OS are W2k3 build 3790.
Thanks
Gernot Seidler
Vibren Technologies, Inc. Tag: spool file Tag: 31300
RtlGetVersion or PsGetVersion or ???
I have a single driver that is used for both Windows 2000
and Windows Server 2003. This driver need to determine
which version of the OS it is running on. The new call,
RtlGetVersion, seems to cause a bluescreen if I try to
use in in a driver running in Windows 2000. The old
call, PsGetVersion, seems to work on both versions of
Windows, but it listed as "obsolete" for Windows versions
XP and above, so I am concerned that it may stop working
on some future version or service pack. Is there a safe
and reliable method for a driver that can run on both
Windows 2000 and Windows Server 2003 to query the version
of the OS, and if so what is it? Tag: spool file Tag: 31281
Audio driver for PCI card
This is a multi-part message in MIME format.
--------------36FA0B9AAC017E21E337214F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
I am having difficulties running the audio driver on the PCI.
I have two cards on the bus Ethernet and Audio/Video.
Is that OK the all the devicec have interrupt pin set to 0x1.
The Interrupt Line reported during PCI bus enumeration says
that there is shared InterruptLine for Audio and Video which is ok
since they are on the same slot and different for Ethernet.
While trying to play wav file with wavplay.exe I am getting the message:
SwMixer: WaitForBuffer failed. Audio driver missed interrupt.
Can that be because the interrupt rised on Pin 0x1 was received by
Ethernet card.
Thanks in advance
Hubert
--------------36FA0B9AAC017E21E337214F
Content-Type: text/x-vcard; charset=us-ascii;
name="hubertr.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Hubert Rzezniczak
Content-Disposition: attachment;
filename="hubertr.vcf"
begin:vcard
n:Rzezniczak;Hubert
tel;fax:0048 71 33-48-101
tel;work:0048 71 33-48-186
x-mozilla-html:FALSE
org:Silicon & Software Systems Polska sp. z o.o.
version:2.1
email;internet:hubertr@s3group.com.pl
title:System Design Engineer
adr;quoted-printable:;;ul. Nyska 83/85=0D=0A=0D=0A;50-505 Wroclaw;;;Poland
fn:Hubert Rzezniczak
end:vcard
--------------36FA0B9AAC017E21E337214F-- Tag: spool file Tag: 31276
Network device driver Installation
Hi there
I have a network WDM device driver. I can install it by
using network control panel on Windows 98/ME and 2k. My
question is, is there any way to install it from command
line?
Thanks Tag: spool file Tag: 31275
SCSI PASS THROUGH with Link bit
Hi Everyone,
I am writing a program that sends commands to a SCSI
device using "IOCTL SCSI PASS THROUGH" commands, much the
same as the "spti.c" example in the DDK.
This is working fine, except that we are trying to chain
our commands together so that the sequence will not be
interrupted by any other process trying to send commands
to the same device. We are using the "Link" bit in the
Control Byte of the Command Descriptor Block, but it seems
to be ignored.
Can anyone shed any light on this matter?
Thanks and regards,
Garet Tag: spool file Tag: 31274
Print Processor Problems
Hi all,
I'm developing a Print Processor for our Pos printers,
started from Genprint sample, I have problems
with "EnumPrintProcessorDataTypes" function.
During the boot-time, when the my module(POSPrint) is
loaded, and EnumPrintProcessorDataTypes is suddenly called
one time, returns FALSE (ERROR_INSUFFICENT_BUFFER) always.
This strange behaviour doesn't permit to use my Print-
Processor during a printing-job. For example when I run
WinWord and than print a document.
But, if i go in "Printers and Faxes", select "Properties"
of my printer -> "Advanced" -> "Print Processor...",
EnumPrintProcessorDataTypes is called twice and the last
call set correctly the buffer dimension and return TRUE.
After this operation, i can print any document correctly
through my Print Processor.
Why during boot-time is not called twice ?
Who call EnumPrintProcessorDataTypes as soon as after load
module ?
How can i fix this ?
I'm working with XP DDK (ver 2600), and Windows XP
Professional, no S.P.
Please, someone can help me ?
Thanks in advance.
Giandomenico. Tag: spool file Tag: 31273
protect against bug 0x50 (PAGE_FAULT_IN_NON_PAGED_AREA)
Hi All,
What would be the proper way to protect against this bug check? I've got a
pointer that used to point into PCI space, but under certain conditions, the
memory can currently be unmapped before the thread using that pointer knows
about it. Clearly, I shall remove the cause of this problem as well, but it
seems like a good idea to perform some checking before the pointer is used.
I thought __try and __except might do it for me, but it doesn't seem to.
Thanks in advance for any help,
Matt Tag: spool file Tag: 31271