pub unsafe fn data_handle(fmt: ClipboardFormat) -> Option<ClipboardData> {
        use winapi::um::winuser::GetClipboardData;
        use winapi::um::winbase::GlobalLock;

        let fmt = fmt.into_raw();
        let handle = GetClipboardData(fmt);
        match handle.is_null() {
            true => None,
            false => Some(ClipboardData(GlobalLock(handle)))
        }
    }
/**
        Gets the data handle of the clipboard, lock the memory and return it in a `ClipboardData` wrapper.
        The returned data is read-only. The application should copy the data and release the handle as soon as possible.

        The clipboard must be open when calling this function.

        If no data is found with the selected clipboard format, `None` is returned.
    */
Gets the data handle of the clipboard, lock the memory and return it in a `ClipboardData` wrapper.
The returned data is read-only. The application should copy the data and release the handle as soon as possible.

The clipboard must be open when calling this function.

If no data is found with the selected clipboard format, `None` is returned.
Gets the data handle of the clipboard lock the memory and return it in a ` ClipboardData ` wrapper . The returned data is read - only . The application should copy the data and release the handle as soon as possible . The clipboard must be open when calling this function . If no data is found with the selected clipboard format ` None ` is returned .
pub unsafe fn data_handle(fmt: ClipboardFormat) -> Option<ClipboardData> {
        use winapi::um::winuser::GetClipboardData;
        use winapi::um::winbase::GlobalLock;
        let fmt = fmt.into_raw();
        let handle = GetClipboardData(fmt);
        match handle.is_null() {
            true => None,
            false => Some(ClipboardData(GlobalLock(handle)))
        }
    }
pub unsafe fn data_handle ( fmt : ClipboardFormat ) -> Option < ClipboardData > { use winapi :: um :: winuser :: GetClipboardData ; use winapi :: um :: winbase :: GlobalLock ; let fmt = fmt . into_raw ( ) ; let handle = GetClipboardData ( fmt ) ; match handle . is_null ( ) { true => None , false => Some ( ClipboardData ( GlobalLock ( handle ) ) ) } }
Gets the data handle of the clipboard, lock the memory and return it in a `ClipboardData` wrapper.
Gets the data handle of the clipboard lock the memory and return it in a ` ClipboardData ` wrapper .
fmt
ClipboardFormat