DbgHelpSymEnumSymbols Method
Enumerates all symbols in a process.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("DbgHelp.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool SymEnumSymbols(
IntPtr hProcess,
ulong baseOfDll,
string mask,
DelegatesSymEnumSymbolsProc enumSymbolsCallback,
IntPtr userContext
)
<DllImportAttribute("DbgHelp.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function SymEnumSymbols (
hProcess As IntPtr,
baseOfDll As ULong,
mask As String,
enumSymbolsCallback As DelegatesSymEnumSymbolsProc,
userContext As IntPtr
) As Boolean
Dim hProcess As IntPtr
Dim baseOfDll As ULong
Dim mask As String
Dim enumSymbolsCallback As DelegatesSymEnumSymbolsProc
Dim userContext As IntPtr
Dim returnValue As Boolean
returnValue = DbgHelp.SymEnumSymbols(hProcess,
baseOfDll, mask, enumSymbolsCallback,
userContext)
public:
[DllImportAttribute(L"DbgHelp.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static bool SymEnumSymbols(
IntPtr hProcess,
unsigned long long baseOfDll,
String^ mask,
DelegatesSymEnumSymbolsProc^ enumSymbolsCallback,
IntPtr userContext
)
[<DllImportAttribute("DbgHelp.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member SymEnumSymbols :
hProcess : IntPtr *
baseOfDll : uint64 *
mask : string *
enumSymbolsCallback : DelegatesSymEnumSymbolsProc *
userContext : IntPtr -> bool
No code example is currently available or this language may not be supported.
- hProcess IntPtr
-
A handle to a process.
This handle must have been previously passed to the SymInitialize(IntPtr, String, Boolean) function.
- baseOfDll UInt64
-
The base address of the module.
If this value is zero and mask parameter contains an exclamation point (!),
the function looks across modules.
If this value is zero and mask parameter does not contain an exclamation point,
the function uses the scope established by the SymSetContext function.
- mask String
-
A wildcard string that indicates the names of the symbols to be enumerated.
The text can optionally contain the wildcards, "*" and "?".
- enumSymbolsCallback DelegatesSymEnumSymbolsProc
-
A DelegatesSymEnumSymbolsProc callback function that receives the symbol information.
- userContext IntPtr
-
A user-defined value that is passed to the callback function, or Zero.
This parameter is typically used by an application to pass a pointer to a data structure
that provides context for the callback function.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.