commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r765164 - /commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h
Date Wed, 15 Apr 2009 12:43:57 GMT
Author: mturk
Date: Wed Apr 15 12:43:56 2009
New Revision: 765164

URL: http://svn.apache.org/viewvc?rev=765164&view=rev
Log:
Add windows/vista symbolic link late func

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h

Modified: commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h?rev=765164&r1=765163&r2=765164&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch.h Wed Apr
15 12:43:56 2009
@@ -361,6 +361,20 @@
     (lpPathName));
 #define SetDllDirectoryW acr_winapi_SetDllDirectoryW
 
+#ifdef CreateSymbolicLinkW
+#undef CreateSymbolicLinkW
+#endif
+#ifndef SYMBOLIC_LINK_FLAG_DIRECTORORY
+#define SYMBOLIC_LINK_FLAG_DIRECTORORY 0x01
+#endif
+ACR_DECLARE_LATE_DLL_FUNC(SYSDLL_KERNEL32, BOOL, FALSE,
+                          WINAPI, CreateSymbolicLinkW, 0, (
+    IN LPCWSTR lpSymlinkFileName,
+    IN LPCWSTR lpTargetFileName,
+    IN DWORD dwFlags),
+    (lpSymlinkFileName, lpTargetFileName, dwFlags));
+#define CreateSymbolicLinkW acr_winapi_CreateSymbolicLinkW
+
 ACR_DECLARE_LATE_DLL_VOID(SYSDLL_JVM, JNICALL,
                           JVM_DumpAllStacks,
                          8, (



Mime
View raw message