Link to home
Start Free TrialLog in
Avatar of KristjanLaane
KristjanLaaneFlag for Estonia

asked on

0x00000007 conversion??

how do you finish converting the bottom code in c# to top code in vb? all is fine, but i dont know much about what these values are 0x00000007 and vb does not liek them, so im gueessign they have to be converted to integers for vb? if yes, how? if no, what values should i put in ?
Namespace NAudio.CoreAudioApi

    '/// <summary>
    '/// Device State
    '/// </summary>
    <Flags()>
    Public Enum DeviceState

        '/// <summary>
        '/// DEVICE_STATE_ACTIVE
        '/// </summary>
        Active = ? '0x00000001
        '/// <summary>
        '/// DEVICE_STATE_UNPLUGGED
        '/// </summary>
        Unplugged = ? '0x00000002
        '0x00000002
        '/// <summary>
        '/// DEVICE_STATE_NOTPRESENT 
        '/// </summary>
        NotPresent = ? '0x00000004
        '/// <summary>
        '/// DEVICE_STATEMASK_ALL
        '/// </summary>
        All = ? '0x00000007
    End Enum
End Namespace

Open in new window

namespace NAudio.CoreAudioApi
{
    /// <summary>
    /// Device State
    /// </summary>
    [Flags]
    public enum DeviceState
    {
        /// <summary>
        /// DEVICE_STATE_ACTIVE
        /// </summary>
        Active = 0x00000001,
        /// <summary>
        /// DEVICE_STATE_UNPLUGGED
        /// </summary>
        Unplugged = 0x00000002,
        /// <summary>
        /// DEVICE_STATE_NOTPRESENT 
        /// </summary>
        NotPresent = 0x00000004,
        /// <summary>
        /// DEVICE_STATEMASK_ALL
        /// </summary>
        All = 0x00000007
    }
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of james-ct16
james-ct16
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KristjanLaane

ASKER

thanks!!!!!!!!!!!!!!