📄 ncfile.h
字号:
/*
Notice: Copyright(c) - All Rights Reserved
$Source: H:/SrcBak/cvsroot/clone/protocol/include/ncfile.h,v $
$Author: Snowtree $
$Revision: 1.2 $
$Date: 2006/05/31 16:06:24 $
*/
/**
\brief: network clone file module interface
*/
#ifndef __NC_FILE_H__
#define __NC_FILE_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _WIN32
#define DISK0 "\\\\.\\PhysicalDrive0"
#else
#define DISK0 "/dev/hda"
#endif //
#include "defines.h"
#define NC_O_RDONLY 1
#define NC_O_WRONLY 2
#define NC_O_RDWR 3
#define NC_S_READ 1
#define NC_S_WRITE 2
int NCFileOpen (const char *file, int oflags);
int NCFileClose(int handle);
int NCFileRead (int handle, void *buffer, u32 count, s64 position);
int NCFileWrite(int handle, void *buffer, u32 count, s64 position);
s64 NCFileSize (int handle);
#ifdef __cplusplus
}
#endif
#endif //__NC_FILE_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -