dcsimg
Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Aug 6, 1997

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Notify The System Of Changes

A new Windows 95-only API call notifies the system that you've changed something it should know about. The call, SHChangeNotify, is very handy in a number of cases. You might make this call in twenty different cases. This tip covers a few of the most important. The call itself has only four parameters:
  • wEventId contains the flag identifying what has changed, such as:
     SHCNE_ASSOCCHANGED Changed a file type association. 
    SHCNE_ATTRIBUTES Changed a file's attributes.
    SHCNE_CREATE Created a file.
    SHCNE_DELETE Deleted a file.
    SHCNE_MKDIR Created a new directory.
    SHCNE_RENAMEFOLDER Renamed a folder.
    SHCNE_RENAMEITEM Renamed an item in afolder.
    SHCNE_RMDIR Removed a directory.
    SHCNE_UPDATEDIR Updated the contents of a directory.
    SHCNE_UPDATEITEM Changed the properties of a printer
    or file.
    
    These flags let Explorer know that something it is showing on screen might have changed and it needs to update its display.
  • uFlags indicates what the next two parameters contain. Generally, you'll want to pass SHCNF_FLUSH so that the function doesn't return until it has processed the call. Instead, you may want to pass SHCNF_FLUSHNOWAIT so that the call returns immediately but the system continues to process the call in the background.
  • dwItem1 is event specific, but for the flags you can pass null for both of these items.
  • dwItem2 is event specific.
  • MicroHelp Uninstaller
     
    Comment and Contribute

     

     

     

     

     


    (Maximum characters: 1200). You have 1200 characters left.

     

     

    Sitemap
    Thanks for your registration, follow us on our social networks to keep up-to-date