2008-07-16

7 new messages in 7 topics - digest

microsoft.public.development.device.drivers
http://groups.google.com/group/microsoft.public.development.device.drivers?hl=en

microsoft.public.development.device.drivers@googlegroups.com

Today's topics:

* question on device tree - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/abc0ed3750ff34b1?hl=en
* WDF driver on PIII dual processor - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/c58fa25ae34027e5?hl=en
* Regarding CPSUI - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/0c424bb51b7dec3e?hl=en
* registry question - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/1f039808b4358fe9?hl=en
* W2K package resubmission - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/5e17848074087559?hl=en
* capturing emf spool file for later replay. - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/e132e76ed62d94f7?hl=en
* DrvTextOut Accessing Font information - 1 messages, 1 author
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/8706d4472f1b2145?hl=en

==============================================================================
TOPIC: question on device tree
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/abc0ed3750ff34b1?hl=en
==============================================================================

== 1 of 1 ==
Date: Tues, Jul 15 2008 10:06 pm
From: Tim Roberts


qwert <qwert@discussions.microsoft.com> wrote:
>
>I dont understand why I shouldnt care about that????

Because it doesn't matter. Does the driver work? Then what's the problem?

>I see LEGACY_DRIVER entry in the enum key of my driver.
>But why it is not coming in the pnp view??????????

Because it's not a PnP driver.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.


==============================================================================
TOPIC: WDF driver on PIII dual processor
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/c58fa25ae34027e5?hl=en
==============================================================================

== 1 of 1 ==
Date: Tues, Jul 15 2008 10:30 pm
From: kota


Hi,

From WDF doc'n:
---------------
The WdfInterruptSetPolicy method is available in version 1.0 and later
versions of KMDF.

Windows Vista and later versions of the operation system allow drivers to
specify an interrupt's priority, processor affinity, and affinity policy.
These driver-supplied values override information that driver INF files or
system administrators place in the registry.

If a driver is running on an operating system version that is earlier than
Windows Vista, the framework ignores the values that the driver specifies
when it calls WdfInterruptSetPolicy.
---------------------
Affinity value is 0x3, read from U.Interrupt.KAFFINITY.
0x3 ==> IrqPolicyAllProcessorsInMachine, is this indicates that, hw is not
having any preference on any processor?, in this case, can i change the
affinity value to direct on any one processor,can you clarify?

Previous driver also using the same value and it is not directing to any one
processor.

Thanks,
Kota


==============================================================================
TOPIC: Regarding CPSUI
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/0c424bb51b7dec3e?hl=en
==============================================================================

== 1 of 1 ==
Date: Tues, Jul 15 2008 10:32 pm
From: killme


Hi,

Thanks for the reply. I already tried in this manner and it worked for
same cases while not for some other:
i. In the WM_INITDIALOG, the pfnComPropSheet pointer was NULL (am I doing
anything wrong here?!.) in the PPSPINFO structure. So, instead I cached the
one I got in DrvDocumentPropertySheets(). I am not sure how safe this is.
ii. When I used this pfnComPropSheet() function in the PSN_APPLY, I have
not used the hSheet for third param but instead used NULL since I was not
sure from where I can get the hSheet value.

The above two changes worked in following case:
If I try changing the settings from some applications, the changes I do
in property pages got reflected in the applications print dialog and vice
versa. This was fine

The above two changes were not working in following case:
In Control Panel, printer preferences, If I change any printer settings
like orientation, paper size etc and click apply button, the settings are not
getting saved. I have to resort to using SetPrinter() in
PROPSHEETUI_REASON_DESTROY to save the settings explicitly which will not be
desirable since this may unnecessarily save the settings when the property
pages are launched from any application.


"Carey Gregory" wrote:

> killme <killme@discussions.microsoft.com> wrote:
>
> > 1. The PROPSHEETUI_REASON_SET_RESULT is never called in case of Win32
> >dialog based property pages. I am not sure whether there is any way to make
> >this get called.
>
> Your dialog proc should do this:
>
>
> static PPSPINFO pPSPInfo;
> switch (msg)
> {
> case WM_INITDIALOG:
> pPSPInfo = PPSPINFO_FROM_WM_INITDIALOG_LPARAM(lParam);
> return TRUE;
>
> case WM_NOTIFY:
> {
> switch (pnmhdr->code)
> {
> case PSN_APPLY:
> // OK or Apply button has been pressed
> pPSPInfo->pfnComPropSheet(pPSPInfo->hComPropSheet,
> CPSFUNC_SET_RESULT,
> (LPARAM)hSheet,
> CPSUI_OK);
> return TRUE;
>
> default:
> break;
> }
> }
> break;
>
>
>
>


==============================================================================
TOPIC: registry question
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/1f039808b4358fe9?hl=en
==============================================================================

== 1 of 1 ==
Date: Tues, Jul 15 2008 11:08 pm
From: Tim Roberts


qwert <qwert@discussions.microsoft.com> wrote:

>Hi,
>My driver is of group "filter"
>each and every time I install and uninstall my driver the tag value gets
>incremented by 1.
>number of drivers in filter group in gropuorderlist also gets incremented by
>1 for each and every install and unistall.
>
>when I checked the grouporderlist intially the filter group had one driver
>in it.
>After I installed my driver it became 2.
>Now I uninstalled and installed my driver again.Now the number of drivers in
>that filter group became 3.correspondingly my tag gets changed to 3.
>
>where am I going wrong???
>Is there any specific thing I need to dod in uninstallation so that the
>number of drivers in the filter group should not get incremented like the
>above..

Again I ask, why do you care? This is a Windows implementation detail,
behind the scenes.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.


==============================================================================
TOPIC: W2K package resubmission
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/5e17848074087559?hl=en
==============================================================================

== 1 of 1 ==
Date: Tues, Jul 15 2008 11:13 pm
From: Tim Roberts


ejm <ejm@discussions.microsoft.com> wrote:

>We have a USB driver package we had qualified way back in mid 2005. It wasn't
>logo'd; we just needed a signed device driver.
>
>We now have a couple more devices serviced by the driver and wish so add
>their IDs to the INF file, which of course invalidates that .cat file. Anyone
>know if we can submit the old package with the new INF file and get an
>updated .cat file without going through the logo program (which is the only
>thing I see links to)? Paying the driver signing fee will be fine, I would
>just really prefer not to have to go through the whole (NEW!) test cycle
>again for an already qualified driver.

I know there is a shortcut program for exactly this case, but I do not know
if it applies clear back to Windows 2000. You need to contact WHQL about
this.

http://www.microsoft.com/whdc/winlogo/default.mspx
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.


==============================================================================
TOPIC: capturing emf spool file for later replay.
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/e132e76ed62d94f7?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 16 2008 12:01 am
From: hwilcox


Hi,

I am trying to capture the emf spool file, so that I can replay it later on
different print drivers. I'm trying to do this to simpify automated
regression testing of my driver.

While I have found a number of websites that say its possible, and some
programs that save a print job as emf, I haven't found any real details, and
as I understand it, spool file emf is a modified, undocumented version of emf
so something I download of the net might not work.

Thanks in advance
Hugh


==============================================================================
TOPIC: DrvTextOut Accessing Font information
http://groups.google.com/group/microsoft.public.development.device.drivers/browse_thread/thread/8706d4472f1b2145?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 16 2008 12:23 am
From: ssylee


I'm aware that in the DrvTextOut callback, I can somewhat retrieve
information about the font and its glyphs from pfo member of the parameters,
which are configured in the DrvQueryFont callback. However, I have not
exported this callback in my DDI hooks array, yet I'm getting some numbers
for the pfo members when I investigated this pointer in the debugger. As a
result, I'm not sure what to make out of this. What is the difference between
GDI and driver realized fonts? Basically, after reading the DDK
documentation, I'm still very confused on how I can access the information in
the LOGFONT structure passed in CreateFontIndirect function call in the
client application. Any comments on this would be muchly appreciated.

==============================================================================

You received this message because you are subscribed to the Google Groups "microsoft.public.development.device.drivers"
group.

To post to this group, visit http://groups.google.com/group/microsoft.public.development.device.drivers?hl=en

To unsubscribe from this group, send email to microsoft.public.development.device.drivers-unsubscribe@googlegroups.com

To change the way you get mail from this group, visit:
http://groups.google.com/group/microsoft.public.development.device.drivers/subscribe?hl=en

To report abuse, send email explaining the problem to abuse@googlegroups.com

==============================================================================
Google Groups: http://groups.google.com?hl=en

No comments: