📄 decode2.h
字号:
// decode2.h : main header file for the DECODE2 DLL
//
#if !defined(AFX_DECODE2_H__BE4D5F95_D983_452F_A836_C445F91A9348__INCLUDED_)
#define AFX_DECODE2_H__BE4D5F95_D983_452F_A836_C445F91A9348__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
#include "lssu2.h"
#include "isup2.h"
#include "tup2.h"
#include "sccp2.h"
#include "snmu2.h"
#include "stmu2.h"
#define DECODE_DLLAPI __declspec(dllexport) //added by me.
/////////////////////////////////////////////////////////////////////////////
// CDecode2App
// See decode2.cpp for the implementation of this class
//
#define MAX_DATA_BYTE_NUMBER (16) //送显示的缩略数据长度
/* 64K
#define SS7_FISU_LENGTH (3) //FISU 的长度
#define SS7_LSSU_LENGTH (4) //FISU 的长度
*/
// 2M
#define SS7_FISU_LENGTH (6) //FISU 的长度
#define SS7_LSSU_LENGTH (7) //FISU 的长度
#define SS7_SI_MASK (0x0F)
/* 64K
#define SS7_SI_OFFSET (3)
*/
//2M
#define SS7_SI_OFFSET (6)
#define SS7_SI_SNMU (0)
#define SS7_SI_STMU (1)
#define SS7_SI_SCCP (3)
#define SS7_SI_TUP (4)
#define SS7_SI_ISUP (5)
class CDecodeApp2 : public CWinApp
{
public:
CLssu2 m_lssu;
CIsup2 m_isup;
CTup2 m_tup;
CSccp2 m_sccp;
CSnmu2 m_snmu;
CStmu2 m_stmu;
public:
CDecodeApp2();
BOOL GetH1H0(BYTE *u_pMsg, DWORD u_msgLength, char *v_pH1H0);
BOOL GetSls(BYTE *u_pMsg, DWORD u_msgLength, char *v_pSls);
BOOL GetCic(BYTE *u_pMsg, DWORD u_msgLength, char *v_pCic);
BOOL GetData(BYTE *u_pMsg, DWORD u_msgLength, char *v_pData);
BOOL GetMessageContent(BYTE *u_pMsg, DWORD u_msgLength, char *v_pDecodeResult);
BOOL GetMessageDecodeInfo(BYTE *u_pMsg, DWORD u_msgLength, char *v_pDecodeResult);
BOOL msuHeadDecode(BYTE *u_pMsg, char *v_pDecodeResult, int *v_pHeadStrLen);
void fisuDecode(BYTE *u_pMsg, char *v_pDecodeResult);
char *ConvertOneByte(BYTE u_byte, char *v_pOutput);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDecodeApp)
//}}AFX_VIRTUAL
//{{AFX_MSG(CDecodeApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DECODE_H__A2D9F2F0_18BB_428D_9E39_B5A1FDBCDF75__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -