How to refresh windows image viewer when image name is same where as image gets changed using vc++

  • Thread starter Thread starter Vaibhaw Pratap Singh
  • Start date Start date
V

Vaibhaw Pratap Singh

Guest
I am opening image using windows image viewer by calling create Process.

CreateProcess(NULL, // Name of program to execute
CT2W(cmdStr), // Command line
NULL, // Process handle not inheritable
NULL, // Thread handle not inheritable
FALSE, // Set handle inheritance to FALSE
0, // No creation flags
NULL, // Use parent's environment block
NULL, // Use parent's starting directory
&si, // Pointer to STARTUPINFO structure
&pi);

where cmdStr = L"rundll32 \"C:\\Program Files\\Windows Photo Viewer\\PhotoViewer.dll\" ImageView_Fullscreen D:\\image\\B.png";

Now if i am updating the B.png with different image(here the different image name will be B.png) in image folder it is not getting updated in windows photo viewer.

I have the window handle of this windows photo viewer, by which I want to refresh it. Any suggestion...

Continue reading...
 
Back
Top