Source

cffi / demo / winclipboard.py

The branch 'release-0.2' does not exist.
Diff from to

File demo/winclipboard.py

     BOOL  EmptyClipboard(void);
     HANDLE  SetClipboardData(UINT uFormat, HANDLE hMem);
 
+    #define CF_TEXT ...
+    #define GMEM_MOVEABLE ...
+
     void * memcpy(void * s1, void * s2, int n);
     ''')
 
     '''
         use win32 api to copy `string` to the clipboard
     '''
-    CF_TEXT = 1
-    GMEM_MOVEABLE = 0x0002
-    
     hWnd = GetConsoleWindow()
   
     if OpenClipboard(hWnd):