NdisReadPciSlotInformation failed under xp
Hi all,
I am writing a NIC driver for windows2k and XP.
NdisReadPciSlotInformation API gets falied under xp but it works fin under 2k.
Please guide me how to resolve problem.
--
With regards
thanks
Anand Choubey Tag: More current for hid device? Tag: 90256
More than 64 vlan limit in Windows 2003 anywhere ?
Hello all,
Happy new year.
I am trying to find a driver or nic which is capable to support more
than 64 vlan 802.1q. The intel nic supports only 64, for instance
(perhaps because they're using the adapter to tag/untag the packets).
Is there any driver for Windows 2003 that does this job (add the 4
bytes tag to sent packets and remove them in the received ones) ? Or if
you know any nic which supports more than 64 vlan per interface I will
be glad to hear. I am very sorry, because I DO KNOW this isn't the
right place to post, but since it is related with Windows drivers, I
prefer to take the chance.
BTW, nic drivers in linux doesn't suffer the same limitation (perahps
they do all the work).
Thank you very much.
Antonio. Tag: More current for hid device? Tag: 90253
Overlapped Serial Ports and buffering
I'm writing a serial port class. My team lead said that when using
simple, non-overlapped I/O on Windows 2000, they found that doing 1 and
2 byte reads caused a significant peak in CPU utilization. (All our
packets are read with a 1 byte, then either a 1 or 2 byte read then a
lengthy read.) Do reduce this, they double buffered the reads.
I converted the class to use basic OVERLAPPED I/O. I wrote 2 versions
of the class; one uses straight reads, the other reads the data in
chunks and queues it up for the reader.
When testing both, I found that the process utilization was the same on
average. Does anyone know if OVERLAPPED I/O is already buffering serial
port reads? (Do serial port reads even make a ring transition at the
driver level? Did this possibly change between Windows 2000 and Windows
XP?) Tag: More current for hid device? Tag: 90246
getting user-mode Socket handle from TDI_CONNECT
in the user mode when you call socket function you got a handle
SOCKET hSocket = socket(AF_INET, SOCK_STREAM, 0);
how can i get this handle from TDI_CONNECT ?? ( as i want to send it back
to monitoring application )
thanks in advance Tag: More current for hid device? Tag: 90243
Newbie: which sample driver should I use?
Hi,
I am a newbie to writing device drivers for windows environments, but I
have written drivers before for other OS'es. So I started reading a
book on device drivers and I downloaded the DDK. In the DDK I found a
bunch of sample drivers. In the documentation I found the suggestion to
start off modifying a sample. My question is which sample would be a
good starting point for a driver for a DSP connected to the PCI bus?
Communication between the host and the DSP is done using memory shared
by both devices.
Or are there even better samples available somewhere on the internet I
can use?
TIA
Ruud Tag: More current for hid device? Tag: 90229
Bugcheck in (MS)AHCI driver in Windows Vista 64 bit
Hi,
We are testing our AHCI compliant host controller on Windows Vista
64-bit checked build operating system. During one test, which involves
copying files simultaneously to two harddisks attached to two different
ports of the chost controller, the debugger breaks in with
"Break instruction exception - code 80000003 (first chance)
000007fe`fc65b2d1 cc int 3"
Ignoring this (by pressing 'g') has no adverse effect on the file copy.
However this break occurs for 8-9 times during the copy operation.
How can we confirm if this is a driver bug (which in this case is
microsoft provided msahci.sys) or hardware doing something wrong?
Sorry if the question is not suitable for this group. Will appreciate
to receive any suggestion with the proper group name if that's the
case.
Thanks,
Regards,
Suresh Tag: More current for hid device? Tag: 90216
how to bring Standard Layout tab
Hi all,
I m developing a monolithic printer driver UI,Which should
have LAYOUT(Standard) tab and ADVANCED(tree view). AS per the DDK
documentation in DLGPAGE I found DP_STD_DOCPROPPAGE1 can be used to
bring the layout tab.I am using COMPROPSHEETUI Structure.
As I was completely new to this,Could You please say,how can I
do it.
Thanks In Advance Tag: More current for hid device? Tag: 90208
How ipconfig search for network card information??
Hi,
We have written a miniport driver for NIC that installed properly and
registers with NDIS (version 5.0)successfully.But card information does
not come up when we do ipconfig. Another thing is that we dont get any
call for SetInformation by NDIS, but other calls like QueryInformation,
MPISR, HandleInterrupt are comiing regularly.Can anybody have any idea
what is wrong with miniport driver or how ipconfig asks for card
information.
Any help would be highly appericiated.
Thanks,
Rahul Jain Tag: More current for hid device? Tag: 90206
DDK calls from application
Hi all
I'm just wondering if I can make any ddk function calls from the
application space. If so, how do I find out which ones are permissible
or which ones are not allowed. The functions I'm looking at are
PsSetCreateThreadNotifyRoutine and related functions. Please advice.
Thanks Tag: More current for hid device? Tag: 90197
Device Plugin time on Windows XP
A newbie question.
Does Windows XP record the time when a device is plugged in/out? If
so, can it be programmatically accessed in VS C++?
I checked the Event Viewer and do not see anything in the log.
Thanks.
B. Tag: More current for hid device? Tag: 90194
MI5 Persecution: why the security services?
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-= why the security services? -=
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
You may ask, why do I think the "they" referred to are the security
services? Is there any evidence that there is a single source, as opposed
to a loosely based "whispering campaign" amongst many people? Even if there
is a single source, is there any evidence that "they" are professional
"buggers" as opposed to amateurs, or perhaps people working for a privately
funded organization?
a) As to the question of a single source versus something more fragmented;
it is quite obvious that there is a single source from the way the campaign
has been carried out. Since things have been repeated verbatim which were
said in my home, there must be one group which does the watching and
listening. Since on several occasions (mainly during travel) people have
been planted in close proximity and rehearsed in what they were to say, it
follows that someone must have done the planning for that, and again a
single source is indicated.
b) So why couldn't it be amateurs? Why couldn't it be a private
organisation, for example a private detective agency paid to manage the
campaign and undertake the technical aspects? Some detective agencies are
unscrupulous as has been proved on the occasions in the past when they've
been exposed or caught; they too can have access to the bugging technology
deployed; and there are reported cases of MI5 paying private eyes to do
their dirty work (against peace campaigners and similar enemies of the
state) on the understanding that if they were caught then they could deny
all knowledge. Why couldn't that be the case?
The main factor pointing to direct security service involvement (as opposed
to amateurs or MI5 proxies) is the breadth of their access to the media in
particular, and the fact that the television companies are so involved in
the campaign. The BBC would not directly invade someone's home themselves,
since it would not be within their remit to allocate personnel or financial
resources to do so. An organisation of their stature would not take part in
a campaign set up by private sources. The only people they would take
material from would be the security services, presumably on the assumption
that if the cat ever flew out of the bag yowling it would be MI5 who would
take the consequences.
State sponsorship for these acts of psychological terrorism is also
indicated by duration; support for over six years for a team of three or
four people would be beyond the means and will of most private sources.
The viciousness of the slanders and personal denigration also points to
MI5; they traditionally "protect" the British state from politicians of the
wrong hue by character assassination, and in this case are using their
tried and tested methods to murder with words an enemy they have invented
for themselves.
And there are precedents. Diana and Hewitt were alleged to have been filmed
"at it" by an Army intelligence team which had operated in Northern
Ireland, these allegations were made by someone called Jones who had been
on the team. His statements were denied by the defence establishment who
tried to character-assassinate by describing him as the "Jones twins".
Funny how if you tell the truth, then you must be ill, isn't it? Thought
only communists behaved like that?
Hewitt later said that he'd been spoken to by someone in the army who
revealed the existence of videotapes of him and Diana, and that the tapes
would be published if any attempt was made by them to resume their
association.
539
--
Posted via a free Usenet account from http://www.teranews.com Tag: More current for hid device? Tag: 90170
TDI Problems in Windows VISTA ..Please help me!!!!
Hi Experts,
can any one expalin me,
1. Is it possible to use the TDI Client Drivers written for Xp,as is in
Vista ?
2. Or if with minor changes?
3. If it is possible to use same souce in VISTA , what are the function
calls/ arguments are need
to be changed?
4. Or i should move to KSOCKs ?
Thanks in Adv, Tag: More current for hid device? Tag: 90168
MI5 Persecution: abuse in set-up situations and in public
-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-
-= abuse in set-up situations and in public -=
-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-
Strangers in the street have recognized me on sight many times, and shown
awareness of the current thread of abuse. To give you one example, in 1992
I was seriously ill, and a manager at work somewhat humorously said that
"it wasn't fair" that people were bullying me. A few days later, I attended
for the first time a clinic in London as an outpatient, and on my way out
was accosted by someone who asked if "they had paid my fare", with emphasis
on the word "fare". He repeated the word several times in this different
context; that they should have paid my "fare", each time emphasizing the
word.
For two and a half years from the time their harassment started until
November 1992 I refused to see a psychiatrist, because I reasoned that I
was not ill of my own action or fault, but through the stress caused by
harassment, and that a lessening of the illness would have to be consequent
to a removal of its immediate cause, in other words a cessation of
harassment. I also reasoned that since they were taunting me with jokes
about mental illness, if I were to seek treatment then the abusers would
think that they had "won" and been proved "right". Remember, the constant
theme of any persecution is, "we must destroy you because you're X",
whether X is a racial or other attribute. In this case the X was "we
persecute you because you have brain disease". The similarity of this logic
to Nazi attitudes to the mentally ill is striking.
The same manager who'd said "it wasn't fair" asked me in winter 1992 why I
didn't seek help from a psychiatrist; was it, he asked, because "they would
think they had won" if I sought treatment? That was something I'd never
said at work... again, taken separately it proves nothing, but many such
things over a period of months proves conclusively that people in the
company knew what was going on, and in quite a lot of detail.
Usually harassment in public lacks the level of finesse of "paying your
fare". Most people's imagination does not go beyond moronic parroting of
the current term of denigration. That is not surprising given the average
level of the abusers; if they do not have the intelligence to distinguish
wrong from right then neither will they have the capacity for anything
other than mindless repetition of a monosyllabic term calculated to fit
into their minds.
The first incidents of verbal assault in public were in again in the summer
of 1990, although they increased in frequency and venom with time. In July
1990 the first public incident occurred on a tube train on the Northern
line. Two men and their girlfriends recognised me; the women sprang to my
defence, saying "He looks perfectly normal, he doesn't look ill". Their
boyfriends of course knew better, and followed the party line; one of them
made reference to an "operation", apparently to work at the tube station
but implicitly to a visit that I had made to hospital a couple of weeks
previously.
In August 1990 going home from college, soon after getting on a tube train
at Gloucester Road I was followed by a group of four youths, who started a
chant of abuse. That they were targeting me was confirmed by other people
in the carriage, one of whom asked the other "who are they going on at, is
it the bloke who just got on?" to which the second replied "yes, I think
so". I was tempted to reply, but as in every other instance the abusers are
enabled in their cowardice by physically outnumbering the abused; any
confrontation would result in my being beaten up, followed by a complaint
to the police that "he attacked us", and of course he's ill, so he must
have been imagining that we were getting at him. Shitty, aren't they?
But the shittiness of the four youths on the tube train is as nothing
compared to the episode on the National Express coach to Dover in the
summer of 1992. While going on holiday to the Continent I was verbally set
upon by a couple travelling sitting a few rows behind. The boy did the
talking, his female companion contributing only a continuous empty giggling
noise. He spoke loudly to ensure other people on the coach heard, always
about "they" and "this bloke" but never naming either the abusers or the
person he was talking about. He said "they" had "found somebody from his
school, and he was always really stressed at school". They must have dug
deep to find enemies there; perhaps someone who dropped out of school,
someone who didn't do too well later, who was jealous and keen to get their
own back? The boy also said "he was in a bed and breakfast for only one
night and they got him". By a not unexpected coincidence I had been in a
B&B in Oxford a week previously, which had been booked from work; other
things lead me to the conclusion that the company's offices were bugged for
most of the 2 1/2 years that I was there, so "they" would have known a room
in the B&B had been booked. (But I'll bet "they" didn't tell the company's
managers their offices were bugged, did they?).
After a few minutes of this I went back to where they were sitting and
asked where they were travelling. The boy named a village in France, and
the girl's giggling suddenly ceased; presumably it permeated to her brain
cell what the purpose of the boy's abuse was.
This and other set-up situations are obviously calculated to provoke a
direct confrontation which would bring in the police, with the abusers
claiming that they were the ones attacked. Again in 1992, outside the
house where I was living in Oxford I was physically attacked by someone -
not punched, just grabbed by the coat, with some verbals thrown in for good
measure. That was something the people at work shouldn't have known
about... but soon after a couple of people were talking right in front of
me about, "I heard he was attacked". The UK police have a responsibility
for preventing assault occurring, but they do not seem to take any interest
in meeting that responsibility. I suppose their attitude is that harassment
does not come within their remit unless it involves physical assault, and
they will only become involved once that happens. That is of course quite
the wrong attitude for them to take, but as I now understand, the police
investigate only the crime they wish to investigate; if they do not take
your complaints seriously then there is nothing you can do to make them
take action.
539
--
Posted via a free Usenet account from http://www.teranews.com Tag: More current for hid device? Tag: 90165
Vista Driver query
I had developed a static driver for Windows XP which will get loaded during
OS boot up. This driver does not require any physical hardware and it gets
loaded due to manual registry entries created under
HKLM\SYSTEM\CurrentControlSet\Enum\Root.
Now in Windows Vista it doesnâ??t allow me to create registry entry manually
under the enum \Root key due to rights restriction. Finally I was able to
create registry entry thru a kernel code. After system reboot I can see
device enumeration I provide the path to my static driver it loads the driver
but in the final screen it says â??Installation of the device forbidden by
System policy â??. Is there any way to make driver load during boot time
without even a device in Vista?? Kindly help me out in this. Tag: More current for hid device? Tag: 90160
Legacy Driver digitall signing for Windows Vista 32 bit.
Hello Sir
I have legacy driver which works fine on Windows Vista but i need to
get digitally signed by MS. Driver is not having any .inf or .cat
files. Can u please help me as i didnt get any information for digitall
signing legacy drvers.
Thanks Tag: More current for hid device? Tag: 90159
IPConfig not responding
Hi
I am developping NIC miniport driver.
Driver gets sucessfully installation and system tray also shows icon but
ipconfig/all does not device informatio.
I am not getting what is reason behind it please guid me.
--
With regards
thanks
Anand Choubey Tag: More current for hid device? Tag: 90144
multiple video subdevices (avstream)
In general, i want to avssamp device appears in user mode under different
friendly names: avssamp1, avssamp2 and so on.
i am looking for way of creating several avstream filters with single KS
device installation.
i have found "Multiple Audio Subdevices" audio topic, that wrote about
customize INF file and use InstallSubdevice call in device startup.
Just want to find similar functionality in KS. Maybe it's possible to
customize avssamp KSDEVICE_DESCRIPTOR for it. Could anybody point me to
right solution ?
currently i see only one solution - multiple device installation,
modification of INF file to support several devices with different names
sharing one binary. i don't like it and want to know about possibilities...
Thank you.
-Andrey Tag: More current for hid device? Tag: 90143
Diffrentiate bt USB MSD and USB HID
Hi..
I recently wrote a driver which will block unblock a USB port...by
way of intercepting the IRP requests.
But the problem is that this driver dosent distinguish between USB
mass storage device on one hand and other devices like USB HID.
I need to specifically block USB storage devices like pen drives,USB
hard drives etc,not any HID or other devices.
Can anybody plz throw some light into it.
Regards
DC Tag: More current for hid device? Tag: 90138
Authenticode problems under Windows 2003
I'm signing my drivers inf catalog file using a valid certificate issues by
"Verisign Class 3 Code signing 2004 CA".
Under vista, I see the following lines in setupapi.dev.log:
(my certificate is installed in the trusted publishers store)
! sig: Verifying file against specific (valid) catalog
failed! (0x800b0109)
! sig: Error 0x800b0109: A certificate chain processed,
but terminated in a root certificate which is not trusted by the trust
provider.
...
sig: Error 0xe0000241: The INF was signed with an
Authenticode(tm) catalog from a trusted publisher.
sig: {_VERIFY_FILE_SIGNATURE exit(0xe0000241)} 06:02:44.054
According to Microsoft's "Troubleshooting Device Installation with the
SetupAPI Log File" (SetupAPILog.doc), I should see the same log lines (and
pseudo errors) in Windows 2003.
Alas, I'm seeing ONLY the 0x800b0109 error line, which means (according to
SetupAPILog.doc) that the driver does not have a WHQL catalog (indeed).
It seems that for some reason, Windows 2003 doesnâ??t recognize my Verisign
issued Authenticode certificate.
The problem persist whether I'm using Microsoft-Verisign cross certificate
(MSCV-VSClass3.cer) to sign my catalog or not.
Any help would be appreciated... Tag: More current for hid device? Tag: 90132
Is there a api/call to print stack trace to windbg from within my driver?
I am looking to print stack trace from within a particular function of my
driver code, that appears in windbg
whenever that code path gets hit..
Is there such an api/function to do so? Tag: More current for hid device? Tag: 90122
newbie: remote installation with SetupAPI/Devcon.exe fails with ERROR_NO_CONFIGMGR_SERVICES.
I try to access a remote machine with devcon.exe.
For example: "devcon.exe -m:\\my_remote_machine classes"
This always gives the error message "devcon failed".
On the other hand it works, if I use my local machine name:
"devcon.exe -m:\\my_local_machine classes" -> OK
I debugged devcon.exe and found, that SetupDiBuildClassInfoListEx()
returns a GetLastError()-code of 0xe0000223 = ERROR_NO_CONFIGMGR_SERVICES. Tag: More current for hid device? Tag: 90120
VSS hardware/software provider for Windows XP?
Hi All,
The VSS hardware provider API is supported only for Windows 2003 EE/DCE.
VSS software providerÙ seem to work well under any Windows 2003 version and
Vista, but fail to install in XP SP2.
MSDN says that IVSSSoftwareSnapshotProvider interface is supported under Win
XP too, but XP headers that come with VSS SDK 7.2 do not contain this
interface definition.
Does Windows XP support custom VSS software providers?
Thank you in advance.
--
Best regards,
Valeriy Glushkov Tag: More current for hid device? Tag: 90118
what is NDIS packet type
Hi All
I am writing a NDIS intermediate filter driver, to analyse the network
traffic. I need to know what is the type of the packet which i received
from ProtocolRecieve() & ProtocolRecievePacket() callback routines i.e.
whether the packet is of UDP or TCP etc.??
In case anybody knows about this then please let me know.
Thanks in advance
Saurav Tag: More current for hid device? Tag: 90116
NDIS6 NBL indication
Hi
I am writing an NDIS6 miniport driver and I have a question:
I indicate NBL to NDIS using NdisMIndicateReceiveNetBufferLists. Those
NBL are allocated
using NdisAllocateNetBufferAndNetBufferList (i.e. each NBL is paired
with a single NB).
Each NB has a single MDL (which I allocated seperately using
NdisAllocateMdl).
When Ndis return the NBL to me (in MiniportReturnNetBufferLists) I
notice that the NB containes now more than a single MDL (the original
MDL is chained to another MDL).
1. Is that Normal ? i.e. can Ndis and above protocols can add MDLs to
the NB after
I indicate an NBL?
2. Should I release the new MDLs (which I did not allocated)?
3. Is it possible that Ndis will remove my original MDLs from the NB?
In that case I guess
that Ndis is also responsible for freeing it right?
Thanks
Miki Tag: More current for hid device? Tag: 90115
Network cable unplugged in system tray
Hi,
I am working in NIC miniport driver. Driver is Properly working.
Packets are given/taken to/ from user mode application using memory mapping
between user application and driver.
But system tray shows Network cable unplugged. What should I do to resolve
this
problem???
--
With regards
thanks
Anand Choubey Tag: More current for hid device? Tag: 90113
The issue of Driver install with the application coinstall on Vist
I had designed the inf file and some installation package for my USB device ,
and some application will be copyed to system via the inf file and run it whe
the installation new device action finished, so I wrote one coinstaller dll
to run my applciation (executible file) when the coinstaller got the
DIF_FINISHINSTALL_ACTION DIF code , but there is one problem when I plug my
USB device into second USB port which my USB device never attached to, it
will show a prompted message to notify me if we would like to install the
driver software for my USB device when my USB device install the driver
automatically . is it normal to show the prompted message box? and can I
avoid the prompted message box to show and also launch my application at the
same time when the device installation finish? Tag: More current for hid device? Tag: 90112
WHQL Logo and Unclassified device
Hello,
Our device is a data card via HSDPA network and be classed to Unclassified
device through DTM tool.
We know we can not use logo after we pass the certification. Can we write
"WHQL pass" on our product's specification documentations or the outside of
box??
I have asked the support contact in Microsoft but he did not give me a
certain answer. I am afraid we may have illegal issue if we wite "WHQL pass".
Does anyone know this???
Thank you & Merry Christmas Tag: More current for hid device? Tag: 90086
converting
I was just wondering if there is a fairly straightforward way to
convert most Windows drivers to other OSes. I'm guessing they are
mostly x86 bytecode consisting of assembly language IN and OUT
instructions. Tag: More current for hid device? Tag: 90079
What does this error mesg mean? When does it appear?
I see the following mesg in windbg at times:
"NdisAllocateNetBufferAndNetBufferList: Pool is NULL"
What does it mean and why/when does it appear?
Regds, Tag: More current for hid device? Tag: 90070
IRP_MN_QUERY_DEVICE_RELATIONS concurrency
Is it possible to receive another IRP_MN_QUERY_DEVICE_RELATIONS for
BusRelations while handling a different IRP_MN_QUERY_DEVICE_RELATIONS
for BusRelations? (say on Windows 2000)
I assumed not because I found no documentation for it. I have seen
that white paper on IRP concurrency, but it failed to mention this
one. I see "context of a system thread" mentioned in the DDK docs,
which makes me think that might be the same system thread that sends
IRP_MN_START_DEVICE, IRP_MN_STOP_DEVICE, and IRP_MN_REMOVE_DEVICE.
Maybe I should just send every PnP IRP through my own worker thread,
then I won't have to think about whether the OS serializes this PnP
IRP or that one and why it does some and not others. I can't imagine
PnP IRPs happen that often, so I can't imagine it'd be any sort of a
performance bottleneck. Tag: More current for hid device? Tag: 90063
Mutual exclusion at passive level
What's the standard way to call routines that are documented to
require passive level inside code that needs to be mutually exclusive
with some other code? A spin lock is out because it raises to DPC
level, and I suppose dispatcher and fast mutexes are out because they
raise to APC level.
This APC level thing is what bugs me. It's sort of like passive level
(preemptive) but sort of not, so maybe it's safe to call passive level
code and maybe it's not. So, does this leave that trick with fast
mutexes of combining KeEnterCriticalRegion and
ExAcquireFastMutexUnsafe, or should I use a worker thread? (which
seems kind of cumbersome)
I wrote a bunch of code that very carefully holds a lock for as short
as possible, grabs some information, does choice parts of its
operations outside, then finally grabs the lock to store the result,
but when I look at it I see it could be so much simpler if there was a
safe way to make the whole large set of operations mutually exclusive. Tag: More current for hid device? Tag: 90062
ObReferenceObject while holding a spin lock
ObReferenceObject can be called at DISPATCH_LEVEL, which means it both
can run at the same IRQL as an ordinary spin lock and that it must not
take very long to run. I can't imagine it calling back into my driver
because it's probably not much more than an interlocked increment.
Any specific reason ("no outcalls" is a little general) why
ObReferenceObject should not be safe to call while holding a spin
lock?
(so that I don't have to go through my code and change some of my spin
lock usage to a fast mutex) Tag: More current for hid device? Tag: 90058
Authenticode and Windows XP 64
When trying to install a driver package signed with Verisign code signing
level 3 certificate in Windows xp 64 systems, I always see the following
error in setupapi.log:
Error 0x800b0109: A certificate chain processed, but terminated in a root
certificate which is not trusted by the trust provider.
The driver package installs correctly in Vista.
I've installed my certificate correctly in the "Trusted Publishers" store
using certmgr.exe
Is it possible to to use Authenticode selfsigned drivers in XP ? Tag: More current for hid device? Tag: 90057
correct "sources" file for debugging?
Hi Experts:
I have a short "sources" file below which seems not generating correct debug
info: driver (testva.sys) size of the debug version is only a bit bigger
than fee build and could not set break point in WinDbg. Could you see
anything incorrect here? What is misssing to generate full debug info?
Thanks in Advance!
Polaris
---------- Sources -------------
TARGETNAME=testva
TARGETTYPE=DRIVER
TARGETPATH=obj
MSC_OPTIMIZATION=/Od
TARGETLIBS= $(DDK_LIB_PATH)\ndis.lib
NTDEBUG=ntsd
NTDEBUGTYPE=windbg
C_DEFINES=$(C_DEFINES) -DNDIS_MINIPORT_DRIVER=1
C_DEFINES=$(C_DEFINES) -DNDIS_WDM=1 -DWINNT -DWIN2000 $(DEBFLAGS)
C_DEFINES=$(C_DEFINES) -DNDIS50_MINIPORT=1
INCLUDES=$(DDK_INC_PATH);
.asm{$O\}.obj: ml /coff /Fo$@ /c $<
SOURCES= testva.c oid.c hExcept3.asm testva.rc Tag: More current for hid device? Tag: 90047
__except_handler3 instead __except_handler4
Hello,
I'm using the Windows Server 2003 SP1 DDK to build my drivers and I
want to build also my MFC applications in the same build process (as I
did it till now with the Windows 2000 DDK).
The DDK has a compiler version 13.x. For the new MFC8 projects from
VS2005 I need a compiler version 14.x from VS2005. I called
vcvarsall.bat from VS2005 in my DDK environment, so I have the new
compiler to build the MFC8 projects. After some changes for
MFC_INCLUDES, MFC_INC_PATH, MFC_LIB_PATH my MFC8 compiles fine with DDK
build.
But I can no longer link my drivers, because __except_handler4 and
__local_unwind4 are unresolved externals. cl.exe 13.x generates code
with __except_handler3, which I can link with wdm.lib. cl.exe 14.x
generates code with __except_handler4, which I can not link with
wdm.lib.
The MFC procject is linked with msvcrtd.lib, whichs contains
__except_handler3 and __except_handler4.
I have looked in the c2.dll of the cl 14.x. There I have found
__except_handler4 and also __except_handler3. So I think, there must be
a way to generate older exception handling with the new compiler.
Who does know a compiler switch to generate older exception handling
(__except_handler3) with the compiler cl 14.x from VS2005?
Thanks, Volker Tag: More current for hid device? Tag: 90032
How to install driver like NDIS on Win XP pro with command line?
Hello,
could anybody tell me how to install a driver like NDIS on windows XP
Pro?
I tried to run this : RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection
DefaultInstall 128 c:\tmp\ndisprot.inf
and got that:
#-011 Installing section [DefaultInstall] from "c:\tmp\ndisprot.inf".
#E360 An unsigned or incorrectly signed file "c:\tmp\ndisprot.inf" for
driver "Network Protocol" will be installed (Policy=Ignore). Error
0xe000022f: The third-party INF does not contain digital signature
information.
#-024 Copying file "c:\tmp\Ndisprot.sys" to
"C:\WINDOWS\system32\DRIVERS\Ndisprot.sys".
#E360 An unsigned or incorrectly signed file "c:\tmp\Ndisprot.sys" for
driver "Network Protocol" will be installed (Policy=Ignore). Error
0xe000022f: The third-party INF does not contain digital signature
information.
#E047 Setting registry key/value: no root specified.
#E065 Parsing AddReg section [Inst_Ndi] in "c:\tmp\ndisprot.inf"
failed. Error 1010: The configuration registry key is invalid.
#E064 Parsing install section [DefaultInstall] in "c:\tmp\ndisprot.inf"
failed. Error 1010: The configuration registry key is invalid.
Please give me a hand.
Thanks
Thibault Tag: More current for hid device? Tag: 90025
Windows VISTA Driver Development Kit.
Hi friends,
I would like to know the site address to download the "Windows VISTA Driver
development Kit".
Thanks,
Shankar B. Tag: More current for hid device? Tag: 90024
Vista IRP_MN_QUERY_POWER
Hi all,
if I faile a IRP_MN_QUERY_POWER request (device or system) by completing the
IRP with STATUS_UNSUCCESSFUL I expect that the system does not enter the
requested sleep state. This was true for Windows 2000/XP. On Vista this error
code is ignored and the system enters S3 or S4 without any request or
warning.
Is this a bug or a new system behavior? The bahavior is different than
discribed in the WDK documentation.
Thanks Guenter Tag: More current for hid device? Tag: 90023
strange problem in windows xp
I am using ECP parallel port in xp .And using port access device driver to
acccess
parllel port extended rigsetres directly . I am reading ECP fifo in
polled mode
programm works well on win98 full time it aslso worls on xp but stops
after some working 5 or 10 miutes I am unable to resolve problem .When i
restarts
program again it begin to work pleas help me in this regard. Tag: More current for hid device? Tag: 90022
Bluetooth HID
Currently the Wii Remote is a very hot topic because it works as a HID
Bluetooth device. Unfortunately it does not work completely with the HID
API and the Windows Bluetooth stack. I use my HID test programs
developed for USB devices and with some of them it is possible to BSOD
the XP Bluetooth stack.
This is probably the uppermost HID driver not checking the parameters. I
have seen that problem with an older Logitech mouse driver.
I do not own a Wii Remote yet so i do not know much yet. Where do i get
information about the problems of the Bluetooth stack? Tag: More current for hid device? Tag: 90021
Can not map the video memory into mapped file in mirror driver
The problem have been resolved by doing as follow:
1. Delete the source code in DrvCreateDeviceBitmap, and just return
NULL.
2. Delete the source code in DrvDeleteDeviceBitmap, and do nothing in
it.
3. For other Drv* functions, call appropriate Eng* functions and return
their value. For example, in DrvText Out, it will just call EngTextOut
and return its value.
Now the new problem is:
1. If the mirror driver's width/height/bitcount are different from
primary driver's, it will still got black image.
--
jarvisbao
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------ Tag: More current for hid device? Tag: 90013
NDIS 5.0 in Vista ?
Hi Experts:
I have a question on NDIS version usable under Windows Vista:
We have been using an NDIS miniport driver writing using NDIS 5.0. Will this
work under Windows Vista? If not, what should I do to make it work in Vista
with minimum change? For example, should I port the driver code to NDIS 5.1
(which is supported by Vista as I read from the web)?
If I port the code to NDIS 6.0, will the driver still work under older
Windows platforms like Windows 2000 and XP?
Thanks for your advises !
Polaris Tag: More current for hid device? Tag: 90007
OID_GEN_SUPPORTED_GUID Query Failure
I am querying a NDIS miniport driver for OID_GEN_SUPPORTED_GUID and it
returns status 0xC00000BB (STATUS_NOT_SUPPORTED). The driver supports
this OID.
I see that the query function is not being called in my NDIS driver.
Is there any reason why this OID could be blocked/not passed on to the
NDIS miniport driver by any other IM/protocol driver?
I tried quering using RawEther and WinPCAP with the same result.
Thanks,
..Ram Tag: More current for hid device? Tag: 90006
iostream
Hi,
I'm using the winddk (6000) to not only develop a WDF driver, but also a
console app that tests out my driver (using IOCTLs). When I include
<iostream> in the console app, the ddk compiler can't find it. I did find it
in c:\winddk\6000\inc\api\crt\stl70. The test app uses classes and "new"
constructs, but I can't seem to include <iostream> for stl::cout and the
like.
Here is my sources file for the app
==============================================================
TARGETNAME=rmgr
TARGETTYPE=PROGRAM
UMTYPE=console
UMENTRY=main
USE_MSVCRT=1
!if defined(DDKBUILDENV)
C_DEFINES = $(C_DEFINES) -DDDKBUILD=1
!endif
TARGETLIBS=$(SDK_LIB_PATH)\setupapi.lib \
$(SDK_LIB_PATH)\user32.lib \
INCLUDES=$(INCLUDES);$(DDK_INC_PATH);
SOURCES= \
rmgr.cpp
RUN_WPP= $(SOURCES) #-func:printf(MSG,...)
=========================================================
thanks in advance for help,
cm Tag: More current for hid device? Tag: 89988
DIFx 2.1: Vista 64-bit signed driver install problem (CM_PROB_DRIVER_FAILED_LOAD)
Hi!
Windows Vista 64-bit build 6000:
I´ve got a signed 64-bit driver package for a PCI device.
A pure .inf installation works without any problems. The device will be
installed properly.
But the device installation fails using DIFx 2.1 on a clean system (device
has not been installed before).
I´ve created a MSI installer using the DIFxAPP 2.1 merge module. The MSI
installation log file reports no
DIFx error message but the setupapi.dev.log file reports:
!!! dvi: Device not started: Device has problem: 0x27:
CM_PROB_DRIVER_FAILED_LOAD.
And Vista prompts with a "Program Compatibility Assistant - Windows requires
a digitally signed driver" dialog.
The MSI installation works only if the device has been installed through a
pure .inf installation before at least.
Looks like that the .cat file will not be copied into the CatRoot
directory?!? I will check that out. And I will try
the same scenario using DPInst.exe instead of the MSI installer, but I
assume that will produce the same problem.
Maybe I am doing something wrong.
I hope that anyone of the DIFx team can help.
Thanks!
-Nick Tag: More current for hid device? Tag: 89972
NDIS6 - state machine and USB questions
Hi everyone,
1. I am writing an NDIS6 virtual miniport driver and I am confused
by the miniport and NDIS behaviour when I am disabling the device
(through device manager).
What happens is that
Ndis calls MiniportPause, than it calls MiniportRestart and after
that it calls MiniportPause again
and finally it calls MiniportHalt.
This confuses me since from what I understood from the state machine
documented at
WDK the sequence should be:
a call to MiniportPause followed by a call to MiniportHalt - no call
to MiniportRestart in the middle
Is the sequence I see in my miniport indicates a problem on it or is
it the normal sequence when
disabling a device?
2. In the future I would like to turn the mninipot into NDIS + KMDF
driver using USB.
I would like to use the ContiniousReader mechanism.
In NdisEdge sample it is written shortly about how to convert the
sample to a USB but it is very
general. So I looked at the WDK and at the osrusbfx2 sample and I
saw that when using it on a
KMDF driver one should do some actions on the following KMDF
callbacks:
EvtDeviceD0Entry (MiniportRestart ?)
EvtDeviceD0Exit (MiniportPause ?)
EvtDevicePrepareHardware (MiniportInitializeEx ?)
EvtDeviceReleaseHardware (MiniportHaltEx ?)
Writing an NDIS+KMDF miniport I don't have these callbacks what are
the NDIS callbacks that
complies to the these KMDF callbacks (I wrote my assumptions in
parenthesis) ?
Thanks
Miki Tag: More current for hid device? Tag: 89965
How to find LowerDeviceObject in DDK MSVAD Audio Sample??
I use MSVAD to develop my own usb audio stream driver. When I want to
CallUSBD, I must have LowerDeviceObject to pass down the IRP. How to
find the LowerDeviceObject?? Tag: More current for hid device? Tag: 89955
[AVStream]: Device is not connected
Hi all,
I can use GraphEdit to build a graph for my video capture driver filter - an
AVStream minidriver. And VMR grants the connection between pins. But when I
"Run" the graph, an error message appears: "Device is not connected. Return
code: 0x8007048f".
In fact, if the real device is connected, the filter will not be inserted
into the graph. It's strange!
Does anyone meet this problem before?
Thanks for your help Tag: More current for hid device? Tag: 89950
Hello,
Is it possible to obtain more than 100mA for an hid device ?
{{{~~~'''' wrote:
> Hello,
>
> Is it possible to obtain more than 100mA for an hid device ?
>
> tia.
>
>
Unless the "device" has a power supply, it will supply nothing.
> Is it possible to obtain more than 100mA for an hid device ?
Step one. Get rid off that annoying name you use. It is much easier to
get professional help if behaving like a professional.
A HID device can get 500 mA if it asks for it. So if you can design your
HID device then it is possible. Keep in mind that 500 mA can be denied
so the device should behave properly in that case.
For an already existing device you bought it is impossible.