home *** CD-ROM | disk | FTP | other *** search
- /* ********************************************************************** */
- /* *** Name: mdCFunc.c *** */
- /* *** (c) 1993, 1994, 1995 MediaDynamics Inc. *** */
- /* *** *** */
- /* *** *** */
- /* *** *** */
- /* *** ___ ___ *** */
- /* *** | \ / | *** */
- /* *** | \ / | *** */
- /* *** | \ / | *** */
- /* *** | \ __ /___ | *** */
- /* *** | |\ \ | | |\ *** */
- /* *** | | \ \| -----| | \ *** */
- /* *** | | \ \/ / | | \ *** */
- /* *** | | \ / | |\ \ *** */
- /* *** | | \ / | | | | *** */
- /* *** | | \ /| | | | | *** */
- /* *** |__| \/ | |__| | | *** */
- /* *** | | | | *** */
- /* *** | | / / *** */
- /* *** | |-------/ / *** */
- /* *** |____________/ *** */
- /* *** *** */
- /* *** *** */
- /* *** *** */
- /* *** *** */
- /* ********************************************************************** */
-
-
- /* ********************************************************************** */
- /* *** *** */
- /* *** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE *** */
- /* *** *** */
- /* *** (C) Copyright MediaDynamics Inc. 1995. All rights reserved. *** */
- /* *** *** */
- /* *** You have a royalty-free right to use these sample files as *** */
- /* *** long as the resulting application is in a compiled (runtime) *** */
- /* *** form. You do not have the right to redistribute source code *** */
- /* *** within your product or application without the express *** */
- /* *** written consent of MediaDynamics Inc. *** */
- /* *** *** */
- /* ********************************************************************** */
-
- #include <Windows.h>
-
- #define MD_VERSION_BASE 0x0300L
-
- // VB control handle definition
- typedef LPVOID HCTL;
-
-
- #ifdef MDMAIN
-
- //long far * lpFarPtr;
-
- /* ********************************************************************** */
- /* *** Prototypes: Control Functions (16) *** */
- /* ********************************************************************** */
- int ( WINAPI * mdOpen ) ( HWND hwnd, LPSTR lpszFileName, // Window Handle and filename
- int nX, int nY, // Positioning
- int nW, int nH, // and size
- DWORD dwBeg, long lEnd, // Begin and end frames
- int nType, BOOL bPreload ); // Control Type and display
-
- int ( WINAPI * mdOpenLite ) ( HWND hwnd, LPSTR lpszFileName, int nX, int nY, BOOL bCtrl );
-
- int ( WINAPI * mdClose ) ( int nDevHandle );
- void ( WINAPI * mdPlay ) ( int nDevHandle, BOOL bMakeModal );
- void ( WINAPI * mdPause ) ( int nDevHandle );
- void ( WINAPI * mdStep ) ( int nDevHandle );
- void ( WINAPI * mdStop ) ( int nDevHandle );
-
- void ( WINAPI * mdGotoFrame ) ( int nDevHandle, DWORD dwNewFrame );
- void ( WINAPI * mdRewind ) ( int nDevHandle );
- void ( WINAPI * mdRestart ) ( int nDevHandle );
-
- int ( WINAPI * mdOpenDevice ) ( LPSTR lpszDevice );
- int ( WINAPI * mdCloseDevice ) ( LPSTR lpszDevice );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Custom Control Functions (4) *** */
- /* ********************************************************************** */
- int ( WINAPI * mdCloseInterface ) ( int nInterfaceNo );
- int ( WINAPI * mdOpenInterface ) ( LPSTR lpszBMFileName, LPSTR lpszBMPosInfoFileName );
- int ( WINAPI * mdGetButtonClicked ) ( int nDevHandle );
- int ( WINAPI * mdSetInterfaceNo ) ( int nInterfaceNo );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Visual Basic Specific (1) *** */
- /* ********************************************************************** */
- int ( WINAPI * mdVBVOpen ) ( HWND hwnd, LPSTR lpszFileName, int nX, int nY, int nW, int nH, DWORD dwBeg, long lEnd, BOOL bShowControl );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Window Control Functions (6) *** */
- /* ********************************************************************** */
- void ( WINAPI * mdHide ) ( int nDevHandle );
- void ( WINAPI * mdShow ) ( int nDevHandle );
- void ( WINAPI * mdHideVideo ) ( int nDevHandle );
- void ( WINAPI * mdShowVideo ) ( int nDevHandle );
- void ( WINAPI * mdHideCtrl ) ( int nDevHandle );
- void ( WINAPI * mdShowCtrl ) ( int nDevHandle );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Parameter Setting Functions (26) *** */
- /* ********************************************************************** */
- void ( WINAPI * mdSetClip ) ( int nDevHandle, DWORD dwBeg, DWORD dwEnd );
-
- void ( WINAPI * mdSetWinPos ) ( int nDevHandle, int XPos, int YPos );
- void ( WINAPI * mdSetWinSize ) ( int nDevHandle, int Width, int Height );
-
- void ( WINAPI * mdSetVideoWinPos ) ( int nDevHandle, int XPos, int YPos );
- void ( WINAPI * mdSetVideoWinSize ) ( int nDevHandle, int Width, int Height );
-
- void ( WINAPI * mdSetCtrlWinPos ) ( int nDevHandle, int XPos, int YPos );
- void ( WINAPI * mdSetCtrlWinSize ) ( int nDevHandle, int Width );
-
- void ( WINAPI * mdSetWindowMoveable ) ( int nDevHandle, BOOL bMoveFlag );
- void ( WINAPI * mdSetWindowInteractive ) ( int nDevHandle, BOOL bInterFlag );
-
- void ( WINAPI * mdSetAudioLevel ) ( int nDevHandle, int nLevel );
- void ( WINAPI * mdSetAudioMute ) ( int nDevHandle );
-
- void ( WINAPI * mdSetCtrlType ) ( int nDevHandle, int nType );
-
- void ( WINAPI * mdSetWinBottom ) ( int nDevHandle );
- void ( WINAPI * mdSetWinTop ) ( int nDevHandle );
- void ( WINAPI * mdSetNewParent ) ( int nDevHandle, HWND hwndNewParent );
-
- void ( WINAPI * mdSetClippingRegion ) ( int nDevHandle, int nXIn, int nYIn, int nWidthIn, int nHeightIn, int nDisplayFlag );
-
- void ( WINAPI * mdSetVideoWindowAspect ) ( int nDevHandle );
- void ( WINAPI * mdSetVideoAspect ) ( int nXIn, int nYIn, int nWidthIn, int nHeightIn, int nJustify, BOOL bLimit );
- void ( WINAPI * mdSetVideoOffset ) ( int nDevHandle, int nRight, int nDown );
-
- void ( WINAPI * mdSetVideoPalette ) ( BOOL bPalFlag );
- void ( WINAPI * mdSetKeyColor ) ( int nRColor, int nGColor, int nBColor );
-
- void ( WINAPI * mdSetPlaybackSpeed ) ( int nDevHandle, int nRate );
-
- BOOL ( WINAPI * mdSetActivePalette ) ( LPSTR lpszActivePaletteFile );
-
- BOOL ( WINAPI * mdSetPlayRepeat ) ( int nDevHandle, BOOL bRepeatFlag );
-
- void ( WINAPI * mdSetTimeFormat ) ( int nDevHandle, int nTimeFormat );
-
- int ( WINAPI * mdSetParamDirect ) ( int nDevHandle, int nIndex, long lValue );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Information Functions (43) *** */
- /* ********************************************************************** */
- int ( WINAPI * mdGetFileType ) ( int nDevHandle );
- HWND ( WINAPI * mdGetWindowHandle ) ( int nDevHandle );
- HWND ( WINAPI * mdGetCtrlWindowHandle ) ( int nDevHandle );
- WORD ( WINAPI * mdGetDeviceId ) ( int nDevHandle );
- DWORD ( WINAPI * mdGetFrame ) ( int nDevHandle );
- DWORD ( WINAPI * mdGetClipFrame ) ( int nDevHandle );
-
- DWORD ( WINAPI * mdGetLength ) ( int nDevHandle );
- DWORD ( WINAPI * mdGetClipLength ) ( int nDevHandle );
-
- int ( WINAPI * mdGetPlayState ) ( int nDevHandle );
- int ( WINAPI * mdGetDisplayState ) ( int nDevHandle );
-
- // The following use integer pointers
- void ( WINAPI * mdGetWinPos ) ( int nDevHandle, int far * XPos, int far * YPos );
- void ( WINAPI * mdGetWinSize ) ( int nDevHandle, int far * Width, int far * Height );
-
- void ( WINAPI * mdGetVideoWinPos ) ( int nDevHandle, int far * XPos, int far * YPos );
- void ( WINAPI * mdGetVideoWinSize ) ( int nDevHandle, int far * Width, int far * Height );
-
- void ( WINAPI * mdGetCtrlWinPos ) ( int nDevHandle, int far * XPos, int far * YPos );
- void ( WINAPI * mdGetCtrlWinSize ) ( int nDevHandle, int far * Width );
- // ************************************
-
- int ( WINAPI * mdGetWinX ) ( int nDevHandle );
- int ( WINAPI * mdGetWinY ) ( int nDevHandle );
- int ( WINAPI * mdGetWinWidth ) ( int nDevHandle );
- int ( WINAPI * mdGetWinHeight ) ( int nDevHandle );
-
- int ( WINAPI * mdGetVideoWinX ) ( int nDevHandle );
- int ( WINAPI * mdGetVideoWinY ) ( int nDevHandle );
- int ( WINAPI * mdGetVideoWinWidth ) ( int nDevHandle );
- int ( WINAPI * mdGetVideoWinHeight ) ( int nDevHandle );
-
- int ( WINAPI * mdGetCtrlWinX ) ( int nDevHandle );
- int ( WINAPI * mdGetCtrlWinY ) ( int nDevHandle );
- int ( WINAPI * mdGetCtrlWinWidth ) ( int nDevHandle );
-
- int ( WINAPI * mdGetAreaClicked ) ( int nDevHandle );
-
- int ( WINAPI * mdGetOpenFileCount ) ( void );
-
- int ( WINAPI * mdGetFrameRate ) ( int nDevHandle );
-
- int ( WINAPI * mdGetPlayedStatus ) ( int nDevHandle );
-
- int ( WINAPI * mdGetVolumeLevel ) ( int nDevHandle );
-
- int ( WINAPI * mdGetVideoImage ) ( int nDevHandle, LPSTR lpszFileName );
-
- void ( WINAPI * mdGetOrigVideoWinSize ) ( int nDevHandle, int far * Width, int far * Height );
-
- int ( WINAPI * mdGetFileName ) ( int nDevHandle, LPSTR lpszFileName, int nMaxLen );
-
- long ( WINAPI * mdGetFramesSkipped ) ( int nDevHandle );
-
- void ( WINAPI * mdGetClipFrames ) ( int nDevHandle, DWORD far * lpBegFrame, DWORD far * lpEndFrame );
-
- void ( WINAPI * mdGetPosClicked ) ( int nDevHandle, LPINT lpnXPos, LPINT lpnYPos );
- int ( WINAPI * mdGetXPosClicked ) ( int nDevHandle );
- int ( WINAPI * mdGetYPosClicked ) ( int nDevHandle );
-
- long ( WINAPI * mdGetVersion ) ( void );
-
- BOOL ( WINAPI * mdGetVideoPalette ) ( void );
-
- /* ********************************************************************** */
- /* *** Prototypes: Graphic Loading and Displaying Functions (7) *** */
- /* ********************************************************************** */
- int ( WINAPI * mdShowGraphic ) ( int nDevHandle, BOOL bUsePalette );
- int ( WINAPI * mdShowGraphicPos ) ( int nDevHandle, int nXPosIn, int nYPosIn, int nWidthIn, int nHeightIn, BOOL bUsePalette );
- int ( WINAPI * mdOpenGraphic ) ( int nDevHandle, LPSTR FileNameIn );
- int ( WINAPI * mdOpenGraphicKeep ) ( int nDevHandle, LPSTR FileNameIn );
- void ( WINAPI * mdCloseGraphic ) ( int nDevHandle );
- void ( WINAPI * mdHideGraphic ) ( int nDevHandle );
- BOOL ( WINAPI * mdDisplayGraphic ) ( int nDevHandle, LPSTR lpszBMFileNameIn, int nX, int nY, BOOL bUsePalette );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Cursor Setting Functions (6) *** */
- /* ********************************************************************** */
- void ( WINAPI * mdSetCursor ) ( int nCursorNo );
- void ( WINAPI * mdSetVideoCursor ) ( int nCursorNo );
- void ( WINAPI * mdSetCtrlCursor ) ( int nCursorNo );
- void ( WINAPI * mdResetCursor ) ( void );
- void ( WINAPI * mdResetVideoCursor ) ( void );
- void ( WINAPI * mdResetCtrlCursor ) ( void );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Miscellaneous Functions (9) *** */
- /* ********************************************************************** */
- void ( WINAPI * mdTimedDelay ) ( float fSeconds );
- BOOL ( WINAPI * mdFileDoesNotExist ) ( LPSTR lpszFileToCheck );
- BOOL ( WINAPI * mdFileDoesExist ) ( LPSTR lpszFileToCheck );
- void ( WINAPI * mdDisplayErrorMsgs ) ( BOOL bErrMsgFlag );
- void ( WINAPI * mdAbout ) ( void );
- DWORD ( WINAPI * mdMCISendString ) ( int nDevHandle, LPSTR lpszSendString );
- int ( WINAPI * mdCDEject ) ( void );
-
- BOOL ( WINAPI * mdSetupPlayStateCallback ) ( HCTL hctl, int hVidHandle, FARPROC vbvFirePlayStateEvent );
- BOOL ( WINAPI * mdSetupCustBtnClickCallback ) ( int hVidHandle, FARPROC vbvFireCustBtnClickEvent );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Audio Record Procedures (5) *** */
- /* ********************************************************************** */
- DWORD ( WINAPI * mdWaveRecordInit) ( void );
- DWORD ( WINAPI * mdWaveClose) ( void );
- DWORD ( WINAPI * mdWaveRecord) ( DWORD dwMilliSeconds, BOOL bModal );
- DWORD ( WINAPI * mdWaveRecordSave) ( LPSTR lpszFileName );
- DWORD ( WINAPI * mdWaveRecordPlayback) ( void );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Secure A/V Functions (3) *** */
- /* ********************************************************************** */
- BOOL ( WINAPI * mdRemoveAllSecureAVDrivers ) ( void );
- int ( WINAPI * mdInstallSecureAVDriver ) ( LPSTR lpszFileExt, LONG lKeyValue1, LONG lKeyValue2 );
- int ( WINAPI * mdRemoveSecureAVDriver ) ( LPSTR lpszFileExt );
-
- /* ********************************************************************** */
- /* *** Prototypes: Error Handling (3) *** */
- /* ********************************************************************** */
- int ( WINAPI * mdGetErrorNumber ) ( int nDevHandle, int nInfoNo );
- void ( WINAPI * mdGetErrorText ) ( int nErrorNo, LPSTR lpszStringOut, int nStringLen );
- int ( WINAPI * mdLogErrors ) ( LPSTR lpszErrorLogFileName, BOOL bLogErrors );
-
- /* ********************************************************************** */
- /* *** Prototypes: Forced Shutdown/Load (2) *** */
- /* ********************************************************************** */
- int ( WINAPI * mdCloseLibrary) ( void );
- int ( WINAPI * mdOpenLibrary ) ( void );
-
- HINSTANCE mhInstMDCtrl;
-
- #else
-
- //extern long far * lpFarPtr;
- /* ********************************************************************** */
- /* *** Prototypes: Control Functions (17) *** */
- /* ********************************************************************** */
- extern int ( WINAPI * mdOpen ) ( HWND hwnd, LPSTR lpszFileName, // Window Handle and filename
- int nX, int nY, // Positioning
- int nW, int nH, // and size
- DWORD dwBeg, long lEnd, // Begin and end frames
- int nType, BOOL bPreload ); // Control Type and display
-
- extern int ( WINAPI * mdOpenLite ) ( HWND hwnd, LPSTR lpszFileName, int nX, int nY, BOOL bCtrl );
-
- extern int ( WINAPI * mdClose ) ( int nDevHandle );
- extern void ( WINAPI * mdPlay ) ( int nDevHandle, BOOL bMakeModal );
- extern void ( WINAPI * mdPause ) ( int nDevHandle );
- extern void ( WINAPI * mdStep ) ( int nDevHandle );
- extern void ( WINAPI * mdStop ) ( int nDevHandle );
-
- extern void ( WINAPI * mdGotoFrame ) ( int nDevHandle, DWORD dwNewFrame );
- extern void ( WINAPI * mdRewind ) ( int nDevHandle );
- extern void ( WINAPI * mdRestart ) ( int nDevHandle );
-
- extern int ( WINAPI * mdCloseInterface ) ( int nInterfaceNo );
- extern int ( WINAPI * mdOpenInterface ) ( LPSTR lpszBMFileName, LPSTR lpszBMPosInfoFileName );
- extern int ( WINAPI * mdGetButtonClicked ) ( int nDevHandle );
- extern int ( WINAPI * mdSetInterfaceNo ) ( int nInterfaceNo );
-
- extern int ( WINAPI * mdVBVOpen ) ( HWND hwnd, LPSTR lpszFileName, int nX, int nY, int nW, int nH, DWORD dwBeg, long lEnd, BOOL bShowControl );
-
- extern int ( WINAPI * mdOpenDevice ) ( LPSTR lpszDevice );
- extern int ( WINAPI * mdCloseDevice ) ( LPSTR lpszDevice );
-
- /* ********************************************************************** */
- /* *** Prototypes: Window Control Functions (6) *** */
- /* ********************************************************************** */
- extern void ( WINAPI * mdHide ) ( int nDevHandle );
- extern void ( WINAPI * mdShow ) ( int nDevHandle );
- extern void ( WINAPI * mdHideVideo ) ( int nDevHandle );
- extern void ( WINAPI * mdShowVideo ) ( int nDevHandle );
- extern void ( WINAPI * mdHideCtrl ) ( int nDevHandle );
- extern void ( WINAPI * mdShowCtrl ) ( int nDevHandle );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Parameter Setting Functions (26) *** */
- /* ********************************************************************** */
- extern void ( WINAPI * mdSetClip ) ( int nDevHandle, DWORD dwBeg, DWORD dwEnd );
-
- extern void ( WINAPI * mdSetWinPos ) ( int nDevHandle, int XPos, int YPos );
- extern void ( WINAPI * mdSetWinSize ) ( int nDevHandle, int Width, int Height );
-
- extern void ( WINAPI * mdSetVideoWinPos ) ( int nDevHandle, int XPos, int YPos );
- extern void ( WINAPI * mdSetVideoWinSize ) ( int nDevHandle, int Width, int Height );
-
- extern void ( WINAPI * mdSetCtrlWinPos ) ( int nDevHandle, int XPos, int YPos );
- extern void ( WINAPI * mdSetCtrlWinSize ) ( int nDevHandle, int Width );
-
- extern void ( WINAPI * mdSetWindowMoveable ) ( int nDevHandle, BOOL bMoveFlag );
- extern void ( WINAPI * mdSetWindowInteractive ) ( int nDevHandle, BOOL bInterFlag );
-
- extern void ( WINAPI * mdSetAudioLevel ) ( int nDevHandle, int nLevel );
- extern void ( WINAPI * mdSetAudioMute ) ( int nDevHandle );
-
- extern void ( WINAPI * mdSetCtrlType ) ( int nDevHandle, int nType );
-
- extern void ( WINAPI * mdSetWinBottom ) ( int nDevHandle );
- extern void ( WINAPI * mdSetWinTop ) ( int nDevHandle );
- extern void ( WINAPI * mdSetNewParent ) ( int nDevHandle, HWND hwndNewParent );
-
- extern void ( WINAPI * mdSetClippingRegion ) ( int nDevHandle, int nXIn, int nYIn, int nWidthIn, int nHeightIn, int nDisplayFlag );
-
- extern void ( WINAPI * mdSetVideoWindowAspect ) ( int nDevHandle );
- extern void ( WINAPI * mdSetVideoAspect ) ( int nXIn, int nYIn, int nWidthIn, int nHeightIn, int nJustify, BOOL bLimit );
- extern void ( WINAPI * mdSetVideoOffset ) ( int nDevHandle, int nRight, int nDown );
-
- extern void ( WINAPI * mdSetVideoPalette ) ( BOOL bPalFlag );
- extern void ( WINAPI * mdSetKeyColor ) ( int nRColor, int nGColor, int nBColor );
-
- extern void ( WINAPI * mdSetPlaybackSpeed ) ( int nDevHandle, int nRate );
-
- extern BOOL ( WINAPI * mdSetActivePalette ) ( LPSTR lpszActivePaletteFile );
-
- extern BOOL ( WINAPI * mdSetPlayRepeat ) ( int nDevHandle, BOOL bRepeatFlag );
-
- extern void ( WINAPI * mdSetTimeFormat ) ( int nDevHandle, int nTimeFormat );
-
- extern int ( WINAPI * mdSetParamDirect ) ( int nDevHandle, int nIndex, long lValue );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Information Functions (43) *** */
- /* ********************************************************************** */
- extern int ( WINAPI * mdGetFileType ) ( int nDevHandle );
- extern HWND ( WINAPI * mdGetWindowHandle ) ( int nDevHandle );
- extern HWND ( WINAPI * mdGetCtrlWindowHandle ) ( int nDevHandle );
- extern WORD ( WINAPI * mdGetDeviceId ) ( int nDevHandle );
- extern DWORD ( WINAPI * mdGetFrame ) ( int nDevHandle );
- extern DWORD ( WINAPI * mdGetClipFrame ) ( int nDevHandle );
-
- extern DWORD ( WINAPI * mdGetLength ) ( int nDevHandle );
- extern DWORD ( WINAPI * mdGetClipLength ) ( int nDevHandle );
-
- extern int ( WINAPI * mdGetPlayState ) ( int nDevHandle );
- extern int ( WINAPI * mdGetDisplayState ) ( int nDevHandle );
-
- // The following use integer pointers
- extern void ( WINAPI * mdGetWinPos ) ( int nDevHandle, int far * XPos, int far * YPos );
- extern void ( WINAPI * mdGetWinSize ) ( int nDevHandle, int far * Width, int far * Height );
-
- extern void ( WINAPI * mdGetVideoWinPos ) ( int nDevHandle, int far * XPos, int far * YPos );
- extern void ( WINAPI * mdGetVideoWinSize ) ( int nDevHandle, int far * Width, int far * Height );
-
- extern void ( WINAPI * mdGetCtrlWinPos ) ( int nDevHandle, int far * XPos, int far * YPos );
- extern void ( WINAPI * mdGetCtrlWinSize ) ( int nDevHandle, int far * Width );
- // ************************************
-
- extern int ( WINAPI * mdGetWinX ) ( int nDevHandle );
- extern int ( WINAPI * mdGetWinY ) ( int nDevHandle );
- extern int ( WINAPI * mdGetWinWidth ) ( int nDevHandle );
- extern int ( WINAPI * mdGetWinHeight ) ( int nDevHandle );
-
- extern int ( WINAPI * mdGetVideoWinX ) ( int nDevHandle );
- extern int ( WINAPI * mdGetVideoWinY ) ( int nDevHandle );
- extern int ( WINAPI * mdGetVideoWinWidth ) ( int nDevHandle );
- extern int ( WINAPI * mdGetVideoWinHeight ) ( int nDevHandle );
-
- extern int ( WINAPI * mdGetCtrlWinX ) ( int nDevHandle );
- extern int ( WINAPI * mdGetCtrlWinY ) ( int nDevHandle );
- extern int ( WINAPI * mdGetCtrlWinWidth ) ( int nDevHandle );
-
- extern int ( WINAPI * mdGetAreaClicked ) ( int nDevHandle );
-
- extern int ( WINAPI * mdGetOpenFileCount ) ( void );
-
- extern int ( WINAPI * mdGetFrameRate ) ( int nDevHandle );
-
- extern int ( WINAPI * mdGetPlayedStatus ) ( int nDevHandle );
-
- extern int ( WINAPI * mdGetVolumeLevel ) ( int nDevHandle );
-
- extern int ( WINAPI * mdGetVideoImage ) ( int nDevHandle, LPSTR lpszFileName );
-
- extern void ( WINAPI * mdGetOrigVideoWinSize ) ( int nDevHandle, int far * Width, int far * Height );
-
- extern int ( WINAPI * mdGetFileName ) ( int nDevHandle, LPSTR lpszFileName, int nMaxLen );
-
- extern long ( WINAPI * mdGetFramesSkipped ) ( int nDevHandle );
-
- extern void ( WINAPI * mdGetClipFrames ) ( int nDevHandle, DWORD far * lpBegFrame, DWORD far * lpEndFrame );
-
- extern void ( WINAPI * mdGetPosClicked ) ( int nDevHandle, LPINT lpnXPos, LPINT lpnYPos );
- extern int ( WINAPI * mdGetXPosClicked ) ( int nDevHandle );
- extern int ( WINAPI * mdGetYPosClicked ) ( int nDevHandle );
-
- extern long ( WINAPI * mdGetVersion ) ( void );
-
- extern BOOL ( WINAPI * mdGetVideoPalette ) ( void );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Graphic Loading and Displaying Functions (7) *** */
- /* ********************************************************************** */
- extern int ( WINAPI * mdShowGraphic ) ( int nDevHandle, BOOL bUsePalette );
- extern int ( WINAPI * mdShowGraphicPos ) ( int nDevHandle, int nXPosIn, int nYPosIn, int nWidthIn, int nHeightIn, BOOL bUsePalette );
- extern int ( WINAPI * mdOpenGraphic ) ( int nDevHandle, LPSTR FileNameIn );
- extern int ( WINAPI * mdOpenGraphicKeep ) ( int nDevHandle, LPSTR FileNameIn );
- extern void ( WINAPI * mdCloseGraphic ) ( int nDevHandle );
- extern void ( WINAPI * mdHideGraphic ) ( int nDevHandle );
- extern BOOL ( WINAPI * mdDisplayGraphic ) ( int nDevHandle, LPSTR lpszBMFileNameIn, int nX, int nY, BOOL bUsePalette );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Cursor Setting Functions (6) *** */
- /* ********************************************************************** */
- extern void ( WINAPI * mdSetCursor ) ( int nCursorNo );
- extern void ( WINAPI * mdSetVideoCursor ) ( int nCursorNo );
- extern void ( WINAPI * mdSetCtrlCursor ) ( int nCursorNo );
- extern void ( WINAPI * mdResetCursor ) ( void );
- extern void ( WINAPI * mdResetVideoCursor ) ( void );
- extern void ( WINAPI * mdResetCtrlCursor ) ( void );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Miscellaneous Functions (9) *** */
- /* ********************************************************************** */
- extern void ( WINAPI * mdTimedDelay ) ( float fSeconds );
- extern BOOL ( WINAPI * mdFileDoesNotExist ) ( LPSTR lpszFileToCheck );
- extern BOOL ( WINAPI * mdFileDoesExist ) ( LPSTR lpszFileToCheck );
- extern void ( WINAPI * mdDisplayErrorMsgs ) ( BOOL bErrMsgFlag );
- extern void ( WINAPI * mdAbout ) ( void );
- extern DWORD ( WINAPI * mdMCISendString ) ( int nDevHandle, LPSTR lpszSendString );
- extern int ( WINAPI * mdCDEject ) ( void );
- extern BOOL ( WINAPI * mdSetupPlayStateCallback ) ( HCTL hctl, int hVidHandle, FARPROC vbvFirePlayStateEvent );
- extern BOOL ( WINAPI * mdSetupCustBtnClickCallback ) ( int hVidHandle, FARPROC vbvFireCustBtnClickEvent );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Audio Record Procedures (5) *** */
- /* ********************************************************************** */
- extern DWORD ( WINAPI * mdWaveRecordInit) ( void );
- extern DWORD ( WINAPI * mdWaveClose) ( void );
- extern DWORD ( WINAPI * mdWaveRecord) ( DWORD dwMilliSeconds, BOOL bModal );
- extern DWORD ( WINAPI * mdWaveRecordSave) ( LPSTR lpszFileName );
- extern DWORD ( WINAPI * mdWaveRecordPlayback) ( void );
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Secure A/V Functions (3) *** */
- /* ********************************************************************** */
- extern BOOL ( WINAPI * mdRemoveAllSecureAVDrivers ) ( void );
- extern int ( WINAPI * mdInstallSecureAVDriver ) ( LPSTR lpszFileExt, LONG lKeyValue1, LONG lKeyValue2 );
- extern int ( WINAPI * mdRemoveSecureAVDriver ) ( LPSTR lpszFileExt );
-
- /* ********************************************************************** */
- /* *** Prototypes: Error Handling (3) *** */
- /* ********************************************************************** */
- extern int ( WINAPI * mdGetErrorNumber ) ( int nDevHandle, int nInfoNo );
- extern void ( WINAPI * mdGetErrorText ) ( int nErrorNo, LPSTR lpszStringOut, int nStringLen );
- extern int ( WINAPI * mdLogErrors ) ( LPSTR lpszErrorLogFileName, BOOL bLogErrors );
-
- /* ********************************************************************** */
- /* *** Prototypes: Forced Shutdown/Load (2) *** */
- /* ********************************************************************** */
- extern int ( WINAPI * mdCloseLibrary) ( void );
- extern int ( WINAPI * mdOpenLibrary ) ( void );
-
-
- extern HINSTANCE mhInstMDCtrl;
-
- #endif
-
- /* ********************************************************************** */
- /* *** Prototypes: Control Functions (12) *** */
- /* ********************************************************************** */
- #define MDOPEN "mdOpen"
- #define MDOPENLITE "mdOpenLite"
- #define MDCLOSE "mdClose"
- #define MDPLAY "mdPlay"
- #define MDPAUSE "mdPause"
- #define MDSTEP "mdStep"
- #define MDSTOP "mdStop"
- #define MDGOTOFRAME "mdGotoFrame"
- #define MDREWIND "mdRewind"
- #define MDRESTART "mdRestart"
-
- #define MDOPENDEVICE "mdOpenDevice"
- #define MDCLOSEDEVICE "mdCloseDevice"
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Custom Control Functions (4) *** */
- /* ********************************************************************** */
- #define MDCLOSEINTERFACE "mdCloseInterface"
- #define MDOPENINTERFACE "mdOpenInterface"
- #define MDGETBUTTONCLICKED "mdGetButtonClicked"
- #define MDSETINTERFACENO "mdSetInterfaceNo"
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Visual Basic Specific (1) *** */
- /* ********************************************************************** */
- #define MDVBVOPEN "mdVBVOpen"
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Window Control Functions (6) *** */
- /* ********************************************************************** */
- #define MDHIDE "mdHide"
- #define MDSHOW "mdShow"
- #define MDHIDEVIDEO "mdHideVideo"
- #define MDSHOWVIDEO "mdShowVideo"
- #define MDHIDECTRL "mdHideCtrl"
- #define MDSHOWCTRL "mdShowCtrl"
-
- /* ********************************************************************** */
- /* *** Prototypes: Parameter Setting Functions (26) *** */
- /* ********************************************************************** */
- #define MDSETCLIP "mdSetClip"
- #define MDSETWINPOS "mdSetWinPos"
- #define MDSETWINSIZE "mdSetWinSize"
- #define MDSETVIDEOWINPOS "mdSetVideoWinPos"
- #define MDSETVIDEOWINSIZE "mdSetVideoWinSize"
- #define MDSETCTRLWINPOS "mdSetCtrlWinPos"
- #define MDSETCTRLWINSIZE "mdSetCtrlWinSize"
-
- #define MDSETWINDOWMOVEABLE "mdSetWindowMoveable"
- #define MDSETWINDOWINTERACTIVE "mdSetWindowInteractive"
-
- #define MDSETAUDIOLEVEL "mdSetAudioLevel"
- #define MDSETAUDIOMUTE "mdSetAudioMute"
-
- #define MDSETCTRLTYPE "mdSetCtrlType"
-
- #define MDSETWINBOTTOM "mdSetWinBottom"
- #define MDSETWINTOP "mdSetWinTop"
- #define MDSETNEWPARENT "mdSetNewParent"
-
- #define MDSETCLIPPINGREGION "mdSetClippingRegion"
-
- #define MDSETVIDEOWINDOWASPECT "mdSetVideoWindowAspect"
- #define MDSETVIDEOASPECT "mdSetVideoAspect"
- #define MDSETVIDEOOFFSET "mdSetVideoOffset"
-
- #define MDSETVIDEOPALETTE "mdSetVideoPalette"
- #define MDSETKEYCOLOR "mdSetKeyColor"
-
- #define MDSETPLAYBACKSPEED "mdSetPlaybackSpeed"
-
- #define MDSETACTIVEPALETTE "mdSetActivePalette"
-
- #define MDSETPLAYREPEAT "mdSetPlayRepeat"
-
- #define MDSETTIMEFORMAT "MdSetTimeFormat"
-
- #define MDSETPARAMDIRECT "mdSetParamDirect"
-
- /* ********************************************************************** */
- /* *** Prototypes: Information Functions (43) *** */
- /* ********************************************************************** */
- #define MDGETFILETYPE "mdGetFileType"
- #define MDGETWINDOWHANDLE "mdGetWindowHandle"
- #define MDGETCTRLWINDOWHANDLE "mdGetCtrlWindowHandle"
- #define MDGETDEVICEID "mdGetDeviceId"
- #define MDGETFRAME "mdGetFrame"
- #define MDGETCLIPFRAME "mdGetClipFrame"
-
- #define MDGETLENGTH "mdGetLength"
- #define MDGETCLIPLENGTH "mdGetClipLength"
-
- #define MDGETPLAYSTATE "mdGetPlayState"
- #define MDGETDISPLAYSTATE "mdGetDisplayState"
-
- #define MDGETWINPOS "mdGetWinPos"
- #define MDGETWINSIZE "mdGetWinSize"
-
- #define MDGETVIDEOWINPOS "mdGetVideoWinPos"
- #define MDGETVIDEOWINSIZE "mdGetVideoWinSize"
-
- #define MDGETCTRLWINPOS "mdGetCtrlWinPos"
- #define MDGETCTRLWINSIZE "mdGetCtrlWinSize"
-
- #define MDGETWINX "mdGetWinX"
- #define MDGETWINY "mdGetWinY"
- #define MDGETWINWIDTH "mdGetWinWidth"
- #define MDGETWINHEIGHT "mdGetWinHeight"
-
- #define MDGETVIDEOWINX "mdGetVideoWinX"
- #define MDGETVIDEOWINY "mdGetVideoWinY"
- #define MDGETVIDEOWINWIDTH "mdGetVideoWinWidth"
- #define MDGETVIDEOWINHEIGHT "mdGetVideoWinHeight"
-
- #define MDGETCTRLWINX "mdGetCtrlWinX"
- #define MDGETCTRLWINY "mdGetCtrlWinY"
- #define MDGETCTRLWINWIDTH "mdGetCtrlWinWidth"
-
- #define MDGETAREACLICKED "mdGetAreaClicked"
-
- #define MDGETOPENFILECOUNT "mdGetOpenFileCount"
-
- #define MDGETFRAMERATE "mdGetFrameRate"
-
- #define MDGETPLAYEDSTATUS "mdGetPlayedStatus"
-
- #define MDGETVOLUMELEVEL "mdGetVolumeLevel"
-
- #define MDGETVIDEOIMAGE "mdGetVideoImage"
-
- #define MDGETORIGVIDEOWINSIZE "mdGetOrigVideoWinSize"
-
- #define MDGETFILENAME "mdGetFileName"
-
- #define MDGETFRAMESSKIPPED "mdGetFramesSkipped"
-
- #define MDGETCLIPFRAMES "mdGetClipFrames"
-
- #define MDGETPOSCLICKED "mdGetPosClicked"
- #define MDGETXPOSCLICKED "mdGetXPosClicked"
- #define MDGETYPOSCLICKED "mdGetYPosClicked"
-
- #define MDGETVIDEOPALETTE "mdGetVideoPalette"
-
- #define MDGETVERSION "mdGetVersion"
-
- /* ********************************************************************** */
- /* *** Prototypes: Graphic Loading and Displaying Functions (7) *** */
- /* ********************************************************************** */
- #define MDSHOWGRAPHIC "mdShowGraphic"
- #define MDSHOWGRAPHICPOS "mdShowGraphicPos"
- #define MDOPENGRAPHIC "mdOpenGraphic"
- #define MDOPENGRAPHICKEEP "mdOpenGraphicKeep"
- #define MDCLOSEGRAPHIC "mdCloseGraphic"
- #define MDHIDEGRAPHIC "mdHideGraphic"
- #define MDDISPLAYGRAPHIC "mdDisplayGraphic"
-
- /* ********************************************************************** */
- /* *** Prototypes: Cursor Setting Functions (6) *** */
- /* ********************************************************************** */
- #define MDSETCURSOR "mdSetCursor"
- #define MDSETVIDEOCURSOR "mdSetVideoCursor"
- #define MDSETCTRLCURSOR "mdSetCtrlCursor"
- #define MDRESETCURSOR "mdResetCursor"
- #define MDRESETVIDEOCURSOR "mdResetVideoCursor"
- #define MDRESETCTRLCURSOR "mdResetCtrlCursor"
-
- /* ********************************************************************** */
- /* *** Prototypes: Miscellaneous Functions (9) *** */
- /* ********************************************************************** */
- #define MDTIMEDDELAY "mdTimedDelay"
- #define MDFILEDOESNOTEXIST "mdFileDoesNotExist"
- #define MDFILEDOESEXIST "mdFileDoesExist"
- #define MDDISPLAYERRORMSGS "mdDisplayErrorMsgs"
- #define MDABOUT "mdAbout"
- #define MDMCISENDSTRING "mdMCISendString"
- #define MDCDEJECT "mdCDEject"
- #define MDSETUPPLAYSTATECALLBACK "mdSetupPlayStateCallback"
- #define MDSETUPCUSTBTNCLICKCALLBACK "mdSetupCustBtnClickCallback"
-
- /* ********************************************************************** */
- /* *** Prototypes: Audio Record Procedures (5) *** */
- /* ********************************************************************** */
- #define MDWAVERECORDINIT "mdWaveRecordInit"
- #define MDWAVECLOSE "mdWaveClose"
- #define MDWAVERECORD "mdWaveRecord"
- #define MDWAVERECORDSAVE "mdWaveRecordSave"
- #define MDWAVERECORDPLAYBACK "mdWaveRecordPlayback"
-
- /* ********************************************************************** */
- /* *** Prototypes: Secure A/V Functions (3) *** */
- /* ********************************************************************** */
- #define MDREMOVEALLSECUREAVDRIVERS "mdRemoveAllSecureAVDrivers"
- #define MDINSTALLSECUREAVDRIVER "mdInstallSecureAVDriver"
- #define MDREMOVESECUREAVDRIVER "mdRemoveSecureAVDriver"
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Error Handling (3) *** */
- /* ********************************************************************** */
- #define MDGETERRORNUMBER "mdGetErrorNumber"
- #define MDGETERRORTEXT "mdGetErrorText"
- #define MDLOGERRORS "mdLogErrors"
-
-
- /* ********************************************************************** */
- /* *** Prototypes: Forced Shutdown/Load (2) *** */
- /* ********************************************************************** */
- #define MDCLOSELIBRARY "mdCloseLibrary"
- #define MDOPENLIBRARY "mdOpenLibrary"
-