Is DrvEnableDriver exported by default?
Hi! I am trying to use EngLoadImage and
EngFindImageProcAddress to install a "filter" driver
around a third party display driver. When I use
dumpbin.exe /EXPORTS "dispdll_001.dll" (a utility that
ships with VStudio6), it returns no exported functions. So
how can I call the DrvEnableDriver function of the main
driver from my "filter" if its not exported by the main
driver's dll? The main display driver that I am trying to
link to is S3 Trio32/64. I also tried with nvidia geforce4
driver and it doesn't export DrvEnableDriver either.
It states on the msdn documentation that DrvEnableDriver
must be exported by the driver dll. Well, I guess it makes
sense since GDI as to link to it, but in that case
shouldn't the exported function appears when I run
dumpbin.exe? I'm just completely lost, that's all!
Thanks in advance for your reply. Tag: Call ACPI Method. How? Tag: 29638
[Q] Checked build ndis.sys file
Hello, every one.
I'm trying to test my driver for WHQL test, but it require Ndis.sys file for
HCT 11.2 at WinXP.
Where can i get checked build ndis.sys file?
Should i purchase it or is it included in HCT test kit or XPDDK?
Thank you for your information in advance.
//DAUM Tag: Call ACPI Method. How? Tag: 29634
Installing DiskPerf.sys on disk drive!
Hello,
I am trying to install the "DiskPerf.sys" filter driver using
addfilter utility, but everytime I install it on devices listed by
addfilter (addfilter /listdevices), the system fails to boot.
The DiskPerf.sys help file mentions that the addfilter utility needs
to be changed to install the filter driver, does anyone knows what
need to be changed.
I am using the following command line to install the Diskperf.sys as
an upper filter;
addfilter /device \Ide\IdeDeviceP0T0L0-3 /add diskperf.sys
and
addfilter /device \HarddiskVolume1 /add diskperf.sys
Any help would be highly appreciated.
Thanks,
WD Tag: Call ACPI Method. How? Tag: 29628
EngLoadImage and function pool?
Hi. Lets suppose a display driver would load an existing
dll into its memory using EngLoadImage. Would that image
be limited to call EngXXX functions as is the case for a
display driver, or can the image call any kernel
function? What I'm really trying to do is access the
registry from my display driver but there doesn't seem to
be any supported function for this!! so I was thinking of
loading an image that uses ZwOpenKey and calling it from
my driver. Can this be done or is there a simpler way?
Thanks in advance. Tag: Call ACPI Method. How? Tag: 29623
Win SP1 XP DDK error
Can someone tell me what the following error means:
Linking c:\sio0_ezmon directory ********************
'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1
NTTEST= UMTEST= 386=1'
NMAKE : U1073: don't know how to make 'C:\WINDDK\lib\i386
\free\usbd.lib'
I am trying to rebuild one of Cypress's USB drivers using
the Windows XP SP1 DDK in a checked environment can't
figure this one out. Thanks. JSS Tag: Call ACPI Method. How? Tag: 29621
im crash
I have an NDIS filter that works on "most" machines. However, on a couple
machines we get a nasty crash:
BugCheck D1, {0, 2, 0, 0}
Stack trace:
ChildEBP RetAddr Args to Child
eb823974 8042c0c3 00000003 eb8239bc 00000000
nt!RtlpBreakWithStatusInstruction (FPO: [1,0,0])
eb8239a4 8042c487 00000003 00000000 00000000 nt!KiBugCheckDebugBreak+0x31
(FPO: [Non-Fpo])
eb823d30 8046856f 00000000 00000000 00000002 nt!KeBugCheckEx+0x390 (FPO:
[Non-Fpo])
eb823d30 00000000 00000000 00000000 00000002 nt!KiTrap0E+0x27c (FPO: [0,0]
TrapFrame @ eb823d4c)
eb823dbc eb823dec bfb4fdd2 81f92c50 81f4df08 0x0
WARNING: Frame IP not in any known module. Following frames may be wrong.
00010246 00000000 00000000 00000000 00000000 0xeb823dec
In the stack trace, on the second-last line, the value "81f92c50" is the
pointer to the adapter structure we allocated and passed as the
"ProtocolBindingContext" to NdisOpenAdapter(). This happens during bootup,
after the BindAdapter() calls finish successfully but while the system is
still coming up - we're getting bunches of QueryInformation() and
SetInformation() OID's. To me it looks like someone is dereferencing a null
function pointer. Any ideas who or why?
Thanks,
Warren Tag: Call ACPI Method. How? Tag: 29606
How do I periodically update my driver during development?
I'm new to the DDK. I've never developed any drivers. I
have the XP DDK.
We have developed a custom PCI card (64-bit @ 66 MHz).
We need to develop a throw-away driver that tests our
hardware/firmware design.
My driver needs only simple functionality.
1) Master true 64-bit transfers accross the PCI bus.
2) Allow our custom card to master single 64-bit transfers
back into PC memory.
I don't need to handle interrupts. My application will
periodically check for a transfer.
3) Control multiple cards.
Our target machine is a Dell Xeon Precision 650 under
Win2K. It is a 32-bit machine with a couple of 64-bit PCI
slots.
I've watched the DDK videos and begun architectural tests
on the toaster func example. For my first test, I've
added three integers to the device extension and defined
control codes for getting and setting each.
How do I periodically update my driver during development?
I seem to recall Brian Catlin suggesting that I need only
install the driver once. After that, I can simply copy
toaster.sys to C:\WINNT\system32\drivers. I can't get
this to work on Win2K. I have to update the driver from
the Device Manager using the inf file AND reboot the
system. Is there a better way? Tag: Call ACPI Method. How? Tag: 29605
Starting and Stopping a driver
Hi,
NT4 had a panel to start and stop drivers without rebooting. Where can I
find this panel in Win2000 ?
It seems to no longer exist... so how can I do start and stop a driver now ? Tag: Call ACPI Method. How? Tag: 29597
HID Report
Maximum packet size for low speed devices over interrupt
endpoint is 8 bytes. Can I use reports longer than 8
bytes? How do I have to format such reports? Can I use
report ID field for such long reports ?
Thanks. Tag: Call ACPI Method. How? Tag: 29588
is wmi supported by display drivers?
Since display drivers are not "normal" wdm drivers, I
would like to know if they support windows management
instrumentation (WMI)?
Also, is wmi bidirectionnal? As I understand, wmi is used
to send driver information to user mode application, but
can the opposite by done? That is user mode application
sending information to driver?
Thanks in advance. Tag: Call ACPI Method. How? Tag: 29578
Drivers for Windows XP
Hi there! I have a Slot 1/Socket 370 M748LMRT PC100 Motherboard from PcChips
and i need drivers for Windows XP. Does anyone know where i can download the
drivers? Thanks.
--
[]'s
woodlong Tag: Call ACPI Method. How? Tag: 29577
can display driver access registry?
What function can a display driver call to get registry
settings. Videoport driver can simply call
VideoPortGetRegistryParameters but i wasnt able to find
any similar function for display drivers. I really hope
there is, but if not how should I store setting
information? Tag: Call ACPI Method. How? Tag: 29576
Booting over USB 2.0 (with XP), some success...
Hi all,
I am attempting to make XP boot over USB (1.1 or 2.0). I know that this type
of booting is "unsupported" by Microsoft. In fact, you cant even install XP
on a USB drive. However, if the bios supports it, it is possible to boot
from USB form a pre-installed version of XP.
First, I really think that there is no need for any driver developpement
since XP has every driver needed to boot over USB. My first attempt at a
boot from USB resulted in a reboot after MUP.sys. Now it crossed my mind
that maybe USB was not enabled at boot time so I created a new Group called
USB miniport and USB storage and placed usbehci.sys, usbohci, usbhub and
usbstor right after SCSI miniport in load order. I also changed the types so
that USB is loaded at kernel time.
I boot in /sos and see the USB drivers load right after the SCSI miniport.
Unfortunetly, no luck I still have a reboot after MUP.sys.
I then installed DriverStudio to see if I could write a simple USB mass
storage driver to make things work. But after installing DriverStudio I
tried again to boot over usb to see what happens with SoftIce and behold:
the thing boots! It works even when you skip the boot message stating if you
would like to skip the debugging.
The only wierd part is that to log in to XP I now need to press cntl-alt-del
when it says "loading personnal setings..." when you click on your username
because it freezes.
I investigated and found that SoftIce creates a group called NTIce that
loads 4 drivers: nwfilter, sigvid, sigsym and ntice. Now something in these
drivers is causing the USB boot to work. I just have no idea what that is.
My idea is that sigsiv is printing a message on the screen saying "Do you
want to load .... (press ESC to skip)" and waits a couple of seconds. Is it
possible that this give the USB drivers enough time to enumerate the storage
disk and boot or are these 4 drivers doing some obscure thing that would
suddenly make the USB boot work? I know that sigsiv does more than just
print a message to the screen. It must capture mouse events and connect to
the VGA adapter to print the message. Maybe this is what is causing the boot
to work for some unknown reason...
Without this knowledge what approach could I use to boot over USB? Would it
be a good approach to write an upper layer driver that would make the glue
between USBSTOR and the primary boot disk drivers? Should I write my own USB
storage driver which I could then use in the installation of XP using F6 in
the textual part?
What options do you think would work?
Thanks in advance for any help,
Daniel Shane Tag: Call ACPI Method. How? Tag: 29562
STATUS_IO_TIMEOUT
Hi,
Sometimes I get STATUS_IO_TIMEOUT when I send Async request to the
1394 driver stack.
Why will we receive STATUS_IO_TIMEOUT? How to avoid this error? The
same code works fine other times.
Any help is appreciated.
Thanks. Tag: Call ACPI Method. How? Tag: 29555
AV/C driver help!
Hi,
I'm trying to make a driver for a AV/C Tuner device, but I have major
problems.
The driver is there and I can communicate with avc.sys and
avcstrm.sys, but I cannot open a stream. I found out that the problem
is the hPlugLocal value which make the function fail. I'm not sure
where i can get that handle from. Using the result from 61883's
CreatePlug didn't gave me any success.
I would like to know which function I have to use to establish the
connection to the tuner to receive the data stream from the
isochronous channel.
Is there an example source how to use avcstrm.sys?
Thanks ... Tag: Call ACPI Method. How? Tag: 29552
Which video card registers a driver is setting?
I am trying to reverse engineer the Windows 98 driver for a video card in
order to find out what hardware registers on the card the driver is setting.
To do this under DOS, all I have to do is get the PCI offset in memory of
the video card, and then instruct my debugger to break when the memory
address corresponding to the register I am interested in is written to. I
have absolutely no idea where to begin to do this under Windows, or if it is
even possible. Can anybody point me in the right direction on how to
accomplish this?
Cody. Tag: Call ACPI Method. How? Tag: 29549
Dual DDK?
Can the XP sp1 DDK reside on the same box as the Win 2000
DDK? I haven't received the XP DDK yet so I wanted to
prep my computer prior to installation.
Thanks. Tag: Call ACPI Method. How? Tag: 29543
WMI .Put() works on XP, but fails on Windows 2000
I've added some custom OIDs to an NDIS driver we are developing. I also
wrote a user app in C# that correctly querys and sets these ULONG values as
long as it is run on Windows XP.
When running on Windows 2000 I can query at will, but all attempts to set a
value fail with a result of WBEM_E_INVALID_PARAMETER.
I have a breakpoint set at the beginning of my driver's xxxSetInformation
function that never gets hit.
I get the same result, (query OK, set object fails, breakpoint never hit),
when I access the OID via
<windows>\system32\wbem\wbemtest.exe,
so the problem isn't in my user level code.
I'm running as an administrator in both cases so I don't think there are any
security releated issues.
Q1) Do I need to configure Windows 2000 in some way to allow write access to
custom OIDs?
Q2) Does my NDIS miniport driver need to do anything special for Windows
2000 to allow write access? Tag: Call ACPI Method. How? Tag: 29539
Printing from remote machine returns incorrect page numbers
Hello!
I hope this is the correct newsgroup for this question.
I wrote a program using API to monitor a printer queue on
a Windows 2000 Server. It monitors all printjobs that are
being printed and stores important information like the
number of pages printed,... in a database.
Monitoring printjobs that are being printed locally is no
problem - all the fields are filled with the correct
information. If a user prints a document from a Windows
2000 client machine using Word2000 or Notepad I also get
all information (but there is a problem in one specific
case).
Windows 2000 Server local printjob (OK)
Word document has 1 page - I print 100 copies
Result is: Pages Printed: 1 - Total pages: 1 - Copies:
100 (In this case I can at least calculate the number
of pages printed)
Windows 2000 Client using shared printer from Windows 2000
Server (PROBLEM!!!)
Word document has 1 page - I print 100 copies
Result is: Pages Printed: 1 - Total pages: 1 - Copies 1
(????)
and even more confusing
Windows 2000 Client using shared printer from Windows 2000
Server (OK)
Word document has 2 pages (more than 1 is enough) - I
print 100 copies
Result is: Pages Printed: 200 - Total pages: 1 - Copies 1
(This is also OK
for me since I just want to know the number of pages
printed)
Both server and client are running Windows 2000 SP4 Office
verison is 2000 with all SPs but this shouldn't matter
since it also happens using notepad,...
Also when watching the printer queue in Windows you can
see the same information that I explained above.
Why does Windows tell that there is just one page printed
even if I print 100 copies from a client machine using the
shared printer?
Is this a bug - and is there a hotfix or some sort of
workaround for this?
Thank you for your help!
Thomas Tag: Call ACPI Method. How? Tag: 29534
COM port init
hello!
i need monopolize com ports by my prog. i can't use
standart windows com port api because i have to
immediatelly response to request. i decided to use kmd.
driver works under XPE with "standart computer"
(not "computer with acpi"). driver works properly until i
deleted serial.sys and serenum.sys to prevent windows to
connect to ports. when i deleted drivers port read always
return 0xff.
what i have to do to initiate ports.
thank you! Tag: Call ACPI Method. How? Tag: 29531
UsbHid driver
About 50% of HID reports (every second one) from my custom
device are lost. I use ReadFile function in the loop to
read reports.
What is interesting that another third-party utility
receives about 95% of valid data. About 5% is lost.
Any idea where can be the problem ?
Some more details:
Device is low-speed, using interrupt endpoint for sending
8 bytes of data each 10 ms. Tag: Call ACPI Method. How? Tag: 29517
Kernel DLLs in NDIS drivers
I have a quite big and complex NDIS/WDM driver (~ 300 Kb) and would like to
split some stuff into several DLLs.
1. What are my chances to pass compatibility test & get it logo'ed?
2. Do kernel DLLs work on win9x?
Thanks,
- PA Tag: Call ACPI Method. How? Tag: 29511
assigning ipaddress dynamically to IM Driver.
Hello,
We want to assign the ip address to virtual miniport of IM
Driver (TCP/IP->virtual miniport) for some session.
Modifying registry does not help...
How these things are getting managed on windows..
We need to this in application or driver??
ipconfig and all utilities does not show changes done in
registry till reboot(which is not possible in our case)
how dhcp address assignment works dynamically..(without
reboot..like winipcfg)??
So similar kind of thnig is possible(not dhcp) but
assigning ip address dynamically to virtual miniport of
driver.
Thanks in Advance,
nimeesh Tag: Call ACPI Method. How? Tag: 29510
PASSTHRU bugs?
Hi, all!
I've looked through PASSTHRU (nice pun =) ) recently
and found out, that it conflicts with PnP section of IM drivers.
1.DDK states:
"No Receives nor Status should be indicated while virtual miniport of
NDIS intermediate driver is sleeping"
PASSTHRU checks for MPDeviceState at the ProtocolStatus and not
retranslates it up when virtual miniport is sleeping, but does not do
this for its ProtocolReceive. Is it a bug?
2. DDK states:
"No sends nor queries (requests) should be send to lower driver while
protocol part of NDIS intermediate driver is sleeping"
Again, PASSTHRU checks for PTDeviceState in
MiniportSetInformation/MiniportQueryInformation, but does not check it
in the MiniportSend nor MiniportSendPackets. Is it a bug?
Thank you in advance. Tag: Call ACPI Method. How? Tag: 29504
CYPRESS USB DRIVER
Hi all,
Let me go right to the point.
1) Is there any substitution for ezusb driver such that allows asynchronous
bulk transfers?
2) When the request (for bulk transfer) stalls what is the best way to
cancel the request?
3) Suppose I need to arm the driver (issue bulk request for reading to the
host) and after that issue interrupt request to the periph to start writing
the data. So far with blocked transfer mode, my second request is not sent
because host is stalled on the first request. The first request could not be
satisfied because only after the second request is sent the data will start
coming. If I would have driver with asyncronous capabilities could the
second request be processed ealier? (are all requests passed through the
same driver's queue in first-in first-out fashion?). I guess if I will send
the second request from the other thread it will go to the different
driver's queue and can be processed ealier but I don't want to do it becasue
of the possible race conditions.
Thank You,
Dmitri. Tag: Call ACPI Method. How? Tag: 29500
Using IPrintOemUni::ImageProcessing and soft fonts
I am trying to use IPrintOemUni::ImageProcessing combined
with soft fonts to use unidrv to drive a printer which
requires custom compression of low resolution (images,
lineart) data as well as custom compression of high
resolution (ie font) data. I was hoping to compress the
low-res data in ImageProcessing() and then use the
TTDOWNLOAD_TTOUTLINE option of TTDownloadMethod() to get
the font data separately through calls to OutputCharStr().
However when I try this I find that OutputCharStr() is
never called and the text is always rendered at the low
resolution. Is what I want to do possible? I have tried
all the options to TTDownloadMethod(), and none of them
seem to make a difference.
Regards,
Hank Jones Tag: Call ACPI Method. How? Tag: 29495
setupdi calls
I was working with the setupapi calls on windows 2000, the
only error i got while executing, was
" unresolved external symbol _imp_setupdideviceinfo "
and such for all the setupdi calls.
can Anyone help me out to resolve these errors in the obj
file.
thanks a lot
shradha Tag: Call ACPI Method. How? Tag: 29491
Is this a valid INF directive?
[Xscan.]
I noticed this delimiter within an INF file. I can't find any documentation
within the MSDN that states this is valid. Is anyone familiar with this type
of undecorated section? Can someone confirm it is valid?
Thanks!
JW Tag: Call ACPI Method. How? Tag: 29490
Watchdog in WinXP
Hi,
I want to know if there are any ways to tweak the Windows
Watchdog registers/values.
One of our Driver functions takes up more than 15seconds
(WAtchdog timer value), to complete its operation. And
hence the Watchdog fires and the system bugchecks with
THREAD_STRUCK_IN_DEVICE_DRIVER.
As I cannot reduce the execution time in my driver, I
want to know, if there are any interfaces to tweak
watchdog registers or parameters if watchdog is emulated
in software.
Regards,
ashok. Tag: Call ACPI Method. How? Tag: 29489
USB BULK speed, driver
hello,
I am developing driver for CYPRESS USB2.0 FX2, EP2, BULK IN,
My problem is that I must do BULK_READ within every melliSecond or even
500uS or less. Otherwise the data will losed between two BULK_READ, because
the FIFO in CYPRESS FX2 is very small. How can I do that?
Is it possible to let the Driver continuesly do BULK_READ, and fill an
ring_buffer? time between 2 BULK_READ must be 1ms or less.
thank you very much.
william Tag: Call ACPI Method. How? Tag: 29488
Where to start learning to program drivers
I'm an applications developer and have been for 15 or so years. I'm finding
it necessary in my job to work on drivers, including writing a brand new one
from scratch. The only experience I have writing drivers is for the old
MacOS where I could do whatever I wanted with no real kernel to speak of.
With Windows it seems to be a very different story.
Where should I begin when learning how to develop drivers for Windows. 9x
and 2k/XP? ( I really don't care about NT 3/4 right now ). Are there any
books that start from the basics and go from there? I don't need a "for
dummies" book but I do need something that starts from the beginning and
ends with most of what I need to know to write a fully functional driver.
Thanks,
Janik Tag: Call ACPI Method. How? Tag: 29465
Anyone familiar with USB bulk transfer?
I need to write a terminal program that does bulk
transfer to our Net2888 chip. Any
help/suggestions/direction would be greatly appreciated. Tag: Call ACPI Method. How? Tag: 29457
ndisuio.sld
The NDISUIO sample in XP DDK includes a file with .sld extension
(ndisuio.sld). Does anyone know what is this file used for? It certainly is
an XML file with a different extension...
Thanks,
-Prabhu Tag: Call ACPI Method. How? Tag: 29453
INF XP and 2000
1)
How to have XP and 2000 use same INF file.
I know we can use OS decorators in sections to keep one INF for both
OS. But decorators like .NT, .x86 cannot separate XP from 2000. Is it
.xp for XP sections and .NT for NT and 2000? I dont worry about 98 and
ME.
2)
Can we have different version sections for different OS in same INF.
I want to use different class GUIDs for different OS.
3)
What should be the classname for 1394 device driver (NOT Host
controller driver). I tried 1394Test and chkinf raises error message
'obsolete or unknown class name'.
Thanks for the comments. Tag: Call ACPI Method. How? Tag: 29452
Two devices in one driver
Hello,
I need create two device objects in one driver (keyboard
filter), first device object is upper keyboard filter and
second device object will be used to communicate with user
mode application.
I never created two device objects in one driver, how I
may do it? How I may write dispatch routines? May one
dispatch routine serve two device objects, or every device
object must have its own dispatch routine?
Thanks, Marian. Tag: Call ACPI Method. How? Tag: 29426
PageSize units inconsistancy? UniDrv and .NET
We are developing an application that automatically prints pages based
on data retrieved from a database. The data includes the printer name
and the desired page size. Our printer doesn't support any standard
page sizes. We've created our own printer driver based on UniDriver.
The printing application can successfully select the desired printer.
However, selecting the desired page size doesn't work. We're trying to
select the page size using the PaperSize.PaperName property. Here's
the C# code:
// m_PrinterName is the name recognized by Windows
// pageSizeName is the name of the page size matching that in the
GPD file.
// debug only - look at current default paper size.
PaperSize psDefault = pd.DefaultPageSettings.PaperSize;
// Create a PrintDocument
PrintDocument pd = new PrintDocument();
// Use a standard print controller - to avoid the status/cancel
dialog
pd.PrintController = new StandardPrintController();
// Set the printer name (from the printer device object)
// This name must match the installed Windows printer.
pd.PrinterSettings.PrinterName = m_PrinterName;
if( !pd.PrinterSettings.IsValid )
{
// Log the error and then quit
}
foreach( PaperSize psize in pd.PrinterSettings.PaperSizes )
{
if( psize.PaperName == pageSizeName )
{
pd.DefaultPageSettings.PaperSize = ps; // select this one
break;
}
}
The interesting thing here is that the units for the sizes (width and
height) are not consistant. For the particular test that I'm running I
know that the paper size desired is the same as the default size for
the printer. But when I look at the properties of the default paper
size (psDefault above) and the selected size in the list (when
psize.PaperName == pageSizeName ) they don't match:
default selected
kind: 0x103 0x94
width: 0xde4 = 3556 0x578 = 1400
height: 0x10de = 4318 0x6a4 = 1700
name: "custom" "14INX17IN"
The size units for the default appear to be hundredths of centimeters,
while the size units for the selected paper size are hundredths of
inches. But using the selected paper size doesn't work (the page is
too small). The driver seems to want the metric size. The
documentation indicates that sizes should be hundredths of inches and
that's the unit used in the rendering code. Any idea what's happening
here?
Thanks,
Tom Tag: Call ACPI Method. How? Tag: 29418
Differences between inf installation in w98/ME and 2000/XP
Hi,
Thanks everyone who helped me with some problems some time ago.
I built a wizard for installing modem - based on inf files included by
manufacturer. It runs properly on 2000/XP, but fails on w98/me.
The basic schema is like this:
- InstallHInfSection (copies files)
- optionally remove "unknown devices" - i.e. modems not properly
installed (SetupDiGetClassDevsEx, CM_Get_DevNode_Status_Ex,
SetupDiCallClassInstaller - with remove flag)
- reenumerate dev node - for root - scans system for new devices
This schema installs modem properly on 2000/XP, but fails on W98/ME
Last step sometimes runs scanning, sometimes not, and even if it starts
the scan, the new hardware wizard shows up and asks for the path to inf
file.
Could you please help with that?
--
K.
Support bacteria -- it's the only culture some people have! Tag: Call ACPI Method. How? Tag: 29415
WDM driver instalation
I have simple audio WDM driver that I install it with an
INF file. I specify in my INF file StartType of 3 wich
means SERVICE_DEMAND_START. After instalation I get these
registry keys in
HKLM\System\CurrentControlSet\Service\MyAudioWMD
Start 3
Type 1
ErrorControl 1
The problem is when I restart my computer, my driver is
loaded at system startup not as it is specified in Start
option at demand start. When I set Start type to
SERVICE_DISABLED (0x4) the driver is not loaded at system
startup, which is the expected behaviour. Is there anybody
that experienced this problem ? I suppose that PnP manager
is involved at sometime or may be LoadOrder key in
registry, but how can I control and instruct them ? The
[Vesrion] section of my INF file is :
[Version]
Signature=$Windows NT$
Provider=%Provider%
Class = Media
ClassGuid = {4d36e96c-e325-11ce-bfc1-08002be10318}
DriverVer=07/28/2003,5,0,1636,1
and the service section is :
[DriverService]
DisplayName = "WDM Audio driver"
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%10%\system32\drivers\wdmaudio.sys
Thanks
Eugene Tag: Call ACPI Method. How? Tag: 29409
Blocking Setup API call (win2k) - for MS
Hi,
I use a utility which is using setup API's to enable/disable my virtual
network adapter.
The code simply locates the device and using DIF_PROPERTYCHANGE along with
SetupDiCallClassInstaller enable/disable the device.
Sometimes after system resume from suspend, when this utilty call
SetupDiCallClassInstaller it never returns from that call.
Setup API log file implies that the thread is executing the default
installer code.
If I attach with debugger to the blocked process I could only see that the
stuck includes calls to
SetupDiCallClassInstaller (and subsequent calls to function one of the RPC
dlls - I think rpcrt4)
Thnaks for the help.
Gana Tag: Call ACPI Method. How? Tag: 29408
How to test wmi in my scsi miniport driver?
hi,
thanks. But how to trigger SRB_FUNCTION_WMI in
HwScsiStartIo of SCSI miniport driver because enter
HwScsiWmiQueryReginfo routine need to trigger it?
Can you tell me whether i can see MOF-recouse in
wbemtest.exe after HwScsiWmiQueryReginfo routine is called
by SCSI driver to register info?
>-----Original Message-----
>> use IoWMIRegistrationControl routine to register it to
>> namespace like upper driver layer does. So,i want to
find
>> a way which can inform upper layer to register MOF-
>> resource from scsi miniport layer or another way which i
>> must write a more upper driver and pile it on them(SCSI
>> driver and SCSI miniport).
>
>Look in the documentation for HwScsiWmiQueryReginfo and
friends.
>
> Max
>
>
>.
>
. Tag: Call ACPI Method. How? Tag: 29405
what doest it mean?
About the oid:OID_802_11_SUPPORTED_RATES, about the
sentence "Rates that do not belong to the BSSBasicRateSet"
.What does "BSSBasicRateSet" mean? Tag: Call ACPI Method. How? Tag: 29402
Latest WinDbg?
Can anyone inform me from where I can download the latest Windows Debugger
(WinDbg).
Please give me the Website Link.
Anand. Tag: Call ACPI Method. How? Tag: 29401
Incorrect Pararmeter error: 87 Why?
Dim did As SP_DEVINFO_DATA
hWnd& = SetupDiGetClassDevs(0, 0, 0, &H4)
did.cbsize = 28
sPropertyBuffer$ = vbNullString
lRet& = SetupDiGetDeviceRegistryProperty(hWnd&, did, &H1C,
lPropertyRegDataType&, sPropertyBuffer$, Len(sPropertyBuffer$),
lRequiredSize&)
The call to SetupDiGetDeviceRegistryProperty always fails with
ERROR_INVALID_PARAMETER. I have a valid handle in hWnd&. What could be wrong
here?
Any insight would be greatly appriciated.
JW Tag: Call ACPI Method. How? Tag: 29396
USB interrupt pipe data loss on Win2000
I wrote a USB driver under Windows 2000. I retrieve data from a interrupt
pipe. The interval defined in my device is 1ms. The datarate from my device
is 384kbps. However, I always loss data on PC. If I make my device send data
at 200kbps. I can receive data from PC properly, no data loss. The most
strange thing is, when I used my driver on Windows XP, it actually can
recieve data properly at 384kbps. Anybody can tell me that, why my driver
can only work on winxp. Tag: Call ACPI Method. How? Tag: 29393
SetupDiGetClassDevs always returns ERROR_IO_PENDING
I'm calling SetupDiGetClassDevs to get a handle to a device information set
like so:
hWnd& = SetupDiGetClassDevs(0&, 0&, 0&, &H4)
This always returns an error of 997: ERROR_IO_PENDING
Why does this happen? I still get a return value in hWnd&. Did it fail?
JW Tag: Call ACPI Method. How? Tag: 29386
Writing a RAS device driver
Ok here's a fairly broad question...
I need to write a driver (I guess) for RAS (or TAPI?) that makes itself
available as a device that RAS can use to connect with. Something like PPPoE
(but not PPPoE). This needs to work for Win9x and NT/2k/XP. It needs to
communicate via a serial port or USB. I've spent lots of time digging though
the DDKs and MSDN but can't find a straight answer. Can someone tell me
what this thing that I need to write is called and where I might find sample
code of some sort?
In some cases all my stuff would need to do is act as an intermediaty
between RAS and another RAS device (of any type). Is this possible?
Thanks,
Janik Tag: Call ACPI Method. How? Tag: 29377
Interrupt Problem
Hi,
My pc shares an interrupt between the display adapter, nic
and usb. If I install my device it also shares the same
interrupt but I don't install it anymore.
When I run the following from kd:
kd> !idt 0 3b
3b: 81a3dca4
(Vector:3b,Irql:10,SyncIrql:10,Connected:TRUE,No:0,ShareVec
tor:TRUE,Mode:LevelSensitive,ISR:VIDEOPRT!
pVideoPortInterrupt(eb85177e))
When I put a breakpoint on 81a3dca4 it hits the breakpoint
constantly.
Now I disable the usb and from then on the breakpoint
isn't hit anymore.
But when I shutdown the pc the interrupt suddenly works
again? (When shutdown is almost completed)
At least now I know it isn't my driver...
Regards
Kobus Tag: Call ACPI Method. How? Tag: 29374
Restricting page sizes in WIA Microdriver
Hello,
I'm developing a WIA Microdriver and I need a way to
restrict the page sizes that are available through the
WIA UI. The device I'm developing for only supports a
few page sizes and if I return "not supported" for the
other available page sizes, the current application
usually gives some kind of scan failed message. I had a
similar problem with Resolutions, but I discovered that a
registry key could be created in the DeviceData section
of the driver that would restrict the available
Resolutions. I have not been able to find a similar
registry key for page size though. Any help would be
appreciated.
Thanks,
Danny Tag: Call ACPI Method. How? Tag: 29371
The idea to create driver to be able to call any ACPI method.
Calling to methog that belongs to particular device not a solution.