About Slideshow

I have a question about slideshow,
“PhotoViewer.dll” will be loaded when we start slideshow from explorer, It will be unloaded until slideshow and the explorer are exit.
How to do it if we want to unload PhotoViewer.dll when the slideshow exit?
It is the best way if we can implement it in application.
Thank you very much.

Allen

Not a driver question really…why do you want to do this?

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: xxxxx@sina.com
Sent: Sunday, April 26, 2009 11:46 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] About Slideshow

I have a question about slideshow,
“PhotoViewer.dll” will be loaded when we start slideshow from explorer, It will be unloaded until slideshow and the explorer are exit.
How to do it if we want to unload PhotoViewer.dll when the slideshow exit?
It is the best way if we can implement it in application.
Thank you very much.

Allen


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Another condition, Unload should be safe.

Doron Holan,

Thank you for you help.
In this reason, I want to force slideshow run as GDI+ when my program is runinng, So I must resotre to old state after my program exit.
I test find that it will be restored after the explorer is closed.

Allen

I add a value key (WinSATSCore) in “HKEY_CURRENT_USER\Software\Microsoft\Windows Photo Gallery\Slideshow” and set it to 0 for disable DirectX mode.

I think it should be a bug in explorer, Because :
1, WinSATSCore will be read when slideshow be started every time.
2, Since It can be disable DirectX mode by set to 0. It should be come back when the key be deleted.

Where is it documented that this registry value has these behaviors?

N.B. This is also not the best discussion list for these sort of issues. I would suggest that you visit microsoft.win32.programmer.*.

  • S

-----Original Message-----
From: xxxxx@sina.com
Sent: Monday, April 27, 2009 06:43
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] About Slideshow

I add a value key (WinSATSCore) in “HKEY_CURRENT_USER\Software\Microsoft\Windows Photo Gallery\Slideshow” and set it to 0 for disable DirectX mode.

I think it should be a bug in explorer, Because :
1, WinSATSCore will be read when slideshow be started every time.
2, Since It can be disable DirectX mode by set to 0. It should be come back when the key be deleted.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

xxxxx@sina.com wrote:

I add a value key (WinSATSCore) in “HKEY_CURRENT_USER\Software\Microsoft\Windows Photo Gallery\Slideshow” and set it to 0 for disable DirectX mode.

I think it should be a bug in explorer, Because :
1, WinSATSCore will be read when slideshow be started every time.
2, Since It can be disable DirectX mode by set to 0. It should be come back when the key be deleted.

There is no reliable way to force a DLL to be unloaded from another
app. You have no idea whether the application still holds function
pointers that it expects to be able to call in the future.

Applications do not expect registry entries to be dynamic. You might
WISH that Explorer re-read this every time, because it lets you
implement some trick, but that doesn’t make it a design goal for Microsoft.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Yes, It is documented(“http://support.microsoft.com/kb/938818/en-us”)
in the follow section:
Method 2
Edit the registry to force Windows Vista to use the GDI+ mode.

Normal, A module will be free when it doesn’t need.
PhotoViewer.dll is loaded by explorer when we start slideshow, so it should be unload when slideshow exit. But it doesn’t unload until the explorer is closed.
Note : you can start the slideshow thread only one.

Allen