hikserver.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #define CPLAYER_API extern"C" __declspec(dllimport)
  2. #define GETSTRING 0
  3. typedef struct{
  4. BYTE m_datatype[64];
  5. BYTE m_channum;
  6. DWORD m_waittime;
  7. DWORD m_bufnum;
  8. }SERVER_VIDEOINFO, *PSERVER_VIDEOINFO;
  9. enum{NORMAL=50,DIALING,SMALLPIC};
  10. CPLAYER_API BOOL __stdcall MP4_ServerStart(PSERVER_VIDEOINFO videoinfo);
  11. CPLAYER_API BOOL __stdcall MP4_ServerStop();
  12. CPLAYER_API BOOL __stdcall MP4_ServerGetState(WORD * clientnum);
  13. CPLAYER_API BOOL __stdcall MP4_ServerCommandToClient(char cCommand,char nChannel);
  14. CPLAYER_API void __stdcall MP4_ServerSetMessage(UINT nMessage,HWND hWnd);
  15. CPLAYER_API void __stdcall MP4_ServerCheckIP(int(CALLBACK *CheckIP)(DWORD nChannel,char* nIP));
  16. CPLAYER_API void __stdcall MP4_ServerCheckPassword(int(CALLBACK *CheckPassword)(char *username,WORD namelen,char *password,WORD passlen));
  17. CPLAYER_API void __stdcall MP4_ServerWriteData(DWORD nChannel,UCHAR *pPacketBuffer,DWORD nPacketSize,int frameType,int breakable);
  18. CPLAYER_API void __stdcall MP4_ServerSetStart(void(CALLBACK *StartCap)(int nChannel));
  19. CPLAYER_API void __stdcall MP4_ServerSetStop(void(CALLBACK *StopCap)(int nChannel));
  20. CPLAYER_API void __stdcall MP4_ServerReadLastMessage(char *m_sIP,char *m_sCommand,WORD *m_wLen);
  21. CPLAYER_API BOOL __stdcall MP4_ServerStringToClient(LPCTSTR m_lAddrIP,char *m_sCommand,WORD m_wLen);
  22. CPLAYER_API void __stdcall MP4_ServerResetChannel(DWORD nChannel);
  23. CPLAYER_API BOOL __stdcall MP4_ServerSetNetPort(WORD dServerPort,WORD dClientPort);
  24. CPLAYER_API BOOL __stdcall MP4_ServerSetTTL(unsigned char cTTLVal);
  25. CPLAYER_API BOOL __stdcall MP4_ServerSetBufNum(DWORD nChannel,WORD dBufNum);
  26. CPLAYER_API void __stdcall MP4_ServerSetIBPMode(void(CALLBACK *SetIBP)(int nChannel,int framerat));
  27. CPLAYER_API BOOL __stdcall MP4_ServerSetWait(DWORD dEachWaitTime,DWORD dTrynum);
  28. CPLAYER_API BOOL __stdcall MP4_ServerStringToClient_other(char nChannel,char *m_sCommand,WORD m_wLen);
  29. CPLAYER_API BOOL __stdcall MP4_ServerChangeChanType(char nChannel,char cType);
  30. CPLAYER_API BOOL __stdcall MP4_ServerChanUser(DWORD nChannel,WORD * clientnum);
  31. CPLAYER_API void __stdcall MP4_ServerSetCapIFrame(void(CALLBACK *MakeIFrame)(int port));
  32. CPLAYER_API DWORD __stdcall MP4_ServerGetSdkVersion();
  33. CPLAYER_API BOOL __stdcall MP4_ServerCastGroup(BOOL bSet,DWORD dChannel,char *sIP,WORD wPort);
  34. CPLAYER_API void __stdcall MP4_ServerWriteDataEx(DWORD nChannel,UCHAR *pPacketBuffer,DWORD nPacketSize,int frameType,int breakable,int nVideoFormat);
  35. CPLAYER_API BOOL __stdcall MP4_ServerMaxUser(DWORD dwChannel,int nMaxNum);
  36. CPLAYER_API BOOL __stdcall MP4_ServerSetHeartbeat(int nKeepAliveTimeOut);
  37. CPLAYER_API BOOL __stdcall MP4_ServerSetMR(LPCTSTR strFirstMRIP,LPCTSTR strSecondMRIP,WORD wFirstMRPort,WORD wSecondMRPort);
  38. int CALLBACK checkpassword(char *username,WORD namelen,char *password,WORD passlen);
  39. int CALLBACK CheckIP(DWORD nChannel,char* nIP);
  40. void CALLBACK StartCap(int port);
  41. void CALLBACK StopCap(int port);