DigiGuide Programme Start Event

Copyright ©1999, 2000 GipsyMedia Limited. All rights reserved.
Please read our open source licence agreement.


Detail

DigiGuide has an internal one minute timer, when the timer fires DigiGuide checks for all shows starting and finishing. For each show that is currently starting a function called OnProgrammeStartA in your Add-In is called, passing the programme information in a DGE_PROGRAMME structure.

Example

#include <windows.h>
#include <TCHAR.h>
#include "DGAddins.h"

extern "C" _declspec( dllexport )
void OnProgrammeStartA( const DGE_PROGRAMME* const pProgramme, HWND /*hwndParent*/ )
{
	TCHAR szBuffer[ 2048 ];
	wsprintf( szBuffer, _T("Addin Programme Starting: %s at %d:%d\r\n")
					, pProgramme->pcszName
					, pProgramme->stTimeStart.wHour
					, pProgramme->stTimeStart.wMinute );
	OutputDebugString( szBuffer );
}

See Also