fdhwlib
2.0.25
|
00001 //+------------------------------------------------------------------- 00002 // 00003 // 00004 // Copyright (C) Silicon Software GmbH, 1999. 00005 // 00006 // File: os_type.h 00007 // 00008 // Contents: 00009 // 00010 // 00011 // 00012 //-------------------------------------------------------------------- 00013 00014 #ifndef __OSTYPE 00015 #define __OSTYPE 00016 00017 #ifndef LINUX 00018 #define _WINNT 00019 #endif 00020 00021 #ifdef LINUX 00022 00023 typedef unsigned long OVERLAPPED; 00024 typedef unsigned long ULONG; 00025 typedef unsigned int UINT; 00026 typedef void* PVOID; 00027 typedef unsigned long DWORD; 00028 typedef int HKEY; 00029 00030 #define HKEY_LOCAL_MACHINE 0 00031 #define KEY_READ 0 00032 #define HANDLE int 00033 00034 #define ERROR_SUCCESS 0 00035 #define ERROR_IO_PENDING -10 00036 00037 int RegOpenKeyEx(int hkl, char *,int tag,int key,int *hKeyFileType); 00038 00039 int RegQueryValueEx(int hKeyFileType,char *hap_path,int tag,DWORD *dwType,unsigned char* szBuffer,DWORD *dwBytes); 00040 00041 void RegCloseKey(int hKeyFileType); 00042 00043 #ifdef __cplusplus 00044 extern "C" long GetTickCount(); 00045 #else 00046 long GetTickCount(); 00047 #endif 00048 int GetLastError(); 00049 00050 int CancelIo(int); 00051 int Sleep(int); 00052 00053 #include <stdlib.h> 00054 #include <string.h> 00055 #include <unistd.h> 00056 #include <ctype.h> 00057 #include <sys/ioctl.h> 00058 #include <sys/mman.h> 00059 00060 #endif 00061 00062 #endif 00063 00064