38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
// TrackPoints.h : main header file for the TrackPoints DLL
|
|
//
|
|
|
|
#pragma once
|
|
// #define bool bool
|
|
#if defined(_WIN64)
|
|
typedef __int64 INT_PTR, *PINT_PTR;
|
|
typedef unsigned __int64 UINT_PTR, *PUINT_PTR;
|
|
|
|
typedef __int64 LONG_PTR, *PLONG_PTR;
|
|
typedef unsigned __int64 ULONG_PTR, *PULONG_PTR;
|
|
|
|
#define __int3264 __int64
|
|
|
|
#else
|
|
typedef _W64 int INT_PTR, *PINT_PTR;
|
|
typedef _W64 unsigned int UINT_PTR, *PUINT_PTR;
|
|
|
|
typedef _W64 long LONG_PTR, *PLONG_PTR;
|
|
typedef _W64 unsigned long ULONG_PTR, *PULONG_PTR;
|
|
|
|
#define __int3264 __int32
|
|
|
|
#endif
|
|
|
|
typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR;
|
|
|
|
#define MAKEWORD(a, b) ((WORD)(((BYTE)(((DWORD_PTR)(a)) & 0xff)) | ((WORD)((BYTE)(((DWORD_PTR)(b)) & 0xff))) << 8))
|
|
#define MAKELONG(a, b) ((LONG)(((WORD)(((DWORD_PTR)(a)) & 0xffff)) | ((DWORD)((WORD)(((DWORD_PTR)(b)) & 0xffff))) << 16))
|
|
#define LOWORD(l) ((WORD)(((DWORD_PTR)(l)) & 0xffff))
|
|
#define HIWORD(l) ((WORD)((((DWORD_PTR)(l)) >> 16) & 0xffff))
|
|
#define LOBYTE(w) ((BYTE)(((DWORD_PTR)(w)) & 0xff))
|
|
#define HIBYTE(w) ((BYTE)((((DWORD_PTR)(w)) >> 8) & 0xff))
|
|
|
|
int TrackPoints(double nDevi,double nAzim,double rlev,double &XE,double &YN,double &ZD,double &HOFF0,double &HOAZ0,double >D0,double &AZIM0);
|
|
int initTrackPoints(double azca,double tvd,double dxe,double dyn,double rlev=0,double GLDDDEP0=30,double hoff=0);
|
|
//#include "DepthProgress.h"
|