You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
276 lines
7.7 KiB
276 lines
7.7 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: StdAfx.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of StdAfx.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __STD__AFX__H__INCLUDED__
|
|
#define __STD__AFX__H__INCLUDED__
|
|
|
|
#if defined( __MSDOS__ ) && defined( __DJGPP__ )
|
|
#include <stdint.h>
|
|
// Dos Mode Explicit
|
|
#define INCLUDE_WINDOWS_DEFINITIONS
|
|
// Clean BORLAND types
|
|
#define far
|
|
#define __interrupt
|
|
#define interrupt
|
|
|
|
#include <go32.h>
|
|
#include <dpmi.h>
|
|
#include <sys/farptr.h>
|
|
#include <sys/nearptr.h>
|
|
#include <unistd.h>
|
|
|
|
#define _T( a ) ((char *) a )
|
|
#include <ctime>
|
|
#include <cstring>
|
|
#include <time.h>
|
|
#include <stdio.h>
|
|
|
|
#define VOID void
|
|
#define PVOID void*
|
|
#define BYTE uint8_t
|
|
#define PBYTE uint8_t*
|
|
#define LPBYTE uint8_t*
|
|
#define WORD uint16_t
|
|
#define PWORD uint16_t*
|
|
#define LPWORD uint16_t*
|
|
#define DWORD uint32_t
|
|
#define PDWORD uint32_t*
|
|
#define LPDWORD uint32_t*
|
|
#define INT int16_t
|
|
#define PINT int16_t*
|
|
#define LPINT int16_t*
|
|
#define LONG int32_t
|
|
#define PLONG int32_t*
|
|
#define LPLONG int32_t*
|
|
#define CHAR char
|
|
#define PCHAR char*
|
|
#define BOOL bool
|
|
#define PBOOL bool*
|
|
#define FALSE false
|
|
#define TRUE true
|
|
#define IN
|
|
#define OUT
|
|
#define INOUT
|
|
#define MAX_PATH 256
|
|
#define TCHAR CHAR
|
|
#define PSTR CHAR*
|
|
#define LPSTR CHAR*
|
|
#define LPTSTR LPSTR
|
|
#define LPCSTR const CHAR*
|
|
#define LPCTSTR const CHAR*
|
|
#define FLOAT float
|
|
#define PFLOAT FLOAT*
|
|
#define LPFLOAT FLOAT far*
|
|
#define DOUBLE double
|
|
#define PDOUBLE DOUBLE*
|
|
#define LPDOUBLE DOUBLE far*
|
|
//#define LPDWORD DWORD far*
|
|
#define PVOID void*
|
|
#define LPVOID void far*
|
|
#define SHORT int
|
|
#define INT16 int
|
|
#define INT32 long
|
|
|
|
typedef struct _FILETIME
|
|
{
|
|
DWORD dwLowDateTime;
|
|
DWORD dwHighDateTime;
|
|
}FILETIME, *PFILETIME;
|
|
|
|
#define LOBYTE(a) (a&0xFF)
|
|
#define HIBYTE(a) (a>>8)
|
|
#define MAKEWORD(l,h) ((((WORD)h)<<8)|l)
|
|
|
|
#define INFINITE 0xFFFFFFFFUL
|
|
|
|
#include <stdio.h>
|
|
#include <malloc.h>
|
|
#include <mem.h>
|
|
#include <math.h>
|
|
#include <sys\stat.h>
|
|
#include <io.h>
|
|
#include <dos.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
#include <mem.h>
|
|
#include <dos.h>
|
|
#include <dir.h>
|
|
|
|
#define LGLOG
|
|
#define LOG_LEVEL_LOW 0
|
|
#define LOG_LEVEL_REALTIME 1
|
|
#define LOG_TYPE_WARNING 0
|
|
#define LOG_TYPE_ERROR 1
|
|
#define LOG_TYPE_INFO 2
|
|
|
|
#ifdef DEBUG_PRINTOUT_MSGS
|
|
//printf
|
|
#include "dosdebug.h"
|
|
#endif
|
|
|
|
// "tchar.h"
|
|
#define _tfopen fopen
|
|
#define _fgetts fgets
|
|
#define _tcsstr strstr
|
|
#define _tcstok strtok
|
|
#define _ttoi atoi
|
|
#define _stprintf sprintf
|
|
#define _stscanf sscanf
|
|
#define _tcsftime strftime
|
|
#else
|
|
#ifdef INCLUDE_WINDOWS_DEFINITIONS
|
|
#define VOID void
|
|
#define PVOID void*
|
|
#define BYTE unsigned char
|
|
#define PBYTE BYTE*
|
|
#define LPBYTE BYTE far*
|
|
#define WORD unsigned
|
|
#define PWORD WORD*
|
|
#define LPWORD WORD far*
|
|
#define DWORD unsigned long
|
|
#define PDWORD DWORD*
|
|
#define LPDWORD DWORD far*
|
|
#define INT signed int
|
|
#define PINT INT*
|
|
#define LPINT INT far*
|
|
#define LONG signed long
|
|
#define PLONG LONG*
|
|
#define LPLONG LONG far*
|
|
#define CHAR char
|
|
#define PCHAR CHAR*
|
|
#define BOOL BYTE
|
|
#define PBOOL BOOL*
|
|
#define FALSE ((BYTE)0)
|
|
#define TRUE ((BYTE)1)
|
|
#define IN
|
|
#define OUT
|
|
#define INOUT
|
|
#define MAX_PATH 256
|
|
#define TCHAR CHAR
|
|
#define PSTR CHAR*
|
|
#define LPSTR CHAR*
|
|
#define LPTSTR LPSTR
|
|
#define LPCSTR const CHAR*
|
|
#define LPCTSTR const CHAR*
|
|
#define FLOAT float
|
|
#define PFLOAT FLOAT*
|
|
#define LPFLOAT FLOAT far*
|
|
#define DOUBLE double
|
|
#define PDOUBLE DOUBLE*
|
|
#define LPDOUBLE DOUBLE far*
|
|
#define LPDWORD DWORD far*
|
|
#define PVOID void*
|
|
#define LPVOID void far*
|
|
#define SHORT int
|
|
#define INT16 int
|
|
#define INT32 long
|
|
|
|
typedef struct _FILETIME
|
|
{
|
|
DWORD dwLowDateTime;
|
|
DWORD dwHighDateTime;
|
|
}FILETIME, *PFILETIME;
|
|
|
|
#define LOBYTE(a) (a&0xFF)
|
|
#define HIBYTE(a) (a>>8)
|
|
#define MAKEWORD(l,h) ((((WORD)h)<<8)|l)
|
|
|
|
#define INFINITE 0xFFFFFFFFUL
|
|
|
|
#include <stdio.h>
|
|
#include <malloc.h>
|
|
#include <mem.h>
|
|
#include <math.h>
|
|
#include <sys\stat.h>
|
|
#include <io.h>
|
|
#include <dos.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
#include <mem.h>
|
|
#include <dos.h>
|
|
#include <dir.h>
|
|
|
|
#define LGLOG
|
|
#define LOG_LEVEL_LOW 0
|
|
#define LOG_LEVEL_REALTIME 1
|
|
#define LOG_TYPE_WARNING 0
|
|
#define LOG_TYPE_ERROR 1
|
|
#define LOG_TYPE_INFO 2
|
|
|
|
#ifdef DEBUG_PRINTOUT_MSGS
|
|
//printf
|
|
#include "dosdebug.h"
|
|
#endif
|
|
|
|
|
|
|
|
// "tchar.h"
|
|
#define _T(a) a
|
|
#define _tfopen fopen
|
|
#define _fgetts fgets
|
|
#define _tcsstr strstr
|
|
#define _tcstok strtok
|
|
#define _ttoi atoi
|
|
#define _stprintf sprintf
|
|
#define _stscanf sscanf
|
|
#define _tcsftime strftime
|
|
|
|
|
|
#else // INCLUDE_WINDOWS_DEFINITIONS
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#define farfree free
|
|
#define farmalloc malloc
|
|
#define farrealloc realloc
|
|
#define _fmemset memset
|
|
|
|
// fake definitions
|
|
#define _rtl_chmod
|
|
#define FA_ARCH 0
|
|
|
|
#include <math.h>
|
|
#include <time.h>
|
|
#include <stdio.h>
|
|
#include <windows.h>
|
|
#include <tchar.h>
|
|
#include "..\LgLib\lglogger.h"
|
|
|
|
|
|
//#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
#include <tchar.h>
|
|
#include <stdio.h>
|
|
#include <process.h>
|
|
#include <malloc.h>
|
|
#include <conio.h>
|
|
#include <math.h>
|
|
#include <time.h>
|
|
#include <stdlib.h>
|
|
#include <shlwapi.h>
|
|
#include <mmsystem.h>
|
|
#include <ole2.h>
|
|
#include <limits.h>
|
|
#include <float.h>
|
|
#include <deque>
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
|
|
#endif // INCLUDE_WINDOWS_DEFINITIONS
|
|
#endif // DOS DJGPP
|
|
|
|
#endif
|