pub fn files(&self) -> Vec<String> {
        use winapi::um::shellapi::DragQueryFileW;
        use crate::win32::base_helper::from_utf16;
        use std::ptr;

        let len = self.len();
        let mut files = Vec::with_capacity(len);
        unsafe {
            for i in 0..len {
                // Need to add a +1 here for some reason
                let buffer_size = (DragQueryFileW(self.drop, i as _, ptr::null_mut(), 0) + 1) as usize;

                let mut buffer: Vec<u16> = Vec::with_capacity(buffer_size);
                buffer.set_len(buffer_size);

                DragQueryFileW(self.drop, i as _, buffer.as_mut_ptr(), buffer_size as _);

                files.push(from_utf16(&buffer));
            }
        }

        files
    }
/// Return the files path dropped into the app
Return the files path dropped into the app
Return the files path dropped into the app
pub fn files(&self) -> Vec<String> {
        use winapi::um::shellapi::DragQueryFileW;
        use crate::win32::base_helper::from_utf16;
        use std::ptr;
        let len = self.len();
        let mut files = Vec::with_capacity(len);
        unsafe {
            for i in 0..len {
                // Need to add a +1 here for some reason
                let buffer_size = (DragQueryFileW(self.drop, i as _, ptr::null_mut(), 0) + 1) as usize;
                let mut buffer: Vec<u16> = Vec::with_capacity(buffer_size);
                buffer.set_len(buffer_size);
                DragQueryFileW(self.drop, i as _, buffer.as_mut_ptr(), buffer_size as _);
                files.push(from_utf16(&buffer));
            }
        }
        files
    }
pub fn files ( & self ) -> Vec < String > { use winapi :: um :: shellapi :: DragQueryFileW ; use crate :: win32 :: base_helper :: from_utf16 ; use std :: ptr ; let len = self . len ( ) ; let mut files = Vec :: with_capacity ( len ) ; unsafe { for i in 0 .. len { // Need to add a +1 here for some reason let buffer_size = ( DragQueryFileW ( self . drop , i as _ , ptr :: null_mut ( ) , 0 ) + 1 ) as usize ; let mut buffer : Vec < u16 > = Vec :: with_capacity ( buffer_size ) ; buffer . set_len ( buffer_size ) ; DragQueryFileW ( self . drop , i as _ , buffer . as_mut_ptr ( ) , buffer_size as _ ) ; files . push ( from_utf16 ( & buffer ) ) ; } } files }
Return the files path dropped into the app
Return the files path dropped into the app
&self