//---------------------------------------------------------------------
//Routine Description:
// the DLL(Dynamic-Link Library) only one interface function
//
// Return Value:
// if the function succeeds, the return value is MH_SUCCESS
// if the function fails, the return valuse is error code
// For details on error code, see the ErrCode.txt
//
//Parameters:
// pmdp
// Points to a MH_DLL_PARA structure. You must fill the
// structure with the appropriate command and data before
// passing it to the function, and it to be filled in by
// this function.
//
//typedef struct _MH_DLL_PARA
//{
// BYTE Command;
// BYTE Cascade;
// WORD DogAddr;
// WORD DogBytes;
// DWORD DogPassword;
// DWORD DogResult;
// BYTE DogData[200];
//} MH_DLL_PARA;
//
// Command code:
//1 DogCheck
//2 ReadDog
//3 WriteDog
//4 DogConvert
//5 GetCurrentNo
//6 EnableShare
//7 DisableShare
//
//----------------------------------------------------------------------
BYTE fdogdata[200] = {0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x03,0xD6,
0x49,0x4B,0xCF,0x00,0x00,0x4B,0xCF,0x00,0x00,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x9F,0x4B,0xCF,0x00,0x00,0x00,0x4B,0xCF,0x00,
0x00,0x00,0x00,0x00,0x00,0x86,0x2E,0x52,0x85,0x07,0xF5,0x0F,0xB0,0xF6,
0x59,0xAB,0x86,0x48,0x32,0xEA,0x95,0x08,0xB9,0xF9,0x26,0x28,0x6F,0x43,
0x1D,0xD1,0xC5,0xA2,0x35,0x30,0x3A,0x2D,0x71,0xF3,0x25,0x17,0x4E,0x7F,
0xEB,0xCD,0xA8,0xFC,0xD4,0xE9,0xC5,0x48,0x28,0x02,0x89,0xF8,0xEF,0x02,
0x39,0x6A,0xEC,0x1F,0xE2,0x1B,0x16,0xED,0xBC,0x2F,0x4B,0xD6,0x91,0x87,
0x73,0x54,0xA9,0x23,0xC2,0x3B,0x1B,0x41,0x64,0x88,0x11,0x0F,0x33,0xDF,
0xEC,0x31,0xC2,0x40,0xC7,0x17,0x74,0x1D,0x3E,0x55,0xC4,0x60,0x14,0xF4,
0x91,0x74,0x8B,0x07,0x8C,0xF5,0x02,0x50,0x99,0x13,0xB8,0x6C,0x46,0x46,
0x4C,0x3C,0x1B,0x72,0xCC,0xFA,0xF7,0x02,0xEE,0xCF,0x3B,0x1F,0x54,0x2C,
0xE2,0x99,0x56,0xE3,0x68,0x99,0x5D,0x40,0x8A,0xAE,0x2B,0xED,0xB7,0x59,
0x19,0x2C,0x5E,0xA6,0xC4,0xF7,0xD3,0xF0,0x1A,0xA7,0x00,0x61,0x38,0xBD,
0x9C,0x4E,0x30,0x53,0xAA,0x55,0xAA,0x55};
unsigned long PASCAL GS_MHDog(PMH_DLL_PARA pmdp)
{
MHSTATUS resu;