summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/autoload.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-12-07 11:53:46 +0000
committerCorinna Vinschen <corinna@vinschen.de>2006-12-07 11:53:46 +0000
commit398e28fbbc0464d9b2d86db3d6195220e7fecb01 (patch)
tree6a40889a996e71fbae73a08a4e10a8e84969a63f /winsup/cygwin/autoload.cc
parent2ffc166d0765bec680139e82dd50723ea0e53364 (diff)
downloadcygnal-398e28fbbc0464d9b2d86db3d6195220e7fecb01.tar.gz
cygnal-398e28fbbc0464d9b2d86db3d6195220e7fecb01.tar.bz2
cygnal-398e28fbbc0464d9b2d86db3d6195220e7fecb01.zip
* autoload.cc (SHFileOperationA): Define.
* syscalls.cc (try_to_bin): New function trying to move a file to the recycle bin. (unlink): Fix arguments used in CreateFile for delete on close. Before closing the handle, try to move the file to the recycle bin.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r--winsup/cygwin/autoload.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index 1e7fb783a..2a0653174 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -527,6 +527,7 @@ LoadDLLfuncEx (Wow64DisableWow64FsRedirection, 4, kernel32, 1)
LoadDLLfuncEx (Wow64RevertWow64FsRedirection, 4, kernel32, 1)
LoadDLLfunc (SHGetDesktopFolder, 4, shell32)
+LoadDLLfunc (SHFileOperationA, 4, shell32)
LoadDLLfuncEx (waveOutGetNumDevs, 0, winmm, 1)
LoadDLLfuncEx (waveOutOpen, 24, winmm, 1)