Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2006
    Posts
    9

    Simulating Refresh (Windows Explorer)

    I read all threads about refreshing codes for example using below code:

    Originally Posted by Intrigued in "How to force Desktop Refresh" Thread

    DLL.CallFunction(_SystemFolder.."\\SHELL32.DLL", "SHChangeNotify", "134217728, 0, NULL, NULL", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
    But it only refreshes desktop after A file type association has been changed as 134217728 EventID points to.
    It does not works on refreshing windows explorer and folder and file browsing.

    For example in one of autoruns I want to see if hidden settings is on or not, and if on, set it off and show a hidden file in explorer to user.
    I can change registry keys for setting on and off folder options settings, but it needs explorer REFRESH.
    I'm searching for a code to refresh explorer for me at the time.

    Thanks
    Last edited by shaitan; 06-09-2007 at 03:42 PM.

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    you are useing the wrong flags

    try it with the "SHCNE_ALLEVENTS" flag

    EG:
    Code:
    DLL.CallFunction(_SystemFolder.."\\SHELL32.DLL", "SHChangeNotify", "134217728, SHCNE_ALLEVENTS, NULL, NULL", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Jun 2006
    Posts
    9
    Quote Originally Posted by RizlaUK View Post
    Code:
    DLL.CallFunction(_SystemFolder.."\\SHELL32.DLL", "SHChangeNotify", "134217728, SHCNE_ALLEVENTS, NULL, NULL", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
    No, it doesn't works. still it refreshes another something, not explorer.

    Thanks

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    funny......it works for me, it refreshes desktop and all open explorer windows
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Oct 2006
    Location
    London, UK
    Posts
    351
    Quote Originally Posted by RizlaUK View Post
    you are useing the wrong flags

    try it with the "SHCNE_ALLEVENTS" flag

    EG:
    Code:
    DLL.CallFunction(_SystemFolder.."\\SHELL32.DLL", "SHChangeNotify", "134217728, SHCNE_ALLEVENTS, NULL, NULL", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
    Thanks, this will come in handy!

    P.S. works for me as well.

  6. #6
    Join Date
    Jun 2006
    Posts
    9
    dear RizlaUK,

    try attached app, that's not working for me OR i'm making a mistake!!
    Attached Files

Similar Threads

  1. NirCmd v1.85 - Freeware command-line tool
    By bobbie in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 02-19-2007, 07:20 AM
  2. attempting to compare a variable with the contents of an array
    By Lucian Cain in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 10-17-2006, 03:10 PM
  3. INFO: JET and MDAC (Complete) Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 08:35 AM
  4. INFO: JET 4.0 SP7-SP8 Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 08:34 AM
  5. HOWTO: Install Files to the Windows Directory
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-18-2002, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts