#include "..\RpcCommon\RpcView.h" #include "internalRpcDecompTypeDefs.h" #include "internalTypeTools.h" #include "internalComplexTypesArrays.h" #include "internalComplexTypesPointers.h" #include "internalComplexTypesStrings.h" #include "internalComplexTypesStructs.h" #include "internalComplexTypesUnions.h" #include "internalRpcUtils.h" #define DEFAULT_ENUM "\n\ /* \n\ // this is the default enum referenced by all functions and structures using an enum \n\ typedef enum enum32_toDefine_t\n\ {\n\ value_0 = 0,\n\ value_1 = 1,\n\ //...\n\ }enum32_toDefine_t;\n\ */\n" //------------------------------------------------------------------------------ void __fastcall printDefaultEnum( _Inout_ std::ostringstream& oss) { oss <& listAdditionalType, _Inout_ std::ostringstream& oss) { BOOL bResult = FALSE; RpcDecompilerCtxt_T * pRpcDecompilerCtxt = (RpcDecompilerCtxt_T *) pContext; RVA_T pType; if (pRpcDecompilerCtxt == NULL) return FALSE; if (pRpcDecompilerCtxt->pRpcViewHelper == NULL) return FALSE; if(pRpcDecompilerCtxt->pRpcDecompilerInfo->pTypeFormatString == NULL) return FALSE; RPC_DEBUG_FN((UCHAR*)"\n\n******************** printType *********************"); pType = typeToDefine.getRva(); //RPC_GET_PROCESS_DATA( // pType, // &elementType, // sizeof(BYTE) // ); #ifdef DBG_DECOMP oss << std::endl << "/* pType : 0x"<