Xeno-rat
|
Interop definitions for Windows ACM (Audio Compression Manager) API. More...
Public Member Functions | |
delegate bool | AcmDriverEnumCallback (IntPtr hAcmDriverId, IntPtr instance, AcmDriverDetailsSupportFlags flags) |
delegate bool | AcmFormatEnumCallback (IntPtr hAcmDriverId, ref AcmFormatDetails formatDetails, IntPtr dwInstance, AcmDriverDetailsSupportFlags flags) |
delegate bool | AcmFormatTagEnumCallback (IntPtr hAcmDriverId, ref AcmFormatTagDetails formatTagDetails, IntPtr dwInstance, AcmDriverDetailsSupportFlags flags) |
delegate bool | AcmFormatChooseHookProc (IntPtr windowHandle, int message, IntPtr wParam, IntPtr lParam) |
http://msdn.microsoft.com/en-us/library/dd742910%28VS.85%29.aspx UINT ACMFORMATCHOOSEHOOKPROC acmFormatChooseHookProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam | |
static MmResult | acmDriverAdd (out IntPtr driverHandle, IntPtr driverModule, IntPtr driverFunctionAddress, int priority, AcmDriverAddFlags flags) |
Adds an Audio Compression Manager (ACM) driver to the system. | |
static MmResult | acmDriverRemove (IntPtr driverHandle, int removeFlags) |
Removes an Audio Compression Manager (ACM) driver. | |
static MmResult | acmDriverClose (IntPtr hAcmDriver, int closeFlags) |
Closes an Audio Compression Manager (ACM) driver. | |
static MmResult | acmDriverEnum (AcmDriverEnumCallback fnCallback, IntPtr dwInstance, AcmDriverEnumFlags flags) |
Enumerates the Audio Compression Manager (ACM) drivers installed on the system. | |
static MmResult | acmDriverDetails (IntPtr hAcmDriver, ref AcmDriverDetails driverDetails, int reserved) |
Retrieves details about an Audio Compression Manager (ACM) driver. | |
static MmResult | acmDriverOpen (out IntPtr pAcmDriver, IntPtr hAcmDriverId, int openFlags) |
Opens an Audio Compression Manager (ACM) driver and returns a handle to the driver. | |
static MmResult | acmFormatChoose (ref AcmFormatChoose formatChoose) |
Displays the ACM Format Chooser common dialog box to enable a user to select a waveform-audio format. | |
static MmResult | acmFormatEnum (IntPtr hAcmDriver, ref AcmFormatDetails formatDetails, AcmFormatEnumCallback callback, IntPtr instance, AcmFormatEnumFlags flags) |
Enumerates the available formats for an ACM driver. | |
static MmResult | acmFormatSuggest2 (IntPtr hAcmDriver, IntPtr sourceFormatPointer, IntPtr destFormatPointer, int sizeDestFormat, AcmFormatSuggestFlags suggestFlags) |
Suggests a destination format for converting an audio format. | |
static MmResult | acmFormatTagEnum (IntPtr hAcmDriver, ref AcmFormatTagDetails formatTagDetails, AcmFormatTagEnumCallback callback, IntPtr instance, int reserved) |
Enumerates the available format tags for audio compression manager (ACM) drivers. | |
static MmResult | acmMetrics (IntPtr hAcmObject, AcmMetrics metric, out int output) |
Retrieves information about an Audio Compression Manager (ACM) driver or converter. | |
static MmResult | acmStreamOpen2 (out IntPtr hAcmStream, IntPtr hAcmDriver, IntPtr sourceFormatPointer, IntPtr destFormatPointer, [In] WaveFilter waveFilter, IntPtr callback, IntPtr instance, AcmStreamOpenFlags openFlags) |
Opens a new conversion stream for audio data. | |
static MmResult | acmStreamClose (IntPtr hAcmStream, int closeFlags) |
Closes an Audio Compression Manager (ACM) stream. | |
static MmResult | acmStreamConvert (IntPtr hAcmStream, [In, Out] AcmStreamHeaderStruct streamHeader, AcmStreamConvertFlags streamConvertFlags) |
Converts audio data from one format to another using the Audio Compression Manager (ACM). | |
static MmResult | acmStreamPrepareHeader (IntPtr hAcmStream, [In, Out] AcmStreamHeaderStruct streamHeader, int prepareFlags) |
Prepares the header for an Audio Compression Manager (ACM) stream. | |
static MmResult | acmStreamReset (IntPtr hAcmStream, int resetFlags) |
Resets the conversion state of an Audio Compression Manager (ACM) stream. | |
static MmResult | acmStreamSize (IntPtr hAcmStream, int inputBufferSize, out int outputBufferSize, AcmStreamSizeFlags flags) |
Retrieves the size of the output buffer required for the specified input buffer size and conversion parameters. | |
static MmResult | acmStreamUnprepareHeader (IntPtr hAcmStream, [In, Out] AcmStreamHeaderStruct streamHeader, int flags) |
Unprepares the header for an Audio Compression Manager (ACM) stream. | |
Interop definitions for Windows ACM (Audio Compression Manager) API.
static MmResult NAudio.Wave.Compression.AcmInterop.acmDriverAdd | ( | out IntPtr | driverHandle, |
IntPtr | driverModule, | ||
IntPtr | driverFunctionAddress, | ||
int | priority, | ||
AcmDriverAddFlags | flags ) |
Adds an Audio Compression Manager (ACM) driver to the system.
driverHandle | When this method returns, contains a pointer to a handle for the added ACM driver. |
driverModule | The handle to the module that contains the ACM driver function. |
driverFunctionAddress | The address of the ACM driver function. |
priority | The priority of the ACM driver. |
flags | Flags that specify how the ACM driver should be added. |
static MmResult NAudio.Wave.Compression.AcmInterop.acmDriverClose | ( | IntPtr | hAcmDriver, |
int | closeFlags ) |
Closes an Audio Compression Manager (ACM) driver.
hAcmDriver | Handle to the ACM driver to be closed. |
closeFlags | Flags that specify how the ACM driver should be closed. |
static MmResult NAudio.Wave.Compression.AcmInterop.acmDriverDetails | ( | IntPtr | hAcmDriver, |
ref AcmDriverDetails | driverDetails, | ||
int | reserved ) |
Retrieves details about an Audio Compression Manager (ACM) driver.
hAcmDriver | Handle to the ACM driver to retrieve details for. |
driverDetails | Reference to an AcmDriverDetails structure that will receive the driver details. |
reserved | Reserved parameter; must be set to 0. |
static MmResult NAudio.Wave.Compression.AcmInterop.acmDriverEnum | ( | AcmDriverEnumCallback | fnCallback, |
IntPtr | dwInstance, | ||
AcmDriverEnumFlags | flags ) |
Enumerates the Audio Compression Manager (ACM) drivers installed on the system.
fnCallback | A callback function to be called for each ACM driver found. |
dwInstance | Application-defined parameter to be passed to the callback function. |
flags | Flags that control the driver enumeration process. |
delegate bool NAudio.Wave.Compression.AcmInterop.AcmDriverEnumCallback | ( | IntPtr | hAcmDriverId, |
IntPtr | instance, | ||
AcmDriverDetailsSupportFlags | flags ) |
static MmResult NAudio.Wave.Compression.AcmInterop.acmDriverOpen | ( | out IntPtr | pAcmDriver, |
IntPtr | hAcmDriverId, | ||
int | openFlags ) |
Opens an Audio Compression Manager (ACM) driver and returns a handle to the driver.
pAcmDriver | When this method returns, contains a handle to the opened ACM driver. |
hAcmDriverId | Handle to the ACM driver identifier. This parameter is not currently used and should be set to IntPtr.Zero. |
openFlags | Flags that specify how the ACM driver should be opened. |
This method opens an ACM driver specified by the hAcmDriverId parameter and returns a handle to the driver in the pAcmDriver parameter. The openFlags parameter specifies how the ACM driver should be opened, such as for querying or for writing.
static MmResult NAudio.Wave.Compression.AcmInterop.acmDriverRemove | ( | IntPtr | driverHandle, |
int | removeFlags ) |
Removes an Audio Compression Manager (ACM) driver.
driverHandle | The handle to the ACM driver to be removed. |
removeFlags | Flags that specify how the driver should be removed. |
static MmResult NAudio.Wave.Compression.AcmInterop.acmFormatChoose | ( | ref AcmFormatChoose | formatChoose | ) |
Displays the ACM Format Chooser common dialog box to enable a user to select a waveform-audio format.
formatChoose | A reference to an AcmFormatChoose structure that contains information used to initialize the dialog box. |
delegate bool NAudio.Wave.Compression.AcmInterop.AcmFormatChooseHookProc | ( | IntPtr | windowHandle, |
int | message, | ||
IntPtr | wParam, | ||
IntPtr | lParam ) |
http://msdn.microsoft.com/en-us/library/dd742910%28VS.85%29.aspx UINT ACMFORMATCHOOSEHOOKPROC acmFormatChooseHookProc( HWND hwnd,
UINT uMsg,
WPARAM wParam, LPARAM lParam
static MmResult NAudio.Wave.Compression.AcmInterop.acmFormatEnum | ( | IntPtr | hAcmDriver, |
ref AcmFormatDetails | formatDetails, | ||
AcmFormatEnumCallback | callback, | ||
IntPtr | instance, | ||
AcmFormatEnumFlags | flags ) |
Enumerates the available formats for an ACM driver.
hAcmDriver | Handle to the ACM driver to query for available formats. |
formatDetails | Reference to an AcmFormatDetails structure that receives details about the format. |
callback | Callback function to be called for each format found. |
instance | Application-defined instance handle. |
flags | Flags that modify the behavior of the enumeration. |
delegate bool NAudio.Wave.Compression.AcmInterop.AcmFormatEnumCallback | ( | IntPtr | hAcmDriverId, |
ref AcmFormatDetails | formatDetails, | ||
IntPtr | dwInstance, | ||
AcmDriverDetailsSupportFlags | flags ) |
static MmResult NAudio.Wave.Compression.AcmInterop.acmFormatSuggest2 | ( | IntPtr | hAcmDriver, |
IntPtr | sourceFormatPointer, | ||
IntPtr | destFormatPointer, | ||
int | sizeDestFormat, | ||
AcmFormatSuggestFlags | suggestFlags ) |
Suggests a destination format for converting an audio format.
hAcmDriver | Handle to the ACM driver to use for the format suggestion. |
sourceFormatPointer | Pointer to the source format to be converted. |
destFormatPointer | Pointer to the suggested destination format. |
sizeDestFormat | Size of the destination format structure. |
suggestFlags | Flags that specify the format suggestion options. |
static MmResult NAudio.Wave.Compression.AcmInterop.acmFormatTagEnum | ( | IntPtr | hAcmDriver, |
ref AcmFormatTagDetails | formatTagDetails, | ||
AcmFormatTagEnumCallback | callback, | ||
IntPtr | instance, | ||
int | reserved ) |
Enumerates the available format tags for audio compression manager (ACM) drivers.
hAcmDriver | Handle to the ACM driver to query for format tags. |
formatTagDetails | Reference to an AcmFormatTagDetails structure that receives the format tag details. |
callback | Callback function to be called for each format tag found. |
instance | Application-defined value to be passed to the callback function. |
reserved | Reserved; must be set to zero. |
This method enumerates the available format tags for the specified ACM driver, calling the provided callback function for each format tag found. The formatTagDetails structure receives the details of each format tag, and the instance parameter is passed to the callback function.
delegate bool NAudio.Wave.Compression.AcmInterop.AcmFormatTagEnumCallback | ( | IntPtr | hAcmDriverId, |
ref AcmFormatTagDetails | formatTagDetails, | ||
IntPtr | dwInstance, | ||
AcmDriverDetailsSupportFlags | flags ) |
static MmResult NAudio.Wave.Compression.AcmInterop.acmMetrics | ( | IntPtr | hAcmObject, |
AcmMetrics | metric, | ||
out int | output ) |
Retrieves information about an Audio Compression Manager (ACM) driver or converter.
hAcmObject | Handle to the ACM driver or converter to query. |
metric | The metric to query. |
output | When this method returns, contains the requested information about the ACM driver or converter. |
This method retrieves information about the specified ACM driver or converter, as specified by the hAcmObject parameter. The metric parameter specifies the type of information to retrieve. The retrieved information is stored in the output parameter.
static MmResult NAudio.Wave.Compression.AcmInterop.acmStreamClose | ( | IntPtr | hAcmStream, |
int | closeFlags ) |
Closes an Audio Compression Manager (ACM) stream.
hAcmStream | Handle to the ACM stream to be closed. |
closeFlags | Flags that specify how the ACM stream should be closed. |
static MmResult NAudio.Wave.Compression.AcmInterop.acmStreamConvert | ( | IntPtr | hAcmStream, |
[In, Out] AcmStreamHeaderStruct | streamHeader, | ||
AcmStreamConvertFlags | streamConvertFlags ) |
Converts audio data from one format to another using the Audio Compression Manager (ACM).
hAcmStream | Handle to the conversion stream. |
streamHeader | The stream header containing information about the conversion process. |
streamConvertFlags | Flags that control the conversion process. |
This method uses the Audio Compression Manager (ACM) to convert audio data from one format to another. It takes a handle to the conversion stream, a stream header containing information about the conversion process, and flags that control the conversion process.
static MmResult NAudio.Wave.Compression.AcmInterop.acmStreamOpen2 | ( | out IntPtr | hAcmStream, |
IntPtr | hAcmDriver, | ||
IntPtr | sourceFormatPointer, | ||
IntPtr | destFormatPointer, | ||
[In] WaveFilter | waveFilter, | ||
IntPtr | callback, | ||
IntPtr | instance, | ||
AcmStreamOpenFlags | openFlags ) |
Opens a new conversion stream for audio data.
hAcmStream | When this method returns, contains a handle to the new stream. |
hAcmDriver | Handle to the ACM driver to be used for the conversion. |
sourceFormatPointer | Pointer to the WAVEFORMATEX structure that specifies the format of the source data. |
destFormatPointer | Pointer to the WAVEFORMATEX structure that specifies the format of the destination data. |
waveFilter | A WaveFilter structure that specifies any filtering to be applied during the conversion process. |
callback | Pointer to a callback function that is called during the conversion process. |
instance | Handle to the application-defined instance that is passed to the callback function. |
openFlags | Flags that specify the stream open options. |
static MmResult NAudio.Wave.Compression.AcmInterop.acmStreamPrepareHeader | ( | IntPtr | hAcmStream, |
[In, Out] AcmStreamHeaderStruct | streamHeader, | ||
int | prepareFlags ) |
Prepares the header for an Audio Compression Manager (ACM) stream.
hAcmStream | Handle to the ACM stream. |
streamHeader | The stream header to be prepared. |
prepareFlags | Flags specifying the preparation options. |
This method prepares the specified stream header for use with the given ACM stream. The preparation flags can be used to specify additional options for the preparation process.
static MmResult NAudio.Wave.Compression.AcmInterop.acmStreamReset | ( | IntPtr | hAcmStream, |
int | resetFlags ) |
Resets the conversion state of an Audio Compression Manager (ACM) stream.
hAcmStream | Handle to the ACM stream to be reset. |
resetFlags | Flags that specify how the stream should be reset. |
static MmResult NAudio.Wave.Compression.AcmInterop.acmStreamSize | ( | IntPtr | hAcmStream, |
int | inputBufferSize, | ||
out int | outputBufferSize, | ||
AcmStreamSizeFlags | flags ) |
Retrieves the size of the output buffer required for the specified input buffer size and conversion parameters.
hAcmStream | Handle to the conversion stream. |
inputBufferSize | Size of the input buffer. |
outputBufferSize | When this method returns, contains the size of the output buffer required for the specified input buffer size and conversion parameters. |
flags | Flags that specify the stream size operation. |
static MmResult NAudio.Wave.Compression.AcmInterop.acmStreamUnprepareHeader | ( | IntPtr | hAcmStream, |
[In, Out] AcmStreamHeaderStruct | streamHeader, | ||
int | flags ) |
Unprepares the header for an Audio Compression Manager (ACM) stream.
hAcmStream | Handle to the ACM stream. |
streamHeader | The stream header to unprepare. |
flags | Flags that specify the unprepare operation. |