// Define other methods and classes here
class QueryUserNotificationState
{
public enum UserNotificationState
{
NotPresent = 1,
Busy = 2,
RunningDirect3dFullScreen = 3,
PresentationMode = 4,
AcceptsNotifications = 5,
QuietTime = 6
};
[DllImport("shell32.dll")]
static extern int SHQueryUserNotificationState(out UserNotificationState pquns);
public static UserNotificationState State()
{
UserNotificationState state;
var returnVal = SHQueryUserNotificationState(out state);
return state;
}
}
The SHQueryUserNotificationState API
7/20/2011 11:44:01 PM - -216.10.193.23
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).