HOST_OS.H
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- // host_os.h host operating system classes
- // dave mccaldon (d.mccalden@staffordshire.ac.uk)
- #ifndef HOST_OS_H
- #define HOST_OS_H
- #include "types.h"
- #define NOT_OK 0 // NOT_OK for FIPS to run
- #define OK 1 // OK for FIPS to run
- #define UNKNOWN 2
- class host_os
- {
- public:
- host_os(); // constructor
- virtual int ok () { return status; };
- virtual char *information( char * );
- protected:
- char* (*format)();
- void msdos_version ();
- boolean mswindows_detect ();
- boolean dosemu_detect ();
- boolean desqview_detect ();
- int status; // status value
- int ver_major; // major version number
- int ver_minor; // minor version number
- };
- #endif