Receiving IOCTLs in a KMDF bus driver
My company is moving an existing device to a new bus. To preserve existing
device driver code, I am trying out the toaster's bus example.
While I have made the Dynamic Bus Enumerator load my device, its IoQueues
are not receiving the IOCTLs if sent from the child. When I replace the KMDF
bus driver with the WDM bus driver, I can easily capture the IOCTL IRPs.
Using IrpTrace from OSR, I can see that the IRPs from the child device
driver are being generated in both cases. Only in the KMDF case, the IRP
returns with INVALID_DEVICE_REQUEST. I assume that the WDF default code is
completing the IRP silently.
What needs to be done to modify the toaster bus sample to permit IOCTLs from
child devices to be processed?
Thank you,
Eric Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94219
Why amcap shows no data when preview, but still can captured video?
Dear Sir,
I have wrote a AVStream driver for a pc-camera. It has a problem. The
device is described with a capture pin. Amcap can preview and capture
videos. The problem is sometimes amcap preview is nothing, video is
black. I have look into my driver, and my driver transfers image
successfully to upper layer. The data is valid. I also try to capture
a file while the preview window is black. The captured video is fine!
So it looks driver is OK.
My question is why amcap shows nothing? I don't know where is the
problem. Is there any condition that driver feeds images to amcap, but
amcap will not show it on screen? Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94217
Mel Gibson Spanking!
[url]http://Mel-Gibson-spanking.info/WindowsMediaPlayer.php?movie=148803[/url]
--
Studdly
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------ Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94215
Q about sending 10k of data to USB device.
Hi, I am writing a KMDF driver to send about 10K data to a USB device.
However, the device only has a interrupt pipe, not bulk write pipe. does
anyone know what is the right approach in sending the data over? I can use api
WdfUsbTargetDeviceSendUrbSynchronously()
to send an URB that contains a vendor command after I fill up the urb using
its UrbControlVendorClassRequest substructure. But I do not think I can use
the same approach in sending data data longer than 8 bytes. I read somewhere
that in cases like this, we need to break up the data stream into smaller
segments and send them over sequnentially. But I did not find any sample KMDF
code in WDF kit for cases like this. The sample available show how to do
read/write for device with ISOChronous or bulkwrite pipe present on the
device.
I would appreciate it if someone can share their thoughts on how to do this.
AT Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94213
packet format of Dot11ExtSendPacket
As document of WDK(RTM 6000) described, "the IHV Extensions DLL calls the
Dot11ExtSendPacket function to transmit a packet through the wireless LAN
(WLAN) adapter.", and "The IHV Extensions DLL must format the packet data as
a complete IEEE 802.11 packet, with an 802.11 MAC header formatted according
to the guidelines discussed in 802.11 MAC Header Management.", infact IHV
Dll must format packet data as "Dest Ether MAC+Ether Type+Paylaod",
otherwise the packet will have wrong format thus the packet can not be sent
out.
Maybe is the document wrong?
Sorry for my poor English.
--
best regards
Arthur Tu Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94211
careers opportunity as device driver coder...
in ur opinion, what r the best industries for developing device
drivers in Europe? Do u have any advice for a guy who want develop
device drivers and he lives in Italy, or in Europe? Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94202
careers opportunity as device driver coder...
in ur opinion, what r the best industries for developing device
drivers in Europe? Do u have any advice for a guy who want develop
device drivers and he lives in Italy, or in Europe? Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94201
Capi 2.0 - driver for Vista
Is there already a driver for Visa wich is working on a PCI ISDN Card with
Capi ????
Ruud Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94199
NDIS IM driver signing
Hi
When I'm trying to install my NDIS IM driver in WinXp, I get the
"Windows logo program message box" with the "continue" and stop
installation buttons.
I know that for commercial use, drivers need some kind of license, and
I've heard of WHQL and Verisign.
Can someone please tell me which one of the licenses does NDIS IM
need? Is Verisign should be enough?
Thanks. Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94193
How to modify the soundcard buffer?
Hi all,
I'm writing a Filter Driver which is attached into sysaudio device. I'm able
to catch the IRP_MJ_WRITE and IRP_MJ_READ.
Now how to modify the DMA buffer of the sound and then pass it to the lower
device?
My code snippet
NTSTATUS AudioFilter_Write(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
NTSTATUS NtStatus = STATUS_BUFFER_TOO_SMALL;
PAUDIO_FILTER_EXTENSION pAudioFilterDeviceContext =
(PAUDIO_FILTER_EXTENSION)DeviceObject->DeviceExtension;
PIO_STACK_LOCATION pIoStackIrp = NULL;
PCHAR pReadDataBuffer;
DbgPrint("AudioFilter_Write Called \r\n");
pIoStackIrp = IoGetCurrentIrpStackLocation(Irp);
pReadDataBuffer = MmGetSystemAddressForMdl(Irp->MdlAddress,
NormalPagePriority);
AudioFilter_ClearBuffer(pReadDataBuffer,
(UINT)MmGetMdlByteCount(Irp->MdlAddress));
IoSkipCurrentIrpStackLocation(Irp);
NtStatus = IoCallDriver(pAudioFilterDeviceContext->pNextDeviceInChain,
Irp);
DbgPrint("AudioFilter_Write Exit 0x%0x \r\n", NtStatus);
return NtStatus;
}
NTSTATUS AudioFilter_ClearBuffer(PUCHAR pString, UINT uiSize)
{
NTSTATUS NtStatus = STATUS_SUCCESS;
UINT uiIndex = 0;
PCHAR data = NULL;
PAGED_CODE();
DbgPrint("AudioFilter_ClearBuffer...\n");
while (uiIndex < (uiSize - 1))
{
if (pString[uiIndex] != 0)
pString[uiIndex] >>= 1;
DbgPrint("%d ", pString[uiIndex]);
uiIndex++;
}
DbgPrint("\n");
return NtStatus;
}
Thanks,
Hieu Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94186
selectively bind a NDIS IM
hi.
i am currently developing a NDIS IM and i want to bind it to only one
specific underlying adapter.
the adapter is chosen at the user-level control program (it's okay if
this operation requires administrative rights).
problem is, at the very moment i install the IM, NDIS binds it to all
adapters. i'm currently installing it through INF files.
some people told me to try the CreateService() API function, but it
doesn't seem to work (apparently it gets created alright, but when i
try to start it, StartService() returns 0 (false = failure), and the
subsequent GetLastError() gives 0 (no error)).
the CreateService() solution seems to be a better one, because i can
first start the driver, then tell it which interface to bind to (via
IOCtl, for example), and it will register with NDIS only at this
moment, refusing all the bindings except the desired one.
from out the following two questions, EITHER one might be helpful.
Q1:
can i not register with NDIS in the driver's DriverEntry() function,
and follow the INF installation?
Q2:
how should i correctly register the IM driver with CreateService()?
thanks in advance.
--
vv Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94181
Safely removing USB stick - problem
Running Vista 64 bit Ultimate release. Can't get Vista to properly stop the
USB pin drive.
When selecting to "Safely Remove Hardware", the correct dialogue windows
pops up, I select Stop, confirmation window displays to stop the device, I
select OK and the dialogue tells me it' safe to remove the USB pin drive.
However the USB pin drive LED is still lit suggesting the device is truely
not safe to remove.
Anyone else seeing this?
I guess the only work around is to shut the system down and remove the pin
drive.
Hopefully this gets fixed in Service Pack 1.
--
RaXeT Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94175
Unable to start SCSISCAN.SYS on Vista
On Windows XP we install our SCSI scanner with a "stub" INF file that does
not load any drivers. The only thing it does it get the scanner into the
device manager under Imaging Devices. Then we find it and use SCSI pass
through. No STI or WIA.
That does not work on Vista. We tried loading SCSISCAN.SYS in our INF file.
SCSISCAN.SYS loads but cannot start. Vista successfully sends 12 SCSI
inquiry commands to the scanner at startup and when we Scan for Hardware
Changes. We never get the New Hardware Found dialog.
Should we get a New Hardware Found dialog because Windows gets SCSI Inquiry
data from our scanner, even with no INF file installed?
Why do we have to load SCSISCAN.SYS in our INF file in Vista but not in XP?
Any ideas why SCSISCAN.SYS loads but does not start?
Could this be a security/permissions problem?
Do we have to write a STI or WIA driver to use SCSI pass through on Vista?
Here is our INF file:
[Version]
Signature = "$CHICAGO$"
Class = Image
ClassGuid = {6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider = %Xerox%
[Manufacturer]
%Xerox%=Xerox, NTx86
[Xerox.NTx86]
%DI665S% = Xerox.SCSISection, SCSI\ScannerXerox___DocuImage_665S__
[SourceDisksFiles]
scsiscan.sys=3426
[DestinationDirs]
DefaultDestDir=10,system32\drivers
Xerox.SCSI.CopySys32Files=10,system32\drivers
[Strings]
Xerox="Xerox"
DI665S="Xerox DocuImage 665S Scanner"
scsiscan.SvcDesc= "SCSI Scanner Driver"
[Xerox.SCSISection]
CopyFiles=Xerox.SCSI.CopySys32File
AddService=scsiscan, 0x00000002, Xerox.ScsiScan.AddService
[Xerox.SCSISection.Services]
AddService=scsiscan, 0x00000002, Xerox.ScsiScan.AddService
[Xerox.SCSI.CopySys32Files]
scsiscan.sys
[Xerox.ScsiScan.AddService]
DisplayName = %scsiscan.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\scsiscan.sys
LoadOrderGroup = Base Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94170
Debugging USB device
Hello,
I'm an embbedded software developer, trying to implement an USB HID
keyboard.
I've found many HID samples for various microcontrollers, and I'm OK with
the basis : I can have my device enumerate properly, claimed by hidclass.sys
driver, and available to user-land application.
This is almost perfect, but my goal is to make a "standard" keypad to be
used as input device in any application, and not a vendor-specific device.
Now my problem is, as soon as I claim being to USB HID keypad (and of course
provide the appropriate descriptor, as found on the specification and in a
few samples), Windows stops my device and marks it as invalid (with error
code 10). Note that when I remove the "keyboard" part of the descriptor to
keep only the "LED" part (CAPS LOCK, NUM LOCK, SCROLL LOCK), the device is
marked OK, and any change in main keyboard status is correctly forwarded to
my board.
So, my question is, how can I find what's wrong in my keyboard descriptor ?
Is it possible to have hidclass.sys providing detailed report on what's
going wrong, or is there a analysis software that may help ?
Regards,
--
johann.d Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94164
RegisterDeviceNotification on Vista x64
I have a Win32 Service App, which registers an opened device handle for
removed check. This App works fine in XP-x64. but not in Vista-x64.
The Vista-x64 send the SERVICE_CONTROL_DEVICEEVENT /
DBT_DEVICEREMOVECOMPLETE with the value in the DEV_BROADCAST_HANDLE parameter
:
dbch_size --> sizeof(DEV_BROADCAST_HANDLE)
dbch_devicetype --> DBT_DEVTYP_HANDLE
dbch_handle ---> NULL
dbch_hdevnotify ---> NULL
This makes me to have no way to determent which handle I registered has
been removed.
Is there anyway to solve this problem? Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94155
trying to install a minifilter without INF file
Hi,
Yes I know I should have an INF file, but that is another story.
I'm trying to load my minifilter driver on XP 2003 Server.
I'm using SCM to get loaded and this is working ,
my driver is getting loaded. In the DriverEntry I am failing when I call
FltRegisterFilter() I am getting error 0xC0000034.
I figure that this must be because of register settings?
Can someone tell me exactly what the settings should be for my minifilter?
TIA
--
Gak -
Finecats Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94154
.kdfiles with boot start drivers on Vista
Anyone been able to use .kdfiles -m in WinDbg with boot start drivers on
Vista? After much wailing and gnashing of teeth I am thinking it can't be
done. Anyone?
I have seen some posts on this but they all either go no where or the people
replying didn't read very well.
Here is what I have tried. I tried using bcdedit to turn on the boot
debugger. Here is my output from WinDbg:
Waiting to reconnect...
BD: Boot Debugger Initialized
Connected to Windows Boot Debugger 6000 x86 compatible target, ptr64 FALSE
Kernel Debugger connection established.
Symbol search path is:
From the kd prompt I set >sxe ld:mydriver.sys and the debugger promptly
broke after all of the boot start drivers had been loaded?? The .kdfiles
mapping to my driver never kicked.
I am connecting WinDbg via NULL modem cable COM1 115200 baud.
I also tried loading a checked build of WinLoad.exe...still no love.
I can't seem to get the debugger to hook during boot.
HELP? Anyone? I have seen several veteran driver devs ask this same
question with no real help. If it isn't possible, it would be nice of
someone to just say so. In my case this would sure save me a butt-load of
time.
Thanks.
Bill M. Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94150
File attributes not preserved on copy
Hi,
I am working on a filesystem driver. I have a weird problem while copying
files from an NTFS volume to my volume.
After the file is copied, Windows sends an IRP_MJ_SET_INFORMATION IRP with
FileBasicInformation information class. Now the attributes field in the
FILE_BASIC_INFORMATION structure is always zero even if the original file had
read only, archive and/or hidden attribute set. So the file attributes are
not preserved on copy unlike a copy between two NTFS harddisks or to a floppy
disk.
Is this expected behaviour? Is there anything the filesystem driver needs to
do during driver startup or volume mount to ensure that Windows sets the
right file attributes on file copy? Any information is greatly appreciated.
Thanks,
Priya Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94132
Printer installation in Vista
I try to install printer driver ( oemdll from WDK ) with
AddprinterDriver() function.
But I get each time the same error : Error 2.
How to add printer driver in Vista ? Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94127
[OT] OpenProcess shows "Access Denied (5)" on some Processes,..
Hi,
can please someone have a look at this:
http://groups.google.de/group/microsoft.public.vc.mfc/browse_thread/thread/9a26245c82cd048e/157c9704f05a2860
TIA
Best regards
Kerem Gümrükcü Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94123
Enumerate Child Device
Hello All,
We are writing a USB-Serial driver using WDF framework. We have
completed the USB part i.e handling PnP and Power Management. My
problem is i want OS to enumerate a child device probably as Serial
device. I want the device manager to show virtual COM port device and
USB device.
I did the following to achieve this.
After the completion of EvtDeviceD0Entry, i have added the following
code to enumerate a child device (COM) in EvtDeviceRelationsQuery
NTSTATUS
EvtDeviceRelationsQuery
(IN WDFDEVICE Device,
IN DEVICE_RELATION_TYPE RelationType
)
{
// Initialize UNICODE device name
RtlInitUnicodeString(&uniDeviceName, L"\\Device\\SerBus0");
DeviceInit = WdfPdoInitAllocate(Device); // USB device object
if (DeviceInit == NULL)
{
DbgPrint ("WdfControlDeviceInitAllocate failed 0x%x\n", status);
status = STATUS_INSUFFICIENT_RESOURCES;
}
//
// Set exclusive to true so that not more than one app can talk to
the
// control device simultaneously.
//
WdfDeviceInitSetExclusive(DeviceInit, TRUE);
WdfDeviceInitSetDeviceType(DeviceInit, FILE_DEVICE_UNKNOWN);
WdfDeviceInitSetCharacteristics(DeviceInit, FILE_DEVICE_SECURE_OPEN,
FALSE);
//
// Assign the device name
//
status = WdfDeviceInitAssignName(DeviceInit, &uniDeviceName);
if (!NT_SUCCESS(status))
{
DbgPrint ("WdfDeviceInitAssignName failed 0x%x\n", status);
return status;
}
//
// Initialize the attributes
//
WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE
(&attributes,DEVICE_CONTEXT);
//
// Create the control device
//
status = WdfDeviceCreate(&DeviceInit, &attributes, &serbusdevice);
if (!NT_SUCCESS(status))
{
DbgPrint (WdfDeviceCreate failed 0x%x\n", status);
return status;
}
status = WdfFdoAddStaticChild(Device, serbusdevice);
if (!NT_SUCCESS(status))
{
DbgPrint (WdfFdoAddStaticChild failed 0x%x\n", status);
return status;
}
}
In EvtDeviceAdd i added the following code after i get the device
handle.
busInfo.BusTypeGuid = GUID_CLASS_COMPORT;
busInfo.LegacyBusType = PNPBus;
busInfo.BusNumber = 0;
WdfDeviceSetBusInformationForChildren(device, &busInfo);
I followed the instructions at the following link.
http://msdn2.microsoft.com/en-us/library/aa490110.aspx
I dint have any luck in proceeding further. Cany anyone point me if im
missing anything, so that windows could enumerate a child device. I
want to provide a different INF file for second enumeration.
Thank You,
Regards,
Sushma Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94121
Installing Filter driver
I am trying to install Filter driver using SetupAPI function as decribed in
MSDN.
Call SetupInstallFilesFromInfSection for the [upperfilter_inst] section.
Call SetupInstallServicesFromInfSection for the [upperfilter_inst.Services]
section.
Call SetupInstallFromInfSection for the [upperfilter_inst] section, once for
each class key it wants to register the upperfilt service for.
But I see only registry is getting updated. The actual driver is not get
bound to the adapters.
How to do that? Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94120
MiniportCheckForHangEx vs MiniportCHeckForHang
Hi,
I am writing an NDIS6 miniport driver.
In WDK it is written on MiniportCheckForHangEx do that
"If a miniport driver does not complete an OID request within two
successive calls to MiniportCheckForHangEx, NDIS can call the driver's
MiniportResetEx function."
and on MiniportCheckForHang doc that:
"If a NIC driver has no MiniportCheckForHang function and NDIS judges
the driver unresponsive as, for example, when NDIS holds many pending
sends and requests queued to the miniport driver for a time-out
interval, NDIS calls the driver's MiniportReset function"
1. If I correctly understand the doc than MiniportCheckForHangEx in
contrary to MiniportCheckForHang does not care about pending sends
request only pending OIDS. I tested it by pending send requests
forever and indeed
MiniportReset was not called. Is that the expected behaviour or did I
miss something?
2. What is the meaning of "NDIS can call the driver's
MiniportResetEx?" are there times that it will not call it ?
Thanks
Miki Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94113
Driver Signing Problem
Hallo,
For VISTA I have build a signed driver package with a "VeriSign Class 3 Code Signing 2000 CA"
ID. Our Rule is using the same package for Windows XP.
In Vista the installation is OK but in Windows XP I can see some errors in setupapi.log
#E360 An unsigned or incorrectly signed file "c:\windows\inf\oem9.inf" for driver "XXX" will be installed (Policy=Ignore). Error 1168:
What is not correct with my signing ? The result: class installer entrys (ICON, name) are not
installed in registry and CoInstaller DLL is not running by the installation.
When I break this signed package (insert a space into INF file) all is fine.
elli Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94109
Does anyone use regdmp.exe or objdir.exe?
What would be the impact on you if we pulled regdmp.exe and objdir.exe from
the WDK? Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94099
Can the Media Center source be aquired?
We are having a large problem developing a BDA driver. The source of this
problem is that the documentation for writing a BDA driver explains what
everything does, but not what actually happens in terms of successfully
instancing a filter that will be used by Media Center.
This makes debugging impossible as very little of our code actually runs
before Media Center decides not to acknowledge our device.
Is the source code for Media Center available under some license offered by
Microsoft?
Otherwise, does anyone have a method to successfully diagnose graph building
and filter caps problems? Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94098
Embedded authenticode signature
Hi,
I want to sign MyDriver.sys with an authenticode signature appended to the
.sys file, just like a normal user mode DLL. The driver is for Server 2003
and Vista, x86 and x64. I realize this will have no effect on the install
prompts etc. My question is, will the signature adversely affect the loading
of the driver, assuming the checksum is OK? My concern is that the driver
loader might be confused by the signature added to the .sys file.
Thanks
-- Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94085
Help writing virtual webcam driver
Hi guys,
I'm a newcomer the device driver development discipline. I'm short my
project requires me to write a virtual webcam driver - the driver should
not interact with any real hardware instead the image input is actually
coming from e.g. the network..
I really looking for some pointers - that might push me in the right
direction.. I've been reading a bit the last two days and this is how
far I've come:
1) I would like to use KMDF - (cannot be done in UMDF correct?).
2) It seems I need to develop a "Video Capture Device" using something
called AvStream (Currently I'm not really sure what AvStream does).
3) Are there any good DDK samples that might give me a idea of how to
continue. I've looked a bit at the AVSHwS and it seems promising.
4) I found that a webcam driver is classified as an UVC (USB video
device class) - Is this the protocol I need to implement in my driver?
I really hope you can help me, in answering my initial questions..
All ideas, thoughts are more than welcome :)
--
// morten Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94080
Problems in Vista with WiFi and Ndis (ndisuio.sys)
Hello,
I need help for Vista OS.
I am updating a program to make connections to Wifi Networks so that
it works in Vista.
This program work with ndisuio.sys driver or any compatible driver
based on NDISPROT sample protocol driver.
For this case I stop the Wlansvc as I was doing in XP with the wzcsvc.
It work without problems and Vista let me control the WiFi device.
These drivers work fine in Vista and the devices I have probed work
fine with them.
I send these OID=B4s for make a connection:
OID_802_11_INFRASTRUCTURE_MODE(0x0D010108)
OID_802_11_AUTHENTICATION_MODE(0x0D010118)
OID_802_11_ADD_KEY(0x0D01011D) (some times, if the mode needs it)
OID_802_11_WEP_STATUS(0x0D01011B)
OID_802_11_SSID(0x0D010102)
OID_GEN_PORT_AUTHENTICATION_PARAMETERS(0x0001020F)
They work well and they are shown by the program ndismon(PCAUSA) also
when the system connects.
The connection(association) with the AP is Ok and I send the neccesary
security protocol (802.1X, WPA-PSK, WPA-PEAP) developed in my program
and they work fine with the device and the AP.
THE PROBLEM:
Up to here, everything seems to work fine but the problem is with the
TCP/IP and the new interface added in the system Vista.
The new interface does not appear in the window "Network and Sharing
Center" and the DHCP protocol does not work over it.
The new interfce does not obtain IP address and it does not work
although the association with the AP and the authorization and
authentication with the WiFi device is Ok.
I think that more actions are necessary in order to wake up the
interface in the system Vista although I have not been able to find
information on the matter.
Any help about this issue would be very appreciated.
Sorry for my bad English.
Best regards,
Frank Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94077
About driver developing
Hello,
I'm new to driver authoring and want to know some simple question's
answers.
1-WinDDK is enough to develop MS-based device drivers?
2-Do i need/have to know programming languages like c++?
3-Is WDK (or called WinDDK) avaible for download?
Sorry for these basic questions but i need to know.
Best regards... Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94071
avstream avssamp example freeze system
Hello.
Using matlab+simulink (under mex setup VS2005) as a client application for
capturing video from DDK sample avssamp totally freeze windows (Vista, XP).
The mouse cursor doesn't move, nothing is move at all.
At the same time Avssamp is fine when capturing with Amcap, and fine if
matlab mex setup is VS2003.NET, also matlab is fine with vs2005 when
captureing from webcamera...
Tried using avsamp debug version with dbgPrintf+dbgview - i can't see any
out message, system is freezed before any message occurs.
Tried run with verifier ON, nothing!
Could anybody advise how to debug this strange avssamp behaviour?
Thank you.
-Andrey Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94066
SYS File Format
Hello All,
Where I can find information about the format of SYS file?
What is the different from DLL PE file format?
Thanks,
Ronen Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94065
winusb and WinUsb_ControlTransfer
My USB device supports the default control pipe (only) and these requests are
made using control transfers. In order to fetch the version from my device,
the following vendor specific call is successful:
WINUSB_INTERFACE_HANDLE hWinUsbIntf ;
UCHAR ucaBuffer[256] ;
DWORD dwXeptLen ;
:
:
WINUSB_SETUP_PACKET Wsp = { 0xC3, 0x81, 0x80, 0, 255 } ;
BOOL bRC = WinUsb_ControlTransfer
(
hWinUsbIntf, Wsp, ucaBuffer, sizeof(ucaBuffer) - 1, &dwXeptLen, NULL
) ;
In order to reset the LED on the device, I issue:
WINUSB_SETUP_PACKET Wsp = { 0x40, 0x80, 0x40, 0, 1 } ;
bRC = WinUsb_ControlTransfer
(
hWinUsbIntf, Wsp, ucaBuffer, sizeof(ucaBuffer) - 1, &dwXeptLen, NULL
) ;
The vendor specific SetLED fails and the translated GetLastError is "A
device attached to the system is not functioning." Shouldn't I be able to
write to the device via Winsys as well as read? Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94064
KMDF: accessing PCI configuration space results in STATUS_NOT_SUPPORTED
I try to access the PCI configuration space of my PCI hardware.
I follow the WDK help topic "Accessing PCI Device Configuration Space".
As a first step, I try to get a BusInterface, but this fails.
I used two different styles (see code below), both result with
status = STATUS_NOT_SUPPORTED.
I can not see the difference between the PCIDRV example and my own
device, so any help is welcome!
J. Hoppe, PEAK System Technik GmbH
======= Try #1 (as in example "src/kmdf/pcidrv") : ================
xxxDeviceAdd() {
...
...
status = WdfFdoQueryForInterface(Device,
&GUID_BUS_INTERFACE_STANDARD,
(PINTERFACE) & pDeviceContext->BusInterface,
sizeof(BUS_INTERFACE_STANDARD), 1, // Version
NULL); //InterfaceSpecificData
....
}
======= Try #2 (as in other example / Knowledgebase) ================
// from C:\WinDDK\6000\src\general\pcidrv\sys\hw\nic_init.c
NTSTATUS
GetPCIBusInterfaceStandard(
__in PDEVICE_OBJECT DeviceObject,
__out PBUS_INTERFACE_STANDARD BusInterfaceStandard
)
/*++
Routine Description:
This routine gets the bus interface standard information from the PDO.
Arguments:
DeviceObject - Device object to query for this information.
BusInterface - Supplies a pointer to the retrieved information.
Return Value:
NT status.
--*/
{
KEVENT event;
NTSTATUS status;
PIRP irp;
IO_STATUS_BLOCK ioStatusBlock;
PIO_STACK_LOCATION irpStack;
PDEVICE_OBJECT targetObject;
DiagMsg("GetPciBusInterfaceStandard entered.");
PAGED_CODE();
KeInitializeEvent( &event, NotificationEvent, FALSE );
targetObject = IoGetAttachedDeviceReference( DeviceObject );
irp = IoBuildSynchronousFsdRequest( IRP_MJ_PNP,
targetObject,
NULL,
0,
NULL,
&event,
&ioStatusBlock );
if (irp == NULL) {
status = STATUS_INSUFFICIENT_RESOURCES;
goto End;
}
irpStack = IoGetNextIrpStackLocation( irp );
irpStack->MinorFunction = IRP_MN_QUERY_INTERFACE;
irpStack->Parameters.QueryInterface.InterfaceType =
(LPGUID) &GUID_BUS_INTERFACE_STANDARD ;
irpStack->Parameters.QueryInterface.Size =
sizeof(BUS_INTERFACE_STANDARD);
irpStack->Parameters.QueryInterface.Version = 1;
irpStack->Parameters.QueryInterface.Interface =
(PINTERFACE)BusInterfaceStandard;
irpStack->Parameters.QueryInterface.InterfaceSpecificData = NULL;
//
// Initialize the status to error in case the bus driver does not
// set it correctly.
irp->IoStatus.Status = STATUS_NOT_SUPPORTED ;
status = IoCallDriver( targetObject, irp );
if (status == STATUS_PENDING) {
status = KeWaitForSingleObject( &event, Executive, KernelMode,
FALSE, NULL);
ASSERT(NT_SUCCESS(status));
status = ioStatusBlock.Status;
}
End:
// Done with reference
ObDereferenceObject( targetObject );
return status;
}
xxxDeviceAdd() {
...
...
{
PDEVICE_OBJECT devobj = WdfDeviceWdmGetDeviceObject(Device) ;
status = GetPCIBusInterfaceStandard(devobj,
& (pDeviceContext->BusInterface)) ;
}
....
}
=============== end code examples ================= Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94059
Debug IEEE 802.1X
Does anyone seen this kind of problem before?
On what case 802.1x supplicant will create port fail and error code is 13 as
below.
Good information for debugging 802.1x
http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/wlansupp.mspx
Environment:
Hidden SSID/WPA-PSK
[472] 09:22:03:234: Device: \DEVICE\{3AE7D14E-74EC-4F06-B655-20FE661B518C}
[472] 09:22:03:234: Description: USB Wireless LAN Card - Packet Scheduler
Miniport
[472] 09:22:03:234: ElEnumAndOpenInterfaces: Found interface after
enumeration \DEVICE\{3AE7D14E-74EC-4F06-B655-20FE661B518C}
[472] 09:22:03:234: ElEnumAndOpenInterfaces: Did NOT find PCB already
existing for interface
[472] 09:22:03:234: ElOpenInterfaceHandle: Opening handle for
\DEVICE\{3AE7D14E-74EC-4F06-B655-20FE661B518C}
[472] 09:22:03:234: ElOpenInterfaceHandle: Trying to access NDIS Device:
\DEVICE\{3AE7D14E-74EC-4F06-B655-20FE661B518C}
[472] 09:22:03:234: ElOpenInterfaceHandle:
OpenIntfHandle(\DEVICE\{3AE7D14E-74EC-4F06-B655-20FE661B518C}) = 4440
[472] 09:22:03:234: ElOpenInterfaceHandle: BindIoCompletionCallback already
done !!!
[472] 09:22:03:234: ElOpenInterfaceHandle: Opened handle 00001158 with
dwRetCode 0
[472] 09:22:03:234: ElCreatePort: Entered for Handle=(00001158),
GUID=({3AE7D14E-74EC-4F06-B655-20FE661B518C}), Name=(USB Wireless LAN Card -
Packet Scheduler Miniport), ZCId=(0), UserData=(00000000) Notification=<8>
[472] 09:22:03:234: ElCreatePort: No PCB found for
{3AE7D14E-74EC-4F06-B655-20FE661B518C}
[472] 09:22:03:234: ElGetInterfaceNdisStatistics: pwszDeviceInterfaceName =
(\Device\{3AE7D14E-74EC-4F06-B655-20FE661B518C})
[472] 09:22:03:234: ElCreatePort: Ignoring WLAN indications for
pZCConnectInfo == NULL
****[472] 09:22:03:234: ElEnumAndOpenInterfaces: Error in CreatePort = 13
<======???
[472] 09:22:03:234:
ElCloseInterfaceHandle(0x1158,{3AE7D14E-74EC-4F06-B655-20FE661B518C})
entered
[472] 09:22:03:234: ElEnumAndOpenInterfaces: Completed with retcode = 0
[472] 09:22:03:234: ElMediaSenseCallbackWorker: processed, RetCode = 0
Thanks. Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94058
WINDOWS CE 5.0 run-time image errors
hi all,
i am new to this field WIN CE.
i'm trying to build CEPC run-time image. But i'm getting errrors like bellow.
BUILD: [00:0000001177:PROGC ] Scan
\PUBLIC\COMMON\OAK\CSP\X86\GEODE\GXVIDEO\DDRAW\
BUILD: [00:0000001178:ERRORE] CreateDirectory(\) failed. GetLastError=5 (dec).
please solve my problem.
thanking you. Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94057
Vista RTM GDR release
Hi,
I have seen that the Vista USB driver stack is released in two different
versions. The driver stack shipped with the MSDN DVD's is the RTM version:
6.0.6000.16386 (vista_rtm.061101-2205), the version that is now on the market
is GDR: 6.0.6000.16400 (vista_gdr.061212-1500).
I have done a binary comprision of the driver files. E.g. usbd.sys has only
a new data from the compilation and a new version information. But other
drivers like usbport.sys differs in more than the version.
What is the difference between these versions?
Is it required to test kernel mode drivers with both versions?
Is RTM the latest beta version?
I have got a problem report from a customer. He claims that the driver is
not running with GDR that was tested successful with RTM! This problem is
still under investigation.
Any comments?
Thanks
Guenter Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94055
NDIS6 Miniport not unloaded
Hi everyone:
I am running an ndis 6 + KMDF Ethernet miniport driver. The miniport
controls a USB NIC .
I bridged miniport through bridgeMP to another Ethernet NIC.
When I am suprisingly remove my device I my MiniportPause is not
called and the miniport remains active(checkforhang is keep being
called).
When I do !stacks 2 ndis I see the following:
nt!KiSwapThread+0x36d:
nt!KeWaitForSingleObject+0x414
ndis!NdisWaitEvent+0x55
bridge+0xb1d7
bridge+0xb221
bridge+0x1a92
ndis!ndisUnbindProtocol+0x24b
ndis!ndisPnPNotifyAllTransports
+0x1c8
ndis!ndisCloseMiniportBindings
+0x17a
ndis!ndisPnPRemoveDevice+0x1ab
ndis!ndisPnPDispatch+0x85e
nt!IovCallDriver+0x252
nt!IofCallDriver+0x1b
nt!ViFilterDispatchPnp+0x120
nt!IovCallDriver+0x252
nt!IofCallDriver+0x1b
nt!IopSynchronousCall+0xce
nt!IopRemoveDevice+0xd5
nt!
PnpSurpriseRemoveLockedDeviceNode+0xbd
nt!PnpDeleteLockedDeviceNode
+0x1f
nt!PnpDeleteLockedDeviceNodes
+0x4c
nt!
PnpProcessQueryRemoveAndEject+0x572
nt!PnpProcessTargetDeviceEvent
+0x38
nt!PnpDeviceEventWorker+0x201
nt!ExpWorkerThread+0xfd
nt!PspSystemThreadStartup+0x9d
nt!KiThreadStartup+0x16
It seems that the bridge is hang on some Event and due to that the
miniport is unloaded.
Does anyone has any idea how can I further debug it?
Thanks
Miki Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94052
Why WindowsXP does not accept the correct NIC driver?
I have a serious problem with my PC.
I had to format my disk and reinstall Windows XP (with SP2), but I can not
get to in web because Windows thinks that my network card is of Asound, but
its of Realtek.
I tried doing update driver using the Realtek RTL8139/810X Family PCI Fast
Ethernet Card driver on the device manager.
I tried uninstalling the driver, and then letting Windows find it again.
I tried downloading new driver from the Internet (using another PC).
But came out Asound. Windows simply does not let me change the driver.
I logged in with Administrator account.
I talked with the my ISP service provider, and they also found that the
trouble is with my NIC.
How can I force Windows use the driver that has on a disk, and not the
built-in Asound?
-----------
Thanks
Sharon Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94051
Miniport driver - OID_GEN_SUPPORTED_LIST problem
Good morning,
I'm developing miniport driver, when I answered OID_GEN_SUPPORTED_LIST
query without OID_GEN_LINK_SPEED and OID_GEN_MEDIA_CONNECT_STATUS in
the oid list, the adapter connected and setup successfully, when I
applied those two oid to the list, the adapter couldn't connect.
I hope you will be able to help me,
vir0n Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94050
Adding More than 3 Printers in Vista, Adding more than 3 LPT's In
Hi,
Did anyone able to add LPT4 thru LPT9 in windows Vista ?
i tried to add LPT4 it says invalid port name till LPT9, but it is accepting
LPT10 onwards. Is something wrong in my observation, precisely is my
observation valid ???
how to add LPT4 in vista.
Note : it has LPT 4, but not LPT4.
Thanks and Regards,
Neo Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94049
Anti-Tampering Verification
Hi everyone,
I just need to clarify something in DTM regarding this 'Anti-Tampering
Verification' that was displayed in DTM when I was preparing my submission
package. On the 'Submission Status' window, it shows the following message:
Anti-Tampering Verification
Verification.wtl File Does Not Exist
I search for info on this term on the DTM Help, MSDN and Microsoft website
but found none. I don't know what's this message means and whether should it
be a cause for concern. I don't want, later on, that because of this I'll
have problem with my WHQL submission, as you know it involves some $$$.
Anyway, my submission summary shows that my device has pass all the required
tests.
Anyone knows about this? Thanks! Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94043
Could not load Driver dynamically into Vista Kernel...
Hi,
i have a (simple) 32bit driver that works
perfect for Windows 2000 and XP, but i cant
load it into a running vista system. Does the
driver has to be signed to make it loaddable
into vista kernel? If so, how can i sign it with
a valid signatur or whatever certificate i have
to use,...?
TIA
Best regards
Kerem Gümrükcü Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94041
OEMTextOut glyph position problem
We are writing a special plotter driver and we are seeing some
strange things when we are looking at the GLYPHPOS structures being
sent to OEMTextOut call...
The glyphs start out their position correctly but at some point we
get a negative Y coordinates or the offsets for the Y coordinates
restart at low numbers and all text lines are getting mixed.
We noticed that it starts happening when Y > 7200 in
*PrintableArea: PAIR(7200, 7200) of GPD file
We need to support big table sizes 48x48 inches and have to have a
good text quality for small fonts so we need to set
*DPI: PAIR(1200,1200)
*TextDPI: PAIR(1200, 1200)
If we set DPI for lower number Windows programs like MS Word, Corel
return low quality Text. Setting DPI for low resolution but TextDPI
for high resolution doesn't make text better. Are there any limitation
on DPI * Y ?
Any help would be greatly appreciated. Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94040
build utility
I'm Building a user mode component modeled on the user component of minispy
As I understand this, I need to build this with BUILD tool.
The bit that I'm building will be a DLL that will hook up to other stuff...
So when I use BUILD and the OSR ddkbuild tool in a very generic way,
specifing TARGETNAME=NvDrvComm
TARGETTYPE=DYNLINK
UMTYPE=windows
USE_MSVCRT=1
C_DEFINES=$(C_DEFINES) -DUNICODE -D_UNICODE -DNVDRVCOMM_EXPORTS
LINKLIBS=$(SDK_LIB_PATH)\shell32.lib
INCLUDES=$(INCLUDES); \
$(IFSKIT_INC_PATH); \
$(DDK_INC_PATH); \
..\inc
TARGETLIBS=$(TARGETLIBS) \
$(IFSKIT_LIB_PATH)\fltLib.lib \
$(IFSKIT_LIB_PATH)\kernel32.lib \
$(IFSKIT_LIB_PATH)\ntdll.lib
SOURCES=NvDrvComm.cpp\
NvDrvComm.rc
!if "$(DDK_TARGET_OS)"=="WinLH"
_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP)
!endif
But the build is complaining that it cannot find the DEF file. This creates
an error. I built a DEF file by hand and that stopped the BUILD from
complaining about the missing def file.
BUT this project is on going and if I'm already using the declspec
attributes for the things I need to export, why is BUILD complaining about
the DEF file?
I'd hate to think that I'll need to rewrite the def file everytime I want to
add another export!?
--
Gak -
Finecats Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94038
IRP pending at unload on filter driver.
Hello,
I've made a search about this problem across the newsgroup and
the web. I've seen a lot of response and always the same things:
"Your routine is attach to an IRP...bla bla bla".
But I see nowhere the way to resolve this problem. I add a
cleanup routine (Dispatch cleanup) with an IoCancelRoutine
and IoComplete function. In my unload function I add an IoDeleteDevice
and an IoDetachDevice. What can I add more to avoid a BSOD when
I unload my drivers ?
Regards, Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94035
standard device requests and winusb
Given: my USB device attached and detected; WinUSB.sys installed and executing.
After obtaining my USB device handle (createfile), I can successfully
execute WinUSB_Initialize. I then call WinUsb_ControlTransfer and fetch the
status. Next I call WinUsb_ControlTransfer to set a feature
(<WINUSB_SETUP_PACKET> RequestType=0, Request=3, Value=1, Index=0, Length=0).
The call fails and the GetLastError string="A device attached to the system
is not functioning."
Note:
1. "Value=1" ==>> DEVICE_REMOTE_WAKEUP
2. This error also occurs when RequestType=1 or 2
Did I set a field incorrectly? Is the sequence of operations incorrect?
Thanks
dmm Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94033
how to disable USB disk cache
I am trying to validate the SCSI commands in our USB drive product, and use
file copy back and forth to create more traffic.
However, I noticed the SCSI read command is passed down to USB device only
the first time read. I think there must be some disk cache enabled. but I
already set the disk policy as "Optimize for quick removal", which, I
believe, is supposed to disable the disk cache.
Anyone has idea how to set up the system to allow me to see every read in
device ?
-Gary Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94032
Network Configuration Interface
Greetings,
I am trying to learn how to configure network using INetCfg APIs. I
need to understand how to install the actual adapter and associate TCP/
IP protocol with it. I would like to know exact order of steps needed
to configure network. According to MSDN documentation, a network
configuration object is created using CoCreateInstance function which
is followed my enumerating interfaces and so on. I do not understand
the full mechanics of INetCfg APIs. I will appreciate help toward
making me understand/learn. Thanks Tag: Can NDIS 5 IM MUX Driver Be Tested Uisng DTM to Obtain Vista Signature? Tag: 94024
Subject says it.
(Hope I don't have to open a paid incident to get this question answered...)