1
1
use super :: FileAttribute ;
2
2
use crate :: data_types:: Align ;
3
3
use crate :: table:: runtime:: Time ;
4
- use crate :: { unsafe_guid , CStr16 , Char16 , Identify } ;
4
+ use crate :: { guid , CStr16 , Char16 , Guid , Identify } ;
5
5
use core:: ffi:: c_void;
6
6
use core:: { mem, ptr} ;
7
7
@@ -142,7 +142,6 @@ pub enum FileInfoCreationError {
142
142
/// attribute. Other changes must be carried out in a separate transaction.
143
143
#[ derive( Debug , Eq , PartialEq ) ]
144
144
#[ repr( C ) ]
145
- #[ unsafe_guid( "09576e92-6d3f-11d2-8e39-00a0c969723b" ) ]
146
145
pub struct FileInfo {
147
146
size : u64 ,
148
147
file_size : u64 ,
@@ -237,6 +236,10 @@ impl Align for FileInfo {
237
236
}
238
237
}
239
238
239
+ unsafe impl Identify for FileInfo {
240
+ const GUID : Guid = guid ! ( "09576e92-6d3f-11d2-8e39-00a0c969723b" ) ;
241
+ }
242
+
240
243
impl InfoInternal for FileInfo {
241
244
fn name_offset ( ) -> usize {
242
245
80
@@ -253,7 +256,6 @@ impl FileProtocolInfo for FileInfo {}
253
256
/// this information structure. Consider using `FileSystemVolumeLabel` instead.
254
257
#[ derive( Debug , Eq , PartialEq ) ]
255
258
#[ repr( C ) ]
256
- #[ unsafe_guid( "09576e93-6d3f-11d2-8e39-00a0c969723b" ) ]
257
259
pub struct FileSystemInfo {
258
260
size : u64 ,
259
261
read_only : bool ,
@@ -329,6 +331,10 @@ impl Align for FileSystemInfo {
329
331
}
330
332
}
331
333
334
+ unsafe impl Identify for FileSystemInfo {
335
+ const GUID : Guid = guid ! ( "09576e93-6d3f-11d2-8e39-00a0c969723b" ) ;
336
+ }
337
+
332
338
impl InfoInternal for FileSystemInfo {
333
339
fn name_offset ( ) -> usize {
334
340
36
@@ -342,7 +348,6 @@ impl FileProtocolInfo for FileSystemInfo {}
342
348
/// May only be obtained on the root directory's file handle.
343
349
#[ derive( Debug , Eq , PartialEq ) ]
344
350
#[ repr( C ) ]
345
- #[ unsafe_guid( "db47d7d3-fe81-11d3-9a35-0090273fc14d" ) ]
346
351
pub struct FileSystemVolumeLabel {
347
352
volume_label : [ Char16 ] ,
348
353
}
@@ -377,6 +382,10 @@ impl Align for FileSystemVolumeLabel {
377
382
}
378
383
}
379
384
385
+ unsafe impl Identify for FileSystemVolumeLabel {
386
+ const GUID : Guid = guid ! ( "db47d7d3-fe81-11d3-9a35-0090273fc14d" ) ;
387
+ }
388
+
380
389
impl InfoInternal for FileSystemVolumeLabel {
381
390
fn name_offset ( ) -> usize {
382
391
0
0 commit comments