Guest User

Untitled

a guest
Aug 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <windows.h>
  2. #include <tchar.h>
  3.  
  4. int _tWinMain(HINSTANCE hInstance,
  5. HINSTANCE hPrevInstance,
  6. LPTSTR lpCmdLine,
  7. int cmdShow)
  8. {
  9. BOOL enabled;
  10.  
  11. SystemParametersInfo(SPI_GETDRAGFULLWINDOWS,
  12. NULL, &enabled, 0);
  13.  
  14. //printf("Current 'dragfullwindow' option status: %dn", enabled);
  15.  
  16. if (!enabled)
  17. {
  18. SystemParametersInfo(SPI_SETDRAGFULLWINDOWS,
  19. TRUE,
  20. NULL,
  21. SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
  22. }
  23. return 0;
  24. }
Add Comment
Please, Sign In to add comment