VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Guid/FileInfo.h@ 62180

最後變更 在這個檔案從62180是 58466,由 vboxsync 提交於 9 年 前

EFI/Firmware: Merged in the svn:eol-style, svn:mime-type and trailing whitespace cleanup that was done after the initial UDK2014.SP1 import: svn merge /vendor/edk2/UDK2014.SP1 /vendor/edk2/current .

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.1 KB
 
1/** @file
2 Provides a GUID and a data structure that can be used with EFI_FILE_PROTOCOL.SetInfo()
3 and EFI_FILE_PROTOCOL.GetInfo() to set or get generic file information.
4 This GUID is defined in UEFI specification.
5
6Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
7This program and the accompanying materials are licensed and made available under
8the terms and conditions of the BSD License that accompanies this distribution.
9The full text of the license may be found at
10http://opensource.org/licenses/bsd-license.php.
11
12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15**/
16
17#ifndef __FILE_INFO_H__
18#define __FILE_INFO_H__
19
20#define EFI_FILE_INFO_ID \
21 { \
22 0x9576e92, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \
23 }
24
25typedef struct {
26 ///
27 /// The size of the EFI_FILE_INFO structure, including the Null-terminated FileName string.
28 ///
29 UINT64 Size;
30 ///
31 /// The size of the file in bytes.
32 ///
33 UINT64 FileSize;
34 ///
35 /// PhysicalSize The amount of physical space the file consumes on the file system volume.
36 ///
37 UINT64 PhysicalSize;
38 ///
39 /// The time the file was created.
40 ///
41 EFI_TIME CreateTime;
42 ///
43 /// The time when the file was last accessed.
44 ///
45 EFI_TIME LastAccessTime;
46 ///
47 /// The time when the file's contents were last modified.
48 ///
49 EFI_TIME ModificationTime;
50 ///
51 /// The attribute bits for the file.
52 ///
53 UINT64 Attribute;
54 ///
55 /// The Null-terminated name of the file.
56 ///
57 CHAR16 FileName[1];
58} EFI_FILE_INFO;
59
60///
61/// The FileName field of the EFI_FILE_INFO data structure is variable length.
62/// Whenever code needs to know the size of the EFI_FILE_INFO data structure, it needs to
63/// be the size of the data structure without the FileName field. The following macro
64/// computes this size correctly no matter how big the FileName array is declared.
65/// This is required to make the EFI_FILE_INFO data structure ANSI compilant.
66///
67#define SIZE_OF_EFI_FILE_INFO OFFSET_OF (EFI_FILE_INFO, FileName)
68
69extern EFI_GUID gEfiFileInfoGuid;
70
71#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette