win32dll.h

来自「看门狗接口」· C头文件 代码 · 共 86 行

H
86
字号

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the WIN32DLL_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// WIN32DLL_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#define WIN32DLL_API __declspec(dllexport)

#ifndef ULONG
#define ULONG unsigned long
#endif

#ifndef HUINT
#define HUINT unsigned short
#endif

#ifndef UCHAR
#define UCHAR unsigned char
#endif

#ifndef WORD
#define WORD unsigned short
#endif

#define MHSTATUS ULONG
#pragma pack(1)
    typedef struct _QA_DLL_PARA
    {
    	BYTE	Command;
		BYTE	DogCascade;
    	BYTE	OperationNo;
    	WORD	DogAddr1;
		WORD	DogAddr2;
    	WORD	DogBytes;
    	DWORD	DogPassword;
    	DWORD	DogResult;
    	BYTE	DogData[200];
    }QA_DLL_PARA, * PQA_DLL_PARA;
#pragma pack()
//	unsigned long FAR PASCAL GS_MHDog(PMH_DLL_PARA pmdp);

#ifdef  __cplusplus
extern "C" {
#endif

WIN32DLL_API unsigned long GS_QADog(PQA_DLL_PARA pmdp);
short int DogBytes, DogAddr1, DogAddr2;
unsigned long DogPassword;
unsigned long DogResult;
BYTE OperationNo, DogCascade;
void * DogData;

extern DWORD DogCheck(void);
extern DWORD ReadDog(void);
extern DWORD WriteDog(void);
extern DWORD BogusRead(void);
extern DWORD BogusWrite(void);
extern DWORD WriteOnly(void);
extern DWORD WriteExpressions(void);
extern DWORD Compare(void);
extern DWORD Operation(void);
extern DWORD GetCurrentNo(void);
extern DWORD DisableShare(void);
extern DWORD EnableShare(void);

#ifdef  __cplusplus
}
#endif
 
#define DOGCHECK			1
#define READDOG				2
#define WRITEDOG			3
#define BOGUSREAD			4
#define BOGUSWRITE			5
#define GETCURRENTNO		6
#define COMPARE				7
#define OPERATION			8
#define WRITEEXPRESSIONS	9
#define WRITEONLY			10
#define DISABLESHARE		11
#define ENABLESHARE			12



⌨️ 快捷键说明

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