?? amovie.hpp
字號(hào):
{
public:
virtual HRESULT __stdcall SampleCB(double SampleTime, void * pSample) = 0 ;
virtual HRESULT __stdcall BufferCB(double SampleTime, void * pBuffer, int BufferLen) = 0 ;
};
__interface ISampleGrabber;
typedef System::DelphiInterface<ISampleGrabber> _di_ISampleGrabber;
__interface INTERFACE_UUID("{6B652FFF-11FE-4FCE-92AD-0266B5D7C78F}") ISampleGrabber : public IInterface
{
public:
virtual HRESULT __stdcall SetOneShot(BOOL OneShot) = 0 ;
virtual HRESULT __stdcall SetMediaType(TAM_Media_Type &pType) = 0 ;
virtual HRESULT __stdcall GetConnectedMediaType(/* out */ TAM_Media_Type &pType) = 0 ;
virtual HRESULT __stdcall SetBufferSamples(BOOL BufferThem) = 0 ;
virtual HRESULT __stdcall GetCurrentBuffer(int &pBufferSize, void * pBuffer) = 0 ;
virtual HRESULT __stdcall GetCurrentSample(/* out */ void * &ppSample) = 0 ;
virtual HRESULT __stdcall SetCallback(_di_ISampleGrabberCB pCallback, int WhichMethodToCallback) = 0 ;
};
typedef Activex::TOleEnum ReadyStateConstants;
typedef Activex::TOleEnum MPPlayStateConstants;
typedef Activex::TOleEnum MPDisplaySizeConstants;
typedef Activex::TOleEnum MPReadyStateConstants;
typedef Activex::TOleEnum MPDisplayModeConstants;
typedef Activex::TOleEnum MPMoreInfoType;
typedef Activex::TOleEnum MPMediaInfoType;
typedef Activex::TOleEnum DVDMenuIDConstants;
typedef Activex::TOleEnum MPShowDialogConstants;
typedef unsigned LongWord2;
__dispinterface _MediaPlayerEvents;
typedef System::DelphiInterface<_MediaPlayerEvents> _di__MediaPlayerEvents;
__dispinterface INTERFACE_UUID("{2D3A4C40-E711-11D0-94AB-0080C74C7E95}") _MediaPlayerEvents : public IDispatch
{
};
__interface IActiveMovie;
typedef System::DelphiInterface<IActiveMovie> _di_IActiveMovie;
__interface INTERFACE_UUID("{05589FA2-C356-11CE-BF01-00AA0055595A}") IActiveMovie : public IDispatch
{
public:
virtual HRESULT __safecall AboutBox(void) = 0 ;
virtual HRESULT __safecall Run(void) = 0 ;
virtual HRESULT __safecall Pause(void) = 0 ;
virtual HRESULT __safecall Stop(void) = 0 ;
virtual HRESULT __safecall Get_ImageSourceWidth(int &Get_ImageSourceWidth_result) = 0 ;
virtual HRESULT __safecall Get_ImageSourceHeight(int &Get_ImageSourceHeight_result) = 0 ;
virtual HRESULT __safecall Get_Author(WideString &Get_Author_result) = 0 ;
virtual HRESULT __safecall Get_Title(WideString &Get_Title_result) = 0 ;
virtual HRESULT __safecall Get_Copyright(WideString &Get_Copyright_result) = 0 ;
virtual HRESULT __safecall Get_Description(WideString &Get_Description_result) = 0 ;
virtual HRESULT __safecall Get_Rating(WideString &Get_Rating_result) = 0 ;
virtual HRESULT __safecall Get_FileName(WideString &Get_FileName_result) = 0 ;
virtual HRESULT __safecall Set_FileName(const WideString pbstrFileName) = 0 ;
virtual HRESULT __safecall Get_Duration(double &Get_Duration_result) = 0 ;
virtual HRESULT __safecall Get_CurrentPosition(double &Get_CurrentPosition_result) = 0 ;
virtual HRESULT __safecall Set_CurrentPosition(double pValue) = 0 ;
virtual HRESULT __safecall Get_PlayCount(int &Get_PlayCount_result) = 0 ;
virtual HRESULT __safecall Set_PlayCount(int pPlayCount) = 0 ;
virtual HRESULT __safecall Get_SelectionStart(double &Get_SelectionStart_result) = 0 ;
virtual HRESULT __safecall Set_SelectionStart(double pValue) = 0 ;
virtual HRESULT __safecall Get_SelectionEnd(double &Get_SelectionEnd_result) = 0 ;
virtual HRESULT __safecall Set_SelectionEnd(double pValue) = 0 ;
virtual HRESULT __safecall Get_CurrentState(Activex::TOleEnum &Get_CurrentState_result) = 0 ;
virtual HRESULT __safecall Get_Rate(double &Get_Rate_result) = 0 ;
virtual HRESULT __safecall Set_Rate(double pValue) = 0 ;
virtual HRESULT __safecall Get_Volume(int &Get_Volume_result) = 0 ;
virtual HRESULT __safecall Set_Volume(int pValue) = 0 ;
virtual HRESULT __safecall Get_Balance(int &Get_Balance_result) = 0 ;
virtual HRESULT __safecall Set_Balance(int pValue) = 0 ;
virtual HRESULT __safecall Get_EnableContextMenu(Word &Get_EnableContextMenu_result) = 0 ;
virtual HRESULT __safecall Set_EnableContextMenu(Word pEnable) = 0 ;
virtual HRESULT __safecall Get_ShowDisplay(Word &Get_ShowDisplay_result) = 0 ;
virtual HRESULT __safecall Set_ShowDisplay(Word Show) = 0 ;
virtual HRESULT __safecall Get_ShowControls(Word &Get_ShowControls_result) = 0 ;
virtual HRESULT __safecall Set_ShowControls(Word Show) = 0 ;
virtual HRESULT __safecall Get_ShowPositionControls(Word &Get_ShowPositionControls_result) = 0 ;
virtual HRESULT __safecall Set_ShowPositionControls(Word Show) = 0 ;
virtual HRESULT __safecall Get_ShowSelectionControls(Word &Get_ShowSelectionControls_result) = 0 ;
virtual HRESULT __safecall Set_ShowSelectionControls(Word Show) = 0 ;
virtual HRESULT __safecall Get_ShowTracker(Word &Get_ShowTracker_result) = 0 ;
virtual HRESULT __safecall Set_ShowTracker(Word Show) = 0 ;
virtual HRESULT __safecall Get_EnablePositionControls(Word &Get_EnablePositionControls_result) = 0 ;
virtual HRESULT __safecall Set_EnablePositionControls(Word Enable) = 0 ;
virtual HRESULT __safecall Get_EnableSelectionControls(Word &Get_EnableSelectionControls_result) = 0 ;
virtual HRESULT __safecall Set_EnableSelectionControls(Word Enable) = 0 ;
virtual HRESULT __safecall Get_EnableTracker(Word &Get_EnableTracker_result) = 0 ;
virtual HRESULT __safecall Set_EnableTracker(Word Enable) = 0 ;
virtual HRESULT __safecall Get_AllowHideDisplay(Word &Get_AllowHideDisplay_result) = 0 ;
virtual HRESULT __safecall Set_AllowHideDisplay(Word Show) = 0 ;
virtual HRESULT __safecall Get_AllowHideControls(Word &Get_AllowHideControls_result) = 0 ;
virtual HRESULT __safecall Set_AllowHideControls(Word Show) = 0 ;
virtual HRESULT __safecall Get_DisplayMode(Activex::TOleEnum &Get_DisplayMode_result) = 0 ;
virtual HRESULT __safecall Set_DisplayMode(Activex::TOleEnum pValue) = 0 ;
virtual HRESULT __safecall Get_AllowChangeDisplayMode(Word &Get_AllowChangeDisplayMode_result) = 0 ;
virtual HRESULT __safecall Set_AllowChangeDisplayMode(Word fAllow) = 0 ;
virtual HRESULT __safecall Get_FilterGraph(System::_di_IInterface &Get_FilterGraph_result) = 0 ;
virtual HRESULT __safecall Set_FilterGraph(const System::_di_IInterface ppFilterGraph) = 0 ;
virtual HRESULT __safecall Get_FilterGraphDispatch(_di_IDispatch &Get_FilterGraphDispatch_result) = 0 ;
virtual HRESULT __safecall Get_DisplayForeColor(unsigned &Get_DisplayForeColor_result) = 0 ;
virtual HRESULT __safecall Set_DisplayForeColor(unsigned ForeColor) = 0 ;
virtual HRESULT __safecall Get_DisplayBackColor(unsigned &Get_DisplayBackColor_result) = 0 ;
virtual HRESULT __safecall Set_DisplayBackColor(unsigned BackColor) = 0 ;
virtual HRESULT __safecall Get_MovieWindowSize(Activex::TOleEnum &Get_MovieWindowSize_result) = 0 ;
virtual HRESULT __safecall Set_MovieWindowSize(Activex::TOleEnum WindowSize) = 0 ;
virtual HRESULT __safecall Get_FullScreenMode(Word &Get_FullScreenMode_result) = 0 ;
virtual HRESULT __safecall Set_FullScreenMode(Word pEnable) = 0 ;
virtual HRESULT __safecall Get_AutoStart(Word &Get_AutoStart_result) = 0 ;
virtual HRESULT __safecall Set_AutoStart(Word pEnable) = 0 ;
virtual HRESULT __safecall Get_AutoRewind(Word &Get_AutoRewind_result) = 0 ;
virtual HRESULT __safecall Set_AutoRewind(Word pEnable) = 0 ;
virtual HRESULT __safecall Get_hWnd(int &Get_hWnd_result) = 0 ;
virtual HRESULT __safecall Get_Appearance(Activex::TOleEnum &Get_Appearance_result) = 0 ;
virtual HRESULT __safecall Set_Appearance(Activex::TOleEnum pAppearance) = 0 ;
virtual HRESULT __safecall Get_BorderStyle(Activex::TOleEnum &Get_BorderStyle_result) = 0 ;
virtual HRESULT __safecall Set_BorderStyle(Activex::TOleEnum pBorderStyle) = 0 ;
virtual HRESULT __safecall Get_Enabled(Word &Get_Enabled_result) = 0 ;
virtual HRESULT __safecall Set_Enabled(Word pEnabled) = 0 ;
virtual HRESULT __safecall Get_Info(int &Get_Info_result) = 0 ;
#pragma option push -w-inl
/* safecall wrapper */ inline int _scw_Get_ImageSourceWidth() { int r; HRESULT hr = Get_ImageSourceWidth(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property int ImageSourceWidth = {read=_scw_Get_ImageSourceWidth};
#pragma option push -w-inl
/* safecall wrapper */ inline int _scw_Get_ImageSourceHeight() { int r; HRESULT hr = Get_ImageSourceHeight(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property int ImageSourceHeight = {read=_scw_Get_ImageSourceHeight};
#pragma option push -w-inl
/* safecall wrapper */ inline WideString _scw_Get_Author() { WideString r; HRESULT hr = Get_Author(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property WideString Author = {read=_scw_Get_Author};
#pragma option push -w-inl
/* safecall wrapper */ inline WideString _scw_Get_Title() { WideString r; HRESULT hr = Get_Title(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property WideString Title = {read=_scw_Get_Title};
#pragma option push -w-inl
/* safecall wrapper */ inline WideString _scw_Get_Copyright() { WideString r; HRESULT hr = Get_Copyright(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property WideString Copyright = {read=_scw_Get_Copyright};
#pragma option push -w-inl
/* safecall wrapper */ inline WideString _scw_Get_Description() { WideString r; HRESULT hr = Get_Description(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property WideString Description = {read=_scw_Get_Description};
#pragma option push -w-inl
/* safecall wrapper */ inline WideString _scw_Get_Rating() { WideString r; HRESULT hr = Get_Rating(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property WideString Rating = {read=_scw_Get_Rating};
#pragma option push -w-inl
/* safecall wrapper */ inline WideString _scw_Get_FileName() { WideString r; HRESULT hr = Get_FileName(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property WideString FileName = {read=_scw_Get_FileName, write=Set_FileName};
#pragma option push -w-inl
/* safecall wrapper */ inline double _scw_Get_Duration() { double r; HRESULT hr = Get_Duration(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property double Duration = {read=_scw_Get_Duration};
#pragma option push -w-inl
/* safecall wrapper */ inline double _scw_Get_CurrentPosition() { double r; HRESULT hr = Get_CurrentPosition(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property double CurrentPosition = {read=_scw_Get_CurrentPosition, write=Set_CurrentPosition};
#pragma option push -w-inl
/* safecall wrapper */ inline int _scw_Get_PlayCount() { int r; HRESULT hr = Get_PlayCount(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property int PlayCount = {read=_scw_Get_PlayCount, write=Set_PlayCount};
/* safecall wrapper */ inline double _scw_Get_SelectionStart() { double r; HRESULT hr = Get_SelectionStart(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property double SelectionStart = {read=_scw_Get_SelectionStart, write=Set_SelectionStart};
#pragma option push -w-inl
/* safecall wrapper */ inline double _scw_Get_SelectionEnd() { double r; HRESULT hr = Get_SelectionEnd(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property double SelectionEnd = {read=_scw_Get_SelectionEnd, write=Set_SelectionEnd};
#pragma option push -w-inl
/* safecall wrapper */ inline Activex::TOleEnum _scw_Get_CurrentState() { Activex::TOleEnum r; HRESULT hr = Get_CurrentState(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property Activex::TOleEnum CurrentState = {read=_scw_Get_CurrentState};
#pragma option push -w-inl
/* safecall wrapper */ inline double _scw_Get_Rate() { double r; HRESULT hr = Get_Rate(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property double Rate = {read=_scw_Get_Rate, write=Set_Rate};
#pragma option push -w-inl
/* safecall wrapper */ inline int _scw_Get_Volume() { int r; HRESULT hr = Get_Volume(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property int Volume = {read=_scw_Get_Volume, write=Set_Volume};
#pragma option push -w-inl
/* safecall wrapper */ inline int _scw_Get_Balance() { int r; HRESULT hr = Get_Balance(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property int Balance = {read=_scw_Get_Balance, write=Set_Balance};
#pragma option push -w-inl
/* safecall wrapper */ inline Word _scw_Get_EnableContextMenu() { Word r; HRESULT hr = Get_EnableContextMenu(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property Word EnableContextMenu = {read=_scw_Get_EnableContextMenu, write=Set_EnableContextMenu};
#pragma option push -w-inl
/* safecall wrapper */ inline Word _scw_Get_ShowDisplay() { Word r; HRESULT hr = Get_ShowDisplay(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property Word ShowDisplay = {read=_scw_Get_ShowDisplay, write=Set_ShowDisplay};
#pragma option push -w-inl
/* safecall wrapper */ inline Word _scw_Get_ShowControls() { Word r; HRESULT hr = Get_ShowControls(r); System::CheckSafecallResult(hr); return r; }
#pragma option pop
__property Word ShowControls = {read=_scw_Get_ShowControls, write=Set_ShowControls};
#pragma option push -w-inl
/* safecall wrapper */ inline Word _scw_Get_ShowPositionControls() { Word r; HRESULT hr = Get_ShowPositionControls(r); System::CheckSafecallResult(hr); return r; }
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -