"null" audio driver
Does anyone know of an existing "null" audio (software)
device that can install without hardware and provide the
interfaces that programs such as Windows Media Player need
to see in order to believe that an audio device is
installed?
Any advice would be appreciated.
Thanks.
-DaveU Tag: How to communicate between ddk-driver and activex-dll Tag: 29854
Driver development for pocket pc 2002/CE
Hello,
I am new to pocket pc driver development. What tools,
like the ddk for xp, are there for the pocket pc IM
driver development? Are there any special issues if I
have a driver in XP that I would like to port to pocket
pc?
Thanks.
Prasad Tag: How to communicate between ddk-driver and activex-dll Tag: 29853
Irp pending and not
In the dispatch function, I queued an Irp and marked it
IoMarkIrpPending(). Then in the dispatch function itself, because of
someother action, I have decided not to pend the Irp and to complete
the Irp in dispatch function itself.
Now what should be the Irp.status.IoStatus and Irp.Status.Information.
Can I give relevant error like STATUS_INSUFFICIENT_RESOURCES or should
it be STATUS_PENDING. The return value of dispatch function and Irp
completion status should be same ? The dispactch function will return
STATUS_PENDING because I called IoMarkIrpPending.
Can I legitimately change my mind to complete the pended Irp in
dispatch function? Tag: How to communicate between ddk-driver and activex-dll Tag: 29844
KeWaitForSingleObject on Thread Termination
I am trying to find out when a thread within my driver terminates. I am
trying to use KeWaitForSingleObject and pass a pointer a thread handle, but
when I make the call, the system crashes, Has anybody done this? Is there
another way of accopmlishing this?
Any help would be appriciated.
Thanks,
BJ Tag: How to communicate between ddk-driver and activex-dll Tag: 29838
ExtEscape - proper parameter validation
I'm using the ExtEscape/DrvEscape functions(with
application defined escape codes), to pass some parameters
into the driver. However, simply using EngProbeForRead
inside a try/except block, does not seem to be working; as
it throws access violation exceptions everytime, even
though the pointer is valid. Is there a specific way of
doing this? I've submitted code snippets to show what
I've done.
In Userlevel application:
InputBuf.Length = sizeof(INPUTBUF);
InputBuf.ulValue = VALUE;
ExtEscape(m_hdc, APP_ESC, InputBuf.Length, (LPCSTR)
&InputBuf, 0, NULL);
In DrvEscape:
pInputBuf = (PINPUTBUF)pvIn;
__try
{
EngProbeForRead(pInputBuf, cjIn, 1);
}
__except( EXCEPTION_EXECUTE_HANDLER )
{
Kprint((0, "DrvEscape: EngProbe failed!\n"));
} Tag: How to communicate between ddk-driver and activex-dll Tag: 29833
1394 Isochronous Synchronization
Snippet from earlier post:
>From: "Karl Regier" <reply@togroup.com>
>Subject: 1394 Iso Synchronization
>
>I am having a problem performing iso receives in a driver based on
the
>1394DCAM sample. In my driver, a "frame sized" buffer is passed to
the
>driver by the streaming interface, then that buffer is attached using
>REQUEST_ISOCH_ATTACH_BUFFERS with the Sy field set to 1 and the
>DESCRIPTOR_SYNCH_ON_SY field set. This implies to me that it should
wait
>for a packet with a Sy == 1 (indicating the first packet in a new
frame) and
>then continue to receive the data. The filled buffer (frame) is then
passed
>back to the streaming interface for display.
>
>This seems to work about 90% of the time. But quite often you see
>"glitches" in the video stream. It appears that a packet is missed,
causing
>a shift, and then the top of the next fram appears at the bottom of
the
>current frame. I am wondering if I am using these flags incorrectly,
or if
>the problem lies elsewhere.
>
I am experiencing the same symptoms using a driver that is not based
on the 1394DCAM sample. My driver attaches several buffers in stream
based mode, each large enough to contain a single frame of video data,
and sets the SYNCH_ON_SY flag. Everything works correctly most of the
time, the video is synchronized and all the frames are received. BUT
occaisionally packets are missing from the buffer and the end of the
buffer contains the start of the next frame. This bug does not appear
on all computers, and seems to be related to which OHCI card is being
used. But other DCAM drivers do not exhibit this problem.
Has anyone else experienced this problem and solved it? Or can anyone
suggest what I might be doing wrong?
Thanks!
Erik Tag: How to communicate between ddk-driver and activex-dll Tag: 29832
Interrupt notifying an application
I have been looking for some information on having an ISR
notify an application that it has occured...but alas I
have not been able to find anything. Can anyone point me
in the correct direction? Thanks!
Alex Tag: How to communicate between ddk-driver and activex-dll Tag: 29825
Audio driver and customized ceddk.
This is a multi-part message in MIME format.
--------------2F2AE6B6F9EC3928608C3C18
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
Sorry for silly question and probably not very acurate description from the new guy in the area.
I am porting(evaluating) the audio and video drivers to the new platform with Wince420. Because the
PCI bus controller on board does not support the memory mapped IO access I had to
modify the ceddk so that the READ_PORT_xxx functions do not use the memory mapping to
read and write data to the card. This works fine but there are places in the audio driver (tvia5000) where
the READ_REGISTER_xxx or WRITE_REGISTER_xxx macros are used.
Should these macros use the same access mechanism as PORT macros or should I look for the reason of
the error (first chance exception) in memory mappings or in some other place.
Regards
Hubert
--------------2F2AE6B6F9EC3928608C3C18
Content-Type: text/x-vcard; charset=us-ascii;
name="hubertr.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Hubert Rzezniczak
Content-Disposition: attachment;
filename="hubertr.vcf"
begin:vcard
n:Rzezniczak;Hubert
tel;fax:0048 71 33-48-101
tel;work:0048 71 33-48-186
x-mozilla-html:FALSE
org:Silicon & Software Systems Polska sp. z o.o.
version:2.1
email;internet:hubertr@s3group.com.pl
title:System Design Engineer
adr;quoted-printable:;;ul. Nyska 83/85=0D=0A=0D=0A;50-505 Wroclaw;;;Poland
fn:Hubert Rzezniczak
end:vcard
--------------2F2AE6B6F9EC3928608C3C18-- Tag: How to communicate between ddk-driver and activex-dll Tag: 29823
Please help me Ashwin! Genprint...
Hello Ashwin or other ddk-freaks,
I refer to an older message in this newsgroup. I asked how to read out the
right copy count from the genprint dll. Ashwin answered to me that I've to
parse the data stream to get the copy count. Can you help me, I've no idea
how I can parse the data stream.
The next question is how to call an vb active-x dll from the genprint dll.
From an mfc application it's no problem but from genprint?
Thanks alot for any information
Greets
Marc Stoffel Tag: How to communicate between ddk-driver and activex-dll Tag: 29818
About FASTINST9x
Hi, all:
I can use "install" & "remove" of NTDDK to install or uninstall the driver.
But in the Win98, I can only use FASTINST9x to install the driver, how can I
remove the device?
Wait the reply,
Daniel Tag: How to communicate between ddk-driver and activex-dll Tag: 29816
end_of_stream event in render AVStream mini-drivers
Hi,
I have implemented an AVStream mini-driver to stream DV
data to my device. The driver is listed as a filter in
the "WDM Streaming Rendering devices" and is able to
successfully stream also. The problem iam facing is as
follows:
When there is no more data to stream then AVStream class
driver sends a stream pointer with no MDL associated with
it. This is an indication to the mini-driver about the
non-availability of stream data. But my driver would
like to indicate "end_of_stream" to the application so
that the state of the filter graph is changed to "STOP"
state. I tried to set the optionsFlags in the last
stream pointer to KSSTREAM_HEADER_OPTIONSF_ENDOFSTREAM.
But still applications like GraphEdit is waiting for user
intervention to stop the filter graph. MSDV driver, on
the other hand, is able to issue this end_of_stream event
and the filter graph needs no intervention to transition
to STOP state.
What needs to be done in my KS mini-driver to indicate
end_of_stream to directshow applications?
Any suggestions on this will be highly appreciated.
Hari. Tag: How to communicate between ddk-driver and activex-dll Tag: 29815
WinNT Mirror driver
I have written a mirror driver for Win2000. It stores the screen data and
rectangles of the updated sections in a shared memory. I retrieve this info
from my application(at the user mode) and it seems to be working fine.
But now I want to write a similar driver for WinNT. I handled additional Drv
functions such as DrvStretchBlt, DrvStrokeAndFillPath etc and built the code
in the WinNT environment. But it does not work.
Can anyone tell me what changes need to be done to enable the Win2k mirror
driver to run on WinNT ? Is there any differnce in initialization done in
DrvEnablePdev()?
Thanks in advance,
S.J Tag: How to communicate between ddk-driver and activex-dll Tag: 29814
Packet Modifiers
I Have to add IP Options in the IP Header feilds for all the outbound packets
Can i do this NDIS Drivers Tag: How to communicate between ddk-driver and activex-dll Tag: 29810
Can I Allocate a Memory In Driver that can be visisted by every app??
I Allocate a Memory in driver. and the virtual address is bigger thang
0x80000000.
I want to every app can visisted that memory .
how can do with it ?
Current my method is:
///////////////////////////////////////////////////////////////////////////
void* CalPFN(void * pBase, void* pAddr)
{
unsigned long lPFN;
lPFN = ((unsigned long)pAddr/(ONEPAGE))*4 + (unsigned long)pBase;
return (void*)lPFN;
}
void MakePageAvailable(void * pPageStart, void *pPageEnd)
{
const int nMapNum = 0xffffffff/(ONEPAGE)*4;
PEPROCESS pEPROCESS = NULL;
PHYSICAL_ADDRESS phyPFN ;
unsigned char * pCurPage = pPageStart;
unsigned char * pVIRPFN = NULL;
unsigned char * pucByte; //
if( pPageStart > pPageEnd)
{
return ;
}
pEPROCESS = PsGetCurrentProcess();
phyPFN.LowPart = *(unsigned long*)(((unsigned char*)pEPROCESS) + 0x18);
phyPFN.HighPart = 0 ;
pVIRPFN = (unsigned char*)MmMapIoSpace(phyPFN, nMapNum, FALSE);
do{
pucByte = (unsigned char*)CalPFN((void*)pVIRPFN, (void*)pCurPage);
*pucByte |= 0x4; // Set the Flags that can be visited by user mode
pCurPage += ONEPAGE;
}while( (void*)pCurPage < pPageEnd && (void*)pCurPage > pPageStart);
MmUnmapIoSpace(pVIRPFN, nMapNum);
}
///////////////////////////////////////////////////////////////////////////
I Called MakePageAvailable function in the Create process notify routine.
But when the app visisted that memory, there will be appear a Error.
say the meomoy can't be read.
who can give me another meothod to solve it ?? very thanks. Tag: How to communicate between ddk-driver and activex-dll Tag: 29808
Setting SSID Programmatically
Hi,
I want to get and set SSID programmatically. Is it
feasible?
Could you give me some directions on that?
Thanks
Vivek Chopra Tag: How to communicate between ddk-driver and activex-dll Tag: 29806
HidD_SetNumInputBuffers
HidD_SetNumInputBuffers() is a great way to be sure that no USB HID IN
transactions are lost.
Are there any known limits to the number or overall size of the HID IN
buffers that I can set?
I have been able to use 500 40byte buffers without a problem in XP. And over
1200 in WinME.
Are the rules documented somewhere?
Thanks,
Jim Tag: How to communicate between ddk-driver and activex-dll Tag: 29802
Windows 98 and PnP
I have created a plug and play driver that works fine in Windows 2000 and
XP. It uses an *.inf file to manually install the device by using the "Add
Hardware" control panel program. It receives PnP messages, etc. Now I'm
trying to create another version that will run on Windows 98. The problem
is the new driver does not receive any plug and play messages and the
AddDevice routing is never called. How can I manually add the device? Is
there an equivelent function to the AddService function of the Windows
2000/XP *.inf file instructions? Tag: How to communicate between ddk-driver and activex-dll Tag: 29801
IO Listener
How would I go about setting up a listener for a
particular USB HID device. I want to be able to capture
X10 events. I was going to setup a thread to poll the
buffer, but the ReadFile() function seems to hang when
there are no bytes in the buffer.
Is there a better way to go about this?
I must admit that most of my experience has been in
writing front-end apps, but I am having a lot of fun with
this one!
thanks. Tag: How to communicate between ddk-driver and activex-dll Tag: 29795
Job not found in spooler when printint to a network printer (IPP)
Hi,
I am trying to get the job instance from a printer by
calling enumJobs in my printer driver plugin. In my
testing environment, if the printer is installed as a
local printer, job instance can be retrieved from
enumJobs through the printer handle. However, if the
printer is installed as a network IPP printer, printer
information returned from GetPrinter shows no job
(PRINTER_INFO_2.cJobs is 0) in the queue.
I think if a printer is installed as an IPP printer, the
job is sent directly to the printer without passing
through spooler. But I am not sure. If not, is there any
way to get the job information of the printing job? Could
anyone here clear up my mind?
Thanks,
Roy Tag: How to communicate between ddk-driver and activex-dll Tag: 29791
kernel sockets
Hi all,
Any one know if there are API's to create socket from kernel mode? Any
information on this would be verymuch helpful
Thanks,
-Venkatesh Tag: How to communicate between ddk-driver and activex-dll Tag: 29787
Activating changes mane through the INetCfg API
How do I cause the network interface to rebind or activate
the changes made through INetCfg API in Windows 2000
without restarting the system. I notice that when I make a
change to the network interface through the GUI, the card
unloads, then reloads, but the same does not happen with
the INteCfg APIs. How can I emulate the reset. I have
tried the service controller and rebinding the
INetCfgComponent. Thanks in advance for the help. Tag: How to communicate between ddk-driver and activex-dll Tag: 29786
IEEE1394: Virtual device. Virtual adapter?
i've built and installed the IEEE1394 sample drivers that add a virtual
device to the firewire bus. And i run UI app and see my activity when
i do stuff.
But i do not have an actual FireWire/IEEE1394 adapter in my system.
Later, i installed the driver for a digital camera, and use it's GUI app to
try to talk to a camera.
Should i see activity in the DDK debug app coming from the digital
camera app? i do not see anything in the debug app's log when i have
the camera program try to "find a camera."
Am i doing something wrong with the ddk's debug app? Should i be
able to see activity? Will XP have the drivers in place for the firewire
adapter to host my virtual device? Will the camera program interrogate
the drivers in the absence of an actual FireWire adapter?
Or do i need to actually install a firewire adapter in my system?
i hope my question makes any sense. Tag: How to communicate between ddk-driver and activex-dll Tag: 29778
"Microphone boost" API in kernel mode
Hi,
Looking for a way to get indication or to be able to
control the "Microphone boost" check box in the advance
Volume control panel from with in a driver.
Is there such an API ?
Thanks
mich Tag: How to communicate between ddk-driver and activex-dll Tag: 29770
Basic question
Hello all,
I am having a small basic question on stack size. I want
to know why the stack size is limited to 12kb i x86
kernel mode? what is the factor that decides this. from
my undrstanding this cannot be the limitation of
processor.
Is the user-mode stack size also limited, if not to 12kb?
Is this stack size is the character of OS? Can somebody
shed some light on it or point to resources.
ashok. Tag: How to communicate between ddk-driver and activex-dll Tag: 29769
Is that Printer driver in Win98 is all the same in Win95??
I can't find any about printer driver in win98 DDK.
I just find that topic in the win95 doc.
Is that printer driver haven't different in win98 and win95
I can't find detail for design printer driver.
Anybody can tell me which can find how to design printer
driver.Thanks!! Tag: How to communicate between ddk-driver and activex-dll Tag: 29768
2c_loadunload gives strange errors!!
Hi,
I have a WLAN device that is failing the 2c_loadunload
test (when run as part of the DriverVerifier only!!). The
actual error is "Resends Failed", but here is a sample
log..
Resends Pending : 5176
Resends Completed : 5176
Resends Failed : 8
Can somebody throw more light on this test!? It looks
like the driver did (re)send out all packets (back to the
server). Why does the script flag failures? btw, the same
test passes without any errors when run as part of the
NDIS Manual tests.
Any thoughts are highly appreciated.
Regards
HV Tag: How to communicate between ddk-driver and activex-dll Tag: 29756
NDIS intermediate driver to TDI question
Hi,
We are trying to write an NDIS intermediate driver which intercepts certain
packets before hitting miniport driver and changes IP address and other
stuff and we want to send it over another interface on the machine. In order
to do this, we probably have to send the packet up the stack through the TDI
interface so that it is properly routed through the NDIS stack once again.
My question is:
1. Is it even possible to do this? I am assuming it is because certain IPsec
VPN drivers do similar stuff.
2. Is it possible to do this in reverse direction - i.e. once the reply
packets are at the top of TCP stack, I want to process them and re-insert
them at the low level intermediate driver?
Thanks
Pawan Singh
pawan@pinger.org Tag: How to communicate between ddk-driver and activex-dll Tag: 29752
HELP - Does anyone own a Tiny PC model number TT440BXM
I need someone who owns a tiny pc with the above model number if someone
could please help me I would be grateful Tag: How to communicate between ddk-driver and activex-dll Tag: 29730
USB Disk Filter driver can't see read/write activity
Hi,
I'm a newbie to Windows driver writing. To start learning
I have a filter driver that is to simply put an entry into
the Application log whenever an IRP passes through it,
then passes the IRP on. This is on Windows 2000 using a
removable USB disk (Linksys 32 MB 'solid state' instant
disk device).
My filter is installed as an Upper Filter to usbstor.sys.
When I attach the USB disk, my filter sees the DriverEntry
call, the AddDevice call, and sees IRP_MN_START_DEVICE,
properly placing an entry in the log. Also sees some more
IRPs that I have not specifically identified, but simply
have noted in the log as having been passed on. All of
these happen before I have tried to access anything on the
USB disk.
When I access the disk, the filter sees no IRP activity.
I would have thought I'd see some IRPs pass through during
disk reading/writing. Reading/writing of the disk is
successful. The filter next sees IRPs when I remove the
device.
So, given the successful disk reads/writes and the lack of
IRP activity detected by the filter during these
operations the filter must be bypassed by the reads and
writes?
What part of the picture am I missing here, and how do I
get my filter to see the read/write related IRPs? Is
there some part(s) of the DDK that I should review more
thoroughly to understand this? .. Or is it somewhere else
I should read? If the filter is indeed being bypassed by
reads/writes is this behavior strictly related to USB
(i.e. usbstor.sys) or is this a common part of port and/or
class driver operation?
Thanks for any help.
-alan Tag: How to communicate between ddk-driver and activex-dll Tag: 29723
Unable to write to USB HID Device
Can anyone verify if I am doing this right?
I am able to read the product and vendor ID's from an HID
device, so the CreateFile and the Get_Attributes
functions are working well. I am having a hard time
using WriteFile to send bytes to the device. I am
sending just 2 bytes to and x10 usb hid device. The
WriteFile call returns false.
Here is the CreateFile call:
handle = CreateFile(DeviceName,GENERIC_READ |
GENERIC_WRITE,FILE_SHARE_READ |
FILE_SHARE_WRITE,0,OPEN_EXISTING,0,0);
Here is the WriteFile definition and call:
[DllImport("kernel32.dll", SetLastError=true)]
private static extern unsafe bool WriteFile(int
hFile,void* lpBuffer,int nBytesToWrite,int*
nBytesWritten,int overlapped);
public unsafe bool WriteBytes(int handle, byte[]
OutputReportBytes)
{
int BytesWritten = 0;
fixed (byte* p = OutputReportBytes)
{
return WriteFile(handle, p,
OutputReportBytes.Length, &BytesWritten, 0);
}
}
Any help here would be greatly appreciated.
Thanks in advance. Tag: How to communicate between ddk-driver and activex-dll Tag: 29715
ddk download
is there such a thing anymore?
say 2000+, even the smallest subset will do. Tag: How to communicate between ddk-driver and activex-dll Tag: 29712
NDIS query and SNMP
Hi,
I am looking at NDIS to get some piece of
information that Microsoft implementation
of SNMP does not give me (mib2-transmission)
I have found how to get the required stats from
NDIS using IOCTL_NDIS_QUERY_GLOBAL_STATS
but there is a small piece of information that I
could not find anywhere in the documentation
Network adapters are identified by an index number
(called ifIndex) in SNMP. However I cant find any
corresponding information in the NDIS OID header
files. Without that identifier I have no way of correlating
the information about adapters SNMP gives me and
the information I can find out myself using NDIS.
If someone knows how this ifIndex number is found by
the inetmib1.dll which gives the mib2 data or how I
can get the ifIndex from NDIS or even from where I
can get the mib2-transmission group information in
windows please tell me about it
Thank you
arun Tag: How to communicate between ddk-driver and activex-dll Tag: 29711
surpriseremove test error
My driver is for usb device. I try to test
surpriseremove. HCT simulates unpluging device. My driver
steps into PnpSurpriseRemove, PnpRemove and Unload
routine. Whwn HCT try to "insert" device, the device
manager shows :"Windows cannot load the device driver for
this hardware because a previous instance of the device
driver is still in memory. (Code 38)". Why?
I've never seen this error when using this driver before. Tag: How to communicate between ddk-driver and activex-dll Tag: 29706
IpRenewAddress FAILED!!
hi
Using IP Helper Api to dynamically assign ip to my
interface.
I am calling GetInterfaceInfo to get IP_ADAPTER_INDEX_MAP
(InterfaceInfo->Adapter)
which i am passing to IPRenewAddress.
The GetInterfaceInfo returns me following values.
InterfaceInfo->NumAdapter =1
InterfaceInfo->Adapter->Name = /Device/TCPIP_{C767E2D2-
8994-470F-9D84-9446D40CD0DB}
InterfaceInfo->Adapter->Index = 2
GetInterfaceInfo also gives the number od bytes written.
its value is 3120 which is very large.
the buffer contains all garbage value after the name of
Adapter.
IPRenewAddress is failing it is returning error code 2
(i.e The system cannot find the file specified )
where i am going wrong?
Thanks in Advance
Jyotsna Tag: How to communicate between ddk-driver and activex-dll Tag: 29705
Problem about NT SCSI disk filter driver
Hello,
I have written a scsi virtual disk miniport driver and a filter driver
to intercepte all srbs that sent to this virtual disk device by attaching
itself to the disk device object, but i find that can not intercept
SCSIOP_READ and SCSIOP_WRITE. However, i can intercepte
IRP_MJ_DEVICE_CONTROL and IRP_MJ_INTERNAL_DEVICE_CONTROL(function is 1,
perhaps is claiming device to disk class). why this happened? what other i
should consider?
BTW, my OS is NT SP6.
Any comments or concern will be appreciated .
Thanks.
David Yan Tag: How to communicate between ddk-driver and activex-dll Tag: 29703
Detecting floppy present
Is there a way to detect the presence a 1.44 floppy
without having to open the drive. Opening the A: drive
takes more than a second and I need to detect whether a
folopy is inserted in the drive periodically.
Thanks Tag: How to communicate between ddk-driver and activex-dll Tag: 29689
Code works in NT doesn't work in Win2K(SP4) and Win2003
I have 2 drivers and 1 user mode application, one driver
runs in NT, one driver runs in Win2K and Win2003, they
share some common codes. The application uses IOCTLs to
communicate with driver.
There is an IOCTL, if device is in a specific internal
state, this IOCTL fails and the driver return
STATUS_INVALID_PARAMETER to system, but the driver also
return some internal error information to application,
this information is returned through output buffer
argument when calling IODeviceControl. In Windows NT,
this error information can be returned to application, so
when this IOCTL fails, the application can tell user why
it fails. In Windows 2000(SP4) and Windows 2003, this
error information cannot be returned to application, the
result is when this IOCTL fails, the application tells
user "unknown error", this is very bad.
This IOCTL uses BUFFERD_IO to communicate with kernel, I
wonder if this is because of security reason, when an
IOCTL fails, Win2K(sp4) and Win2003 doesn't copy the data
in kernel buffer to user mode buffer, but Windows NT still
does that?
Thanks. Tag: How to communicate between ddk-driver and activex-dll Tag: 29688
win2k3 SCSI miniport driver "code 37" problem
I have a SCSI miniport driver which installs and works OK under NT, 2000
and XP. I am trying to install this driver under Server 2003 Enterprise
Edition. The "Found New Hardware Wizard" reports: "Windows can not
initialize the device driver for this hardware. (Code 37)". After that I
can see that the entire driver related registry settings are done
correctly, according to my INF file. Before attempting to install the
driver, I could see the device in the registry
(HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi\Scsi Port...). After
attempting to install the driver, the device disappeared from the
DEVICEMAP registry.
What does Code 37 mean, and what do I need to do to get this device to
install under Win2K3? Tag: How to communicate between ddk-driver and activex-dll Tag: 29685
Booting from a RAMDISK image
Hi,
I used the RamDisk sample driver in the DDK and I was able
to use the Disk Administrator to create a partition and
format the RamDisk. My goal is to copy an NT bootable
image to the RamDisk and save the image. This image would
be downloaded to a reserved RAM before the system is
started. The BIOS (after hooking INT 13h) should access
this image as a bootable disk. Currently the RamDisk
driver formats the RamDisk as non bootable. Is it possible
to create a bootable image using the RAM DISK driver with
some modification? How NT determines the offset that it
passes to the driver? Does it use the drive geometry that
was provided by the driver to calculate this offset? If so
what is the “equation” in terms of the CHS parameters?
Thanks in advance,
Daniel Tag: How to communicate between ddk-driver and activex-dll Tag: 29683
Releasing Device Names
I am writting a 1394 device driver for my system. All is
working as expected with one exception.
When I enumerate the bus with a device attached my device
names are as follows:
\DosDevice\000001
\DosDevice\000002
The 000001 represents the bus interface and the 000002 is
the plugged in device.
When I unplug the device the 000002 device rightly is
removed from the enumeration. However, if the the device
is replugged on to the device the emuneration 000003 is
added instead of 000002.
The question is: what am I missing to allow the release
of the 000002 name so it can be reused and is there
anything else I should be aware of?
I am writing for CE.net 4.1
Thank you.
Graham.... Tag: How to communicate between ddk-driver and activex-dll Tag: 29665
rsm media recognition within a MOD library
We are currently developing a windows 2003 driver for our
SCSI library and now I found a problem with the media
recognition. The Microsoft Removable Storage service
detects the media in the library and creates database
entries for each piece. I currently work with two
libraries one with two SMO-F551 and the other with four
SMO-F561 drives. The library with SMO-F551 identifies the
media as '5.25" REWRITABLE DISK' and creates a media entry
with two sides. The library with SMO-F561 identifies the
media as 'Removable media' and creates a media entry with
only one side.
Why does it not work with the SMO-F561 drives? Tag: How to communicate between ddk-driver and activex-dll Tag: 29664
How to distinguish stack frame from dataseg?
Hi, All!
Suppose I want to check, for testing purposes, if the object was
created statically or allocated on the stack (say in the thread
function). How to do this?
For example:
struct SomeStruct
{
// shareable data.
// ...
// lock
KSPINLOCK lock;
};
BOOL InitSomeStruct(SomeStruct& someStruct)
{
ASSERT_STATICALLY_ALLOCATED(someStruct);
KeInititalizeSpinLock(&someStruct.lock);
}
I want ASSERT_STATICALLY_ALLOCATED macro not to ASSERT when someStruct
is allocated on the dataseg and ASSERT, when it is allocated on the
stack (i.e. not accessible from other threads). Tag: How to communicate between ddk-driver and activex-dll Tag: 29659
Calling DLL from VXD
hi!
i am writing a vxd to hook file i/o.
i want to call a dll function from my vxd.
i tried to use SHELL_CallDll,SHELL_LoadLibrary etc.
but i am getting link error
"unresolved external symbol _SHELL_CallDll"
"unresolved external symbol _SHELL_LoadLibrary"
i also tried to use PELDR_LoadLibrary
but iam getting same errors.
how do i link them properly?
thanks
Anshu Tag: How to communicate between ddk-driver and activex-dll Tag: 29647
Question about Virtual Serial
I followed the step of Eliyas Yakub How to Make a Virtual Port.
Frome Step 1 to Step 3 I was success, but the step 4:
Step4
Once the steps above have been completed, the bus driver
can now start receiving IRPs from any application such as HyperTerminal.
For a list of all the IOCTL IRPs that have to be handled, refer to
the "SerialIoControl " function in the "serial" sample in the DDK. By
implementing the handler code for these IRPs, the virtual com port should
now be fully
functional.
Yes, I can use HyperTerminal to open the COMx that I had installed, but I
can not handled the Serial IOCTL IRPs,
I don't know what happened. I added the "SerialIoControl" function in the
Bus_IoCtl(busenum.c)£¬
if (!fdoData->IsFDO)
{
...
status = SerialIoControl(DeviceObject,Irp);
...
}
I can't see any DebugCode of IOCTL IRPs in the DebugView, and the
HyperTerminal said "Unable to open COMx.
Please check your port settings"
please reply me...
Best Regards...
Daniel Xu Tag: How to communicate between ddk-driver and activex-dll Tag: 29645
MPIO DDK
Dear All,
We need to develop a failover driver for our storage
system. In Microsoft's document, this driver must develop
under MPIO DDK, but I can't find it neither in Win Server
2003 DDK or in win xp DDK. Can any body tell me where or
how to get this DDK?
Thanks,
Karl Tag: How to communicate between ddk-driver and activex-dll Tag: 29644
Call ACPI Method. How?
The idea to create driver to be able to call any ACPI method.
Calling to methog that belongs to particular device not a solution.
Yevgen Goryachok Tag: How to communicate between ddk-driver and activex-dll Tag: 29639
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: How to communicate between ddk-driver and activex-dll 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: How to communicate between ddk-driver and activex-dll 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: How to communicate between ddk-driver and activex-dll 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: How to communicate between ddk-driver and activex-dll Tag: 29623
Hello,
Can someone tell me if it's possible to call an activex-dll (vb) from an ddk
driver (ex. genprint-printprocessor).