7fd59977 |
1 | #ifdef WNT |
2 | /******************************************************************************/ |
3 | /* File: symlink.c */ |
4 | /* Purpose: Dummy routine to simulate UNIX's 'symlink'. */ |
5 | /* Author: PLOTNIKOV Eugeny */ |
6 | /* <eugeny@vortex> */ |
7 | /* Warning: Symbolic links are not supported on Windows NT yet. So, in this */ |
8 | /* case simple copying of file is performing. */ |
9 | /* Copyright: MATRA Datavision (C)1996 */ |
10 | /******************************************************************************/ |
11 | /***/ |
12 | #define STRICT |
13 | #include <windows.h> |
14 | #include <tchar.h> |
15 | |
16 | #ifdef __cplusplus |
17 | extern "C" int symlink ( const _TCHAR*, const _TCHAR* ); |
18 | #endif /* __cplusplus */ |
19 | /***/ |
20 | /******************************* symlink **************************************/ |
21 | /***/ |
22 | __declspec( dllexport ) int symlink ( const _TCHAR* name1, const _TCHAR* name2 ) { |
23 | |
24 | return CopyFile ( name1, name2, FALSE ) == TRUE ? 0 : -1; |
25 | |
26 | } /* end symlink */ |
27 | /***/ |
28 | /******************************************************************************/ |
29 | #endif |
30 | |