#include "apdefap.h"
int gscAction( void )
{
// WINCC:TAGNAME_SECTION_START
// syntax: #define TagNameInAction "DMTagName"
// next TagID : 1
// WINCC:TAGNAME_SECTION_END
// WINCC:PICNAME_SECTION_START
// syntax: #define PicNameInAction "PictureName"
// next PicID : 1
// WINCC:PICNAME_SECTION_END
#pragma code("kernel32.dll")
VOID GetLocalTime(SYSTEMTIME *lpst);
#pragma code();
SYSTEMTIME Systemzeit;
GetLocalTime(&Systemzeit);
SetTagWord("Systemzeit_Jahr",Systemzeit.wYear);
SetTagWord("Systemzeit_Monat",Systemzeit.wMonth);
SetTagWord("Systemzeit_Wochentag",Systemzeit.wDayOfWeek);
SetTagWord("Systemzeit_Tag",Systemzeit.wDay);
SetTagWord("Systemzeit_Stunde",Systemzeit.wHour);
SetTagWord("Systemzeit_Minute",Systemzeit.wMinute);
SetTagWord("Systemzeit_Sekunde",Systemzeit.wSecond);
SetTagWord("Systemzeit_Millisekunde",Systemzeit.wMilliseconds);
return 0;
}