该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
#ifndef _FILEMANAGER_H_#define _FILEMANAGER_H_
#include /// Data Definition
// Function statustypedef int status;
#define ERROR -1
#define FAIL 0
#define OK 1
// Constant
#define NAMESIZE128
#define PATHSIZE128
#define TIMESIZE128
#define STACKSIZE128
typedef struct Time{
int year;
int month;
int day;
int hour;
int minute;
int second;
}
fileTime;
typedef struct File{
charname[NAMESIZE];
unsigned intattrib;
longsize;
fileTimecreationTime;
fileTimeeditTime;
fileTimefinalAccessTime;
charpath[PATHSIZE];
struct File*fileParent;
struct File*leftChild;
struct File*rightBrother;
}
file, folder,*folderHandle;
struct MSG{unsigned int MsgType;}MSG;
struct Exception{signed int ERROR;}EXPTION;
typedef struct stack{
folderHandle currentHandle[STACKSIZE];
int top;
int bottom;
}stack;