;;; -*-Scheme-*-
;;;
-;;; $Id: clipbrd.scm,v 1.3 1998/07/09 04:29:29 cph Exp $
+;;; $Id: clipbrd.scm,v 1.4 1998/07/09 04:31:40 cph Exp $
;;;
;;; Copyright (c) 1995-98 Massachusetts Institute of Technology
;;;
(error "Unable to allocate global memory of length" len))
(copy-memory (global-lock mem) s len)
(global-unlock mem)
- (if (not (open-clipboard 0))
- (error "Error opening clipboard."))
- (if (not (empty-clipboard))
- (error "Error emptying clipboard."))
- (if (not (set-clipboard-data CF_TEXT mem))
- (error "Error setting clipboard data."))
- (if (not (close-clipboard))
- (error "Error closing clipboard."))))
+ (open-clipboard 0)
+ (empty-clipboard)
+ (set-clipboard-data CF_TEXT mem)
+ (close-clipboard)))
(define (win32-clipboard-read-text)
(open-clipboard 0)
#| -*-Scheme-*-
-$Id: wf_user.scm,v 1.7 1996/10/07 18:17:03 cph Exp $
+$Id: wf_user.scm,v 1.8 1998/07/09 04:29:36 cph Exp $
-Copyright (c) 1993-96 Massachusetts Institute of Technology
+Copyright (c) 1993-98 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(define destroy-window)
(define draw-menu-bar)
(define ellipse)
+(define empty-clipboard)
(define enable-menu-item)
(define end-paint)
(define get-client-rect)
(define get-dc)
(define get-device-caps)
(define get-focus)
+(define get-last-error)
(define get-menu)
(define get-menu-check-mark-dimensions)
(define get-menu-item-count)
bool user32.dll "OpenClipboard"))
(set! close-clipboard
- (windows-procedure (close-clipboard) bool user32.dll "CloseClipboard"))
+ (windows-procedure (close-clipboard)
+ bool user32.dll "CloseClipboard"))
(set! set-clipboard-data
(windows-procedure (set-clipboard-data (format uint) (hdata handle))
(windows-procedure (get-clipboard-data (format uint))
handle user32.dll "GetClipboardData"))
+ (set! empty-clipboard
+ (windows-procedure (empty-clipboard)
+ bool user32.dll "EmptyClipboard"))
+
(set! global-alloc
(windows-procedure (global-alloc (fuFlags uint) (cbBytes dword))
bool kernel32.dll "RtlMoveMemory"))
+ (set! get-last-error
+ (windows-procedure (get-last-error)
+ dword kernel32.dll "GetLastError"))
+
+
unspecific)