using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace NAudio.Wave.Compression { /// /// ACMFORMATCHOOSE /// http://msdn.microsoft.com/en-us/library/dd742911%28VS.85%29.aspx /// [StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Auto)] struct AcmFormatChoose { /// /// DWORD cbStruct; /// public int structureSize; /// /// DWORD fdwStyle; /// public AcmFormatChooseStyleFlags styleFlags; /// /// HWND hwndOwner; /// public IntPtr ownerWindowHandle; /// /// LPWAVEFORMATEX pwfx; /// public IntPtr selectedWaveFormatPointer; /// /// DWORD cbwfx; /// public int selectedWaveFormatByteSize; /// /// LPCTSTR pszTitle; /// [MarshalAs(UnmanagedType.LPTStr)] public string title; /// /// TCHAR szFormatTag[ACMFORMATTAGDETAILS_FORMATTAG_CHARS]; /// [MarshalAs(UnmanagedType.ByValTStr, SizeConst=AcmFormatTagDetails.FormatTagDescriptionChars)] public string formatTagDescription; /// /// TCHAR szFormat[ACMFORMATDETAILS_FORMAT_CHARS]; /// [MarshalAs(UnmanagedType.ByValTStr, SizeConst = AcmFormatDetails.FormatDescriptionChars)] public string formatDescription; /// /// LPTSTR pszName; /// n.b. can be written into /// [MarshalAs(UnmanagedType.LPTStr)] public string name; /// /// DWORD cchName /// Should be at least 128 unless name is zero /// public int nameByteSize; /// /// DWORD fdwEnum; /// public AcmFormatEnumFlags formatEnumFlags; /// /// LPWAVEFORMATEX pwfxEnum; /// public IntPtr waveFormatEnumPointer; /// /// HINSTANCE hInstance; /// public IntPtr instanceHandle; /// /// LPCTSTR pszTemplateName; /// [MarshalAs(UnmanagedType.LPTStr)] public string templateName; /// /// LPARAM lCustData; /// public IntPtr customData; /// /// ACMFORMATCHOOSEHOOKPROC pfnHook; /// public AcmInterop.AcmFormatChooseHookProc windowCallbackFunction; } }