ncfile.h

来自「演示如何通过DeviceIoControl来读写硬盘的示例demo」· C头文件 代码 · 共 49 行

H
49
字号
/*
  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 + =
减小字号Ctrl + -
显示快捷键?