------------------------------------------------------------------------------------ Returns parameters for function in.api file, or - 1 if not found ------------------------------------------------------------------------------------
| 1919 | // Returns parameters for function in.api file, or - 1 if not found |
| 1920 | // ------------------------------------------------------------------------------------ |
| 1921 | int 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 |
no test coverage detected