File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
library/std/src/sys/windows Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -507,6 +507,17 @@ compat_fn_with_fallback! {
507
507
SetLastError ( ERROR_CALL_NOT_IMPLEMENTED as DWORD ) ;
508
508
FALSE
509
509
}
510
+
511
+ // >= 2000
512
+ // https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createhardlinkw
513
+ pub fn CreateHardLinkW (
514
+ lpSymlinkFileName: LPCWSTR ,
515
+ lpTargetFileName: LPCWSTR ,
516
+ lpSecurityAttributes: LPSECURITY_ATTRIBUTES
517
+ ) -> BOOL {
518
+ SetLastError ( ERROR_CALL_NOT_IMPLEMENTED as DWORD ) ;
519
+ FALSE
520
+ }
510
521
}
511
522
512
523
compat_fn_optional ! {
Original file line number Diff line number Diff line change @@ -2207,7 +2207,6 @@ Windows.Win32.Storage.FileSystem.CREATE_ALWAYS
2207
2207
Windows.Win32.Storage.FileSystem.CREATE_NEW
2208
2208
Windows.Win32.Storage.FileSystem.CreateDirectoryW
2209
2209
Windows.Win32.Storage.FileSystem.CreateFileW
2210
- Windows.Win32.Storage.FileSystem.CreateHardLinkW
2211
2210
Windows.Win32.Storage.FileSystem.DELETE
2212
2211
Windows.Win32.Storage.FileSystem.DeleteFileW
2213
2212
Windows.Win32.Storage.FileSystem.FILE_ACCESS_RIGHTS
Original file line number Diff line number Diff line change @@ -65,14 +65,6 @@ extern "system" {
65
65
) -> HANDLE ;
66
66
}
67
67
#[ link( name = "kernel32" ) ]
68
- extern "system" {
69
- pub fn CreateHardLinkW (
70
- lpfilename : PCWSTR ,
71
- lpexistingfilename : PCWSTR ,
72
- lpsecurityattributes : * const SECURITY_ATTRIBUTES ,
73
- ) -> BOOL ;
74
- }
75
- #[ link( name = "kernel32" ) ]
76
68
extern "system" {
77
69
pub fn CreateNamedPipeW (
78
70
lpname : PCWSTR ,
You can’t perform that action at this time.
0 commit comments