Work with driver by User without admin rights
Hi !
I want to allow user ( without admin rights ) access to device object of
the NDIS miniport driver ( use PCI card ).
I changed permissions of the driver to full for users and that work. I
read that the same possible to do by INF :
1)
http://www.microsoft.com/whdc/driver/security/drvsecure.mspx?pf=true#secmod2
show the example line:
HKR,,Security,,"D:P(A;;GA;;;SY)"
So I wrote next in the INF
[mydevice.Security]
HKR,,Security,,"D:P(A;;GA;;;WD)"
In the registry I see Key "security " with a string - "D:P(A ( 6
characters )
Before I tried AU instead of WD with the same effect
2)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/setupapi/se
tup/specifying_a_security_descriptor_from_an_inf_file.asp
show line :
"D:P(A;CI;GA;;;BA)(A;CI;GA;;;SY)"
I wrote next
[mydevice.Security]
"D:P(A;;GA;;;WD)"
Cannot correctly install driver at all
Any comments ?
TIA
Arkady Tag: PCI_COMMON_CONFIG Tag: 44579
must reboot after a driver is installed ?
simple question from a newbie in ddd.
does a driver by definition require a reboot ?
are there some exceptions based on what the driver has to do ??? Tag: PCI_COMMON_CONFIG Tag: 44568
Printing with HP vs lexmark
Hi
I have a vb program which makes calls to getprinter, setprinter etc to get the default printer to print in Landscape mode intead of the default portrait without prompting the user. The program works fine with almost any HP printer but not with lexmark printers. Could somebody give me a hint ? I can send the source if necessary Tag: PCI_COMMON_CONFIG Tag: 44567
USB device and timeout
Hi all,
I develop a USB device.
I would like to know, what to do, if I send a IRP for IN transfer (OUT
transfer) from my USB driver to lower level driver and my USB device doesn't
send (receive) any data (only "NAKs" are on the USB bus).
Therefore should be useful to set a timeout.
Is it possible to set the timeout in my USB driver or firmware in the USB
device sould resolve this problem?
If I use something like this:
...
ntStatus = IoCallDriver(pdx->StackDeviceObject, irp);
if (ntStatus == STATUS_PENDING)
{
status = KeWaitForSingleObject(
&event,
Executive,
KernelMode,
FALSE,
&timeOut);
if( status == STATUS_TIMEOUT ) {
IoCancelIrp( irp );
KeWaitForSingleObject(&event, Executive, KernelMode, FALSE, NULL);
}
}
on win98 if I set the timeout about 100ms has been result
BytesTransfered = urb->UrbBulkOrInterruptTransfer.TransferBufferLength;
0x400 but through USB bus has bees transmitted 0x440 bytes.
I don't know why this situation occured.
Does anybody help me please?
Thanks a lot
Slavo Tomascik
msonetime@zoznam.sk Tag: PCI_COMMON_CONFIG Tag: 44566
Device Manager and devcon do not remove driver service entries for PNP drivers on uninstall
It seems that the Device manager and devcon.exe do not actually remove the service associated with
a driver when uninstalling a device from the system. Additionally, it does not look like the SetupDi...
api supports this functionality. Both tools are properly removing device instances in my case, but
the service entries are left behind in the registry, and the driver binary files are left on the system.
This happens on both XP and W2K3. Looking through the docs there doesn't seem to be a PNP way
to remove them. DeleteService() and manual delete of the binaries seems to be the only way to get
everything off the system. There is an api to remove OEM .inf and .pnf files, but not a driver service
or binaries.
Is this on purpose, or was this an accidental omission from the PNP install support?
Is this going to be a problem in WHQL validation of a driver package?
Is there something I'm missing?
Tom Sanfippo Tag: PCI_COMMON_CONFIG Tag: 44560
[DDK] How can we implement "Device Installation" in Win98 (without SetupDixxxx)?
MSDN: Device Installation Function
This section describes the Setup functions that support device installation on Windows 2000 and later versions of the NT-based operating system
... Most of these functions are not supported on Windows 9x/Me
I want to install a small driver that only have a single sys file like DDK PortIO sample. Tag: PCI_COMMON_CONFIG Tag: 44559
[DDK] Does Monitor need Service at Device Installation!?
Does Monitor need a "Root-Enumerated driver"
Because when I ran sample Win2K installer as
c:\install "775FT.inf" "Monitor\GSM42D1
I got the following error
UpdateDriverForPlugAndPlayDevices FAILURE: (0xe0000219
We know:#define ERROR_NO_ASSOCIATED_SERVICE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x219
(Monitor has not a services! Is it OK?
How can I solve this problem!
Notice: DDK2K install sample has a problem, So first see:
http://www.codeproject.com/script/comments/forums.asp?msg=801613&forumid=1647&mode=all&userid=67503#xx801613xx[^
Thanks you. Tag: PCI_COMMON_CONFIG Tag: 44558
Does DDK "install sample" work? [src:%ddkroot%\src\setup\install]
Hi, I installed DDK 2K and last SDK and VS6 in Win2K
I biuld 'install' sample
For test I used this command line
install.exe "775FT.INF" "Monitor\GSM42D1
If the monitor prevoiusly installed by system as "Plug and Play Monitor", upgrade is successful to Flatron775FT! (I grabed HID from inf file
But when I first uninstall the monitor from Device Manager and retry to install monitor (or sample PortIO) I get the folowing error
"Error: SetDeviceRegistryProperty FAILURE: The data is invalid.
Can anyone giud me Tag: PCI_COMMON_CONFIG Tag: 44557
HPGL compliance
Hi, i'm a newbie driver developer and i was wondering, does the msplot driver need to be used with an HPGL compliant plotter? If yes, how can i make a self made plotter hpgl compliant? How do i integrate specialized functions on the msplot sample, that i need on my plotter? If not, is there another generic plotter driver that i could easily modify that could suit my needs? Can Paul Yao's Universal printer driver be used? Tag: PCI_COMMON_CONFIG Tag: 44541
Problem about VCOMM port driver on win98
Hello
My port driver can be loaded by VCOMM after I open the com port from
Hyperterminal .
But when I close the port,the SYS_DYNAMIC_DEVICE_EXIT message not send
to me .so the port driver can not be unloaded .
The port driver only for one port .
Anyone help me ?
Thanks . Tag: PCI_COMMON_CONFIG Tag: 44539
Statistics for Card Games
I am taking a Personal Quest to TRY to enhance the zone.com, Gaming Site! I think Tina of Microsoft is eventually. They informed me that my Request, is going to be Tested and Developed, LIKELY Story!! ALWAYS going to write the code for my Enhancement, But, Tina of Microsoft, Told me Around Christmas, '2003!! Just be VERY Patient, because they have MANY Different things to Work on! So, I have done My Share of Creating the Zone.com web-site, Cheater-FREE!!!!!!! I know U Can create this Work Request, because I KNOW I could. Microsoft, PLEASE, Step-up-to the plate and eliminate Cheaters!!!!! YOU Should Utilize my Request(s), and Compile them into a Grand Feature-filled zone! I Have Done all the thiking, you just need to send a programmer to me. WE Will ONLY perform NOTHING but thee BEST For the Best! Should be your Motto! Tag: PCI_COMMON_CONFIG Tag: 44535
Ndis names
How can a ndis miniport driver find out the friendly name that you can see
under "My Network Places" for one of it's instances? Tag: PCI_COMMON_CONFIG Tag: 44533
ZwMapViewOfSection() problem
Hi all, I'm trying the following code... but it returns that the 3rd parameter is invalid (STATUS_INVALID_PARAMETER_3). What am i doing wrong
UNICODE_STRING strMapName
SIZE_T nViewSize
NTSTATUS status
PVOID pBaseAddress
RtlInitUnicodeString(&strMapName, L"\\BaseNamedObjects\\MyDeviceName")
InitializeObjectAttributes(&MappedFileObjectAttributes, &strMapName, OBJ_CASE_INSENSITIVE, NULL, NULL)
status = ZwOpenSection(&hMappedSection, SECTION_ALL_ACCESS, &MappedFileObjectAttributes)
(... check status value ...
ZwMapViewOfSection(hMappedSection
(HANDLE)-1
&pBaseAddress
0L
PAGE_SIZE
NULL
&nViewSize
ViewShare
0
PAGE_READWRITE)
What am I doing wrong here? Thanks for any advice. Tag: PCI_COMMON_CONFIG Tag: 44531
Writing WDM Drivers
I want to learn WDM by writing a driver for a real device (not as a System Device Driver). Could anyone sugges
a hardware device (for which there is good enough information available)
Thank
SK Tag: PCI_COMMON_CONFIG Tag: 44530
software raid0/striping on C: ?
My topic here is to discuss why microsoft does not implement the ability to
utilize at OS-Setup two disks as raid0/striping.
Yes I know, raid0 is not safe, or at least is just as safe a a 1-disk which
is the most popular solution for 99% of the users in the desktop computing.
So why after all not allowing this ???
I think users should be allowed doing this, assuming the risks on their own.
the fact of the matter is that nowadays everybody may afford a couple of
hard drives and if put on different IDE channels/perhaps controllers they
could 'fly' with raid0.
This limitation indeed exixts within the Redhat/Fedora implementations too
as well as others, but just because of 'lack of care' for those requirements
that many users would appreciate instead if given the chance.
Slackware Linux on the other hand SHOWS that it is possible to in fact have
two separate devices paired as raid0 mounted on / (equivalent to c:)
This raid0/striping on boot/root is way possible, I am a linux guru too,
although I love and prefer Microsoft, and since it's possible because I made
it and used it, I am wondering if this limitation is made perhaps because
the microsoft's disk structure/software could not handle this at all unlike
linux. Tag: PCI_COMMON_CONFIG Tag: 44526
software raid0/striping on C: ?
My topic here is to discuss why microsoft does not implement the ability to
utilize at OS-Setup two disks as raid0/striping.
Yes I know, raid0 is not safe, or at least is just as safe a a 1-disk which
is the most popular solution for 99% of the users in the desktop computing.
So why after all not allowing this ???
I think users should be allowed doing this, assuming the risks on their own.
the fact of the matter is that nowadays everybody may afford a couple of
hard drives and if put on different IDE channels/perhaps controllers they
could 'fly' with raid0.
This limitation indeed exixts within the Redhat/Fedora implementations too
as well as others, but just because of 'lack of care' for those requirements
that many users would appreciate instead if given the chance.
Slackware Linux on the other hand SHOWS that it is possible to in fact have
two separate devices paired as raid0 mounted on / (equivalent to c:)
This raid0/striping on boot/root is way possible, I am a linux guru too,
although I love and prefer Microsoft, and since it's possible because I made
it and used it, I am wondering if this limitation is made perhaps because
the microsoft's disk structure/software could not handle this at all unlike
linux. Tag: PCI_COMMON_CONFIG Tag: 44525
how can i convert wide character to multibytes?
I think
"Making UNICODE_STRING with wide characters in a buffer and convert to ANSICODE_STRIN
then, takes the buffer
is not a good way to do this
Would you help me? Tag: PCI_COMMON_CONFIG Tag: 44518
Legacy driver "cannot find the device specified"
Hi All - First my apologies I am not a driver developer, but I hope some of
the experts on this group can help!
I have an XP machine on which the Microsoft userdump utility fails to
install. The problem appears to relate to userdump.sys, installed as a
legacy kernel mode driver. This will not start, and on boot-up or attempting
to start (via the service userdump.exe which depends on it) SCM logs "The
system cannot find the device specified". sc query udmpdrvr shows it stopped
with WIN32_EXIT_CODE 20, which I think means the same. During an attempt to
start it, Regmon shows an enum\root subkey LEGACY_UDMPDRVR being created by
Services.exe, but it is then promptly deleted again.
Can anyone please suggest ways of troubleshooting this issue, or suggest
what might be going wrong?
Thanks in advance - Mike. Tag: PCI_COMMON_CONFIG Tag: 44515
[XP] disk class filter & FAT32
Hi,
I recently wrote a disk class upper filter driver. It starts at boot time!
The very strange problem is that it is somehow dependent on
the file system of the host system.
case 1:
WinXP is on a NTFS partition -> no problems at all
case 2:
WinXP is on a FAT32 partition -> I get 0x0000007b meaning
INACCESSIBLE_BOOT_DEVICE.
Since the filter only acts on disk class devices it shouldn't depend
on the filesystem, right?
Any ideas about that?
regards
M.O. Tag: PCI_COMMON_CONFIG Tag: 44514
Obtaining driver version programatically
Hi all,
is there a way to determine the driver version of the drivers
installed on a windows system.
I mean I can enumerate all the drivers on a system but i need to see
what version they are.
The problem with GetFileVersion is that i need to know which is the
driver(.sys) file on the system and I dont know how to get this info
from the hardware id.
Any ideas on this will be highly apprecialted.
Sunny. Tag: PCI_COMMON_CONFIG Tag: 44500
disk compression?
guys, I want to understand how the transparent disk compression works,
I already know it works as a compression layer between the OS and the
cluster/sector access.
but I am confused,
even if a cluster or chunk or block can be shrunk into less than its
original size, there will be unused parts and the end in such a unit.
the compression would be effective only if those unused units are reutilized
somehow, but how ?
I don't get it.
please help me out Tag: PCI_COMMON_CONFIG Tag: 44494
Dot Matrix Printers and XP
I have an application which prints invoices to an Okidata
ML 590 on XP. After the print job is complete, the
printer doesn't advance the paper to the correct position
of the next page
I've printed a test page from the print server
configuration and found the test page doesn't advance to
the correct position. I've also found that MS Word and
Notepad also do not advance correctly. The printer (when
pressing the FF button) advances the page correctly
The Okidata site doesn't offer a driver for XP and says
the only driver available is in XP
I've also found the above issue is happening when using a
Panasonic impact printer
Any ideas or suggestions
Thanks for any help Tag: PCI_COMMON_CONFIG Tag: 44485
Irp handling scenario
In the book "Programming the Microsoft Windows Driver Model"
there is "Scenario 1 - Pass Down with Complete Routine",
where post processing done in CompletionRoutine
Is it possible to have postp processing done in Dispatch routine and at the sam
have CompletionRoutine return STATUS_SUCCESS
I'm trying to implement the following
1. Irp sent to my driver
2. I set IoCompetionRoutine in Dispatch routin
3. Initialize Event
4. Sent Irp to LowerDrive
5. LowerDriver later start executing IoCompletion routine
6. IoCompletion routine call keSetEvent() , IioMarkPending()
7. IoCompletion routine must return SUCCESS
8. Post processing need to be done in Dispatch routine.
Is it possible to implement it this way ?
thanks,da Tag: PCI_COMMON_CONFIG Tag: 44480
[newbie] invalid pointer value in kernel mode
Hi
some newbie problem. I'm using a linked list in kernel mode and a loop to walk through it. Now, I need a statement that causes a break of the loop - in this case, an invalid pointer value
test = head; //head is -guess what- head of the linked lis
for(;test->Next != ??;test = test->Next
//do somethin
The thing I'm looking for is a replacement for ??. I've tried NULL, but this ends up in an immortal loop (I guess all bits in the pointer test->Next are set to 1). Is there a statement that reflects the 'default' value of a pointer, when it wasn't initialized at all
Thank
Sam Tag: PCI_COMMON_CONFIG Tag: 44473
SetupPreferredAudioDevicesCount
Hello to all,
Can anybody help me?? I'd like to know what is this registry key to??
I'm trying to change the default audio device from Visual C++ applications
and I've found this key in the registry but I don't know how it works.
Thank you. Tag: PCI_COMMON_CONFIG Tag: 44466
Detect
I'm just curious, there is a Detect function for PnP devices under windows
CE, I'm just wondering if there is a similar mechanism for Windows 2000/XP?
Brian Tag: PCI_COMMON_CONFIG Tag: 44463
Driver Memory
I want to install a driver which needs the physical segment 0xD000 -
0xDFFFF. When installing the driver, the Add Hardware Wizard tells me, that
this memory is not available. On the other hand, with WINMSD / Ressources /
Memory, I see that 0xD0000 - 0xDFFFF is free. How can I find out which
driver or component reserves this memory?
Thanks,
Klaus Tag: PCI_COMMON_CONFIG Tag: 44457
Check for windows shutdown/restart in device Driver
Hi
1: I just wonder if it's possible to check in an device driver, that a
system restart/shutdown has been issued by the system ?
2: I know I can get an notification by using IoRegisterShutdownNotification
but when is my ShutDown function called ?
Is it as soon a restart/shutdown har been issued or when windows think
it's time to close my driver ?
3: Can I gen a notification as soon an system restart/shutdown has bee
issued ?
I need to check in my watchdog driver if a reboot has been started to catch
any reboots/shutdowns thats failes.. (Its sometimes does)
Thomas Tag: PCI_COMMON_CONFIG Tag: 44452
inter driver communication ?
hi
how do you call one driver's functions from another ? I searched the archives but the threads i found talked only about communications among drivers lying on the same stack. If i have to route packets coming to the NIC to some other PCI device so that it can process them, how do i call that PCI device's driver's functions and pass them the packet data so that it can process them and then return them back and i can pass them over to the NIC. I am using the DDK's sample "NDIS passthru intermediate driver" for hooking the packets and now want to call the other PCI card's functions to process those packets before sending them over
i dont know much about drivers. is there a way i can get the other driver's handle from the kernel and call its funcitons
any help will be appreciated. and since i am a novice therefore details are welcome
taj. Tag: PCI_COMMON_CONFIG Tag: 44451
1394 async transactions
Is it possible to have unified write transactions. how can I set it on
microsoft windows drivers. Unified transactions will allow 1394 node
to send ACK_COMPLETE instead of "pending and write response". This
will improve performance and can get rid of response handling.
thanks. Tag: PCI_COMMON_CONFIG Tag: 44447
Device Extensions
in a file system filter
Is there any significance to creating a device extension for the Controller Device Object vs the
Filter Device Object Tag: PCI_COMMON_CONFIG Tag: 44446
Help, why PCI bus master memory read fails, many retries?
I have a PCI device that seems to be unable to read from main memory but
only after a large amount of virtual memory has been freed up by an
unrelated application. This is on Win XP.
I'm new to Windows drivers so don't know all the terminology and have
hunted google for this answer without success. The PCI device is
controlled with a Jungo based WinDriver and peridically the PCI device
reads a few words from main memory so it knows what to do. The driver
when opened has used Jungo's WD_DMALock() call to lock the pages in
physical memory.
All seemed to run well for 6 months until a new big application that
allocates a lots of memory came along. And it is only when that big
application exits that the problem occurs. It seems like a virtual
memory management thing is getting in the way.
Anyway, the PCI bus analyzer shows that the PCI device tries a bunch
of times (currently 127 retries) to read from main memory and eventually
gives up when all reads timeout.
So what is going on?
Thanks,
Dan Olson (danole@comcast.net) Tag: PCI_COMMON_CONFIG Tag: 44439
CPSUI OIEXT.pHelpFile and Windows 2000
Hello
I've successfully set the standard CPSUI items' context sensitive help by setting OPTITEM.HelpIndex to a value in my own help file, then setting _OPTITEM.pOIExt to an OPTITEM struct withe IOEXT.pHelpFile pointing to my own help file. Works fine on Windows XP, but not at all on Windows 2000. On Windows XP I get the standard help for that item.
Are you aware of this, any suggestions for a workaround? Install a newer CPSUI
Code snippet for Color or Black and White setting
...
pOptItem->pName = (LPTSTR)IDS_CPSUI_COLOR_APPERANCE
pOptItem->DMPubID = DMPUB_COLOR
pOptItem->HelpIndex = (DWORD)myHelpIndex; // NOT IDH_COLO
if (pOptItem->HelpIndex != 0
// A Help Index for a CPSUI standard control will use the CPSUI standard hel
// unless the item points to a OIEXT structure that specifies the helpfil
OIEXT* pOIExt = (OIEXT*)LocalAlloc(LPTR, sizeof(OIEXT))
memset(pOIExt, 0, sizeof(OIEXT))
pOIExt->cbSize = sizeof(OIEXT)
pOIExt->pHelpFile = pPI->pHelpFile
pOptItem->pOIExt = pOIExt
... Tag: PCI_COMMON_CONFIG Tag: 44437
MmAllocateNonCachedMemory caused BSOD when called from IRP_MJ_PNP IRP_MN_START_DEVICE Dispatch routine
Is it safe to call MmAllocateNonCachedMemory from a routine dispatched by IRP_MJ_PNP.
I have seen this BSOD with IRQL_NOT_LESS_OR_EQUAL.
Only one one system while never saw this BSOD on any other systems running the same driver code
Any feedback is grately appreciated
Th
Abhay Tag: PCI_COMMON_CONFIG Tag: 44436
Newbie Q : TDI driver communicating with user app?
Hi,
I'm totally new at this, so please forgive the basic question.
I am attempting to modify a TDI filter driver so that it communicates
with
a user mode application to do some processing of the data.
Based on the application's response, the driver will change some of
the data before forwarding on the rest as usual.
It seems that I can share the data with the app by making
DeviceIoControl() calls to pass in a buffer to the driver to fill in
and then for the app to send its response after it has completed its
analysis.
An article, http://www.osronline.com/article.cfm?id=108, suggested
using named events created by the app to control access to shared
buffers, so I attempted to incorporate that.
My problem is that the driver, while it's fetching the data, can't
seem to wait on a named event. However, if I stick in a
KeWaitForSingleObject() within the handler for the command sent by
DeviceIoControl(), it seemed OK.
Does this sound like the right approach? What am I missing?
Thanks for any help.
V Tag: PCI_COMMON_CONFIG Tag: 44433
Change the system color
I am newbie for Windows driver development. I have DDK installed in my
machine.
My requirement is that I want to set the system foreground color to Yellow
and background to Black for all applications. Basically I want to play
around with system colors. Since some of our applications override the
system color using the Windows color management applet or Win32API is not an
option for me. The only way is that I want to access the hardware.
Please advice.
thanks Tag: PCI_COMMON_CONFIG Tag: 44425
linking ZwCreateSection prevents driver loading ?
Hallo everybody,
I'm trying to share some memory between my wdm driver and an application
using ZwCreateSection, but as soon as i use ZwCreateSection() and so
bind to ntdll.lib, it will fail to load during install, returning
Device not started: Device has problem: 0x27: CM_PROB_DRIVER_FAILED_LOAD
I've checked a little, and it doesn't even reach the DriverEntry.
Removing the mem sharing part it works fine, so I think it's some kind
of problem with the import of ZwCreateSection.
Am i on the right track ?
How can I solve the problem ?
thank you,
e. Tag: PCI_COMMON_CONFIG Tag: 44419
CIS in common memroy
Does Windows occasionally access CIS on other times then at start up
(power-up)? I'm interrested in this because I'm thinking of loading CIS into
my 1 KB SRAM during power-up, which is the only space on the card that is
used by the PC card interface. And then remove the CIS, after Windows have
read all it need, to make the space avalible for registeres that is needed
for the cards original function. Needs all of the 1KB space. (The PC Card
have the logic that supports this replace-idea, but those Windows/ PC Card
standard support it?). This implies that the CIS have to be in common
memory. Tag: PCI_COMMON_CONFIG Tag: 44410
driver book for beginners
hi,
is there any book written for beginners to WDM? or maybe threre is some site
about WDM drivers?
darius Tag: PCI_COMMON_CONFIG Tag: 44404
how to match usb vid/pid with mass storage drive letter in win98
Hi
I would like to find the drive letter assigned to my usb mass storage device. In win2k/xp, I can use QueryDosDevice and the SPDRP_PHYSICAL_DEVICE_OBJECT_NAME registry property to find the drive letter. But in win98, I have encountered a few problems using the same method
1. QueryDosDevice always give me back the device name. e.g.: i use "c:" as input, the function will give me back "c:". Is it a normal behaviour in win98
2. I use umss as the driver of my device so I cannot find the volume interface of my device. So how can I get the SPDRP_PHYSICAL_DEVICE_OBJECT_NAME of my device in order to compare with the returned value from QueryDosDevice
3. I do not know whether I should also use this method in win98 or not. Is there anybody who have tried this
I am just a newbie. Can anybody give me some hints? Any comments and suggestions are welcome
Thanks in advance
Tomson Tag: PCI_COMMON_CONFIG Tag: 44397
Accessing floppy disks with 10 sectors per track
Hi,
I've got some old double-sided double density disks that are formatted with
10 sectors/track rather than the standard 9.
Do anyone have any ideas how I could read/write these under 2000/XP?
I noticed from looking at the DDK that flpydisk.sys doesn't support this
layout. I was wondering whether it's possible to write some sort of simple
filter driver to tell it about the extra sector per track?
Just in case this is important, sector ids run 1 through 10, track numbers
(in the sector headers) run 0-79 on side 0 and 128-207 on side 1.
Actually, it would be really handy if I could get at the actual sector
headers as well as the data...
Regards,
Jonathan Needle Tag: PCI_COMMON_CONFIG Tag: 44392
Question about system page table entries
Hi
reading about terminal server sizing I recognized the term "system page table entries" quite often. Unfortunaltey
I understand the 4 GB virtual memory is devided into 2 GB users space (a private space for each process) and a 2 GB system space. Page table entries are used to map virtual memory addresses to physical ones.
From my understanding, system page table entries are used to map the complete 2 GB system space to physical memory and normal PTEs describe the users space. I heard SPTEs are a limited resource and the OS is not able to use the complete 2 GB space due to this limitation
If I'm wrong and SPTEs describe only portions of the system space, which portions are described? Why isn't it possible to use just PTEs
I appreciate your help
Stephan Tag: PCI_COMMON_CONFIG Tag: 44391
How to Set default audio device?
Hello to all,
I need your help. I'm programming in VC++ and I need to change the default
audio device in Windows98, 2000 and XP.
I've found a function that returns the ID of the preferred audio device
(waveoutmessage) but I need to change the preferred audio device.
I don't know how to do that... may be It can be done through the registry...
Thank you. Tag: PCI_COMMON_CONFIG Tag: 44385
question about using VC6 with DDK
Hello,
i just bought Walter Oney's book on WDM drivers.
so far it is really good, but i am just at page 100.
at this moment i have 2 question:
- in the introduction Walter says that he uses VC6 for programming and
building device drivers, but i havent found am explanation so far that tells
me how to set this up. is it enough to just change the compiler? and what am
i supposed to enter for build target?is it enough to use the VC6 plugin or
do i need to do more?
- is it possible to use VC .NET 2003 instead of VC6? i still use both on my
system, but i would rather move to VC .NET where possible.
i am sorry if i ask questions that are answered in the book, but i have
skimmed through it to see if they were, and did not find anything. i have
not read the book completely, but wanted to compile an empty example to get
a feel for it. rather than taking a finished example from the CD, i would
build an empty driver myself so that when it is finished, i would really
know what was in there.
kind regards,
Bruno. Tag: PCI_COMMON_CONFIG Tag: 44380
Bluetooth HCRP credit flow
Hi Folks,
I am developing an HCRP firmware (Printer side HCRP profile) and testing it
against the XP Bluetooth HCRP driver.
I am successfully able to
- have the XP host detect my device as a "HCRP Printer",
- the L2CAP Control and Data channels getting created
- a new printer also gets added to my "Printers and Fax" collection on the
HCRP Host.
Now When I try and print a document using this HCRP printer following
happens:
a. I get a CR_DataChannelCreditRequest on the L2CAP COntrol Channel (Printer
side) to which I reply with a large number of credits (0x00 00 00 00 00 FF
FF FF).
b. I start recieving bytes on the L2CAP Data channel.
c. After recieving 64KBytes, the Host application doesnt send any more
packets. Neither any bytes on Data Channel, nor any more
CR_DataChannelCreditRequest.
However I recv. all the data for if the print data is less than 64K, my
question is this 64K any magic number ? IMO I should be getting periodic
requests for credits on the Printer side after the HCRP Host has exhausted
all the credits, but no such thing happens. How has the HCRP driver in XP
been implemented to handle this situation ? I have also tried sending some
credtis (voluntarily) from the printer side to the Host using the
CR_DataChannelCreditGrant after the 64K bytes of credit have been exhausted,
but to no avail.
help in any direction appreciated.
thanks people for all your patience.
Deepesh Tag: PCI_COMMON_CONFIG Tag: 44376
Bypass print processor
Hi
I have a customized print processor associated to a printer. That print processor copies the Spool files of jobs printed by users. In another application, users will take actual print outs with those spool files using the same printer. When they are actually printing, I should bypass printprocessor (Otherwise, it again copies the spool files).
How to write RAW data directly to Port monitor/Printer, bypassing the print processor
In my application I tried like this
StartDocPrinter()
StartpagePrinter()
Read the spool file()
WritePrinter(); // Tried printer name, Port name. Both are spooling the data.1
loop until end of file
EndPagePrinter()
EndDocPrinter()
In the above approach, printprocessor is getting invoked. Also I tried different spooler properties like Print directly to printer. That too didn't work
Is there another approach all together(My client does not want 2nd printer associated to another print processor)
Thanks & Regards
Kira Tag: PCI_COMMON_CONFIG Tag: 44374
For readers of marginal notes
I'm being a bit cryptic here -- deliberately.
But, readers of marginal notes should be advised that the prize (such as
it is) is ready to be won.
--
Walter Oney
Attribution Withheld Just This Once Tag: PCI_COMMON_CONFIG Tag: 44363
PCI_COMMON_CONFIG structure does not have a type1 UNION defined? how TYPE 1 headers are used in a driver?
Thanks Eliyas, ntddk.h has both types defined, I was looking in the DDK documentation and it only defines type 0 in the PCI_COMMON_CONFIG reference section.