/*! \brief Get information for an address (source file, line number, * function name) * * \param SymbolInfo Pointer to ROSSYM_INFO. * \param RelativeAddress Relative address to look up. * \param LineNumber Pointer to an ULONG which is filled with the line * number (can be NULL) * \param FileName Pointer to an array of CHARs which gets filled with * the filename (can be NULL) * \param FunctionName Pointer to an array of CHARs which gets filled with * the function name (can be NULL) * * \returns NTSTATUS error code. * \retval STATUS_SUCCESS At least one of the requested informations was found. * \retval STATUS_UNSUCCESSFUL None of the requested information was found. */ NTSTATUS KdbSymGetAddressInformation( IN PROSSYM_INFO RosSymInfo, IN ULONG_PTR RelativeAddress, IN PROSSYM_LINEINFO LineInfo) { if (!KdbpSymbolsInitialized || !RosSymInfo || !RosSymGetAddressInformation(RosSymInfo, RelativeAddress, LineInfo)) { return STATUS_UNSUCCESSFUL; } return STATUS_SUCCESS; }
/*! \brief Get information for an address (source file, line number, * function name) * * \param SymbolInfo Pointer to ROSSYM_INFO. * \param RelativeAddress Relative address to look up. * \param LineNumber Pointer to an ULONG which is filled with the line * number (can be NULL) * \param FileName Pointer to an array of CHARs which gets filled with * the filename (can be NULL) * \param FunctionName Pointer to an array of CHARs which gets filled with * the function name (can be NULL) * * \returns NTSTATUS error code. * \retval STATUS_SUCCESS At least one of the requested informations was found. * \retval STATUS_UNSUCCESSFUL None of the requested information was found. */ NTSTATUS KdbSymGetAddressInformation( IN PROSSYM_INFO RosSymInfo, IN ULONG_PTR RelativeAddress, OUT PULONG LineNumber OPTIONAL, OUT PCH FileName OPTIONAL, OUT PCH FunctionName OPTIONAL) { if (!KdbpSymbolsInitialized || !RosSymInfo || !RosSymGetAddressInformation(RosSymInfo, RelativeAddress, LineNumber, FileName, FunctionName)) { return STATUS_UNSUCCESSFUL; } return STATUS_SUCCESS; }