begin preparing some structures for converting old program manager groups to the new format
This commit is contained in:
38
progmgr/grpupdat.h
Normal file
38
progmgr/grpupdat.h
Normal 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;
|
||||
@@ -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" />
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user