00001 #ifndef INCLUDE_UTILS_FILE_H 00002 #define INCLUDE_UTILS_FILE_H 00003 00004 // for file 00005 #include "myString.h" 00006 00007 DWORD MyFileSize(char *fileName); 00008 00009 #define TS_NO_FILE 1 00010 #define TS_OK 2 00011 #define TS_ERROR_SIZE 3 00012 // Test du fichier et de ca taille si indique (<> -1) 00013 00014 #define BUFFER_SIZE 1024 00015 00016 int MyTestSize(char *fileName,long size) ; 00017 int MyMkDir(char *dir); 00018 int MyDelFile(char *curDir,char *file); 00019 int MyDelTree (char *curDir); 00020 void MyOpenBrowser (char *url); 00021 BOOL GetFullM3UPath (MyString &pathCur,MyString &m3uPath,MyString &fullPath); 00022 char * GetPathAndFile (MyString &pathFile); 00023 DWORD CheckSumFile (char *fileName); 00024 DWORD CheckSumFile (char *fileName,DWORD sizeCheck); 00025 DWORD CheckSumFile (char *fileName,BOOL isSizeCompute,DWORD dataBeginPos,DWORD dataEndPos); 00026 00027 #endif