/usr/include/tnef-types.h is in libytnef0-dev 1.5-6ubuntu0.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | #ifndef _TNEF_TYPES_H_
#define _TNEF_TYPES_H_
#define BYTE unsigned char
#define WORD unsigned short int
#define DWORD unsigned int
#define ULONG unsigned int
#define DDWORD unsigned long long
typedef struct
{
WORD atyp;
ULONG ulPosition;
WORD dxWidth;
WORD dyHeight;
DWORD dwFlags;
} renddata;
/* ----------------------------------- */
/* TNEF Down-level Date/Time Structure */
/* ----------------------------------- */
typedef struct
{
WORD wYear;
WORD wMonth;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wDayOfWeek;
} dtr;
typedef struct
{
char *data;
int size;
} variableLength;
typedef struct {
DWORD custom;
BYTE guid[16];
DWORD id;
ULONG count;
int namedproperty;
variableLength *propnames;
variableLength *data;
} MAPIProperty;
typedef struct MAPIProps {
DWORD count;
MAPIProperty *properties;
} MAPIProps;
typedef struct Attachment
{
dtr Date;
variableLength Title;
variableLength MetaFile;
dtr CreateDate;
dtr ModifyDate;
variableLength TransportFilename;
renddata RenderData;
MAPIProps MAPI;
struct Attachment *next;
variableLength FileData;
variableLength IconData;
} Attachment;
typedef struct _TNEFIOStruct
{
int (*InitProc) (struct _TNEFIOStruct *IO);
int (*ReadProc) (struct _TNEFIOStruct *IO, int size, int count, void *dest);
int (*CloseProc) (struct _TNEFIOStruct *IO);
void *data;
} TNEFIOStruct;
typedef struct
{
char *filename;
FILE *fptr;
int Debug;
} TNEFFileInfo;
typedef struct
{
BYTE *dataStart;
BYTE *ptr;
long size;
int Debug;
} TNEFMemInfo;
typedef struct
{
char version[16];
variableLength from;
variableLength subject;
dtr dateSent;
dtr dateReceived;
char messageStatus[10];
char messageClass[50];
char messageID[50];
char parentID[50];
char conversationID[50];
variableLength body;
char priority[10];
Attachment starting_attach;
dtr dateModified;
MAPIProps MapiProperties;
variableLength CodePage;
variableLength OriginalMessageClass;
variableLength Owner;
variableLength SentFor;
variableLength Delegate;
dtr DateStart;
dtr DateEnd;
variableLength AidOwner;
int RequestRes;
int Debug;
TNEFIOStruct IO;
} TNEFStruct;
#endif
|