This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Compaq/HP Recovery Media (c. late 1990s-early 2000s) .CEX File Decryptor | |
another rrrring of lightningggg production by slipstream/RoL! | |
Yesterday I received in the post some Compaq recovery media I ordered from Yahoo! Auctions Japan to dump. | |
Having done that, I took a closer look at the disc images. | |
The recovery media came in two CDs: a boot CD ("COMPAQ Restore CD"), and an OS CD ("Compaq CD for Microsoft Windows | |
NT Workstation 4.0 Operating System"). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BMP-related data types based on Microsoft's own | |
#include <stdint.h> | |
/** | |
* Common Data Types | |
* | |
* The data types in this section are essentially aliases for C/C++ | |
* primitive data types. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
int main() { | |
HDC hdc; | |
int w = GetSystemMetrics(0); | |
int h = GetSystemMetrics(1); | |
while (1) { | |
hdc = GetDC(0); | |
BitBlt(hdc, rand() % 2, rand() % 2, w, h, hdc, rand() % 2, rand() % 2, SRCAND); | |
Sleep(10); |