Advertisement
Guest User

Untitled

a guest
Sep 30th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <string.h>
  3. #include <windows.h>
  4.  
  5. LRESULT dummy(HWND h, UINT u, WPARAM w, LPARAM l)
  6. {
  7. }
  8.  
  9. int WinMain(HINSTANCE h, HINSTANCE h1, LPSTR ss, int cc)
  10. {
  11.   char s[256];
  12.   struct WNDCLASSEX c;
  13.   memset(&c, 0, sizeof(c));
  14.   c.cbSize = sizeof(struct WNDCLASSEX);
  15.   c.hInstance = h;
  16.   c.lpfnWndProc = &dummy;
  17.   c.lpszClassName = &s;
  18.  
  19.   while(1)
  20.   {
  21.      for(int i = 0; i < sizeof(s); i++)
  22.      {
  23.        s[i] = 'A' + rand() % ('Z' - 'A');
  24.      }
  25.      RegisterClassEx(&c);
  26.   }
  27.   return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement