?? sbe.cs
字號:
[PreserveSig]
int Append([In, MarshalAs(UnmanagedType.LPWStr)] string pszSBRecording);
[PreserveSig]
int AppendEx(
[In, MarshalAs(UnmanagedType.LPWStr)] string pszSBRecording,
[In] long rtStart,
[In] long rtStop
);
[PreserveSig]
int GetCurrentLength([Out] out int pcSeconds);
[PreserveSig]
int Close();
[PreserveSig]
int Cancel();
}
[ComImport,
Guid("16CA4E03-FE69-4705-BD41-5B7DFC0C95F3"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IStreamBufferRecordingAttribute
{
[PreserveSig]
int SetAttribute(
[In] int ulReserved,
[In, MarshalAs(UnmanagedType.LPWStr)] string pszAttributeName,
[In] StreamBufferAttrDataType StreamBufferAttributeType,
[In] IntPtr pbAttribute, // BYTE *
[In] short cbAttributeLength
);
[PreserveSig]
int GetAttributeCount(
[In] int ulReserved,
[Out] out short pcAttributes
);
[PreserveSig]
int GetAttributeByName(
[In, MarshalAs(UnmanagedType.LPWStr)] string pszAttributeName,
[In] int pulReserved,
[Out] out StreamBufferAttrDataType pStreamBufferAttributeType,
[In, Out] IntPtr pbAttribute, // BYTE *
[In, Out] ref short pcbLength
);
[PreserveSig]
int GetAttributeByIndex(
[In] short wIndex,
[In] int pulReserved,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszAttributeName,
[In, Out] ref short pcchNameLength,
[Out] out StreamBufferAttrDataType pStreamBufferAttributeType,
IntPtr pbAttribute, // BYTE *
[In, Out] ref short pcbLength
);
int EnumAttributes([Out] out IEnumStreamBufferRecordingAttrib ppIEnumStreamBufferAttrib);
}
[ComImport,
Guid("C18A9162-1E82-4142-8C73-5690FA62FE33"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IEnumStreamBufferRecordingAttrib
{
[PreserveSig]
int Next(
[In] int cRequest,
[Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex=0)] StreamBufferAttribute[] pStreamBufferAttribute,
[Out] out int pcReceived
);
[PreserveSig]
int Skip([In] int cRecords);
[PreserveSig]
int Reset();
[PreserveSig]
int Clone([Out] out IEnumStreamBufferRecordingAttrib ppIEnumStreamBufferAttrib);
}
[ComImport,
Guid("ce14dfae-4098-4af7-bbf7-d6511f835414"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IStreamBufferConfigure
{
[PreserveSig]
int SetDirectory([In, MarshalAs(UnmanagedType.LPWStr)] string pszDirectoryName);
[PreserveSig]
int GetDirectory([Out, MarshalAs(UnmanagedType.LPWStr)] out string pszDirectoryName);
[PreserveSig]
int SetBackingFileCount(
[In] int dwMin,
[In] int dwMax
);
[PreserveSig]
int GetBackingFileCount(
[Out] out int dwMin,
[Out] out int dwMax
);
[PreserveSig]
int SetBackingFileDuration([In] int dwSeconds);
[PreserveSig]
int GetBackingFileDuration([Out] out int pdwSeconds);
}
[ComImport,
Guid("53E037BF-3992-4282-AE34-2487B4DAE06B"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IStreamBufferConfigure2 : IStreamBufferConfigure
{
#region IStreamBufferConfigure
[PreserveSig]
new int SetDirectory([In, MarshalAs(UnmanagedType.LPWStr)] string pszDirectoryName);
[PreserveSig]
new int GetDirectory([Out, MarshalAs(UnmanagedType.LPWStr)] out string pszDirectoryName);
[PreserveSig]
new int SetBackingFileCount(
[In] int dwMin,
[In] int dwMax
);
[PreserveSig]
new int GetBackingFileCount(
[Out] out int dwMin,
[Out] out int dwMax
);
[PreserveSig]
new int SetBackingFileDuration([In] int dwSeconds);
[PreserveSig]
new int GetBackingFileDuration([Out] out int pdwSeconds);
#endregion
[PreserveSig]
int SetMultiplexedPacketSize([In] int cbBytesPerPacket);
[PreserveSig]
int GetMultiplexedPacketSize([Out] out int pcbBytesPerPacket);
[PreserveSig]
int SetFFTransitionRates(
[In] int dwMaxFullFrameRate,
[In] int dwMaxNonSkippingRate
);
[PreserveSig]
int GetFFTransitionRates(
[Out] out int pdwMaxFullFrameRate,
[Out] out int pdwMaxNonSkippingRate
);
}
[ComImport,
Guid("f61f5c26-863d-4afa-b0ba-2f81dc978596"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IStreamBufferMediaSeeking : IMediaSeeking
{
#region IMediaSeeking Methods
[PreserveSig]
new int GetCapabilities([Out] out AMSeekingSeekingCapabilities pCapabilities);
[PreserveSig]
new int CheckCapabilities([In, Out] ref AMSeekingSeekingCapabilities pCapabilities);
[PreserveSig]
new int IsFormatSupported([In, MarshalAs(UnmanagedType.LPStruct)] Guid pFormat);
[PreserveSig]
new int QueryPreferredFormat([Out] out Guid pFormat);
[PreserveSig]
new int GetTimeFormat([Out] out Guid pFormat);
[PreserveSig]
new int IsUsingTimeFormat([In, MarshalAs(UnmanagedType.LPStruct)] Guid pFormat);
[PreserveSig]
new int SetTimeFormat([In, MarshalAs(UnmanagedType.LPStruct)] Guid pFormat);
[PreserveSig]
new int GetDuration([Out] out long pDuration);
[PreserveSig]
new int GetStopPosition([Out] out long pStop);
[PreserveSig]
new int GetCurrentPosition([Out] out long pCurrent);
[PreserveSig]
new int ConvertTimeFormat(
[Out] out long pTarget,
[In, MarshalAs(UnmanagedType.LPStruct)] DsGuid pTargetFormat,
[In] long Source,
[In, MarshalAs(UnmanagedType.LPStruct)] DsGuid pSourceFormat
);
[PreserveSig]
new int SetPositions(
[In, Out, MarshalAs(UnmanagedType.LPStruct)] DsLong pCurrent,
[In] AMSeekingSeekingFlags dwCurrentFlags,
[In, Out, MarshalAs(UnmanagedType.LPStruct)] DsLong pStop,
[In] AMSeekingSeekingFlags dwStopFlags
);
[PreserveSig]
new int GetPositions(
[Out] out long pCurrent,
[Out] out long pStop
);
[PreserveSig]
new int GetAvailable(
[Out] out long pEarliest,
[Out] out long pLatest
);
[PreserveSig]
new int SetRate([In] double dRate);
[PreserveSig]
new int GetRate([Out] out double pdRate);
[PreserveSig]
new int GetPreroll([Out] out long pllPreroll);
#endregion
}
[ComImport,
Guid("3a439ab0-155f-470a-86a6-9ea54afd6eaf"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IStreamBufferMediaSeeking2 : IStreamBufferMediaSeeking
{
#region IMediaSeeking
[PreserveSig]
new int GetCapabilities([Out] out AMSeekingSeekingCapabilities pCapabilities);
[PreserveSig]
new int CheckCapabilities([In, Out] ref AMSeekingSeekingCapabilities pCapabilities);
[PreserveSig]
new int IsFormatSupported([In, MarshalAs(UnmanagedType.LPStruct)] Guid pFormat);
[PreserveSig]
new int QueryPreferredFormat([Out] out Guid pFormat);
[PreserveSig]
new int GetTimeFormat([Out] out Guid pFormat);
[PreserveSig]
new int IsUsingTimeFormat([In, MarshalAs(UnmanagedType.LPStruct)] Guid pFormat);
[PreserveSig]
new int SetTimeFormat([In, MarshalAs(UnmanagedType.LPStruct)] Guid pFormat);
[PreserveSig]
new int GetDuration([Out] out long pDuration);
[PreserveSig]
new int GetStopPosition([Out] out long pStop);
[PreserveSig]
new int GetCurrentPosition([Out] out long pCurrent);
[PreserveSig]
new int ConvertTimeFormat(
[Out] out long pTarget,
[In, MarshalAs(UnmanagedType.LPStruct)] DsGuid pTargetFormat,
[In] long Source,
[In, MarshalAs(UnmanagedType.LPStruct)] DsGuid pSourceFormat
);
[PreserveSig]
new int SetPositions(
[In, Out, MarshalAs(UnmanagedType.LPStruct)] DsLong pCurrent,
[In] AMSeekingSeekingFlags dwCurrentFlags,
[In, Out, MarshalAs(UnmanagedType.LPStruct)] DsLong pStop,
[In] AMSeekingSeekingFlags dwStopFlags
);
[PreserveSig]
new int GetPositions(
[Out] out long pCurrent,
[Out] out long pStop
);
[PreserveSig]
new int GetAvailable(
[Out] out long pEarliest,
[Out] out long pLatest
);
[PreserveSig]
new int SetRate([In] double dRate);
[PreserveSig]
new int GetRate([Out] out double pdRate);
[PreserveSig]
new int GetPreroll([Out] out long pllPreroll);
#endregion
[PreserveSig]
int SetRateEx(
[In] double dRate,
[In] int dwFramesPerSec
);
}
[ComImport,
Guid("9D2A2563-31AB-402e-9A6B-ADB903489440"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IStreamBufferDataCounters
{
[PreserveSig]
int GetData([Out] out SBEPinData pPinData);
[PreserveSig]
int ResetData();
}
#endregion
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -