als ich heute meiner Resource eine Encryption gab , habe ich zufällig gesehen . Das die Neuz.exe auf Resourcen folgendermassen zugreift.
PHP Code:
#ifdef __SECURITY_0628
CString strResFile = m_File.GetFileName();
CString strFile = m_szFileName;
if( strResFile.Find( "data.res", 0 ) >= 0
|| strResFile.Find( "dataSub1.res", 0 ) >= 0
|| strResFile.Find( "dataSub2.res", 0 ) >= 0 )
if( strFile.Find( "Zubehör\\", 0 ) < 0 )
{
char sFile[100] = { 0,};
char sData[100] = { 0,};
md5( sFile, m_szFileName );
md5( sData, (BYTE*)ptr, size );
map<string, string>::iterator i = CResFile::m_mapAuth.find( sFile );
if( i != CResFile::m_mapAuth.end() )
{
if( lstrcmp( sData, i->second.data() ) != 0 )
{
TRACE( "%s is modified\n", m_szFileName );
::Error( "killed by CResFile::Read() %s, 3", m_szFileName );
ExitProcess( -1 );
}
}
else
{
TRACE( "%s:%s not found\n", m_szFileName, sFile );
MessageBox( g_Neuz.GetSafeHwnd(), "resource not found", "error", MB_OK );
ExitProcess( -1 );
}
}
#endif // __SECURITY_0628
PHP Code:
if( strResFile.Find( "data.res", 0 ) >= 0
|| strResFile.Find( "dataSub1.res", 0 ) >= 0
|| strResFile.Find( "dataSub2.res", 0 ) >= 0 )
PHP Code:
// if( strResFile.Find( "data.res", 0 ) >= 0
// || strResFile.Find( "dataSub1.res", 0 ) >= 0
// || strResFile.Find( "dataSub2.res", 0 ) >= 0 )
Die Funktion ist in der File.cpp .
Tipp: Wenn jemand seine Resourcen sichern will sollte die untengelegenen und obengelegenen Funtkionen betrachten.
Das wars dann auch schon
Lg
derGunga
P.S.:Für die ganze Cleitn Struktur siehe path.h!
Wenn es dir hilft lass ma bitte ein THX






