HPPLOT
Hi i'm looking for the HPPLOT file. I was told that i can
be found on the 98DDK. if anyone has this file or another
example of a plotter driver could you please send it to my
email its: mfrancisy@mailcity.com
I'm having problems with my 98DDK, and i really need the
file for my thesis, and any links or suggestions regarding
plotter drivers would also be very helpful.:) thanks!:) Tag: center desktop in mother window Tag: 34557
WLAN driver for Windows CE.NET - which tool?
Hi,
I need to write a WLAN driver for Windows CE.NET (Pocket PC 2003). Can I
use Embedded C++ 4 for this task? Or must I used Platform Builder?
And what is the best way to debug such a driver (functions names to use)?
Thank you for your help in advance
/Marco Tag: center desktop in mother window Tag: 34556
Getting an NDIS driver to send packets back up the stack
Hi,
Since my LSP cant see "all" tcp or udp traffic, I wrote an NDIS
intermediate driver to send packets that my loop back hasnt seen back
up the stack to a different port where I have a listener application
that will re attempt to send that data using winsock
Using a sniffer (ethereal and etherpeek) im able to verify that I can
modify the packets correctly and change the destination IP addr and
port to be the sending machine and some other port where my listener
app is running
However, my listener app never sees a socket connection
Is what im trying to do possible?
Thanks
Lyle Tag: center desktop in mother window Tag: 34548
Implementing JPEG support in unidriver based rendering plug-in
Does ICM have to be handled by the driver in order for it to be recognized
as one supporting JPEG compressed images? DDK is somewhat vague on the
issue. Also it appears that for unidriver you should rather hook Escape
instead of QueryDeviceSupport (it never gets called?). However, when
application calls ExtEscape with QUERYESCSUPPORT and CHECKJPEGFORMAT
parameters, it always returns 0, while rendering plug-in never gets called.
(Though if you do QUERYESCSUPPORT for something else, it will call Escape of
plug-in.) The flGraphicsCaps2 has GCAPS2_JPEGSRC bits set and both
QueryDeviceSupport and Escape are hooked. Am I missing something? ICM? Tag: center desktop in mother window Tag: 34542
NDIS 5.0 intermediate driver problems with Nortel's VPN
Hi,
I am having some difficulties to operate my NDIS 5.0 intermediate driver
in conjunction with Nortel's Contivity VPN Client.
I start with a Dell laptop with an on-board 3Com NIC running Windows XP
SP1. The laptop is plugged into a docking station with an additional
identical NIC. I install the Nortel VPN Client software and reboot my
machine. When the system comes up I install my software which includes
an intermediate NDIS driver. The installation seems normal and no error
messages are displayed. However, after I restart Windows, I cannot
access the network (ipconfig only sees the VPN virtual NIC).
The above problem has not been observed on any hardware except the Dell
laptop, nor has it been observed on the same laptop when the
installation is performed outside the docking station. Also, if I
reverse the installation order (i.e. 1st my software, then Nortel's
VPN), everything seems fine!
Can anyone suggest what's going on? Any input will be most appreciated.
Thx Tag: center desktop in mother window Tag: 34540
Q : About WPA of WLAN - How to generate AES key material?
Q : About WPA of WLAN - How to generate AES key material?
Hello, everyone.
I am developing a WLAN Ndis driver for WPA and use WinXP Wireless Client
program as a WPA configuration.
Currently, I¡¯m testing "AES" encryption facilities at "Adhoc" mode
configuration.
I know 32 bytes of key material should be generated from SHA1 algorithm
defined at Wi-Fi.
(Shane noticed me that. Thank you very much Shane)
But i couldn't understand the appendix F of Wi-Fi specification, April 2003.
I need more information to generate AES key material.
The details are:
1) In 802.11i D3.0, an HMAC-SHA1 Test vectors shows that sha1 has 20 byte
output, but we need 32 bytes output for key material. I couldn't find any
explanation about that.
2) I couldn't know that where "digest" came from as an input parameter when
the first call to hmac_sha1.
See below.
hmac_sha1(
digest, ssidlength+4, //Where from digest? Did it come from SSID
value?
(unsigned char *)password, (int)strlen(password),
digest1);
3) What's the value of A_SHA_DIGEST_LEN when the 2nd call to hmac_sha1?
Is it 32? Where was it defined or explained? See below.
hmac_sha1(
digest1, A_SHA_DIGEST_LEN,
(unsigned char *)password, (int)strlen(password),
digest);
Thank you. Tag: center desktop in mother window Tag: 34536
Usb v1.1, Iso URB callback frame number is out of sequence
I have written an Usb v1.1 Isochronous driver
implementation. The attached Usb device uses the Philips
Isp1581 chip.
For the most part it works fine.
I am resubmitting/recycling 2 Urbs.
Each Urb has a buffer length to contain 4 frames worth of
data. The Iso Max Packet size is 1020 bytes so the Urb
buffer is 4080 bytes.
The Urbs are passed back to my driver from the bus driver
at intervals of 4 frames per Urb. All frames are in
sequence.
Occasionally, a Urb comes back at an interval of 8 frames
(i.e. some frames have been skipped).
Later, a subsequent Urb callback occurs containing the
missing frames. In other words, this Urb has a frame
number less then the previous Urb. When this occurs, The
frame order is out of sequence and the data stream becomes
non-contiguous.
Does anyone have any idea how this can happen?
Rex Tag: center desktop in mother window Tag: 34535
How to get the device objects on IDE bus
Hi NT Gurus,
How to find out number of disk drives connected to IDE
controller and get their device object pointers.
Thanks shak Tag: center desktop in mother window Tag: 34533
How to Enable/Disable Disk drives programmatically
Hi All,
How to Enable/Disable Disk drives programmatically. like
we do manually from Device Manager.
Thanks, Shak Tag: center desktop in mother window Tag: 34532
IoGetDeviceObjectPointer getting STATUS_SHARING_VIOLATION?
I'm using IoGetDeviceObjectPointer to open \??\PhysicalDrive0. This works
fine, unless my application opens it before calling the driver. In which
case I get STATUS_SHARING_VIOLATION (0xC0000043).
I open it from my application using:
CreateFile("\\\\.\\PhysicalDrive0", GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
From within my driver I open it using:
IoGetDeviceObjectPointer(L"\\??\\PhysicalDrive0", FILE_READ_DATA, &fileObj,
&deviceObj);
Is this not allowed? I can call CreateFile multiple times from my
application to open the device and that seems to work fine, but using
IoGetDeviceObjectPointer doesn't work.
Thanks,
Josh Tag: center desktop in mother window Tag: 34529
MEDIATYPE_??? for grayscale images.
I have googled heavily trying to find the appropriate mediatype and sub
type for grayscale images. While I cannot find anything I would call
definitive, I cannot believe that this has not been done before. Since
there is no point in reinventing the wheel, I wonder if someone could
point me in the right direction. The formats that need to be supported
are:
grayscale 8bpp, one byte per pixel
grayscale 10bpp, two bytes per pixel, upper bits zero extended
grayscale 12bpp, two bytes per pixel, upper bits zero extended
(I can see the need for more bits in future cameras)
I assume the major media type would be MEDIATYPE_Video. But the
subtype??
I have seen a fourcc type Y800 (with apparent aliases Y8 and GRAY) that
could work for the 8bbp. Should that idea be extended for 10 and 12
bits (Y010 and Y012 perhaps) or would another approach be better? MS
seems to recommend creating new GUIDs which seems reasonable to me. I
am hoping that there is a convention already in use (there must be a
monochrome camera community out there using dshow right?) such that my
device can fit in with any renderers that happen to support the existing
formats.
Regards,
Tom Udale Tag: center desktop in mother window Tag: 34527
How to find port resources used by hard drives?
I need to find the i/o port and status port for each IDE hard drive
connected to a system. So far I've been able to get these from the standard
primary/secondary IDE controller by using the following method:
1. Open \??\PhysicalDriveX, where X is the drive number I'm intersted in.
2. Send it an IOCTL_SCSI_GET_ADDRESS
3. Open \Device\ScsiPortX, where X is the PortNumber returned by
IOCTL_SCSI_GET_ADDRESS.
4. Send it IRP_MN_QUERY_DEVICE_RELATIONS with relation type of
TargetDeviceRelation
5. Use IoGetDeviceProperty to send the DEVICE_OBJECT returned by #4 a
DevicePropertyBootConfiguration query.
6. Walk through the CM_RESOURCE_LIST returned by #5 I can find the port
resources for the drive.
However, this doesn't work for a serial ATA drive for some reason. It works
fine up to #5, but the IoGetDeviceProperty returns
STATUS_OBJECT_NAME_NOT_FOUND (0xC0000034).
So, is there a better way to get this information for each IDE drive?
I've only been working with Windows device drivers for the past 3 weeks, so
if anything doesn't sound right, it probably isn't. Let me know if I can
provide more clarification to the question.
Thanks,
Josh Tag: center desktop in mother window Tag: 34526
IOCTL_USBPRINT_VENDOR_SET_COMMAND
In MSDN we see that IOCTL_USBPRINT_VENDOR_SET_COMMAND
declared in IOCTL.H. Were we can get it? Tag: center desktop in mother window Tag: 34517
HKEY_CURRENT_USER access in driver
How do I access HKEY_CURRENT_USER witin my driver? I use
a couple values in the registry to communicate between my
driver and a DLL. I was using, a subkey I created
under, "HKEY_LOCAL_MACHINE" but then discovered that with
default "user rights" a "power user" is unable to write
to that key so I've decided to change to the other.
However, as simple as I thought this would be, I've
discovered that I'm not sure how to access that key
using "ZwCreateKey(...)" as I was doing with the ohter
key.
Can someone give me some ideas or better yet a sample
code snip?
Thanks,
Tim Tag: center desktop in mother window Tag: 34515
IR sniffer
I am interesting in finding out how can i write a sniffer
about the data beeing exchanged in an IR port during file
tranfer. Can anyone help? Tag: center desktop in mother window Tag: 34511
Intermediate NDIS driver conflict
Hi,
I am having some difficulties to operate my NDIS 5.0 intermediate
driver
in conjunction with a third party VPN Client.
I start with a laptop with an on-board NIC running Windows XP with
SP1. The laptop is plugged into a docking station with an additional
identical NIC. I install the VPN Client software and reboot my
machine. When the system comes up I install my software which includes
an intermediate NDIS driver. The installation seems normal and no
error
messages are displayed. However, after I restart Windows, I cannot
access the network (ipconfig only sees the VPN virtual NIC).
The above problem has not been observed on any hardware except the
specific
laptop, nor has it been observed on the same laptop when the
installation is performed outside the docking station. Also, if I
reverse the installation order (i.e. 1st my software, then the VPN
client), everything seems fine!
Can anyone suggest what's going on? Any input will be most
appreciated.
Thx Tag: center desktop in mother window Tag: 34510
how to submit driver for Windows Update
I have a complex driver and my co-installer failed when
the driver is downloaded from Windows Update (for this
reason, the driver is removed from Windows-Update).
How can I test my new co-installer ?
Are there some Windows-Update test servers ?
If yes, how I configure my client machine (W2000, XP) to
download from these test servers?
Thanks for the help. Tag: center desktop in mother window Tag: 34508
Replacing signed drivers
Hello All,
I have a doubt regarding one signed driver replacing another signed
driver. My situation is as follows:
[1] I have a set of drivers (version 1.0) which install a given USB
device. These drivers were successfully WHQL tested.
[2] Now i have a new set of drivers (version 2.0) for the same device.
These drivers will also be tested with WHQL tool for certification.
It can be noted that apart from driver versions there is nothing
different between the 1.0 and 2.0 INF files.
At this point i have a few scenarios which need clarification from
experts:
===========================================================================
1) If user has installed version 1.0 drivers first and later tries to
install 2.0 drivers (signed ofcourse) then will the 2.0 drivers
replace the existing 1.0 drivers?
2) If user has installed version 2.0 drivers (signed) first and later
tries to install 1.0 drivers, then when the device is connected which
of the INFs will be considered for installation? 1.0 or 2.0? Is
INF-matching based on newer of older versions of the INFs?
NOTE: Installation in the above scenarios are done programatically
through SetupXXXX functions.
Any pointers on this will be highly appreciated.
Hari Tag: center desktop in mother window Tag: 34507
CreateFile gives error 5 (Access is denied)
Hi,
I am new to the Windows driver development. I am writing a
filter driver for an USB mouse using DDK's sample code.
I want to have the user application to communicate with
this driver.
In the driver, I have registered the interface using a GUID
and enabled it.
From the application, I will enumerate through the device
interfaces and get the device path.
I am using this device path to "CreateFile".
file = CreateFile ( deviceInterfaceDetailData->DevicePath,
GENERIC_READ | GENERIC_WRITE,
0,
NULL, // no SECURITY_ATTRIBUTES
structure
OPEN_EXISTING, // No special create
flags
0, // No special attributes
NULL);/*
Unfortunately this call failed with error 5 (Access is denied).
Can anybody tell me what might be the problem. Am I missing
anything here.
TIA,
Raghav Tag: center desktop in mother window Tag: 34506
isn't it a sample of virtual port?
there is a sample PORTIO in win2000 ddk, isn't it a demo of virtual port?
the sample is also included in softice driver suite 3.0.
I use win2k DDK to build the PORTIO sample in DDK successfully. But
something is wrong when I use the gpdread and gpdwrite to test the driver.
I use command line "GpdWrite -b 1 2" to write the number 2 to assigned 'base
port address + 1', and then "GpdRead -b 1 "to read out. But the number read
out is always 0xFF.
I also tested writing a number every 1000 milliseconds and reading every 600
millisecond, but the read-out number kept 0xFF.
what does the sample mean?
could you tell me why?
thanks Tag: center desktop in mother window Tag: 34492
Receiving DBT_DEVNODES_CHANGED from a Windows service
I have a Windows service that needs to be notified when a particular
device has been enabled or disabled. When either of those actions
happen, I have noticed that Windows broadcasts WM_DEVICECHANGE with a
wParam of DBT_DEVNODES_CHANGED.
Since services don't receive Windows messages, I understand that I
should be using RegisterDeviceNotification along with HandlerEx to
receive device notifications. However, the documentation for
RegisterDeviceNotification says that it only supports the
DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE events, which doesn't
help me.
So my primary question is: How can my service be notified when a
device has been disabled or enabled?
Related questions:
1. I've heard that some people create a hidden window to receive
broadcast messages in cases like this. This sounds kind of weird to
me. What are the possible problems with this approach?
2. Also, can what I'm asking about be done from a Windows service with
WMI? If so, is there any sample code of WMI being used for this
purpose (in a service or otherwise)?
Much thanks,
-j Tag: center desktop in mother window Tag: 34490
How to use IOCTL_USBPRINT_VENDOR_GET_COMMAND and IOCTL_USBPRINT_VENDOR_SET_COMMAND
Hello,
I'm trying to use IOCTL_USBPRINT_VENDOR_GET_COMMAND and
IOCTL_USBPRINT_VENDOR_SET_COMMAND to communicate with UsbMon(UsbPrint) in my
language monitor but I have no idea how to set parametes of device io
contorI that will be passed to portmonitor.
I need to call GetPrinterDataFromPort of USBMon (portmonitor) inside
GetPrinterDataFromPort of Language monitor to get/set some vendor specific
data using IOCTL_USBPRINT_VENDOR_GET_COMMAND and
IOCTL_USBPRINT_VENDOR_SET_COMMAND command.
Are the following codes correct?
In case of IOCTL_USBPRINT_VENDOR_GET_COMMAND,
cbOutBuffer = 13; //3 1st:Vendor specific code,
// 2nd:Vendor Request value - Most Significant Byte
// 3rd:Vendor Request value - Lease Significant Byte
//+10 size of data to receive
lpOutBuffer[0] = VENDOR_SPECIFIC_CODE1;
lpOutBuffer[1] = 0;
lpOutBuffer[2] = 10;
bRet = (*pIniPort->fn.pfnGetPrinterDataFromPort)
(pIniPort->hPort, IOCTL_USBPRINT_VENDOR_GET_COMMAND, NULL,
NULL, //pInput,
0, //cbInput,
lpOutBuffer, cbOutBuffer,
lpcbReturned);
//...wait until this function finished...
// Can I assume that lpOutBuffer[0] is the first byte of data after call
above ?
In case of IOCTL_USBPRINT_VENDOR_SET_COMMAND,
cbOutBuffer = 13; //3 1st:Vendor specific code,
// 2nd:Vendor Request value - Most Significant Byte
// 3rd:Vendor Request value - Lease Significant Byte
//+10 size of data to receive
lpOutBuffer[0] = VENDOR_SPECIFIC_CODE2;
lpOutBuffer[1] = 0;
lpOutBuffer[2] = 10;
lpOutBuffer[3] = 0x01; lpOutBuffer[4] = 0x02;....;lpOutBuffer[12] = 0x0A;
//Set data here to sent.
bRet = (*pIniPort->fn.pfnGetPrinterDataFromPort)
(pIniPort->hPort, IOCTL_USBPRINT_VENDOR_SET_COMMAND, NULL,
NULL, //pInput,
0, //cbInput,
lpOutBuffer, cbOutBuffer,
lpcbReturned);
//...wait until this function finished...
Because I have a situation that I can't verify, so I need to know correct
implementation.
Please give an advise for this.
Thanks
Jeth Tag: center desktop in mother window Tag: 34488
Windows Driver DevCon - November 11-14, 2003
Windows Driver DevCon
November 11-14, 2003, Redmond, Washington
Early registration price: $495 until October 31, 2003 ($595 after
November 1, 2003)
On Your Mark, Get Ready, We're Nearly GO!
Thank you for your great response to and support for the first annual
Microsoft® Windows® Driver Development Conference, presented by Microsoft
and AMD. We're busy putting the final touches on our content and interactive
sessions, and are pleased to bring you the Driver DevCon Pre-conference
Primer Pack.
The information provided in this Primer Pack is provided to you at no
charge-it is designed to give you the technical background and information
you need to get the most out of Driver DevCon, including white papers and
technical presentations with the relevant technical details you need to
prepare for the deep, technical information we're preparing for the
conference.
Even if you aren't able to make it to Driver DevCon, we are sure that
you'll find this information valuable:
http://www.microsoft.com/whdc/resources/events/DDC_prep.mspx
It's all about the REALLY DEEP content!
This content is deep! Driver DevCon content is focused on key
operating system concepts and internals, device driver development, and
technology-specific implementation.
§ Focus on current and future versions of Windows.
§ You told us "No keynotes", and we're delivering-it's all about the
content.
§ Over 110 hours of technical sessions across four simultaneous
tracks.
§ Over 30 hours of interactive, hands-on technical labs, spread
across multiple tracks.
§ Don't take our word for it-take a look at the agenda and see for
yourself: http://www.microsoft.com/whdc/resources/events/DDC_agenda.mspx
Before you go:
§ Driver Devcon is targeted to intermediate and advanced developer
or testers.
§ But don't let that stop you. Check out the pre-conference training
if you need to brush up on the basics!
http://www.osr.com/seminars_precon.shtml.
Interface with the REAL deal: Microsoft developers, testers, and
engineers
§ Five hours a day of "Ask the Experts" roundtables. These group
discussions get you face time with Microsoft developers and testers across
all Windows technologies.
§ Microsoft developers, testers, and engineers will be monitoring
all the presentations-the people who have the answers will be in the
sessions!
§ ASK ADRIAN. You've told us you want more time with Adrian
Oney-this is your chance to bring your tough problems to Adrian, who will be
available for a few hours each day for one-on-one or small group
discussions. You, Adrian, a whiteboard, and a computer-what more could you
ask for?
For more information about Driver DevCon registration, go to:
http://www.microsoft.com/whdc/resources/events/DriverDevCon.mspx Tag: center desktop in mother window Tag: 34474
Windows Network Drivers course
Does anybody offers the above course in Silicon Valley? The couse fee
should be around $500. Tag: center desktop in mother window Tag: 34472
New at this... need direction
Hello,
I have been assigned to write a device driver for 2000 &
XP.
I am a seasoned developer with an M.S. in C.S.
I have zero experiece in writing device drivers.
I have downloaded the DDK.
Are there any web sites by MVP's that help?
Is there a FAQ?
Books?
I was told that I have to have a development tool, that
Visual Studio 6 will not do this. Is this correct?
Help me get started so that I can understand
the "vocabulary" of device drivers and better understand
the posts in this news group and allow me to ask precise
and informed questions.
Thank you,
Gil Tag: center desktop in mother window Tag: 34469
Example class installer for Win98
I've been tasked with writing a class installer for a Win98 driver.
Unfortunately, there seems to be a conspiracy of silence on this
subject. I have Googled until my mouse cramped. I have searched the
Knowledge Base. I have searched the Technical Resources. I have read
books (which have said there are no known samples and/or that the task
is "hard" and will not be addressed). I simply cannot believe that there
is not and never has been documentation on how to write a Windows 98
class installer DLL. After all, such installers do, in fact, exist!
I would greatly appreciate any guidance that any of you may have on this
topic. Feel free to email me directly, and I solemnly promise not to
break the sacred layer of secrecy by telling anyone else of your help.
Many thanks in advance.
--
Roy M. Silvernail
rsilvernail@parker.com Tag: center desktop in mother window Tag: 34462
PacketCE -> Windows CE.NET
Hi,
Did anyone try to modify PacketCE (version of WinPcap for Windows CE) to
use it under Windows CE.NET / with NDIS 5.1?
Is it a lot of work?
Can you provide me some help with the differences bteween NDIS 3.0 and
NDIS 5.1?
Thanks,
/Marco Tag: center desktop in mother window Tag: 34460
need help resolving crash cause
hi all
I have been working on a driver for winXP that emulates a
harddisk, based on hardware that connects to the system
through some General Purpose IO pins. therefore it is not
PnP Enumerable and is "manually" root enumerated using
IoReportDetectedDevice().
the DriverEntry and AddDevice routine load fine, and I can
use it as the current drive in the CMD utility, read,
write and copy from it, until it reports the following
correspondence with the system:
--------8<------------8<-----------
CREATE/CLOSE function issued. major=IRP_MJ_CREATE, minor=0
RemoveLock acquired with tag 80F33330
Unrecognized IOCTL 4D0008h
about to release RemoveLock with tag 80F33330
CREATE/CLOSE function issued. major=IRP_MJ_CLOSE, minor=0
CREATE/CLOSE function issued. major=IRP_MJ_CREATE, minor=0
RemoveLock acquired with tag 80F33330
Unrecognized IOCTL 4D0008h
about to release RemoveLock with tag 80F33330
CREATE/CLOSE function issued. major=IRP_MJ_CLOSE, minor=0
CREATE/CLOSE function issued. major=IRP_MJ_CREATE, minor=0
RemoveLock acquired with tag 80F33330
Unrecognized IOCTL 4D0008h
about to release RemoveLock with tag 80F33330
CREATE/CLOSE function issued. major=IRP_MJ_CLOSE, minor=0
------------8<-----------8<--------------------
which is followed by the shutdown of all the harddrive-
type drivers in the system. my driver is still operable
until other services need the original harddrives and
start crashing the system.
what is the meaning of the above IOCTLs? I can't find this
number in any .h file. it must be the result of some
sinister #define.
I tried to Install the checked version I downloaded from
MSDN, but so far the installation either gets stuck in the
file copying phaze or stops after not finding the license
agreement file (I would appreciate help on this one also).
thanks in advance,
iddan Tag: center desktop in mother window Tag: 34457
How to make Serenum sit on the top of virtual serial port driver?
Hello,
We have implemented virtual serial ports based on toaster
sample, but when use serenum instead of the toaster upper
filter driver, the installation is hang up.
Please help. Tag: center desktop in mother window Tag: 34454
How to create a driver using only WinDDK
Hello,
I am looking for a procedure or an example to create a
driver using only WinDDK ?
Thank you for advance.
Sincerely yours. Tag: center desktop in mother window Tag: 34453
Error during install
I want to install the sample toastmon from XP DDK. In the
corresponding inf file toastmon.inf are the entries
Class=Sample
ClassGUID={78A1C341-4539-11d3-B88D-00C04FAD5171}
Class sample isn't an existing setup interface class. How
shall I proceed? Tag: center desktop in mother window Tag: 34452
device reenumeration returns overlapped I/O operation in progress
I used devcon way to "Scan for Hardware changes".
On some XP(SP1) systems, CM_Reenumerate_DevNode_Ex returns
randomly
"Overlapped I/O operation in progress"
In the same time I can trigger a "Scan for Hardware
changes" from Computer Management without any problems.
Thanks in advance,
Daniel Tag: center desktop in mother window Tag: 34451
How to install genprint.dll??
Hi~,
I'm newbie in ms-windows and VC programming. :)
I should develop NT service program that prohibit user's printing any
documents.
I tested SetPrinter() and I found a problem.
Using SetPrinter() can't control network printer that attached in
other machine.
('Access denied' error is displayed when calling OpenPrinter() using
DesiredAccess set to PRINTER_ALL_ACCESS)
So I should find another method.
I want to block all printers installed in local machine(local printer
and network printer). But for the network shared printer, another
computer should can print using this network shared printer.
(Only a computer that my program is installed should be influenced by
my program)
Q.1 Can I hook printing event or job or print spooler?
(I think GetJob() also can't filter user's printing job...)
I posted this question to many newsgroups or forums but I didn't get
suitable answer(may be impossible??...)
Now, I'm testing Customized Print Processor using genprint.dll from
ddk.
I built and copy it to C:\WINNT\system32\spool\drivers\w32x86.
And I made its installation program.
int main()
{
...
nResult = GetPrintProcessorDirectory(...,processorPath,...);
_tcscat(processorPath, _T("\\genprint.dll"));
nResult = AddPrintProcessor(
NULL, // server name
NULL, // environment name
processorPath,//processorPath, // path
"My Processor" // ----> what string should I use??
);
}
It returns error string("The specified module could not be found.").
Q.2 Which string should I use in pPrintProcessorName field? and
processorPath string(C:\WINNT\system32\spool\drivers\w32x86\genprint.dll)
is right?
Q.3 If I success AddPrintProcessor(), how can I change Print Processor
to "My Processor" from "WinPrint" of existing printer?
Q.4 I can't change Print Processor property of network printer
manually(Print Processor button is disabled).
That means, using customized print processor also can't control
printing network printer?
Thanks in advance.
And I hope you can understand my poor english :) Tag: center desktop in mother window Tag: 34450
PCI sample driver for 2K
Hi,
Is there any place where I can find a sample PCI device driver for Windows 2000. Or can anybody mail me the skeletal driver of the PCI driver. I am a newbie and have to write a device driver for a PCI based device on win 2k.
Can anyone tell me if it is possible to have 2 drivers loaded for the same device?
One more question... Can a user application directly talk to this PCI device without any device driver in between? Somebody was saying something about IOCTLs... Is that the right lead?
Please help!
CSK Tag: center desktop in mother window Tag: 34447
handling multiple interrupts??
hello sir,
am working on developing wdm driver for a cpci carrier
board.four independent I/O modules can be mounted on a
carrier.so in a memory map there are four seperate memory
space for each i/o module.
usually in a application i call createevent & send it to
driver inturn driver calls ObReferenceObjectByHandle -
Registers Event in kernal mode.
on interrupt driver calls KeSetEvent to notify the app the
event.
there is a single driver & four different applications
comunicating with driver.
now the question is how do i handle interrupts??
should each application call create event & send to driver?
& how driver notify the different applications correctly
when multiple interrupts are generated?? how to hold each
application handle & notify to it? Tag: center desktop in mother window Tag: 34446
How to define the USB vendor specific command in Language monitor
Hello,
I'm trying to use IOCTL_USBPRINT_VENDOR_GET_COMMAND and
IOCTL_USBPRINT_VENDOR_SET_COMMAND to communicate with UsbPrint in my
language monitor but I have no idea how I can set and read the internal irp
packet (Irp->AssociatedIrp.SystemBuffer...)
Is there any way to use these command in GetPrinterDataFromPort function of
language monitor that call Port monitor's GetPrinterDataFromPort with
parameters (inbuffer,inbufferSize, outbuffer, outbufferSize)..
Can I just assume that inbuffer/outBuffer as Irp's Systembuffer?
Thanks
Jeth Tag: center desktop in mother window Tag: 34437
network connection properties
Hello,
I would like to add a panel to the Network Connection
Properties (in addition to General, Advanced, etc). Is
there an example of how to do this?
Thanks,
David Tag: center desktop in mother window Tag: 34433
Video Card Drivers - Signed Drivers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,c
1. Is there any place where I can find out (before purchasing)
whether or not a Video Card vendor uses signed drivers?
2. Is there some way I can determine this from examining updated
drivers---without actually having the hardware to attempt an
installation?
This information seems to be lacking from catalog entries and from
the specifications on the packaging.
Background:
I have a Creative GeForce2 Blaster 2 video card. It is about 2 years
old.
I am running Windows 2000 with all patches.
I like to set Windows to reject attempts to install an unsigned
driver. I consider this to be a nice, simple step to increase
security.
Unfortunately, I cannot do this because of my video card.
Thanks,
- -G
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.2
iQA/AwUBP5Wsz5na0kUWp81LEQJV/gCcD2lUEmUMAF2QEARzRcVJ1jNxVcEAoP3J
K0B3d+k9apo9cNh2R5WPIBDK
=B7eo
-----END PGP SIGNATURE----- Tag: center desktop in mother window Tag: 34428
binding intermediate to specific miniport
Hello,
I am using the MUX intermediate driver example in the DDK
source. I would like to make sure that it only binds to
the specific miniport driver (not just via the NDIS_MEDIUM
selection). Is it possible? Do I have to use the notify
object to do this?
Thanks,
David Tag: center desktop in mother window Tag: 34425
document on LSP Sample from microsoft
Hi All-
I've downloaded Microsoft SDK, which I'm interested on the
LSP sample code. do you know if there is a documentation
analyzing the sample code? Tag: center desktop in mother window Tag: 34419
IPSec Offload capable Gigabit NIC's
Does anyone know of any vendor out there selling Gibabit NIC's capable of
offloading IPSec.
Thanks
Tim Tag: center desktop in mother window Tag: 34417
Device Code
I am wondering how I match up a PCI Base Class code with a INF file
class.
I have a device that has an Base Class 07 and Subclass 80, a Simple
Communications Controller, other communications device. I wrote a
driver that works with it, but I get a new device detected message every
time Windows boots up. What entry do I need in my INF file to tell
Windows this is the driver for that device? I am using Windows 2000.
Thanks,
Clint Tag: center desktop in mother window Tag: 34415
USB block size
I encountered in my Language Monitor a major difference in data handling
when I use a parallel port vs . a USB port to print to my printer.
The parallel IO is transferring data in blocks of 64K and the USB has only a
block size of 4K. This caused some unexpected behavior at the end of a print
job so I am looking for a way to change the block size for the USB port to
reflect the same size as the parallel.
Does anybody know if I can change the block size when opening the port in
the Language Monitor?
What about the write and read timeouts, can they be changed down in the
Language Monitor as well or is this to be done in an application?
Help with these questions is much appreciated.
/Manfred Tag: center desktop in mother window Tag: 34409
Get network adapter disable/enable status thru wmi
Hi All,
Is it possible to determine thru WMI whether a network interface is
either enabled or disabled.
Devcon sample in winddk displays this status but i would like to know
if the same can be obtained from WMI.
"Win32_NetworkAdapter" class has two attributes
string Status;
uint16 StatusInfo;
when i see these values for network interface thru wbemtest.exe values
are null.
According to the description of "StatusInfo" this should be able to
give me enabled or disabled status.
Is there any other way thru WMI to detect enabled/disable status.
Thanxs & Regards,
Vijay Chegu
PS: Plz note i dont want network connection status, i want
enable/disable status which can be altered in "network and dialup
connections" window through right click.
//vijaycheguwmienabledisable Tag: center desktop in mother window Tag: 34405
read Flashdisc on Windows PC (newbie)
I have a USB FlashReader from Quatech, PCD-U, which supports a 16Mb
PCMCIA PC Card from SanDisk. The cards that I need to read have NOT
been written as files on discs, but in what I suppose to be a "regular
memory format". The software from Quatech seems to only support "disc
formatted" PC cards, although I am by no means sure of that. I am
running on a Windows XP machine and am also the proud possessor of a
MSDN Universal subscription that seems to include everything from
Microsoft that I would ever need.
My question is - what do I do next? I cannot seem to find any examples
or sample code for reading a flash memory card via USB with whatever
handler/driver combo is necessary.
Any pointers would be greatly appreciated.
TIA
Bill Tag: center desktop in mother window Tag: 34404
ksproxy plugin design issues
I am considering design choices about controlling custom aspects of a USB2
camera. This camera driver is based on usbcamd2 and is currently proxied by
ksproxy. The intent is to create ksproxy plug-ins to result in the
following:
1) 1 or more property pages such that amcap, graphedit or the like can set
these custom properties and
2) A way to programmatically set these same properties from a dshow filter
via some method.
Regarding the programmatic control of the filter:
a) Is it better to create a custom interface so that from the client filter
I can QI the base capture filter or is it better to QI the base capture
filter for IKsPropertySet and set the properties directly? The first choice
would seem better as it would introduce a layer of indirection such that
there would not be such a tight coupling between the minidriver and its
usermode clients.
b) If I were to use the custom interface, would it be better to implement it
via IKsPropertySet or via KsGetObjectHandle and issue IOCTL_KS_PROPERTY?
They seem identical.
Regarding ksproxy plugins in general. What is the mechinism linking the
extension COM objects to ksproxy? The examples I have seen all seem to have
an exact correspondence between one propertyset GUID in the minidriver with
one custom interface and one property page. Is this always the case? Are
the following alternatives possible:
1) A custom interface but with no associated property set?
2) Multiple custom property pages associated with a single property set?
3) A single propertyset with any number of interfaces and property pages
hung off it?
These questions reflect uncertainty about my ability to implement my current
thinking which is:
1) Add a one or more propertyset GUIDs to the minidriver to implement the
custom aspects of the camera.
2) Have a single custom COM interface in usermode to permit programatic
access to those aspects.
3) Have one or more property pages to permit amcap etc to access to aspects.
These property sheets would be implemented by using the custom inteface.
Regards,
Tom Udale Tag: center desktop in mother window Tag: 34403
Device could not start.
I have a PCI driver for our custom I/O board.
I generated the device driver with Walter's wizard. I
modified the Toaster class installer for our device. I
used a combination of the DDK inf generator and existing
inf files.
It looks like the driver worked just fine for a couple of
months.
Now, when I have one PCI card in the system, the device
manager reports: This device cannot start. (Code 10)
I can power down the machine, add a second card to the
same bus segment, and both cards work fine when I power
the system on.
Where should I start to look? Tag: center desktop in mother window Tag: 34398
replacing Unidrv UI dll.
Hi,
I'm developing a printer driver.It doesn't do any
rendering. All it does is displaying the UI to capture
print settings. That UI should have my own property
sheets.
Is it possible to replace Unidrvui.dll with my own ui dll
for Unidrv minidriver?
Or can I have a dummy rendering dll and my own UI dll?
What could be the implications?
Thanks,
Kiran Tag: center desktop in mother window Tag: 34397
Rendering Plugin's EnablePDEV
Hello,
I am currently developing a common rendering plugin for 5 serial
printers, In EnablePDEV() I tried using the pPrinterName parameter to
differentiate between my 5 printers so that I can insert customized
code for each printer model. My problem is, when I set the port to
FILE: It seems that the value of pPrinterName is always the default
printer(not the currently selected printer), It works fine when set to
other ports like LPT1.
Is this a specification?
Or maybe I'M doing it all wrong, Can anybody tell me how to get the
currently selected printer during or before EnablePDEV timing.
Thanks in advance
-andrew Tag: center desktop in mother window Tag: 34389
Hi all,
how can I center the desktop in the mother window? (in w2k / xp)