SERENUM
I have developed a USB device which intend to present as a com port on the
PC. Now that I am working on the PC to figure out how to get the com port to
show up when the device is plugged into the PC, I have been looking at
serenum.sys and serial.sys. I'm trying to decide on the best approach.
Should I use serenum as a filter over my current usb client driver and follow
the external com protocol to have the port show up, hopefully serenum will do
this for me, or should I have serial as my filter over my client, this seems
like overkill. In short,i'm hoping that if I can get serenum to work, then
my port will show up whenever my device is plugged in and my client driver is
loaded and hence by reference serenum to enumerate my device. Looking for
feedback ??
--Stu Tag: safemode detection Tag: 62035
Touchpad (mouse) driver with adjustable pointer speed (not acceleration)???
Synaptics laptop touchpad
Windows 98SE
I'll define two terms so we're talking about the same thing.
Pointer speed is the multiplier that defines how far the mouse pointer
moves per unit of movement of finger on the touchpad. This relationship
is independent of how fast the finger moves.
Acceleration is a dynamic parameter that defines a nonlinear
relationship that depends on how fast the finger moves. Faster finger
movement means that the mouse pointer moves farther per unit of finger
movement.
What I want is a touchpad driver that has adjustable pointer speed
and ZERO aceleration.
The Alps drivers do this, but are keyed to alps touchpads.
Won't work on the Synaptics pad on my laptop.
Logitech drivers do the pointer speed properly, but their scrolling and
gesture functions suck.
Synaptics drivers have no pointer speed adjustment. The label says
pointer speed, but they only adjust the acceleration. All my other
touchpads have zero acceleration and I just can't get used to that
nonlinear motion. But their scrolling and gesture functions are very nice.
I remember seeing mouse driver documentation that mentioned registry
keys to control pointer speed. But I searched the registry and didn't
find anything I recognized as such.
Is there a secret mouse registry key that I can add to change the
pointer speed on the synaptics drivers?
Is there a more generic driver?
FWIW, I searched high and low for LINUX touchpad drivers. They have
pointer speed adjustments, but they do it by skipping pixels. IF you
don't want acceleration, you can't even reach all the pixels with the
mouse pointer. I'm also looking for a LINUX touchpad driver that has
pointer speed adjustment that lets you access all the pixels
WITHOUT ACCELERATION.
This shouldn't be that hard...
And yes, I've tried laptop vendor touchpad drivers without success.
Thanks, mike
--
Return address is VALID but some sites block emails
with links. Delete this sig when replying.
.
Wanted, PCMCIA SCSI Card for HP m820 CDRW.
FS 500MHz Tek DSOscilloscope TDS540 Make Offer
Wanted, 12.1" LCD for Gateway Solo 5300. Samsung LT121SU-121
Wanted 12" LCD for Compaq Armada 7770MT.
Bunch of stuff For Sale and Wanted at the link below.
MAKE THE OBVIOUS CHANGES TO THE LINK
ht<removethis>tp://www.geocities.com/SiliconValley/Monitor/4710/ Tag: safemode detection Tag: 62034
WHQL signed driver distibuted by multiple manufacturers
My company is developing a Cardbus wireless LAN card. The card's NDIS
miniport driver is passing most of the HCT and we are getting ready to
submit it for WHQL certification.
After we get the driver and INF file signed, we will be distributing it and
the card to several "manufacturers" that will then sell the device to the
public. Each of these manufacturers needs to see their compay name and
model description when the device is displayed in Device Manager, for
example.
Once the driver is signed, the INF file can't be changed without
invalidating the signature. I was wondering, however, if it might be
possible to use a second .INF file to provide just this descriptive text in
a way that wouldn't invalidate the driver signature.
Any ideas out there?
-- Andy Cappon Tag: safemode detection Tag: 62030
System wide filter to change capture buffer
Does anyone know of a way to modify the audio captured from a microphone so
that the effect is transparently applied to all wmaud and directsound
listening applications transparently?
I suspect it has something to do with sysaudio level but am unsure how I
force the effect filter to be applied to all applications in the system
without there knowledge.
Any help would be greatly appreciated. Tag: safemode detection Tag: 62026
Scsi upper filter driver + windows 2003 sp1
Hi All,
I have a scsiport upper filter that filters BREAK_RESERVATION (RESET) in
windows ent. server 2003. Yesterday, I just upgraded to service pack 1 and
now my filter is not seeing any BR (or RESETs). I have verified that my
filter has been loaded and is filtering (via Windbg) but no RESETs are seen.
Once I back out of sp1, everything is fine, and I am able to see RESETs.
It's as if the upgrade to sp1 now bypasses my filter. Does anyone know what
could have caused this?
Thanks in Advance,
Alex Tag: safemode detection Tag: 62024
configuring audio driver
Does anyone knows if an audio driver knows the source of the audio data it
"receives"?
If we consider the case where 2 processes (2 Windows Media Player for
example) play sound at the same time, does the audio driver have information
concerning from where the audio data comes from (the first or the second
WMP)? Of course, the driver then muxes the audio data but I don't want that.
I would like to pick the audio data coming from only one of the processes.
To do that, it means that I must identify from where the audio data came
from.
How can I do that?
Thanks a lot,
Giuseppe Tag: safemode detection Tag: 62022
Stop 0x000000D1 IRQ_NOT_LESS_OR_EQUAL Usbehci.sys Bsod
Hello,
i have problems with blue screen caused by Usbehci.sys.
We are a company that develope a digital picture recording system at
usb-technology.
Maybee we got problems because of high-speed using of the usb-bus.
My quastion: Where i can best place my quastions at the newsgroups? Is there
a extra group for usb-problems or stop-screens?
Thank you much..
Thomas Oetzel Tag: safemode detection Tag: 62010
How do i installing a kernel mode driver - a *.sys file?
This must oblivious be a very simple task, which I - not being familiar with
driver development - just don't know where to look for help on. So I'm sorry
for making such a question on the forum. The question is: How do I
installing a kernel mode driver nt after building a project giving me a
*.sys that is suppose to be a kernel mode driver and a *.dll that is suppose
to be user mode driver? How do I get those into the system? Do I need to do
it through a *.inf?
Stefan Tag: safemode detection Tag: 62008
get I/O control code constants of NDIS IM using C#
Hi all,
I'm trying to access the extended Passthru from
http://www.wd-3.com/031504/PTEx3_index.htm using C#.
Anybody knows how to get the correct iocontrol codes of :
IOCTL_PTUSERIO_ENUMERATE = ?;
IOCTL_NDISPROT_OPEN_DEVICE = ?; ....
There is an example using with ndisprot protocol driver:
http://www.codeproject.com/csharp/SendRawPacket.asp?df=100&forumid=25245&select=1082543
with
// iocontrol code constants
private const uint IOCTL_NDISPROT_QUERY_BINDING = 0x12C80C;
private const uint IOCTL_NDISPROT_OPEN_DEVICE = 0x12C800;
however i dont know this codes are taking from where ? Tag: safemode detection Tag: 62005
Desktop streaming
Hello,
I'm on a project that requires me to write a method to stream the
desktop from a client to other users in a video conference app. It has
to act as some sort of camera source because the app is build in Flash
and so the only thing Flash recognizes are WDM drivers such as Webcams
to grab. First I tried to develop a WDM screen capture driver. After a
lot of research I figured out that that would be nearly impossible to do
the trick (Refer to the reply of Eugene Sukhodolin on WDM screen capture
driver).
Now there are some apps like Camtasia and Screenjax that already do the
trick but I don't want the clients to install a thirth party software
form another vendor. None of these apps use a .sys driver. They all work
with .dll files. They also work with a client app and that is something
I don't want or not always want on top if the driver is capturing the
screen.
A possible sollution for this problem would be to develop my own app
like Camtasia or Screenjax but then build it in a way that the settings
are configured automaticly so the user do not have to do it in an app.
They would only install it as a plugin for my app.
My problem now is that I don't have a clue how to start writing a screen
share app with .dll. If anyone could give me some advise on this?
Regards
Tom Tag: safemode detection Tag: 61996
Help with ddkbuild
Does anybody know, is it possible to build for XP target
with the highly appraised DDKBUILD ?
I build the DDK sample netvmini with DDK 3790.1218.
Running build from the DDK command prompt for XP works fine.
Now am trying to do same with DDKBUILD 3.12.
But... no matter what I do, it insists on building for WNET.
In the ddkbuild.bat file there is a comment:
"XP DDK Support (Obsolete)"
So, is it supposed to work or not?
Details:
Created the makefile project in VS 2003 as explained on DDKBUILD page,
but used switch -XP instead of -WNET.
The VS project files and DDKBUILD.BAT are in the netvmini directory.
Added to user environment:
XPBASE=C:\Tools\WINDDK\3790.1218
No spaces in paths anywhere (I know, you'll ask... ;) except of VS.2003
install path.
Before playing with DDKBUILD, build on this machine several DDK samples for
various configurations (incl. XP and WNET) from command prompt.
Any ideas? Have I missed any small print somewhere?
--PA Tag: safemode detection Tag: 61989
A bug check build don't appear but free build does
Dear all:
My driver is an atapi driver.
Using HCT 12.1 , free build
Selected System -> Mother Board
After gathing all infomation ready to test
then Stand by (S3)
Click test buttom will reboot within 5 seconds.
But when I use check build, there's no reboot.
Senior Enginner told me it may be timing issue.
The problem is I couldn't see any message using check build.
What else I can do ? Tag: safemode detection Tag: 61988
Microsoft Mirror Display Driver Sample
I installed Windows DDK, build, and installed the Mirror.inf (Microsoft
Mirror Display Driver sample).
After installed, I reboot the computer, and some problems are occuring in
combo boxes. It seems that I need to force the repaint moving the mouse over
the combo box window.
Other problem is that I can't run DirectX Applications.
Does anybody have this kind of problem? Is it because the source is
incomplete? I didn't change anything on source that comes with Windows DDK, I
am just testing to start my project and I'd like to understand why this error
is occuring.
Thanks for any help and sorry about my english mistakes,
cox Tag: safemode detection Tag: 61985
kernel dump file layout?
Is there any documentation available on the layout of kernel dump files?
I've noticed they start "PAGEDUMP"...but what's the layout of the rest of
the file?
Thanks,
/ Hannes. Tag: safemode detection Tag: 61967
.INF and .CAT file confusion
We are trying to get our driver signed by Microsoft and having some
successwith the HCT tests, but I am more than a little confused by the whole
business of .inf files and .cat files.
I have noticed that if I go to the Device Manager and uninstall my device, I
can have problems later. If I subsequently unplug and then replug my device,
I will get the Device Wizard again. Typically, the Device Wizard finds and
uses the .inf file that the system has copied to the \windows\inf folder.
This causes the system to put up a dialog asking for where it can find the
abc.sys file that it is supposed to copy from the source media. Normally
abc.sys can be found in the same folder as the .inf file. However, this does
not work very well after the .inf file has been copied to the \windows\inf
folder. This seems to be a basic problem with the way that .inf files are
used. How do people get around this problem?
How does the .cat file work? Logically, it seems that every file referenced
by my device .inf file should be tied somehow to the .cat file. This means
that my abc.sys file, and my coinstaller dll, and the data file that my
coinstaller references should also be tied to the .cat file.
Ideally, if the system decides to reuse a .inf file that resides in the
\windows\inf folder, it should use the associated .cat file to find local
copies of all the files referenced by the .inf file.
Any info that you can give will be much appreciated.
--Elliot Leonard Tag: safemode detection Tag: 61965
WMIREG_FLAG_CALLBACK
Hi,
Is it correct, that in case of
IoWMIRegistrationControl(DeviceObject, WMIREG_ACTION_REGISTER)
the IRP_MJ_SYSTEM_CONTROL handler is used to deliver WMI minor irps
and in case of
IoWMIRegistrationControl((PDEVICE_OBJECT)Callback, WMIREG_ACTION_REGISTER |
WMIREG_FLAG_CALLBACK)
the specified callback is used for it?
TIA
Andrew Tag: safemode detection Tag: 61963
SER2PL.SYS
Hello all..
I am developing a USB device and now I am working on the Windows USB client
drivers to expose that device, I have already finished the firmware, as a com
port on the PC. I just discovered that a driver has already been developed
that will do this for me provided I expose 1 interrupt IN endpt, presumably
for status, and two bulk endpts for the read and write data. This driver
appears to be very popular and developed by a company called prolific
technologies. I have found it on 2000 and XP systems. Can I freely use this
driver ? I'm doing work for a fairly large company. I can't find any info
on the Microsoft site referencing this file, yet it seems to be everywhere.
Anyone have the goods on this driver ?
--
--Stu Tag: safemode detection Tag: 61961
HCT12.1 test for one USB device always failed
Hello Sir
In our company , We are doing the HCT12.1 test for one USB device.
In the test process for "USB adress description test" "USB
description test" "USBdevice control request test" "USB enuneration
stress test"
We all meet the same problem. When we start the test operation and
view the debug message
output from driver , It shows:
after normal initialize . the driver calls
IRP_MJ_PNP ,minor IRP_MN_QUERY_CAPABILITIES
IRP_MJ_PNP ,minor IRP_MN_QUERY_BUS_INFORMATION
IRP_MJ_PNP ,minor IRP_MN_QUERY_DEVICE_RELATION
then following with:
IRP_MJ_PNP ,minor IRP_MN_QUERY_REMOVE_DEVICE
IRP_MJ_PNP ,minor IRP_MN_REMOVE_DEVICE
BulkUsb_StopDevice
BulkUsb_RemoveDevice
BulkUsb_Unload
then HCT start doing device descriptor enumeration many times but
stops at some point.
waiting forever . the HCT test process can not be finished.
What is the reason for this issue ?
Why HCT unload the driver before it performe device descriptor
enumeration .
If it is our driver 's problem or it is the device firmware 's
problem
Thanks a lot Tag: safemode detection Tag: 61958
CreateProcess from Printer Driver
I have a printer driver that at one point goes into interaction with the
user. This is because it is a "Virtual Printer" that does capture the print
output and further processes it. Just alike various PDF Creators that are on
the market.
I use CreateProcess to start enother EXE that is doing all that interaction.
Actually I have written the driver and my partner did the rest.
But the trouble is: When the a second user session is started by using
"change user" in XP the second session never sees the EXE. Instead this EXE
is visible only for the first user. When one switches back to the other user
the EXE appeared. As the EXE makes a ping you now "aha it was started on the
other users desktop!".
I suspect this is because I do the CreateProcess from the driver DLL under
SPOOLSV.EXE and SPOOLSV.EXE is started under "SYSTEM" and so it seems that
whoever logged in first is the one SPOOLSV.EXE links the Desktop to.
What is the way to make the Create Process to simply uses the Desktop for
the user currently logged in?
Any helpful comments to it are appreciated.
Regards,
Jürgen Hollfelder Tag: safemode detection Tag: 61956
how many win64?
Hello,
I searched around to find information about windows 64 and came across
some definitions which struck me that there is more than one window 64. Am I
correct?
Here is a section that I found in a web site:
Win64 AMD64/EM64T Unicode (Windows XP/2003 x64 Edition)
Win64 IA64 Unicode (Windows XP/2003 64-bit Edition)
Best regards Tag: safemode detection Tag: 61927
Ndis Installation
Hi All,
I am trying to install vitual miniport driver(not intermediate)
using INetCfgClassSetup. Can anyone let me know what should i pass for the
first parameter(Component ID) of install function?
Thanks,
Senthil Tag: safemode detection Tag: 61923
registry at driver
Hi,
I'm developing storage driver.
Problem is:
In XxxAddDevice() handler function.
ZwOpenKey() returns error STATUS_OBJECT_NAME_NOT_FOUND
it registry location was output from IoOpenDeviceRegistryKey()
IoOpenDeviceRegistryKey() inputs PhysicalDeviceObject.
it is XxxAddDevice() parameter.
I'm going to check registry,
What part of registry for PhysicalDeviceObject ?
Anyone have any help ?
--
ishikawa Tag: safemode detection Tag: 61914
TraceView does not work anymore
Traceview 2.0.14 and 2.0.15 from 2003 DDK RTM/SP1 fail to load my PDB files
with "PDB file not found" message. Traceview 1.9.1 works just fine. There
was some email address for traceview feedback, could someone remind me
please? I tried tvfb @ microsoft.com, but my message bounced back.
--
http://www.cristalink.com Tag: safemode detection Tag: 61893
Load USB firmware from file.
Hello all,
We have a usb driver (a camera) that currently is loading firmware into
the usb device by reading from a large (!) static buffer within the
driver. It would be beneficial from a number of standpoints to read
this data from a separate file. The current plan is to store the
filename in the device instance's registry key (initialized via the INF
file at install and possibly changed later for whatever need).
The only fear I have about this is that I have seen on this group and
others that there are periods early in the system boot sequence when the
file system is not available and thus attempts to open files will fail.
My understanding is that since this is a usb driver that is started on
demand, it is guaranteed that it will always start late enough in the
boot sequence to avoid this issue (our current attempts certainly seem
to indicate that this is the case). However, I would feel better
knowing that this is both unconditionally true now and will remain true
for the plausible future of the Windows OS (i.e. I will not get burned
by the next release).
Regards,
Tom Udale Tag: safemode detection Tag: 61888
UVCView bug?
Hi,
I'm getting an error from the Microsoft USB Video Class viewer during
enumeration:
===>Endpoint Descriptor<===
bLength: 0x07
bDescriptorType: 0x05
bEndpointAddress: 0x82 -> Direction: IN - EndpointID:
2
bmAttributes: 0x05 -> Isochronous Transfer Type
Synchronization Type = Asynchronous
Usage Type = Data Endpoint
wMaxPacketSize: 0x1400 = 1025 transactions per
microframe, 0x00 max bytes
*!*ERROR: bmAttributes bits 13 - 15 are reserved (should be 0)
bInterval: 0x01
According to the USB 2.0 specification, wMaxPacketSize is defined as:
b0 - b10: max packet size (bytes)
b11 - b12: additional transactions per microframe
b13 - b15: reserved (must be zero)
My descriptor value of 0x1400 should be:
1024 max bytes (0x400)
three transactions per microframe (0x10)
Is this a bug, or am I misunderstanding something?
Thanks and regards,
Paul Thacker Tag: safemode detection Tag: 61886
Win XP 64
Hello,
I wanted to start and look at how I can develop a driver for winXP 64.
Where is the best place to look? Is there any DDK for winXP 64? Is there any
documentation on this subject? As I found, 32 bit drivers couldn't be used
in WinXP64 so there should be a way to develop 64 bit driver now.
Best regards Tag: safemode detection Tag: 61881
USB 2.0 stack for Windows NT 4.0
Hi all,
we are looking for a USB 2.0 stack for NT4.
Does anybody knows if it exists?
Regards
Nicola Righetti
Greensoft sas Tag: safemode detection Tag: 61868
Problems with UpperFilters and USB Keyboards
I made an UpperFilter for keyboard that works fine for PS/2 keyboards. My
application comunicate with this filter, enabling or disabling features,
through DeviceIOControl function.
When I try to use it with an USB keyboard, I have some problems. The filter
still works, but the communication with the application is lost. When my
application tries to send a request to the filter (with DeviceIOControl), it
generates the error "Incorrect function" and the filter does not receive
anything. It looks like "somebody" is capturing the request before it
reaches the filter.
What can be causing this error? Tag: safemode detection Tag: 61864
CPU affinity for specific IRQ
Before I ask my question, I want to mention that this concept is used
for an internal diagnostic or debug tool (not to be productized).
On an system with more than one CPU (HT, SMP, multicore?), how do I
find out programmtically which CPU the ISR for a particular device is
going to run?
I need to install my own handler inside that CPU's IDT, so that I can
trap it before the OS knows about it.
Or should I write code to install the same interrupt vector on all
CPUs (using DPCs) and then later decide if the interrupt is from my
device?
Regards,
Uday Tag: safemode detection Tag: 61863
PAGE_FAULT_IN_NONPAGED_AREA
I got PAGE_FAULT_IN_NONPAGED_AREA. On anlyzing i came to know that it
is due to the call to IoQueueWorkItem from the completion routine. The
workitem and the context passed to the IoQueueWorkItem are non-NULL
(and hence may be valid).
But one strange thing i saw that on entering the completion routine,
DeviceObject was NULL. I am passing the same DeviceObject to
IoAllocateWorkItem and it is yielding me non-NULL (i guess it means
valid) pointer to PIO_WORKITEM. Can DeviceObject be NULL? Or is it some
bug somewhere?
...Mani Tag: safemode detection Tag: 61861
Print spooler question
Hi,
I made my own port monitor and install it without problem, I work on XP SP2.
Now, I would like to know if the following behaviour is normal ?
I can see the port created with my port monitor, but when I try to put
my default printer on it, the spooler doesn't call immediatly the OpenPort
function,
I must to restart the spooler, Why ?
I believed that the spooler always tests the right connectivity of the
printer when the port setting changes.
It is important for me that the spooler calls the OpenPort function
immediatly, because several things are made
at this time to allow a user application to communicate with the port
monitor even if no printing job are sent.
Should I modify my port monitor ? or is there a way to do to modify the
spooler action in order to solve my problem ?
Thank you in advance. Tag: safemode detection Tag: 61859
AVStream : Transport stream for MPEG2 demultiplexer filter
Dear All,
I implemented a DVB-T capture pin and connected it to MPEG-2
Demultiplexer filter. But some captured transport stream packets are
INCOMPLETED (not 188 bytes). Does MPEG-2 Demultiplexer filter skip these
INCOMPLETED packets automatically? Or do I need to skip these packets in the
DVB-T capture pin?
Thanks,
Edward Tag: safemode detection Tag: 61856
Ultra VNC mirror driver
Hi Guys,
Does the Ultra VNC mirror driver do more than what the ddk
sample video mirror driver does? Has anyone here had experience on this and
what all extra the Ultra VNC mirror driver does fucntionally with the mirror
driver.
Thanks a lot and look forward to conversation on this topic in the
newsgroup.
Vipin Tag: safemode detection Tag: 61846
EXECUTO SERVIÇOS DE AUTOCAD
--
EXECUTO SERVIÇOS DE AUTOCAD
ATUALIZAÇOES DE PLANTAS DE PAPEL
FAÇO PROJETOS DE
*ELÉTRICA
*HIDRÁULICA
*TOPOGRAFIA
*ARQUITETURA
*LAY-OUT EM GERAL
*SISTEMA E COMBATE A INCÊNDIO (BOMBEIROS)
*PROJETO DE CFTV.
CONTATO FONE (011) 7163.4365 RUBENS
OU PELO EMAIL
trad-1@ig.com.br
projetos_10@hotmail.com Tag: safemode detection Tag: 61844
GPT, EFI and 64bit
Am I correct that GPT partition tables are only used on EFI machines?
Am I correct that EFI is only used on 64bit machines?
I need a GPT machine for testing. Can I buy Athlon 64 with an Asus mobo for
it? Or will I need some expensive server-class machine from Dell or such?
Any experience stories on cheap GPT-capable machines?
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com Tag: safemode detection Tag: 61842
C++ in user mode dll
Can I build a C++ user mode dll in DDK 3790 build window. I want to have my
user mode dll in C++ and driver in C. I want to build both in DDK and use as
one software project. Tag: safemode detection Tag: 61827
use createfile to access usb device
I installed a driver for a usb device.now i need to access the device
programatically in desktop application.
Somebody told me that createfile may do the work.
But i don't know where to find the file name (the first parameter of
createfile call) for the call.
Sample codes will be great help. Tag: safemode detection Tag: 61822
Support for loading NIC firmware in NDIS
Does exist some miniport functions in NDIS library,
that facilitates to load new firmware into NIC ?
(Some function that has for example parameter - address and length of new
firmware code and after calling it loads new firmware into NIC)
I did not find no such function and it seems that this problem can not be
solved
with NDIS library.
Thanks !
Peter Tag: safemode detection Tag: 61804
How to setup devcie driver in 64-bit OS
Hi, All,
My work is build a installation for 64-bit OS device driver's setup.
Both Intel64 and AMD64. Now I have some devcie driver files, include .sys,
.inf, and .cat files. And I use the new version of InstallShield 10.5 Premier
to realize it in my porject.
I looked for some forums such as www.installshield.com, and
www.installsite.org. But unfortunately, I can not found any useful
information about 64-bit OS driver setup.
About InstallShield 10.5 Premier, it contains Device Driver Wizard
component. I tried to use it. But it occurs error as following. I also set
the value of General Information -> Summary Information Stream -> Template
Summary as AMD64;1033, and set my files' Components -> 64-Bit Component as
YES.
[IMG]http://www.vchelp.net/ASP/ibr_upload/1523.jpg[/IMG]
I don't understand what it does mean. So I migrate other 32-bit OS
InstallScript codes in my current project. It is failed too.
Some code just like:
prototype BOOL NEWDEV.UpdateDriverForPlugAndPlayDevicesA( //ASCII Version
NUMBER, //HWND hwndParent,
POINTER, //LPCSTR HardwareId,
POINTER, //LPCSTR FullInfPath,
POINTER, //DWORD InstallFlags,
POINTER, //PBOOL bRebootRequired OPTIONAL
);
prototype BOOL SETUPAPI.SetupCopyOEMInfA( // ASCII Version From SetupAPI.h
POINTER, //IN PCSTR SourceInfFileName,
POINTER, //IN PCSTR OEMSourceMediaLocation, OPTIONAL
POINTER, //IN DWORD OEMSourceMediaType,
POINTER, //IN DWORD CopyStyle,
POINTER, //OUT PSTR DestinationInfFileName, OPTIONAL
POINTER, //IN DWORD DestinationInfFileNameSize,
POINTER, //OUT PDWORD RequiredSize, OPTIONAL
POINTER, //OUT PSTR *DestinationInfFileNameComponent OPTIONAL
);
When I debug code in these two functions,
UpdateDriverForPlugAndPlayDevicesA returns NO_ERROR.
SetupCopyOEMInfA return FALSE.
MSDN says:
NO_ERROR
The routine found a match for the HardwareId value, but the specified driver
was not better than the current driver and the caller did not specify the
INSTALLFLAG_FORCE flag.
My InstallFlags of UpdateDriverForPlugAndPlayDevicesA set value 0 and
INSTALLFLAG_FORCE, it returns both NO_ERROR. I have no idea. :(
Maybe 64-Bit OS could not run InstallScript Codes. I don't know. Maybe
UpdateDriverForPlugAndPlayDevicesA API dose not work in 64-Bit.
What about VBScript & JScript in 64-bit?
Needs experts' help. Thanks!
Best Regards,
Daniel Tag: safemode detection Tag: 61802
some newbie questions regarding highspeed isoc transfer parameters
Hi,
I have some questions regarding the highspeed isoc transfer
parameters:
1) What is the number of maximum packets in each Irp/Urb pair ? (1024
in isousb sample from DDK)
2) Does the number of packets transferred need to be a multiple of 8 ?
(as in isousb sample from DDK) Tag: safemode detection Tag: 61801
Need detail on TDI NBNS Request
Hi All,
I am trying to resolve short name in my TDI filter.
The short name is not resolvable in the local host/DNS.
I would like to pass this short name to the socks server for
resolution.
I am getting ip xx.xx.xx.255 with port 137/138/139
response(RFC 1002/1003)in TDI_CONNECT for short name request frm IE.
Its a local broadcast address.
Following steps I followed & working fine.
1. The NBNS request are filtered in the driver & sent to my SSLClient
application.
2. During Every application(IE) request, I am creating a listening
socket for to accept data IN for
the application & another socket to send data to my socks server.
3. Read NBNS packet, Encrypted NBNS Request are converted in to text
format (Decode Algorithm)
to identify the short name request requested in the upper layer(IE).
This details are available in RFC 1002 & 1003.
4. The decoded short name sent to the socks server to resolve the
same.
5. Socks Server returning the resolved IP that are configured in the
clean side DNS.
Following are not working
6. Formed NBNS response as per RFC 1001 & 1002. This packet formate is
not IP formate.
This contains 4bytes of header/flag(Not clear), Destination Ip,
Destination port , length of pkt, NBNS Response.
There is no source ip/port information. 90 % sure NBNS packet I
formed is correct except first 4 bytes.
If anybody know detail on this please send the info.
7. Using sentto command sent NBNS response packet to the upper
layer(Sent to listening loop back ip/port).
Shows No.of bytes sent with status success. I am trying to send
the NBNS response packet to the application that
requested the NBNS to give acknowledge. Before I send NBNS
response to the application(IE) requested,
IE is getting completed with "The Page Can not be displayed".
There is no response on the NBNS response i sent to the
application. Pls give me detail regarding this.
In general the broadcast NBNS packets are sent to all PC's, Whoever is
having a match on the short name will respond with NBNS response, But
in my application I am forming NBNS reply & there is no option to
get/specify source ip/port info.
I am specifying destination ip as 127.0.0.1 & port as 137. Please give
me detail regarding this.
Note:
a. The packet received in the TDI level is not the exact Ethernet
packet format as we are looking in ethereal.
b. Partially some fields are identified & remaining are still i am
investigating(may be it represents NBNS request/flags).
Regards,
srmjothi Tag: safemode detection Tag: 61800
Re: Pcidriver
[i cant reply on the thread so i'll just make new post]
when developing drivers to i have to undertand it, i mean to really
understand.
I use Jungo Kernel Mode Driver (for direct hardware access) and
DriverStudio DriverWorks (plain DDK is very hard for me)....
although i have those tools i cant still understand PCI, can you explain me
the process
by which PCI Device Drivers work from the UserPRogram down to Hardware.
considering the OS to be winXP
UserWinProgram -> DLL? -> DeviceDriver -> PCI
DRiver(PCI.sys) ->HAL??->Hardware
it this flow right?
-kerby- Tag: safemode detection Tag: 61797
Can USBCAMD
Dear All:
I am developing a STI driver(modified from sampusd) cooperating with USBCAMD.
The document says "the STI monitor will be notified and a preregistered STI
application, associated with the still pin on the camera, can be launched
using the STI push model".I try to call USBCAMD_NotifyStiMonitor but the
preregistered STI ap. can not be launched.Could you give me suggestion?Thanks. Tag: safemode detection Tag: 61786
About using MmMapIoSpace() in my driver's AddDevice Dispatch funct
Respected Sir,
In my driver, when I use MmMapIoSpace() Function in
AddDevice Dispatch routine, I get "TRAP_CAUSE_UNKNOWN" error . I want to know
as to what else should I do to make sure that this problem will never occur
again. What changes should I made in my code.
regards,
Sudhanshu Tag: safemode detection Tag: 61783
MmMapIoSpace
hi everybody,
Is it possible to map memory map (not I/O map) physical address through
MmMapIoSpace function ?? What is the argument "physical address" inside
MmMapIoSpace referring to ?
Thanks Tag: safemode detection Tag: 61782
can I wait an event object in a different driver?
Hi,
I have an event object in one driver. this event is signaled when the
driver is not busy, otherwise the event object is in non-signaled state. The
other driver will store the reference of the event object and use this
reference to wait for this event object.
When I test these drivers, I got IRQL_NOT_LESS_OR_EQUAL error.
Any ideas of why, and how I can fix it.
Thanks
--
Robert Tag: safemode detection Tag: 61774
Re- creating .sys files
When I build a .sys file from the same source code on 2 different machines,
I get 2 different (but similar) .sys files. Does anyone know of a utility I
can run to "patch" them to make them appear identical? Tag: safemode detection Tag: 61772
how-to setup a HID minidriver for a USB HID device ?
Hi list,
I'm developping a HID minidriver for a USB Infrared receiver, this
device expose a HID interface.
Since IR remote controls don't use the same key mapping table, the
device send a generic report (a 6 Bytes stream), and I translate
remote control's key codes to windows HID codes via a minidriver.
Each remote controls will have its corresponding minidriver.
Now, when I plug the device Windows does'nt use my "inf" file but the
default one (input.inf) while my device VID & PID are located in my
file ?
Why windows does not use my "inf" file for this new device ?
Which mean can I use to for the use of my "inf" file ?
Regards
Benoît Tag: safemode detection Tag: 61771
pcidriver
what is the pcidriver is it where Device Driver communicates?? and not the
hadware? Tag: safemode detection Tag: 61768
How can I detect that my application is running in safemode. I guess
there is nothing i can do in kernel mode because my driver will not be
loaded anyway:)
GetSystemMetrics(SM_CLEANBOOT)
Arkady
<r_konjeti@mailcity.com> wrote in message
news:1113597375.032865.276070@l41g2000cwc.googlegroups.com...
> How can I detect that my application is running in safemode. I guess
> there is nothing i can do in kernel mode because my driver will not be
> loaded anyway:)
>
> Thanks
>