⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filesystem.h

📁 JK Proxy Project - Version 0.1 ------------------------------ This was going to be a proxy serve
💻 H
字号:
/*
+-----------------------------------------------------------------------------+
|                                                                             |
|   filesystem.h                                                              |
|   Last change: yyyy-mm-dd                                                   |
|                                                                             |
|   Author: Jan Krumsiek                                                      |
|   eMail:  proxy@krumsiek.com                                                |
|   Web:    http://www.krumsiek.com/proxy                                     |
|                                                                             |
|   Copyright 2003 - Jan Krumsiek                                             |
|   This source code can freely be modified and redistributed. No liability   |
|   whatsoever is taken by the author for any use of this software.           |
|                                                                             |
|   Description:                                                              |
|   Header file for filesystem.cpp. Contains prototypes for public function   |
|                                                                             |
+-----------------------------------------------------------------------------+
*/

#ifndef _FILESYSTEM_H_
#define _FILESYSTEM_H_

#include "proxymain.h"

#include "time.h"

struct FILELIST	{ // represents a list of files (e.g. in a directory)
	CHARPTR* files;		// pointer to array of strings
	UINT inum;			// number of files
};


// function prototypes
UINT GetFileLength(CHARPTR path);
void KillFile(CHARPTR file);
int FileExists(CHARPTR name);
void WriteToFile(CHARPTR filepath, CHARPTR data);
void CreateDir(CHARPTR name);
void GetFileCont(CHARPTR filename, CHARPTR* cont, UINT* length);
FILELIST* GetDirContents(CHARPTR dirw);
tm GetFileLWTime(CHARPTR file);
int DeleteFileList(FILELIST* files);


#ifdef WIN32
	CHARPTR GetAppDir();
#endif





#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -