⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utils.h

📁 一个基于windriver开发的
💻 H
字号:
#ifndef _WD_UTILS_H_
#define _WD_UTILS_H_

#if !defined(WIN16)
    #include "windrvr.h"
#endif

#if defined(__cplusplus)
extern "C" {
#endif

typedef enum 
{
    OS_NOT_SET = 0,
    OS_CAN_NOT_DETECT,
    OS_WIN_95,
    OS_WIN_98,
    OS_WIN_NT_4,
    OS_WIN_NT_5,
    OS_LINUX,
    OS_SOLARIS,
    OS_VXWORKS,
    OS_OS2,
} OS_TYPE;

OS_TYPE get_os_type();

#if !defined MAX_PATH
    #define MAX_PATH 4096
#endif

#if !defined(WIN16)

void replace_slashes(char *sPath, BOOL dos_to_unix);

typedef void (*HANDLER_FUNC)(void *pData);

#if !(defined(WIN32) || defined(WIN16)) || defined(WINCE) || defined(_MT) 
DWORD DLLCALLCONV ThreadStart(HANDLE *phThread, HANDLER_FUNC pFunc, void *pData);
void DLLCALLCONV ThreadStop(HANDLE hThread);
#endif

DWORD DLLCALLCONV OsEventCreate(HANDLE *phOsEvent);
void DLLCALLCONV OsEventClose(HANDLE hOsEvent);
DWORD DLLCALLCONV OsEventWait(HANDLE hOsEvent, DWORD dwSecTimeout);
DWORD DLLCALLCONV OsEventSignal(HANDLE hOsEvent);
void DLLCALLCONV PrintDbgMessage(DWORD dwLevel, DWORD dwSection, 
    const char *format, ...);

#endif // !defined(WIN16)

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -