Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <string.h>
- #include <windows.h>
- LRESULT dummy(HWND h, UINT u, WPARAM w, LPARAM l)
- {
- }
- int WinMain(HINSTANCE h, HINSTANCE h1, LPSTR ss, int cc)
- {
- char s[256];
- struct WNDCLASSEX c;
- memset(&c, 0, sizeof(c));
- c.cbSize = sizeof(struct WNDCLASSEX);
- c.hInstance = h;
- c.lpfnWndProc = &dummy;
- c.lpszClassName = &s;
- while(1)
- {
- for(int i = 0; i < sizeof(s); i++)
- {
- s[i] = 'A' + rand() % ('Z' - 'A');
- }
- RegisterClassEx(&c);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement