using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace Outlook2013TodoAddIn
{
///
/// Native calls to play sounds
///
public class SoundHelper
{
#region "Variables"
///
/// SND_NODEFAULT -> 0x0002
///
public const uint SND_NODEFAULT = 0x0002;
///
/// Mail notification sound
///
public const string MailBeep = "MailBeep";
#endregion "Variables"
#region "Methods"
///
/// Call to play a system sound
///
/// Eg.: MailBeep
///
///
[System.Runtime.InteropServices.DllImportAttribute("winmm.dll", EntryPoint = "sndPlaySoundW")]
[return: System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.Bool)]
public static extern bool sndPlaySoundW([System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPWStr)] string pszSound, uint fuSound);
#endregion "Methods"
/// Return Type: BOOL->int
///pszSound: LPCWSTR->WCHAR*
///fuSound: UINT->unsigned int
}
}