Files
BinaryObjectScanner/BinaryObjectScanner.Models/PortableExecutable/DialogBoxResource.cs

47 lines
1.9 KiB
C#
Raw Normal View History

2023-03-07 16:59:14 -05:00
namespace BinaryObjectScanner.Models.PortableExecutable
{
/// <summary>
/// A dialog box is also one resource entry in the resource file. It consists of one
/// DLGTEMPLATE dialog box header structure plus one DLGITEMTEMPLATE structure for each
/// control in the dialog box. The DLGTEMPLATEEX and the DLGITEMTEMPLATEEX structures
/// describe the format of extended dialog box resources.
/// </summary>
/// <see href="https://learn.microsoft.com/en-us/windows/win32/menurc/resource-file-formats"/>
2022-12-27 17:12:55 -08:00
public sealed class DialogBoxResource
{
2022-11-11 14:12:03 -08:00
#region Dialog template
/// <summary>
/// Dialog box header structure
/// </summary>
public DialogTemplate DialogTemplate;
2022-11-11 14:12:03 -08:00
/// <summary>
/// Dialog box extended header structure
/// </summary>
2022-11-11 14:22:53 -08:00
public DialogTemplateExtended ExtendedDialogTemplate;
2022-11-11 14:12:03 -08:00
#endregion
#region Dialog item templates
/// <summary>
/// Following the DLGTEMPLATE header in a standard dialog box template are one or more
/// DLGITEMTEMPLATE structures that define the dimensions and style of the controls in the dialog
/// box. The cdit member specifies the number of DLGITEMTEMPLATE structures in the template.
/// These DLGITEMTEMPLATE structures must be aligned on DWORD boundaries.
/// </summary>
public DialogItemTemplate[] DialogItemTemplates;
2022-11-11 14:12:03 -08:00
2022-11-11 14:22:53 -08:00
/// <summary>
/// Following the DLGTEMPLATEEX header in an extended dialog box template is one or more
/// DLGITEMTEMPLATEEX structures that describe the controls of the dialog box. The cDlgItems
/// member of the DLGITEMTEMPLATEEX structure specifies the number of DLGITEMTEMPLATEEX
/// structures that follow in the template.
/// </summary>
public DialogItemTemplateExtended[] ExtendedDialogItemTemplates;
2022-11-11 14:12:03 -08:00
#endregion
}
}