frgnca / AudioDeviceCmdlets

AudioDeviceCmdlets is a suite of PowerShell Cmdlets to control audio devices on Windows
MIT License
743 stars 92 forks source link

about the compiler warning about unused fields in struct #3

Closed wangzq closed 6 years ago

wangzq commented 9 years ago

You can use #pragma to disable/restore the warning around the struct instead:

#pragma warning disable 649
    internal struct AUDIO_VOLUME_NOTIFICATION_DATA
    {
        public Guid guidEventContext;
        public bool bMuted;
        public float fMasterVolume;
        public uint nChannels;
        public float ChannelVolume;
    }
#pragma warning restore 649
frgnca commented 6 years ago

@wangzq could you tell me if this is still relevant?