"_acrtused" reference error during linking
I am developing an USB installer for windows Me. The API used is 16-bit.
So I used the Win ME DDK's 16 bit compiler and link to build the module.
The compilation looks OK but the following error returned when linking:
------------------------------------------------------------------------------------------------
echo >NUL @removeMe.CRF
d:\WinMEDDK\bin\win_me\bin16\link /NOLOGO /ONERROR:NOEXE /NOD /PACKC:614
40 /ALIGN:16 /STACK:32768 @removeMe.CRF
Object Modules [.obj]: /NOLOGO /ONERROR:NOEXE /NOD /PACKC:61440 /ALIGN:16 /STACK
:32768 obj\i386\free\removeMe.OBJ +
Object Modules [.obj]:
Run File [removeMe.exe]: d:\WinMEDDK\LIB\i386\free\removeMe.EXE
List File [d:removeMe.map]: obj\i386\free\nul
Libraries [.lib]: d:\WinMEDDK\lib\win_me\ +
Libraries [.lib]: d:\WinMEDDK\lib\win_me\SETUPX.LIB+
Libraries [.lib]: d:\WinMEDDK\lib\win_me\NETDI.LIB+
Libraries [.lib]: oldnames libw shell
Definitions File [nul.def]:
obj\i386\free\removeMe.OBJ(removeme.c) : error L2029: '__acrtused' : unresolved
external
NMAKE : fatal error U1077: 'd:\WinMEDDK\bin\win_me\bin16\link' : return code '0x
2'
Stop.
------------------------------------------------------------------------------------------------
Could anyone tell me how to resolve the problem? Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48652
building environment
hello, we are planning to develop a monolithic (OEM) printer driver
for windows 2000/XP and NT, could somebody please explain what are the
software/DDK/etc to be installed for each platform and what is the
sequence?
If you could provide me a link or specific location, it is equally
highly appreciated.
thanks. Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48643
DEVMODE
where is the printer driver's DEVMODE being saved?
thanks in advace. Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48640
CHAT: 64-bit Driver Development
Ask the Experts Online: 64-bit Driver Development
Experts from Microsoft's Core Windows team will be available to answer
questions related to the coding and debugging of 64-bit drivers, including
both x64 and IA-64 platforms. This is an opportunity to get guidance on the
differences between 32-bit and 64-bit driver development.
August 26, 2004
10:00 - 11:00 A.M. Pacific time
1:00 - 2:00 P.M. Eastern time
17:00 - 18:00 GMT
Chat time for cities world-wide:
http://www.timeanddate.com/worldclock/fixedtime.html?day=26&month=8&year=2004&hour=10&min=0&sec=0&p1=234
To add this chat to you calendar:
http://msdn.microsoft.com/chats/outlook_reminders/win_aug26.ics
For more info on MSDN chats, including other upcoming developer chats, chat
archives, and other info see http://www.msdn.microsoft.com/chats Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48638
CHAT: "Designed for Windows" Logo Program
Ask the Experts Online: "Designed for Windows" Logo Program
Do you have a hardware product that does not quite map to the standard WHQL
and Designed for Windows Logo categories? This chat is your chance to get
questions answered about the general device and driver requirements in the
"Designed For Windows" Logo Program that are appropriate for all devices.
August 3, 2004
10:00 - 11:00 A.M. Pacific time
1:00 - 2:00 P.M. Eastern time
17:00 - 18:00 GMT
Chat time for cities world-wide:
http://www.timeanddate.com/worldclock/fixedtime.html?day=3&month=8&year=2004&hour=10&min=0&sec=0&p1=234
To add this chat to you calendar:
http://msdn.microsoft.com/chats/outlook_reminders/win_aug3.ics
For more info on MSDN chats, including other upcoming developer chats, chat
archives, and other info see http://www.msdn.microsoft.com/chats Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48637
Re: Power Management in PASSTHRU
Thanks Maxim. I think I found the thread you're referring to. There
certainly was good information there. I now know, among other things,
that MPHalt can be called without PtUnbind ever being called.
Unfortunately, however, it didn't address my issue. I believe my
question boils down to this:
1. Does NDIS serialize PNP events with respect to send/receive paths?
2. If not, is it a requirement that a packet does not leave the driver
from an edge that is in low power?
If the answers are 1)no and 2)yes, as I suspect they are, then I
believe we have a bug in the PASSTHRU driver.
As always, I am very grateful for any insight anybody may have on this.
Cheers,
Eric
Maxim S. Shatskih wrote:
> The topic of power management paths in PASSTHRU (both NT's and CE's)
was
> well discussed here around February, and Alireza have provided the
good answers
> to my questions.
>
> Maybe this can be found in some newsgroup archive.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
>
> "Eric Brueggemann" <eric.brueggemann@gmail.com> wrote in message
> news:cd6ib9$nrv@odah37.prod.google.com...
> > Hi,
> >
> > Just wondering if anybody has any thoughts about the MPDeviceState
> > issue I raised. Either I'm confused or it seems that the code and
docs
> > disagree. Which should I treat with more respect?
> >
> > Any guidance you can offer is appreciated.
> >
> > Thanks,
> >
> > Eric
> >
> > PS. Sorry for the self-followup...
> >
> >
> > Eric Brueggemann wrote:
> > > Thanks Ali. I'm looking forward to hearing what you find out.
> > >
> > > Cheers,
> > >
> > > Eric
> > >
> > >
> > > Alireza Dabagh [MS] wrote:
> > > > You may be right and this initialization based on a query might
not
> > > be the
> > > > right thing to do. We'll investigate this (and the other
variable
> > > protection
> > > > issue you brought up.)
> > > >
> > > > -thanks, ali
> > > >
> > > > --
> > > > This posting is provided "AS IS" with no warranties, and
confers no
> > > rights.
> > Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48636
Reference Code for Driver Development
Is it advisable to refer and use as a template the plotter driver source code provided in the Windows 2000 DDK to develop an OEM printer driver?
thank you. Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48633
IoBuildPartialMdl bluescreen
I allocate 'targetMdl' of 2048 bytes and then build a partial Mdl to
map 2048 bytes. I get blue screen like " not large enough to map the
entire range of addresses". If I want to map 2048 bytes, is mapping
Mdl of 2048 not enough.
Following prints clearly show I used AllocateMdl 2048 bytes and
PartialMdl 2048 and blue screen error. If I allocate 4096 and then
BuildPartialMdl with 2048, everything works fine. I dont understand
why it blue screens for 2048.
My Code :
address = (ULONG_PTR)MmGetMdlVirtualAddress(Irp->MdlAddress);
TRACE(TL_ERROR,(" AllocateMdl Fragment Size %d
",pBatchFrag->Tbl[0].FragSize));
FgMdl = IoAllocateMdl((PVOID)address, 2048, FALSE, FALSE, NULL);
FragSize = pBatchFrag->Tbl[0].FragSize;
TRACE(TL_ERROR,(" BuildPartialMdl Fragment Size %d ",FragSize));
IoBuildPartialMdl(Irp->MdlAddress, FgMdl, (PVOID)address, FragSize);
(Orignal MDL is still valid. Error is about Mdl size)
*****************************************************************************
AllocateMdl Fragment Size 2048 BuildPartialMdl Fragment Size 2048
AllocateMdl Fragment Size 2048 BuildPartialMdl Fragment Size 2048
*** Fatal System Error: 0x00000040
(0x00000000,0x00000000,0x00000000,0x00000000)
Break instruction exception - code 80000003 (first chance)
A fatal system error has occurred.
Debugger entered on first try; Bugcheck callbacks have not been
invoked.
A fatal system error has occurred.
Connected to Windows XP 2600 x86 compatible target, ptr64 FALSE
Loading Kernel Symbols
....................................................................................................
Loading unloaded module list
..........................................
Loading User Symbols
*******************************************************************************
*
*
* Bugcheck Analysis
*
*
*
*******************************************************************************
Use !analyze -v to get detailed debugging information.
BugCheck 40, {0, 0, 0, 0}
*** ERROR: Module load completed but symbols could not be loaded for
sfbXp.sys
*** ERROR: Module load completed but symbols could not be loaded for
ohci1394.sys
Probably caused by : sfbXp.sys ( sfbXp+138a2 )
Followup: MachineOwner
---------
nt!RtlpBreakWithStatusInstruction:
805103fa cc int 3
kd> !analyze -v
*******************************************************************************
*
*
* Bugcheck Analysis
*
*
*
*******************************************************************************
TARGET_MDL_TOO_SMALL (40)
A driver has called the IoBuildPartialMdl() function and passed it an
MDL
to map part of a source MDL, but the target MDL is not large enough to
map
the entire range of addresses requested. This is a driver bug. The
source
and target MDLs, as well as the address range length to be mapped are
the
arguments to the IoBuildPartialMdl() function, i.e.; Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48631
NDIS Prism2
I am looking to add some functionality to an 802.11 card so that I may
put it into some of the test modes that the firmware supports but
windows doesn't.
what do I need to do/where should i look to get example prism2 chipset
NDIS miniport code. I feel like it should only be a minor addition to
the driver to make it work, but I don't want to have to write the
driver over from scratch.
any thoughts/help would be greatly appreciated.
thanks,
brad Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48625
Re: Power Management in PASSTHRU
Hi,
Just wondering if anybody has any thoughts about the MPDeviceState
issue I raised. Either I'm confused or it seems that the code and docs
disagree. Which should I treat with more respect?
Any guidance you can offer is appreciated.
Thanks,
Eric
PS. Sorry for the self-followup...
Eric Brueggemann wrote:
> Thanks Ali. I'm looking forward to hearing what you find out.
>
> Cheers,
>
> Eric
>
>
> Alireza Dabagh [MS] wrote:
> > You may be right and this initialization based on a query might not
> be the
> > right thing to do. We'll investigate this (and the other variable
> protection
> > issue you brought up.)
> >
> > -thanks, ali
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no
> rights. Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48622
dumping packet contents from USB driver for debugging
Hi,
In my usb driver , i have ot communicate isochronous data to a USB
device .
Before calling the IOCallDriver for the lower level Windows provided
drivers , i make the requiest packets , and fill the usual structs etc
including Urb.UrbIsochronousTransfer.IsoPacket[]'s length and offset
parameters , but the memory they are using is in an MDL structure .
Is there a way to dump the content of each packet in the IsoPAcket
array , into a debugger?
Can this be done by enabling the tracing level of any lower level
windows USB driver stack component? can and should this be done is my
USB driver?
regards
Taha Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48610
checked builds of USB components for Windows 2000 and XP
Hello,
i need to get the chedked builds of USB components for Windows 2000
and XP , are they available on microsoft.com free of charge?
what is the mechanism for obtaining these?
regards
Taha Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48609
Detecting process termination
Hallo,
is there a way to
1) obtain the process id of the process that's calling ioctl on my wdm
driver
2) monitor that process and get a notification when it exits/crashes ?
thank you. Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48605
call stack params in softice?
Why there's no params of functions in call command in softice, i mean just
this 3 Dwords? .Anybody know how to enable it? Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48597
Mirror Display Driver creating many updates on mouse move
hi all
we developed a Mirror Display Driver.
However, DrvCopyBits is invoked all the time.
This is bad!
how can i fix this?
assaf Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48596
c funcs
why shldnt one use c functions such strcmp, stricmp in kernel mode?
venkat Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48586
NT4 kernel mode oemuni printer driver
Hello,
After searching a bit, I got a checked build NT4 SP6, I got the
unidrv4.dll,uni4ui.dll and unires.dll
Directory of E:\SUPPORT\PRINTERS\I386
09/01/1999 02:15a 393,488 UNI4UI.DLL
09/01/1999 02:18a 400,208 UNIDRV4.DLL
09/01/1999 02:18a 623,888 UNIRES.DLL
3 File(s) 1,417,584 bytes
I copied these files and put them in oemdll directory. I renamed them to
unidrv.dll,unidrvui.dll.
Now I went to the XP ddk and built the koemuni.dll. I tweaked up the
oemdll.inf in the \oemdll directory of the XP ddk to point to the
koemuni.dll instead of oemuni.dll.
Now I do the Add printer steps and finally it lands with a failure dialogbox
on windows 2000 saying:-
---------------------------
Add Printer Wizard
---------------------------
Printer driver was not installed. Operation could not be completed.
---------------------------
OK
---------------------------
"D:\WINDDK\2600\src\print\oemdll\oemdll.htm" says:-
"However, the Windows NT® 4.0 printer driver files will either need to be
copied to the local directory containing Oemdll.inf, or during installation,
you will need to point to the location where these files may be found. For
the kernel-mode samples to work, the kernel-mode drivers (the Windows NT 4.0
drivers) used most support COM OEM Printer Customization DLL extensions,
while the driver files in Windows NT 4.0 Service Pack 4 and earlier do not."
I do this on a windows 2000 machine.Am I using a wrong version of
unidrv4.dll and uni4ui.dll,etc.
thanks
vipin Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48583
how apc work?
I've read that after kernel has queued apc in destination thread it request
software interrupt at apc level. All threads execute at irql<=1 so how is it
made?. Is it that nothing happens with apc queued calls until irql drops
below 1(to 0) to start apc interrupt and than we are in some thread. What
will happen if apc is in other thread. Is kernel checking all threads in
system for threads with apc and executing them and after processing all apc
releases interrupt or how it works? Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48581
howto determine raid volumes ?
Hi,
how can i programmatically determine if a storage volume is on a Raid
Array ? -and gather information about what type of Raid etc. ? Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48580
how to send PCM data to sound card for stream driver??
Hi
can anyone tell me how to do this ??
my hardwave can capture sound data form microphone and translate it to
PCM format,and then use DMA send it to PCI, The stream driver say it
can send data
to sound card directly,how to do it??
Second
when AdapterCancelPacket is received , if I have multiple same
stream,how to
identify it?? how do I know which one need to cancel ??
I have put a variable "StreamID" in my stream_extension,but I cann't
got my streamID form
(PSTREAMEX)pSrb->StreamObject->HwStreamExtension->StreamID;
how to do it??
Thanks a lot Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48579
printer driver -> font much too small
Hi
In the DrvTextOut function of my virtual pritner driver I'd like to
calculate the font size (in device units) that I have to pass to the
CreateFont function to replay the recorded print job. Now... how do I
calculate this?
like this:
IFIMETRICS *ifFnt = FONTOBJ_pifi(pfo);
XFORMOBJ *xFrmObj = FONTOBJ_pxoGetXform(pfo);
XFORML xFrm; XFORMOBJ_iGetXform(xFrmObj, &xFrm);
float eXScale = sqrt(xFrm.eM11 * xFrm.eM11 + xFrm.eM12 * xFrm.eM12);
float eYScale = sqrt(xFrm.eM22 * xFrm.eM22 + xFrm.eM21 * xFrm.eM21);
int SizeInDeviceUnits = (int)(0.5 + (eYScale * ifFnt->fwdUnitsPerEm));
well, this code is not invented by me... I got it from
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q264243
ok, they calculate the point font size... so the Size they calculate is
iTmp = (int)(0.5 + eYScale * fwdUnitsPerEm * 72) / sizLogResPpi;
Now the problem: The calculatet font size is about 10% too small. ... can
someone explain me why? I mean, 10% is not nothing... could this have to do
with the resolution of my device? ... any ideas how to find out what's wrong
here?
thanks a lot
MR Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48578
How to use RegisterDeviceNotification()
I am writing an utility that wants to get the pnp notification.
When I use the function, RegisterDeviceNotification(), the returned value
is: 1066 (ERROR_SERVICE_SPECIFIC_ERROR, The service has returned a
service-specific error code.)
Here is the source code I wrote:
DEV_BROADCAST_HANDLE filter = {0};
filter.dbch_size = sizeof(filter);
filter.dbch_devicetype = DBT_DEVTYP_HANDLE;
filter.dbch_handle = m_hDriver;
m_hHandleNotification = RegisterDeviceNotification(m_hWnd, &filter,
DEVICE_NOTIFY_WINDOW_HANDLE);
Do I make mistake somewhere?
Any suggestion is appreciated.
Thank you
Ivan Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48577
Can I use OIDs query and set in Windows Limited User mode
Dears
I've tried CreateFile with device GUID but fail in Limited User mode , can I overcome
this issue writing Windows NDIS network driver interface ?
Thanks a lot .. Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48575
another question for using ntstrsafe.lib
while using ntstrsafe.lib in my w2k driver I get the following error :
ntstrsafe.lib(wctomb.obj) : error LNK2019: unresolved external symbol _RtlUnicodeToMultiByteN@20 referenced in function _wctomb
ntstrsafe.lib(mbtowc.obj) : error LNK2019: unresolved external symbol _RtlAnsiCharToUnicodeChar@4 referenced in function _mbtowc
My DDK build is windows xp DDK 2600.1106
What could be the problem
TIA Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48572
signing a driver for a multiport serial device
I want to get my driver for a multiport serial device signed by
Microsoft.
However, multiport serial devices do not fall into any of the device
categories listed at
http://www.microsoft.com/whdc/hwtest/device/default.mspx
Is there any chance to have this driver signed?
Slawomir Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48565
PnP test tool report registry error even though it runs fine
The driver is for a special disk controller. It is witten based on a floppy disk controller model and runs fine. But after running the test using the PnP test tool provided with the WinXP DDK, it does not work any more.
Test result in PnP test tool shows under PROBLEM INFORMATION: case CM_PROB_REGISTRY.
Under device manager, the device show in General TAB: "Windows cannot start this hardware device because its configuration information (in the registry) is incomplete or damaged (Code 19)"
According to the doc in the DDK, the cause to this is said: "This error message occurs when a device has more than once service defined, if there is a problem opening the Service key, or if you cannot locate the driver name from the Service key"
I looked in the registry, and found only one ImagePath for this device
And the path is correct.
Any suggestion is appreciated.
Thank you
Long Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48561
INF File to instal a driver
I wrote a custom printer driver. I used the dlportio driver to talk to the prarallel port. The problem is dlportio has to be install in order for my driver to work properly. How do I install dlportio as part of my printer driver installation without having the user to install it separately? Can I include that in my inf file?
--
Oreo Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48544
HCT surprise removal failure
I am running the surprise removal test on a smartcard reader driver. It
failed with the following message in the test log:
Variation 1:
Starting test 0
PCI\VEN_8086&DEV_2444&SUBSYS_0074A0A0&REV_05\3&13C0B0C5&0&FC
| ID=USB\VID_0ACD&PID_0401\5&331A1505&0&2
| Friendly Name=....
| DevDesc=...
| Test Interface=(null)
| PnP
Interface=\\?\USB#Vid_0acd&Pid_0401#5&331a1505&0&2#{50dd5230-ba8a-11d1-bf5d-
0000f805f530}
|Surprise Removed FAILED 0x13
What does this error code 0x13 mean? I searched the HCT document and came up
empty. Somebody out there know what this is all about?
Thanks, Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48540
USB selective suspend assertion 9.20.6
I am running this test on a USB smartcard reader. The test appeared to have
failed the following assertion:
490.460 : VAR[INFO ] 0 : Assertion 9.20.6: Bus Initialization
490.460 : VAR[INFO ] 0 : Device with ID 0ACD/0401 found in tree but tree
must be at least 1 external hubs deep but not more than 2 external hubs
deep.
490.460 : VAR[SEV1 ] 0 : Assertion 9.20.6:
490.460 : +VAR+SEV1 0 : Assertion 9.20.6: Ends
Note: Assertion 9.20.6 is not described in HCT documentation.
Call somebody shed some light on this? Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48538
ISR problem with my own com-port FDO-driver
hello,
i'm currently working on a simple fdo-driver to replace serial.sys on my
win2k machine.
the driver only has to read/write over COM-port, but needs a special isr.
the serial-source from the ddk is very complex and does not properly
build, so i thought to
make my own serial-driver.
the main problem is:
within the function to handle the pnp-irp IRP_MN_START_DEVICE i want to
connect my isr.
it seems to work (the debug-msg tells me so). but i can't notice any
call of this isr.
so far the driver can read/write over the com-port, but only on
IRP_MJ_READ/_WRITE.
now i need an isr to read when data is available. i set the appropriate
register values
(interrupt enable = 0x01) but nothing happens when uart receives a byte.
what am i doing wrong?
i would be very happy about any suggestions, because i couldn't crack
this prob for nearly a week :(
thanks
here my code of the interrupt connection:
=========================================================================================
NTSTATUS HandleStartDevice( IN PDEVICE_OBJECT pDO, IN PIRP pIrp )
{
USHORT IntMode;
...
PCM_RESOURCE_LIST pResourceList;
PCM_FULL_RESOURCE_DESCRIPTOR pFullDescriptor;
PCM_PARTIAL_RESOURCE_LIST pPartialList;
PCM_PARTIAL_RESOURCE_DESCRIPTOR pPartialDescriptor;
int i;
NTSTATUS status;
// ---------- get resource list from irpstack-location ---------------
pResourceList =
pIrpStack->Parameters.StartDevice.AllocatedResourcesTranslated;
pFullDescriptor = pResourceList->List;
pPartialList = &pFullDescriptor->PartialResourceList;
for (i=0; i<(int)pPartialList->Count; i++)
{
pPartialDescriptor = &pPartialList->PartialDescriptors[i];
switch (pPartialDescriptor->Type)
{
case CmResourceTypeInterrupt:
pDevExt->IRQL = (KIRQL)pPartialDescriptor->u.Interrupt.Level;
pDevExt->Vector = pPartialDescriptor->u.Interrupt.Vector;
pDevExt->Affinity = pPartialDescriptor->u.Interrupt.Affinity;
if (pPartialDescriptor->Flags & CM_RESOURCE_INTERRUPT_LATCHED)
IntMode = Latched;
else
IntMode = LevelSensitive;
break;
case CmResourceTypeDma: break;
case CmResourceTypePort:
pDevExt->portBase = (PUCHAR)pPartialDescriptor->u.Port.Start.LowPart;
pDevExt->portLength = pPartialDescriptor->u.Port.Length;
break;
case CmResourceTypeMemory: break;
} /*switch*/
}/*for*/
// ----------------------check resources-----------------------
if (pDevExt->IRQL == 0 || pDevExt->portBase == 0)
return STATUS_BIOS_FAILED_TO_CONNECT_INTERRUPT;
// -------------------------connect interrupt---------------------------
status = IoConnectInterrupt(
&pDevExt->pIntObj, // interrupt-object
MyIsr, // ISR
pDevExt, // context for ISR
pDevExt->pSpinLock,// no spin lock
pDevExt->Vector, // vector
pDevExt->IRQL, // DIRQL
pDevExt->IRQL, // DIRQL
(KINTERRUPT_MODE)IntMode, // Latched
TRUE, // interrupt shareable
pDevExt->Affinity, // processor-affinity
FALSE ); // fp-register
#if DBG
switch(status)
{
...
DbgPrint("..");
...
}
#endif
pDevExt->state = Started;
return PassDownPnP(pDO, pIrp);
} Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48536
Compliance Test Suite (for USB 2.0 device) Fails (Enumeration Test)
Hi all,
I tried to run the compliance test suite (Command Verifier)
for our USB 2.0 device, all the tests expect Enumeration test
(last test) passed successfully.
But the Enumeration test always fails in the zeroth iteration.
If the test suite was run in 'debug mode', the Enumeration test
passes for any number of times. But in the 'Compliance test'
mode, all the enumeration sequences (like Reset, Get Device
descriptor, Set Address, Get Configuration descriptor)
runs for one time perfectly and device responds to them with
appropriate data and status stage was also completed sucessfully.
But after this there is no other responds from the host, and the test
was initimated as failed. In the report, it was mentioned "Enumeration
test fails at iteration 0"
Required Suggestions.
Thanks
VCSViswa Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48535
printer driver epson stylus 800 color
Can anyone here help me to a printerdriver for my old
Epson stylus color 800 printer.
My operating system is Windows XP
I can"t find anyone good working driver for this printer on the net?? Not
even on the Epson-site.
Thanks, - Bert Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48532
Monitoring Remote File System Access
Hi,
i'm working on a project where i have to monitor remote file system access at the TDI Level. I have trouble to do this, because it seems that some data is transmitted to the remote side without using TDI_SEND.
Following happens:
a TDI-Client established a tcp-connection to the remote-side on port 139 and sent data (using TDI_SEND).
On a data indication from the remote site (TDI ClientEventReceive) data is sent back to the remote site by using a function other than TDI_SEND.
To monitor the traffic i use a filter-driver, loaded after tcpip.sys and before netbt.sys. In addition i tried a driver which hooks the dispatch-table of tcpip.sys, both driver doesn't show the second data transmission.
How can i monitor the second (and i believe further) data transmissions
Thanks,
Jens Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48526
How to create a network bridge in windows xp?
How can i write a program to create a network bridge in windows xp?
Thanks Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48525
Disabling interrupts for all processors on SMP
Yes, certainly it is really bad idea: But I need update the configuration of
a SuperIO-chip (setup watchdog timer), so it is necessary.
On UP-system it is really simple, but on MP an interrupts must be
disabled synchronously on all processors. Otherwise any interrupt raised on
the "live" CPU may cause an IPI (Inter-Processor Interrupt) to the other
"frozen" CPU, and the system will hang. Unfortunately NT kernel hides IPI
inside, and doesn't have suitable facility to do such task on SMP.
Currently I implemented this by DPCs with interlocked-frozen loop, but it
takes up to 100-1000 iterations on the each CPU for entering into target
"irq-safe" mode. Perhaps someone knows the better solution? Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48524
Handling IRP_MN_QUERY_ID
for my usb generic parent driver ,what should I return for this IRP for BusQueryInstanceID,
I read in DDK that bus driver should supply a string that contains the instance ID for the device. ,what should be the instanceID for the PDOs on my device ?
should I just make them up like 1,2,3 etc ...? Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48521
OS found the new hardware when I only remove board to another slot
Hello,
I am writing a XP/Win2000 PnP PCI-bus driver.
I found out the next problem: When I remove the board to another PCI slot
an operation system
behaviors like it finds the new harware and asks me to install a driver.
But the diver was already installed!
Thanks
Victoria Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48517
Debugging drivers
Hi,
I am new to windows device drivers. I want to debug the driver i have
written. I have with me 4 cds with windows 2k symbols. do i have to install
all cds or is it ok if install only the last cd windows 2ksp4 symbols, as i
have installed sp4 om my pc.
TIA
Narendra Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48515
builld
I wantd to include some .objs (from previous compiled directory)while linking my driver code. is it possible to do in the sources file of windows build? Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48513
passthru problem
hello all,
i am working with passthru ndis im driver. i was trying to get the incomming and outgoing packet data , send it to a peer driver for processing, get it back and then send the data along its original path. i was copying the data from MPSend() and PtReceivePacket() functions into a local packet and scheduling it to be processed later and retransmitted. after a lot of travail (some of you would have seen my postings :) ), i managed (with a lot of help from this forum) to get the two systems ping each other. i can also explore one system from the other a little bit but the problem is that when i try to access a little larger folder or file the process hangs for some time and after some time an error message pops up saying that make sure that the file exists on the target drive. when the process is waiting my debug traces also halt and it looks like that no activity is going on. can any body throw some light as to what may be happening here ?
it also does not pings greater than a certain number of bytes. i guess it has something to do with the MTU but i also smell some link between this problem and the above one ? can somebody help me out here ?
thanks and regards. Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48510
PCI Bus Filter driver to read config space?
Hi All!
I'm trying to port an app which dumps PCI config space info on Win2K3.
I understand you can no more use HALGetBusData in Win2K and beyond. To
use "interface" methods suggested in MS KB articles,you need the PDO.
If you are going to dump config space of arbitary devices, how do you
obtain PDO to read config space?
Will writing a PCI bus filter driver solve this?
--
Thanks,
Elam
"Experience is an expensive school" - Twain. Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48505
Registering Interfaces
I am developing a driver for a PCI device that has multiple communication channels. In an attempt to have each channel opened and used individually I have tried registering an interface for each channel in the AddDevice routine; that way a different handle may be used for each channel. However, enumeration of the interfaces in an application does not locate all of those registered in the driver. Should I even be using multiple interfaces or should I name my device object and subdivide its namespace for each channel? Thank you for your time. Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48495
upgrade driver???
Does anyone have sample of how to upgrade an imediate driver?
Any help are appreciated...
Thanks,
Hannah Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48488
What about mapping sections to system addresses?
I have a small piece of code which creates section for ntdll.dll and maps it
to the system addresses. But W2K and XP after running this code becomes
unable to run new processes. It looks like ntdll.dll completely unmapped
from the system.
But on Windows Server 2003 all seems work fine.
If comment out calls to MmMapViewInSystemSpace/MmUnmapViewInSystemSpace then
all is okay.
If SEC_IMAGE substitute to SEC_COMMIT then again all is okay.
What is wrong?
NTSTATUS foo( VOID )
{
UNICODE_STRING FileName;
OBJECT_ATTRIBUTES ObjectAttributes;
IO_STATUS_BLOCK IoStatusBlock;
PVOID SectionObject;
HANDLE FileHandle;
HANDLE SectionHandle;
PVOID Base;
UINT Size;
NTSTATUS Status;
RtlInitUnicodeString( &FileName, L"\\SystemRoot\\system32\\ntdll.dll" );
InitializeObjectAttributes(
&ObjectAttributes,
&FileName,
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
NULL,
NULL );
Status = ZwCreateFile(
&FileHandle,
GENERIC_READ,
&ObjectAttributes,
&IoStatusBlock,
NULL,
0,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
FILE_OPEN,
0,
NULL,
0 );
if( Status != STATUS_SUCCESS )
{
return Status;
}
InitializeObjectAttributes(
&ObjectAttributes,
NULL,
OBJ_KERNEL_HANDLE,
NULL,
NULL );
Status = ZwCreateSection(
&SectionHandle,
SECTION_MAP_READ,
&ObjectAttributes,
NULL,
PAGE_READONLY,
0x01000000, // SEC_IMAGE
FileHandle );
if( Status != STATUS_SUCCESS )
{
ZwClose( FileHandle );
return Status;
}
Status = ObReferenceObjectByHandle(
SectionHandle,
SECTION_MAP_READ,
NULL,
KernelMode,
&SectionObject,
NULL );
if( Status != STATUS_SUCCESS )
{
ZwClose( SectionHandle );
ZwClose( FileHandle );
return Status;
}
Base = NULL;
Size = 0;
Status = MmMapViewInSystemSpace( SectionObject, &Base, &Size );
ObDereferenceObject( SectionObject );
if( Status != STATUS_SUCCESS )
{
ZwClose( SectionHandle );
ZwClose( FileHandle );
return Status;
}
MmUnmapViewInSystemSpace( Base );
ZwClose( SectionHandle );
ZwClose( FileHandle );
return STATUS_SUCCESS;
} Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48481
USB Driver
Hi,
I need to develop a WDM driver for a touch screen (Thro an controller)
connected to an USB port. I have the necessary tools like the latest DDK.
may I have some examples (in C/C++)? Also can i get some links to tutorial
regarding this.
TIA
Narendra Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48467
FileSystem Driver: files in explorer are not sorted correctly
I am developping a FileSystem Driver and i ha ve strange behavior when I use
explorer on my driver. when I go in a directory of my filesystem, I have the
file and directory that are sorted alphabetically and together :
I Have :
A1.txt
A2.txt
Dir1
Dir2
Dir3
Z1.txt
Z2.txt
instead of:
Dir1
Dir2
Dir3
A1.txt
A2.txt
Z1.txt
Z2.txt
when I implement IRP_MJ_DIRECTORY_CONTROL/FileBothDirectoryInformation
I return in FILE_BOTH_DIR_INFORMATION.FileAttributes
FILE_ATTRIBUTE_DIRECTORY when my item is a directory and
FILE_ATTRIBUTE_NORMAL for a file.
Explorer display my directory with good icon and I can enter in, but only
the sort is not working well.
I create my device as a FILE_DEVICE_NETWORK_FILE_SYSTEM (same with
FILE_DEVICE_DISK_FILE_SYSTEM) for avoid requests for subfolder.
Have you any idea where I miss some informations to send from my driver ?
Thanks.
--
Kurt Crawford Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48464
Handling IRP_MN_QUERY_BUS_INFORMATION
In my usb generic parent driver for win 2K ,how should I handle this IRP for the PDO ?
what info should I return ? is the following ok
busInfo->BusTypeGuid = GUID_BUS_TYPE_USB;
busInfo->LegacyBusType = PNPBus;
busInfo->BusNumber = 0; Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48463
NT4 unitool sMaxPhysWidth limitation
Hello,
I was trying to modify a minidriver sample HP laserjet III in NT4 ddk
by adding a 2400 dpi resolution. I see that the
PrinterData-->ModelData-->sMaxPhysWidth in unitool.exe can't take more than
32767 master units. So at 2400 dpi through the unitool.exe, I can't give
support for a paper size more than 32767/2400 = 13.6" at 2400 dpi. Can
someone tell me if this a limitation with the NT4 GPC based mindrivers or
with unitool.exe? If so, Is there a work around?
If I see there is no solution with minidriver, then I would use the
monolithic solution.
thanks
vipin Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48462
hidden flag for device manager from devmgmt.msc
hello,
i believe i saw some info once about a hidden command line or
environment variable flag that is passed to device manager when it is
invoked through command line through devmgmt.msc , this flag i believe
adds a new tab in the property sheet that shows more info about each
device
regards
Taha Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48460
w2k intermediate driver binding
I have a mux-intermediate driver, which binds over ethernet adapters. Now i
want to
selectively bind it. That is, i want it to bind only over our PCI device,
and not bind
over other vendor's devices.
Any idea how i can do this? I try to give an error code from the Notify
Object's
"QueryBindingPath", but this doesn't seem to work. It only disables the
binding,
but it does not stop the binding from hapenning.
Regards,
Anand. Tag: What is different between \Device\Ip and \Device\RawIp? (empty) Tag: 48453
--
Remove spam4 from the spam4leo@yuriev.ru to reply.
But raider@leo.yuriev.ru is for spam only :-)