KristjanLaane
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
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
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER