Rev 190 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 190 | Rev 194 | ||
|---|---|---|---|
| Line 1256... | Line 1256... | ||
| 1256 |    // load the image from file and return the resulting handle | 1256 |    // load the image from file and return the resulting handle | 
| 1257 | return ((HBITMAP) LoadImage (NULL, imgfile_pathname, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE)); | 1257 | return ((HBITMAP) LoadImage (NULL, imgfile_pathname, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE)); | 
| 1258 | } | 1258 | } | 
| 1259 | 1259 | ||
| 1260 | 1260 | ||
| - | 1261 | #ifndef NO_REGISTRATION | |
| 1261 | bool IsRegistrationCorrect (const wchar_t *email, const unsigned __int32 code) | 1262 | bool IsRegistrationCorrect (const wchar_t *email, const unsigned __int32 code) | 
| 1262 | { | 1263 | { | 
| 1263 |    // quick helper to see if the program is registered. It contains an address to potential crackers. | 1264 |    // quick helper to see if the program is registered. It contains an address to potential crackers. | 
| 1264 |    // Notice: user's email address may be a wchar_t array, and thus may contain Unicode characters. | 1265 |    // Notice: user's email address may be a wchar_t array, and thus may contain Unicode characters. | 
| 1265 |    // /!\ WARNING: THE CRACKER MESSAGE SHOULD NEVER CHANGE, AND NEITHER SHOULD THE ALGORITHM BELOW /!\ | 1266 |    // /!\ WARNING: THE CRACKER MESSAGE SHOULD NEVER CHANGE, AND NEITHER SHOULD THE ALGORITHM BELOW /!\ | 
| Line 1290... | Line 1291... | ||
| 1290 | correct_activationcode &= 0x7FFFFFFF; // make sure the results remain positive | 1291 | correct_activationcode &= 0x7FFFFFFF; // make sure the results remain positive | 
| 1291 | 1292 | ||
| 1292 |    // as usuals, it alls boils down to a single test :( | 1293 |    // as usuals, it alls boils down to a single test :( | 
| 1293 | return ((length > sizeof ("a@b.c") - 1) && (code == correct_activationcode)); | 1294 | return ((length > sizeof ("a@b.c") - 1) && (code == correct_activationcode)); | 
| 1294 | } | 1295 | } | 
| - | 1296 | #endif // !NO_REGISTRATION | |