本文整理汇总了C#中PropVariant.GetStringArray方法的典型用法代码示例。如果您正苦于以下问题:C# PropVariant.GetStringArray方法的具体用法?C# PropVariant.GetStringArray怎么用?C# PropVariant.GetStringArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PropVariant
的用法示例。
在下文中一共展示了PropVariant.GetStringArray方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestMisc
private void TestMisc()
{
int i;
PropVariant p = new PropVariant();
IMFMediaBuffer mb, mb2;
string[] sa;
IMFMediaTypeHandler ph;
int hr = MFExtern.MFGetTimerPeriodicity(out i);
MFError.ThrowExceptionForHR(hr);
Debug.Assert(i == 10);
hr = MFExtern.MFCreateAlignedMemoryBuffer(1000, 8, out mb);
MFError.ThrowExceptionForHR(hr);
Debug.Assert(mb != null);
long l = MFExtern.MFGetSystemTime();
Debug.Assert(l > 206563752489);
hr = MFExtern.MFGetSupportedSchemes(p);
MFError.ThrowExceptionForHR(hr);
sa = p.GetStringArray();
Debug.Assert(sa.Length > 13);
hr = MFExtern.MFGetSupportedMimeTypes(p);
MFError.ThrowExceptionForHR(hr);
sa = p.GetStringArray();
Debug.Assert(sa.Length > 7);
hr = MFExtern.MFCreateSimpleTypeHandler(out ph);
MFError.ThrowExceptionForHR(hr);
Debug.Assert(ph != null);
hr = MFExtern.MFCreateSequencerSegmentOffset(1, 2, p);
MFError.ThrowExceptionForHR(hr);
Debug.Assert(p.GetMFAttributeType() == MFAttributeType.IUnknown);
object o;
hr = MFExtern.MFCreateVideoRenderer(typeof(IMFGetService).GUID, out o);
MFError.ThrowExceptionForHR(hr);
Debug.Assert(o != null);
mb.SetCurrentLength(300);
hr = MFExtern.MFCreateMediaBufferWrapper(mb, 32, 200, out mb2);
Debug.Assert(mb2 != null);
IMFSample samp;
hr = MFExtern.MFCreateSample(out samp);
MFError.ThrowExceptionForHR(hr);
hr = MFExtern.MFCreateLegacyMediaBufferOnMFMediaBuffer(samp, mb, 0, out o);
MFError.ThrowExceptionForHR(hr);
}