MmMapLockedPagesSpecifyCache Fails on Server 2003
My driver uses MmMapLockedPagesSpecifyCache to map a
memory allocation from the non paged pool to a user
virtual address. This has worked fine in the past, but
now I have found an Enterprise Server 2003 machine that
fails the call.
This driver is deployed on thousands of W2K and XP
machines, and even works on some Server 2003 machines.
Is there something new on Server 2003 that I should be
aware of?
Thanks
Harry Tag: How to disable printing services to detect ECP support Tag: 33353
Cannot programmatically get a valid connection to a WPA enabled access point.
I am extending our wifi application to support WPA enabled cards and
access points. The code that I am trying does not give a valid DHCP
address, and hence I am not connected. I presume I can do this
through an application and do not have to be a driver. I am currently
using the PCAUSA libraries to communicate with the drivers.
I am currently trying to connect to a WPA enabled access point. The
access point has the authentication set as WPA-PSK, and it uses TKIP
data encryption. The card that we use supports WPA and supports TKIP
data encryption.
I am doing the following to connect to a WPA enabled access point.
Setting the InfrastuctureMode to Ndis802_11Infrastructure.
Setting the AuthenticationMode to Ndis802_11AuthModeWPAPSK.
Setting the EncryptionStatus to Ndis802_11Encryption2Enabled.
I then set the SSID of the access point.
Each of the above statements execute properly and do not return an
error, and when queried, return the appropiate value. At this point I
query connection status and it states that it is connected to the
access point.
At this point I have not added the key, which I think maybe where the
problem is.
int iLength = sizeof (NDIS_802_11_KEY) + 10;
PNDIS_802_11_KEY pKey = (PNDIS_802_11_KEY) new UCHAR[iLength];
memset(pKey,0,iLength);
pKey->KeyIndex = 0x80000001;
pKey->Length = iLength;
pKey->KeyLength = 10;
memcpy(pKey->KeyMaterial,”0123456789”,10);
memcpy(pKey->BSSID,BSSID,sizeof(NDIS_802_11_MAC_ADDRESS));
Even though setting the above key with the OID_802_11_ADD_KEY returns
a success, I still do not get a valid DHCP address.
Could someone tell me what I am missing, or if I have got the order of
execution incorrectly. I have read the Microsoft
802_11_network_adapter_v21.doc, but still am stuck.
Shane Tag: How to disable printing services to detect ECP support Tag: 33351
pcmcia in xp
I've got a custom pcmcia R2 16bit card that has been used
in 95/98 previously. It is PCMCIA 2.1 compliant and looks
mostly like a flash card. Its tuples are incomplete with
respect to its required resource but everything else is
there (CISTPL_DEVICE, CISTPL_JEDEC_C, CISTPL_DEVICE_GEO,
CISTPL_VERS_1, CISTPL_FUNCID, CISTPL_CONFIG (.
Now, our customer wants to upgrade to xp. The driver
itself is not my problem. When I insert the card into my
xp machine, the machine hangs ... hard. CTRL-ALT-DEL
doesn't work, I can't break into Soft-Ice ... nothing,
dead as a door nail. Unfortunately, my hardware guy is on
vacation for another week and a half, and I'd rather not
wait until he gets back. Has anyone seen anything like
this with ANY pcmcia card? Tag: How to disable printing services to detect ECP support Tag: 33344
alid@microsoft.com
Hi!
Did you received my last two letters in m.p.d.drivers? Its about
NdisMIndicateStatus filtering in IM drivers - I did tests with Mux and
had posted the result.
---
P.s. remove PI number from "reply-to" while answering... Tag: How to disable printing services to detect ECP support Tag: 33342
OS Initial Memory Allocation
I have two identical machines. One is running W2K and the
other is running 2003.
On the W2K machine, there is 512MB of memory; of that
60632 KB is allocated to Kernel Memory. On the 2003
machine, there is 512MB, only 17,884KB gets allocated to
kernel memory.
Why is this and is there a way to change the allocation? Tag: How to disable printing services to detect ECP support Tag: 33340
Accessing hardware from user-mode ?
Hi all,
Is it safe to access the hardware device registers from a user-mode
application ?
Is it the good way to develop a device driver and to avoid the complexity of
a kernel implementation ?
Thanks,
Ronan. Tag: How to disable printing services to detect ECP support Tag: 33338
accessing hardware in user-mode
Hi all,
Is it safe to access the hardware device registers from a user-mode
application ?
Is it the good way to develop a device driver and to avoid the complexity of
a kernel implementation ?
Thanks,
Ronan. Tag: How to disable printing services to detect ECP support Tag: 33336
How to make custom printer driver UI property pages
Hi,
i am a newbee in printer driver devolopment.
I need custom UI property sheets, but documentation in the DDK is very rare
and there
are no examples.
Where can i find examples or good docu?
Thanks
Stefan
Please mail answers also to Stefan.Wanger@cib.de Tag: How to disable printing services to detect ECP support Tag: 33330
co-installer and/or installing a service / WHQL HCT requirements
Is it allowable to have a co-installer in place and/or a Service installed
along with an NDIS driver and still meet WHQL / HCT requirements for Network
devices ?
I recall in the past some discussion about certificatino for NDIS drivers
that the miniport driver could be the only thing required for operation. No
co-installer, no additional DLLs or Services could be part of the package.
If I had a DLL, service, other software of any sort, can I install these
through a co-installer or through simple copyfiles, install sections in the
INF file and certify the drivers ?
Thanks in advance for any pointers to info on this.
--
---
Larry Cawley
CreativeMedia Software Solutions, Inc.
lcawley@CreativeMediaSoftware.com
www.CreativeMediaSoftware.com
636 458 1462 Tag: How to disable printing services to detect ECP support Tag: 33309
Where can I get help for the VxD driver development
Hi,
Plz let me know where I can get the help regarding the
VxD driver development for windows98.
I have posted three time a query about the pending issue
in VxDas follows ,but i didn't get any response for that.
I am developing a VSD driver for Storage Area
Network kind of application.This VSD is in DRP_VSD_9 IOS
Layer.In this I am filtering the IOP's and get the data
from IOS and send it to the remote entity.For this I
implemented a kernel level socket using TDI (TDI client).
Now the issue is I have to synchornise the two
asynchronise events (TDI and the Disk).To synch the async
event I need to pend the IOP.
Query:
1. How I can pend the IOP in VxD like in NT
IoMarkIrpPending()to pend the IRP.
2. How I can change the loading order of the VSD.
Thanks in Advance.
Regards,
Subburaj.R Tag: How to disable printing services to detect ECP support Tag: 33306
Vitrual Medium Changer not recognised by RSM
I am creating a virtual medium changer for XP. This will control the media
in some (already working) virtual tape drives (these talk to real tapes on a
different system over the network).
I am sucessfully creating a deviceObject, registering a device interface
etc..etc.. and the driver loads, starts and stays resident just fine. It's
just that the RSM never picks up the fact that it's there and never queries
it or displays it's presence or anything.
I have had to hack around with the class code quite extensively to create
this device.... a mini-driver would not work as the class code assumes that
any medium changer MUST be a SCSI device and tries to send it SRBs to query
various aspects of the device. I have replaced all the SCSI calls, and have
even created a new SCSI bus entry in the DEVICEMAP registry area, so as to
give the driver a MediumChangerPeripheral Identifier.
What am I not doing to get this Virtual Medium Changer recognised by the RSM
system??? I know that the system certainly wants to believe that all medium
changers are SCSI devices....but it can't be the case that a non-SCSI device
simply can't be a changer can it? I would hate to have to create a virtual
SCSI bus driver to get round this.
Adrian.
CodeMechanics Ltd
www.codemechanics.co.uk Tag: How to disable printing services to detect ECP support Tag: 33303
Finding Job Info for an IPP printer using Win32 API Printer Driver
We have written a user mode plug-in for an Adobe
PostScript Printer driver for Win2K and XP which attempts
to add some information to the printer data stream.
Specifically it adds the JobID and the pDocument string
from the jobInfo structure returned by EnumJobs for the
printer in question. This works fine for directly
connected printers but for our network printer (which uses
IPP) the jobInfo structure returned by EnumJobs is set to
all zeros. Is there any way to get this information in
this environment? Tag: How to disable printing services to detect ECP support Tag: 33296
InintializeListHead filing on a 64 bit Win2003
Hi I am debuggin my driver blue screen on Win2003 64 bit
OS. Analyzing the crash dump file gave the result below
SYSTEM_THREAD_EXCEPTION_NOT_HANDLED (7e)
This is a very common bugcheck. Usually the exception
address pinpoints the driver/function that caused the
problem. Always note this address as well as the link
date of the driver/image that contains this address.
Arguments:
Arg1: ffffffff80000002, The exception code that was not
handled
Arg2: e0000165dac51880, The address that the exception
occurred at
Arg3: e0000165e3163b38, Exception Record Address
Arg4: e0000165e3162ba0, Context Record Address
Debugging Details:
------------------
EXCEPTION_CODE: (HRESULT) 0x80000002 (2147483650) - Ran
out of memory
FAULTING_IP:
tesr64!InitializeListHead+40
e0000165`dac51880 st8 [r28]=r26
Can any one explain what does Ran out of memory
indicate... The system has 1 GB of physical memory.
I am not sure why calling InitializeListHead is crashing
the OS. as the same code compiled for a 32 bit version of
Win2003 works just fine.
Thx,
Abhay Tag: How to disable printing services to detect ECP support Tag: 33294
Multi-functional USB drivers
Hi,
I'm currently working on a device that contains a union of two
interfaces, one is a Communication Class interface and the other is a
Data Class Interface. Together, these are emulating a modem (that uses
usbser.sys for a driver)
A single INF file is used to install the Windows driver to this
device. The INF uses the USB\VID_vvvv&PID_pppp device identifier to
identify my device.
I will need to add vendor-specific functionality to this device. I
would like to be able to do so simply by adding a third interface
(with the interface class set to 0xFF, of course) in the same
configuration as the one where the two interfaces mentioned above are,
without having to use the same driver to this interface as the one
used by the two modem interfaces.
To do so, I wanted to use a first INF (for USB\VID_vvvv&PID_pppp)
which would install the device as a composite device, and then split
up the first functionality to the second (vendor-specific)
functionality. Some of you probably see the problem already, as I have
3 interfaces which will cause 3 separate PDOs to be created, and thus
which will split the 2 first interfaces.
Is there a way I could, under the same configuration, have the 2 first
interfaces load up one driver, and the third one load up my
vendor-specific driver? Or do I absolutely need to separate the
functionality on two separate configurations?
Thanks in advance...
... regards! Tag: How to disable printing services to detect ECP support Tag: 33293
Q: about ZwLoadDriver()
Hello!
Can somebody confirm or contradict these three statements:
1) ZwLoadDriver() interface remains unchanged from Win2000 to a latest
Win2003 (or to which version as you know?)
2) It's prototype is
NTSYSAPI NTSTATUS NTAPI ZwLoadDriver( IN PUNICODE_STRING
DriverServiceName );
where DriverServiceName is the name of driver under "Services" key in
registry. For example,
L"Registry\\Machine\\System\\CurrentControlSet\\Services\\Tcpip".
3) DriverEntry() routine of the driver to be loaded is always execute in
system thread context, no matter, where was the ZwLoadDriver() executed.
Any info would be very appreciated.
Thanks, Aleksey. Tag: How to disable printing services to detect ECP support Tag: 33281
#pragma INITCODE
I see '#pragma INITCODE' used in example drivers.
I can not find a Microsoft source for information on it,
or on '#pragma PAGEDCODE'
Can someone briefly explain, or better yet point me to a
Microsoft source for documentation on these?
Thanks. Tag: How to disable printing services to detect ECP support Tag: 33280
HidD_GetAttributes PROBLEM
I am trying to get the vendor ID of the USB HID devices currently
attached to the computer. I have the code I found in every place to do
this :
....
HidD_GetHidGuid(&GUID);
...
SetupDiGetClassDevs(&GUID, NULL, NULL,
DIGCF_PRESENT|DIGCF_INTERFACEDEVICE);
....
SetupDiEnumDeviceInterfaces(PnPHandle, NULL,
&GUID,Device,&DeviceInterfaceData);
....
SetupDiGetDeviceInterfaceDetail(PnPHandle, &DeviceInterfaceData, ...
....
HIDHandle = CreateFile(FunctionClassDeviceData.DevicePath,GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ|FILE_SHARE_WRITE, &SecurityAttributes, OPEN_EXISTING,
0, NULL);
.....
Success = HidD_GetAttributes(HIDHandle, &HIDAttributes);
The first problem was SetupDiGetClassDevs with the GUID generated, I
solved this problem with
GUID = GUID_CLASS_USB_DEVICE;
But now my problem is with HidD_GetAttributes, this funtion never is
successful, always return 0
My OS is win 2000, the USB device I have connected is a USB flash
drive and I can see his vendor ID in the USBview.exe
Any idea?
Thanks Tag: How to disable printing services to detect ECP support Tag: 33273
MS PS/2 Mouse Driver Questions
(WinXPpro SP1)
I'm getting a lot of Event ID 256 warnings from the PlugPlay Manager.
The message is: Timed out sending notification of device interface
change to window of "MyTest". The consensus of what I've read is that
these warnings are caused by a device driver. The only clue in Device
Manager is a "device not responding" warning for a MS PS/2 Mouse --
because there is no MS mouse connected to the system. Instead, there is
a Logitech optical mouse (which also appears in DM) which works just
fine. I have searched the system for a file named "mytest.exe" but none
exists. There is no reference to "MyTest" in the registry. With that
background:
1. Can anyone confirm that the Microsoft PS/2 mouse driver for XP runs
a task called "MyTest"? If so, can this be prevented/turned off?
2. Alternatively, how can I uninstall this driver so I can see if the
warnings go away? When I try to uninstall from Device Manager, the
system automatically reinstalls the driver when I re-boot. Tag: How to disable printing services to detect ECP support Tag: 33272
WDM: Allow multiple instances of the "videocap" DDK sample
Hi, All,
Please advise what changes must be made to the "videocap" virtual
driver found in DDK samples to allow several applications to use the
virtual camera presented by this driver at the same time.
I couldn't find any info about multiple device instances so any help
would be highly appreciated.
Thanks a lot,
Anatoly Smelkov
------------------
anatoly@smelkov.com Tag: How to disable printing services to detect ECP support Tag: 33271
Take a look at these security package from the M$
--cvodogsehh
Content-Type: multipart/related; boundary="btmxuclyl";
type="multipart/alternative"
--btmxuclyl
Content-Type: multipart/alternative; boundary="uivepnbtr"
--uivepnbtr
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Microsoft Consumer
this is the latest version of security update, the
"September 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to maintain the security of your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run executable on your computer.
This update includes the functionality =
of all previously released patches.
System requirements: Windows 95/98/Me/2000/NT/XP
This update applies to:
- MS Internet Explorer, version 4.01 and later
- MS Outlook, version 8.00 and later
- MS Outlook Express, version 4.01 and later
Recommendation: Customers should install the patch =
at the earliest opportunity.
How to install: Run attached file. Choose Yes on displayed dialog box.
How to use: You don't need to do anything after installing this item.
Microsoft Product Support Services and Knowledge Base articles =
can be f