HyperDbg Debugger
Loading...
Searching...
No Matches
codeview-rsds.cpp File Reference

Bounded in-memory CodeView RSDS parser. More...

#include "pch.h"

Functions

BOOLEAN SymExtractCodeViewRsdsInfoFromPeImage (const BYTE *ImageBase, SIZE_T ImageSize, CHAR *PdbFileName, SIZE_T PdbFileNameSize, GUID *Guid, DWORD *Age)
 Extracts CodeView RSDS information from a PE image in memory, interpreting the image as it would be laid out on disk.
BOOLEAN SymExtractCodeViewRsdsInfoFromLoadedPeImage (const BYTE *ImageBase, SIZE_T ImageSize, CHAR *PdbFileName, SIZE_T PdbFileNameSize, GUID *Guid, DWORD *Age)
 Extracts CodeView RSDS information from a PE image in memory, interpreting the image as it would be laid out in memory when loaded (i.e., using loaded image offsets).

Detailed Description

Bounded in-memory CodeView RSDS parser.

Author
jtaw5649
Version
0.19
Date
2026-06-02

Function Documentation

◆ SymExtractCodeViewRsdsInfoFromLoadedPeImage()

BOOLEAN SymExtractCodeViewRsdsInfoFromLoadedPeImage ( const BYTE * ImageBase,
SIZE_T ImageSize,
CHAR * PdbFileName,
SIZE_T PdbFileNameSize,
GUID * Guid,
DWORD * Age )

Extracts CodeView RSDS information from a PE image in memory, interpreting the image as it would be laid out in memory when loaded (i.e., using loaded image offsets).

Parameters
ImageBaseThe base address of the PE image in memory
ImageSizeThe size of the PE image in bytes
PdbFileNameAn output buffer to receive the base name of the PDB file extracted from the CodeView data. Must be at least PdbFileNameSize bytes
PdbFileNameSizeThe size of the PdbFileName buffer in bytes
GuidAn output pointer to receive the GUID extracted from the CodeView data
AgeAn output pointer to receive the age extracted from the CodeView data
Returns
BOOLEAN TRUE if the CodeView RSDS information was successfully extracted, FALSE otherwise (e.g., if image is invalid or does not contain valid RSDS information)
557{
558 return SymExtractCodeViewRsdsInfoFromPeImageInternal(ImageBase, ImageSize, PdbFileName, PdbFileNameSize, Guid, Age, TRUE);
559}
#define TRUE
Definition BasicTypes.h:114

◆ SymExtractCodeViewRsdsInfoFromPeImage()

BOOLEAN SymExtractCodeViewRsdsInfoFromPeImage ( const BYTE * ImageBase,
SIZE_T ImageSize,
CHAR * PdbFileName,
SIZE_T PdbFileNameSize,
GUID * Guid,
DWORD * Age )

Extracts CodeView RSDS information from a PE image in memory, interpreting the image as it would be laid out on disk.

Parameters
ImageBaseThe base address of the PE image in memory
ImageSizeThe size of the PE image in bytes
PdbFileNameAn output buffer to receive the base name of the PDB file extracted from the CodeView data. Must be at least PdbFileNameSize bytes
PdbFileNameSizeThe size of the PdbFileName buffer in bytes
GuidAn output pointer to receive the GUID extracted from the CodeView data
AgeAn output pointer to receive the age extracted from the CodeView data
Returns
BOOLEAN TRUE if the CodeView RSDS information was successfully extracted, FALSE otherwise (e.g., if image is invalid or does not contain valid RSDS information)
534{
535 return SymExtractCodeViewRsdsInfoFromPeImageInternal(ImageBase, ImageSize, PdbFileName, PdbFileNameSize, Guid, Age, FALSE);
536}
#define FALSE
Definition BasicTypes.h:113