Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
adf_nativ.h
Package: adfview_src.zip [view]
Upload User: hy_wanghao
Upload Date: 2007-01-08
Package Size: 279k
Code Size: 1k
Category:
Shell api
Development Platform:
Visual C++
- /*
- * adf_nativ_.h
- *
- * file
- */
- #ifndef ADF_NATIV_H
- #define ADF_NATIV_H
- #include<stdio.h>
- #include"adf_str.h"
- #define NATIVE_FILE 8001
- #ifndef BOOL
- #define BOOL int
- #endif
- #ifndef RETCODE
- #define RETCODE long
- #endif
- struct nativeDevice{
- FILE* fd;
- };
- struct nativeFunctions{
- /* called by adfMount() */
- RETCODE (*adfInitDevice)(struct Device*, char*,BOOL);
- /* called by adfReadBlock() */
- RETCODE (*adfNativeReadSector)(struct Device*, long, int, unsigned char*);
- /* called by adfWriteBlock() */
- RETCODE (*adfNativeWriteSector)(struct Device*, long, int, unsigned char*);
- /* called by adfMount() */
- BOOL (*adfIsDevNative)(char*);
- /* called by adfUnMount() */
- RETCODE (*adfReleaseDevice)();
- };
- void adfInitNativeFct();
- RETCODE myReadSector(struct Device *dev, long n, int size, unsigned char* buf);
- RETCODE myWriteSector(struct Device *dev, long n, int size, unsigned char* buf);
- RETCODE myInitDevice(struct Device *dev, char* name,BOOL);
- RETCODE myReleaseDevice(struct Device *dev);
- BOOL myIsDevNative(char*);
- #endif /* ADF_NATIV_H */
- /*#######################################################################################*/