SymSetScopeFromIndex function dbghelp

Win32Result<bool> SymSetScopeFromIndex(
  1. HANDLE hProcess,
  2. int baseOfDll,
  3. int index
)

Sets the local scope to the symbol that matches the specified index.

To learn more, see learn.microsoft.com/windows/win32/api/dbghelp/nf-dbghelp-symsetscopefromindex.

Implementation

Win32Result<bool> SymSetScopeFromIndex(
  HANDLE hProcess,
  int baseOfDll,
  int index,
) {
  final result_ = SymSetScopeFromIndex_Wrapper(hProcess, baseOfDll, index);
  return .new(value: result_.value.i32 != FALSE, error: result_.error);
}