我从WP 8.1 SL升级了Windows Phone 8.1应用程序,在Silverlight和WP8.0代码中使用Project RingToneEditor类库,它包括类ACMDriverDetails.cs,AcmInterop.cs,AcmMetrics.cs等。 ..
在AcmInterop.cs中,我的代码如下所示
namespace OnlineVideos.RingToneEditor
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
internal class AcmInterop
{
[DllImport("Msacm32.dll")]
public static extern MmResult acmDriverClose(IntPtr hAcmDriver, int closeFlags);
[DllImport("Msacm32.dll")]
public static extern MmResult acmDriverDetails(IntPtr hAcmDriver, ref AcmDriverDetails driverDetails, int reserved);
[DllImport("Msacm32.dll")]
public static extern MmResult acmDriverEnum(AcmDriverEnumCallback fnCallback, IntPtr dwInstance, AcmDriverEnumFlags flags);
[DllImport("Msacm32.dll")]
public static extern MmResult acmDriverOpen(out IntPtr pAcmDriver, IntPtr hAcmDriverId, int openFlags);
[DllImport("Msacm32.dll")]
public static extern MmResult acmFormatEnum(IntPtr hAcmDriver, ref AcmFormatDetails formatDetails, AcmFormatEnumCallback callback, IntPtr instance, AcmFormatEnumFlags flags);
[DllImport("Msacm32.dll", EntryPoint="acmFormatSuggest")]
public static extern MmResult acmFormatSuggest2(IntPtr hAcmDriver, IntPtr sourceFormatPointer, IntPtr destFormatPointer, int sizeDestFormat, AcmFormatSuggestFlags suggestFlags);
[DllImport("Msacm32.dll")]
public static extern MmResult acmFormatTagEnum(IntPtr hAcmDriver, ref AcmFormatTagDetails formatTagDetails, AcmFormatTagEnumCallback callback, IntPtr instance, int reserved);
[DllImport("Msacm32.dll")]
public static extern MmResult acmMetrics(IntPtr hAcmObject, AcmMetrics metric, out int output);
[DllImport("Msacm32.dll")]
public static extern MmResult acmStreamClose(IntPtr hAcmStream, int closeFlags);
[DllImport("Msacm32.dll")]
public static extern MmResult acmStreamConvert(IntPtr hAcmStream, [In, Out] AcmStreamHeaderStruct streamHeader, AcmStreamConvertFlags streamConvertFlags);
[DllImport("Msacm32.dll", EntryPoint="acmStreamOpen")]
public static extern MmResult acmStreamOpen2(out IntPtr hAcmStream, IntPtr hAcmDriver, IntPtr sourceFormatPointer, IntPtr destFormatPointer, [In] WaveFilter waveFilter, IntPtr callback, IntPtr instance, AcmStreamOpenFlags openFlags);
[DllImport("Msacm32.dll")]
public static extern MmResult acmStreamPrepareHeader(IntPtr hAcmStream, [In, Out] AcmStreamHeaderStruct streamHeader, int prepareFlags);
[DllImport("Msacm32.dll")]
public static extern MmResult acmStreamReset(IntPtr hAcmStream, int resetFlags);
[DllImport("Msacm32.dll")]
public static extern MmResult acmStreamSize(IntPtr hAcmStream, int inputBufferSize, out int outputBufferSize, AcmStreamSizeFlags flags);
[DllImport("Msacm32.dll")]
public static extern MmResult acmStreamUnprepareHeader(IntPtr hAcmStream, [In, Out] AcmStreamHeaderStruct streamHeader, int flags);
public delegate bool AcmDriverEnumCallback(IntPtr hAcmDriverId, IntPtr instance, AcmDriverDetailsSupportFlags flags);
public delegate bool AcmFormatChooseHookProc(IntPtr windowHandle, int message, IntPtr wParam, IntPtr lParam);
public delegate bool AcmFormatEnumCallback(IntPtr hAcmDriverId, ref AcmFormatDetails formatDetails, IntPtr dwInstance, AcmDriverDetailsSupportFlags flags);
public delegate bool AcmFormatTagEnumCallback(IntPtr hAcmDriverId, ref AcmFormatTagDetails formatTagDetails, IntPtr dwInstance, AcmDriverDetailsSupportFlags flags);
}
完整代码成功运行但没有错误,但我尝试将我的应用程序提交到Store它显示错误,如下所示。
如何解决此错误并在商店中更新我的应用。
如果有任何替代品,请建议我。?
先谢谢.....