MCPcopy Create free account
hub / github.com/ThunderCls/xAnalyzer / GetFunctionParamCount

Function GetFunctionParamCount

xAnalyzer/xanalyzer.cpp:1921–1935  ·  view source on GitHub ↗

------------------------------------------------------------------------------------ Returns parameters for function in.api file, or - 1 if not found ------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1919// Returns parameters for function in.api file, or - 1 if not found
1920// ------------------------------------------------------------------------------------
1921int GetFunctionParamCount(LPSTR lpszApiModule, string lpszApiFunction)
1922{
1923 if (lpszApiModule == NULL || lpszApiFunction.length() == 0)
1924 return -1;
1925
1926 if (apiDefPointer != apiFiles.end())
1927 {
1928 string params = apiDefPointer->second->GetValue(lpszApiFunction, "ParamCount");
1929 // check if key is found
1930 if (!params.empty() && IsHex(params.c_str()))
1931 return atoi(params.c_str());
1932 }
1933
1934 return 0;
1935}
1936
1937// ------------------------------------------------------------------------------------
1938// Returns parameter type and name for a specified parameter of a function in a api file

Callers 1

xanalyzer.cppFile · 0.85

Calls 2

IsHexFunction · 0.85
GetValueMethod · 0.80

Tested by

no test coverage detected