begin preparing some structures for converting old program manager groups to the new format

This commit is contained in:
freedom
2023-08-10 16:25:53 -06:00
parent 437703e26d
commit 84c62213d7
3 changed files with 42 additions and 0 deletions

38
progmgr/grpupdat.h Normal file
View File

@@ -0,0 +1,38 @@
/* * * * * * * *\
GRPUPDAT.H -
Copyright (c) 2023 freedom7341, Vortesys
DESCRIPTION -
Header containing classic program group structures
in order to facilitate conversion to the new format.
LICENSE INFORMATION -
MIT License, see LICENSE.txt in the root folder
\* * * * * * * */
/* Pragmas */
#pragma once
/* Includes */
#include <wtypes.h>
/* Definitions */
// Group signatures
#define OLDGRP_SIGNATURE 0x43554D50L // PMUC
/* Structures */
// Old group format, .GRP
typedef struct _OLDGROUP {
DWORD dwMagic; // Set to OLDGRP_SIGNATURE
WORD wCheckSum; // Seemingly unused
WORD cbGroup; // Size of group
RECT rcNormal; // Window rect
POINT ptMin; // Minimized window position
WORD nCmdShow; // Min/max state
WORD pName; // Group name
WORD cxIcon; // Icon width
WORD cyIcon; // Icon height
WORD wIconFormat;
WORD wReserved; // Unused
WORD cItems; // Number of items
WORD rgiItems[1]; // Array of item offsets
} OLDGROUP, * POLDGROUP;

View File

@@ -160,6 +160,7 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="group.h" />
<ClInclude Include="grpupdat.h" />
<ClInclude Include="progmgr.h" />
<ClInclude Include="registry.h" />
<ClInclude Include="resource.h" />

View File

@@ -30,6 +30,9 @@
<ClInclude Include="group.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="grpupdat.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="progmgr.c">