File tree Expand file tree Collapse file tree 3 files changed +23
-19
lines changed
library/std/src/sys/windows Expand file tree Collapse file tree 3 files changed +23
-19
lines changed Original file line number Diff line number Diff line change @@ -470,6 +470,29 @@ compat_fn_with_fallback! {
470
470
SetLastError ( ERROR_CALL_NOT_IMPLEMENTED as DWORD ) ;
471
471
FALSE
472
472
}
473
+
474
+ // >= Vista / Server 2008
475
+ // https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfinalpathnamebyhandlew
476
+ pub fn GetFinalPathNameByHandleW (
477
+ hFile: HANDLE ,
478
+ lpszFilePath: LPCWSTR ,
479
+ cchFilePath: DWORD ,
480
+ dwFlags: DWORD
481
+ ) -> DWORD {
482
+ SetLastError ( ERROR_CALL_NOT_IMPLEMENTED as DWORD ) ;
483
+ 0
484
+ }
485
+
486
+ // >= Vista / Server 2008
487
+ // https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createsymboliclinkw
488
+ pub fn CreateSymbolicLinkW (
489
+ lpSymlinkFileName: LPCWSTR ,
490
+ lpTargetFileName: LPCWSTR ,
491
+ dwFlags: DWORD
492
+ ) -> BOOLEAN {
493
+ SetLastError ( ERROR_CALL_NOT_IMPLEMENTED as DWORD ) ;
494
+ 0
495
+ }
473
496
}
474
497
475
498
compat_fn_optional ! {
Original file line number Diff line number Diff line change @@ -2213,7 +2213,6 @@ Windows.Win32.Storage.FileSystem.CREATE_NEW
2213
2213
Windows.Win32.Storage.FileSystem.CreateDirectoryW
2214
2214
Windows.Win32.Storage.FileSystem.CreateFileW
2215
2215
Windows.Win32.Storage.FileSystem.CreateHardLinkW
2216
- Windows.Win32.Storage.FileSystem.CreateSymbolicLinkW
2217
2216
Windows.Win32.Storage.FileSystem.DELETE
2218
2217
Windows.Win32.Storage.FileSystem.DeleteFileW
2219
2218
Windows.Win32.Storage.FileSystem.FILE_ACCESS_RIGHTS
@@ -2337,7 +2336,6 @@ Windows.Win32.Storage.FileSystem.GetFileInformationByHandle
2337
2336
Windows.Win32.Storage.FileSystem.GetFileInformationByHandleEx
2338
2337
Windows.Win32.Storage.FileSystem.GetFileType
2339
2338
Windows.Win32.Storage.FileSystem.GETFINALPATHNAMEBYHANDLE_FLAGS
2340
- Windows.Win32.Storage.FileSystem.GetFinalPathNameByHandleW
2341
2339
Windows.Win32.Storage.FileSystem.GetFullPathNameW
2342
2340
Windows.Win32.Storage.FileSystem.GetTempPathW
2343
2341
Windows.Win32.Storage.FileSystem.INVALID_FILE_ATTRIBUTES
Original file line number Diff line number Diff line change @@ -124,14 +124,6 @@ extern "system" {
124
124
) -> BOOL ;
125
125
}
126
126
#[ link( name = "kernel32" ) ]
127
- extern "system" {
128
- pub fn CreateSymbolicLinkW (
129
- lpsymlinkfilename : PCWSTR ,
130
- lptargetfilename : PCWSTR ,
131
- dwflags : SYMBOLIC_LINK_FLAGS ,
132
- ) -> BOOLEAN ;
133
- }
134
- #[ link( name = "kernel32" ) ]
135
127
extern "system" {
136
128
pub fn CreateThread (
137
129
lpthreadattributes : * const SECURITY_ATTRIBUTES ,
@@ -271,15 +263,6 @@ extern "system" {
271
263
pub fn GetFileType ( hfile : HANDLE ) -> FILE_TYPE ;
272
264
}
273
265
#[ link( name = "kernel32" ) ]
274
- extern "system" {
275
- pub fn GetFinalPathNameByHandleW (
276
- hfile : HANDLE ,
277
- lpszfilepath : PWSTR ,
278
- cchfilepath : u32 ,
279
- dwflags : GETFINALPATHNAMEBYHANDLE_FLAGS ,
280
- ) -> u32 ;
281
- }
282
- #[ link( name = "kernel32" ) ]
283
266
extern "system" {
284
267
pub fn GetFullPathNameW (
285
268
lpfilename : PCWSTR ,
You can’t perform that action at this time.
0 commit comments