34 lines
974 B
C
34 lines
974 B
C
#ifndef EXPT_H
|
|
#define EXPT_H
|
|
|
|
typedef BOOL (* ExportFun)();
|
|
|
|
inline BOOL CompareFileStamp()
|
|
{
|
|
HINSTANCE hDll=GetModuleHandle(_T("shs_utility.arx"));//U?
|
|
if(hDll!=NULL)
|
|
{
|
|
int exp=rand()%10;
|
|
ExportFun pFun=NULL;
|
|
switch(exp)
|
|
{
|
|
case 0:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp0");break;
|
|
case 1:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp1");break;
|
|
case 2:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp2");break;
|
|
case 3:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp3");break;
|
|
case 4:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp4");break;
|
|
case 5:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp5");break;
|
|
case 6:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp6");break;
|
|
case 7:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp7");break;
|
|
case 8:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp8");break;
|
|
case 9:pFun=(ExportFun)::GetProcAddress(hDll,"selfcmp9");break;
|
|
}
|
|
if(pFun!=NULL)
|
|
return pFun();
|
|
}
|
|
return FALSE;
|
|
}
|
|
|
|
|
|
#endif
|