Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Popup messages triggered by the Shell_NotifyIcon API from the Windows system tray may not be displayed


Symptoms

Consider the following scenario:

You have an (tray) application or driver uses the Shell_NotifyIcon API to trigger popup from Windows tray. The popup message may not be displayed to the user.

You may experience an issue where the above message is not displayed due to the device driver not being successfully installed and the following message will block the message:

"Device driver software was not successfully installed"

↑ Back to the top


Cause

This is due to a timing issue when using the Shell_NotifyIcon API.

↑ Back to the top


Resolution

Implement a wait period to allow both pop up messages to occur.  Such as for the driver to popup the Endpoint POP first, then call WaitForSingleObject (0) or Sleep() to wait for a given period of time, then return failure to PNP manager and allow the System popup to occur. 

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2701661
Revision : 1
Created on : 1/7/2017
Published on : 4/12/2012
Exists online : False
Views : 73