2003-01-01_proxymain.h

来自「JK Proxy Project - Version 0.1 --------」· C头文件 代码 · 共 51 行

H
51
字号
/*
+-----------------------------------------------------------------------------+
|                                                                             |
|   proxymain.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 proxymain.cpp. Contains several typedefs and a lot of     |
|   prototypes for all public functions.                                      |
|                                                                             |
+-----------------------------------------------------------------------------+
*/

#ifndef _proxymain_h_
#define _proxymain_h_

#include "iostream.h"
#include "stdio.h"

typedef unsigned short USHORT;
typedef unsigned int UINT;
typedef char* CHARPTR;

// global constants
#define CRLF "\x0D\x0A"


// Prototypes
void GetFileCont(CHARPTR filename, CHARPTR* cont, UINT* length);
void* CopyAndPtr(void* src, UINT length);
void ErrorAbort();
CHARPTR GetID();
void LoadSettings();
CHARPTR ConnectStrings(CHARPTR str1, CHARPTR str2);
void CreateDir(CHARPTR name);
CHARPTR GetFilename();
void WriteToFile(CHARPTR filepath, CHARPTR data);
UINT GetFileLength(CHARPTR path);
void KillFile(CHARPTR file);
int FileExists(CHARPTR name);
void WriteToLog(FILE* logfile, CHARPTR entry);

#endif

⌨️ 快捷键说明

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