1 /* 2 * Record entry identifier functions 3 * 4 * Copyright (C) 2008-2018, Joachim Metz <joachim.metz@gmail.com> 5 * 6 * Refer to AUTHORS for acknowledgements. 7 * 8 * This software is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU Lesser General Public License as published by 10 * the Free Software Foundation, either version 3 of the License, or 11 * (at your option) any later version. 12 * 13 * This software is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General Public License 19 * along with this software. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #if !defined( _LIBPFF_RECORD_ENTRY_IDENTIFIER_H ) 23 #define _LIBPFF_RECORD_ENTRY_IDENTIFIER_H 24 25 #include <common.h> 26 #include <types.h> 27 28 #if defined( __cplusplus ) 29 extern "C" { 30 #endif 31 32 typedef struct libpff_record_entry_identifier libpff_record_entry_identifier_t; 33 34 struct libpff_record_entry_identifier 35 { 36 /* The entry identifier format 37 */ 38 uint8_t format; 39 40 /* The entry identifier 41 */ 42 union 43 { 44 /* The MAPI property based entry identifier 45 */ 46 struct 47 { 48 /* The entry type 49 */ 50 uint32_t entry_type; 51 52 /* The value type 53 */ 54 uint32_t value_type; 55 }; 56 /* The GUID based entry identifier 57 */ 58 uint8_t guid[ 16 ]; 59 60 /* The PRQ_ID_SECURE4 based entry identifier 61 */ 62 uint64_t secure4; 63 }; 64 }; 65 66 #if defined( __cplusplus ) 67 } 68 #endif 69 70 #endif /* !defined( _LIBPFF_RECORD_ENTRY_IDENTIFIER_H ) */ 71 72