/// <summary> /// This function retrieves the capabilities of a given auxiliary output device. /// </summary> /// <param name="uDeviceID">Identifier of the auxiliary output device to be queried. /// Specify a valid device identifier or use the following constant: /// AUX_MAPPER </param> /// <param name="lpCaps">AUXCAPS structure to be filled with information about /// the capabilities of the device.</param> /// <param name="uSize">Size, in bytes, of the AUXCAPS structure.</param> /// <returns>Returns MMSYSERR_NOERROR if successful or an error otherwise. /// Possible error values include the following: /// MMSYSERR_BADDEVICEID</returns> /// <remarks>The device identifier in uDeviceID varies from zero to one less than /// the number of devices present. AUX_MAPPER may also be used. Use the auxGetNumDevs /// function to determine the number of auxiliary output devices present in the system. /// </remarks> public static MMResult AuxGetDevCaps(uint uDeviceID, ref AuxCaps lpCaps, uint uSize) { return(Environment.OSVersion.Platform >= PlatformID.Win32NT ? Native.auxGetDevCapsW(uDeviceID, ref lpCaps, uSize) : Native.auxGetDevCapsA(uDeviceID, ref lpCaps, uSize)); }
internal static extern MMResult auxGetDevCapsW([MarshalAs(UnmanagedType.SysUInt)] uint uDeviceID, ref AuxCaps lpCaps, uint uSize);