Advertisement
szabozoltan69

clipboard

Sep 14th, 2011
238
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <windows.h>
  3.  
  4. using namespace std ;
  5.  
  6. int main()
  7. {
  8.     HANDLE clip;
  9.  
  10.     if (OpenClipboard(NULL)) {
  11.       clip = GetClipboardData(CF_TEXT);
  12.       CloseClipboard();
  13.     }
  14.     cout << (char*)clip << endl;
  15. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement