⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 grp.htm

📁 各种文件格式说明及程序描述
💻 HTM
字号:
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>group file format</title>
<meta name="generator" content="microsoft frontpage 3.0">
</head>

<body background="../jpg/di1.JPG">

<p align="center"><font size="6" color="#0000ff">group file format</font></p>
<div align="center"><center>

<table border="0" width="88%">
<tr>
<td width="100%">.grp group file format overview (3.1)<br>
<br>
this topic describes the format of group files used by the microsoft windows operating
system. a group file contains data that microsoft windows program manager (progman.exe)
uses to display the icons of the applications in a group, start the applications in a
group, and open related documents. <br>
<br>
organization of a group file<br>
<br>
the first element in a group file is the group-file header. the data in the group-file
header includes an identifier, a count of bytes, a count of items in the file, and
information that the system uses to display group icons. the group-file header is followed
by one or more entries that contain item data describing the icon of an application. these
entries include the coordinates that the system uses to display the icon; the count of
bytes in the header, and mask, and xor mask for the icon; and the offset to the header,
and mask, and xor mask for the icon. <br>
the item data entries are followed by entries that contain the color data for the
application icons. for more information about these entries, see graphics device interface
overview. for windows version 3.1, the icon data is followed by tag data. the tag data
contains information that program manager uses when it displays the program item
properties dialog box. this data identifies the directory in which the application is
stored and the shortcut key (if one exists). it also specifies the state of the run
minimized box. <br>
<br>
group-file structures<br>
<br>
this topic uses c structures to depict the organization of data within a group file. these
structures were created solely to show the organization of data in a resource; they do not
appear in any of the include files shipped with the microsoft windows 3.1 software
development kit (sdk). <br>
<br>
group-file header<br>
<br>
the group-file header contains general information about the group file. the groupheader
structure has the following form: <br>
<br>
<br>
<br>
struct taggroupheader {<br>
char cidentifier[4];<br>
word wchecksum;<br>
word cbgroup;<br>
word ncmdshow;<br>
rect rcnormal;<br>
point ptmin;<br>
word pname;<br>
word wlogpixelsx;<br>
word wlogpixelsy;<br>
word wbitsperpixel;<br>
word wplanes;<br>
word citems;<br>
word rgiitems[citems];<br>
};<br>
<br>
following are the members in the groupheader structure: <br>
<br>
cidentifier&nbsp;&nbsp;&nbsp; identifies an array of 4 characters. if the file is a valid
group file, this array must contain the string &quot;pmcc&quot;. <p>wchecksum
&nbsp;&nbsp;&nbsp; specifies the negative sum of all words in the file (including the
value specified by the wchecksum member). </p>
<p>cbgroup&nbsp;&nbsp;&nbsp; specifies the size of the group file, in bytes. </p>
<p>ncmdshow&nbsp;&nbsp;&nbsp; specifies whether program manager should display the group
in minimized, normal, or maximized form. </p>
<p>this member can be one of the following values: <br>
<br>
value&nbsp;&nbsp;&nbsp; flag<br>
<br>
0x00&nbsp;&nbsp;&nbsp; sw_hide <br>
0x01&nbsp;&nbsp;&nbsp; sw_shownormal <br>
0x02&nbsp;&nbsp;&nbsp; sw_showminimized <br>
0x03&nbsp;&nbsp;&nbsp; sw_showmaximized <br>
0x04&nbsp;&nbsp;&nbsp; sw_shownoactivate <br>
0x05&nbsp;&nbsp;&nbsp; sw_show <br>
0x06&nbsp;&nbsp;&nbsp; sw_minimize <br>
0x07&nbsp;&nbsp;&nbsp; sw_showminnoactivate <br>
0x08&nbsp;&nbsp;&nbsp; sw_showna <br>
0x09&nbsp;&nbsp;&nbsp; sw_restore <br>
<br>
rcnormal&nbsp;&nbsp;&nbsp; specifies the coordinates of the group window (the window in
which the group icons appear). it is a rectangular structure. </p>
<p>ptmin&nbsp;&nbsp;&nbsp; specifies the coordinate of the lower-left corner of the group
window with respect to the parent window. it is a point structure. </p>
<p>pname&nbsp;&nbsp;&nbsp; specifies an offset from the beginning of the file to a
null-terminated string that specifies the group name. </p>
<p>wlogpixelsx&nbsp;&nbsp;&nbsp; specifies the horizontal resolution of the display for
which the group icons were created. </p>
<p>wlogpixelsy&nbsp;&nbsp;&nbsp; specifies the vertical resolution of the display for
which the group icons were created. </p>
<p>wbitsperpixel&nbsp;&nbsp;&nbsp; specifies the format of the icon bitmaps, in bits per
pixel. </p>
<p>wplanes&nbsp;&nbsp;&nbsp; specifies the count of planes in the icon bitmaps. <br>
<br>
citems&nbsp;&nbsp;&nbsp; specifies the number of itemdata structures in the rgiitems
array. this is not necessarily the number of items in the group, because there may be null
entries in the rgiitems array. </p>
<p>rgiitems[citems]&nbsp;&nbsp;&nbsp; specifies an array of itemdata structures. <br>
<br>
item data<br>
<br>
the item data contains information about a particular application and its icon. the
itemdata structure has the following form: <br>
<br>
<br>
<br>
struct tagitemdata {<br>
point pt;<br>
word iicon;<br>
word cbresource;<br>
word cbandplane;<br>
word cbxorplane;<br>
word pheader;<br>
word pandplane;<br>
word pxorplane;<br>
word pname;<br>
word pcommand;<br>
word piconpath;<br>
};<br>
<br>
following are the members in the itemdata structure: <br>
<br>
pt&nbsp;&nbsp;&nbsp; specifies the coordinates for the lower-left corner of an icon in the
group window. it is a point structure. </p>
<p>iicon&nbsp;&nbsp;&nbsp; specifies the index value for an icon. this value indicates the
position of the icon in an executable file. </p>
<p>cbresource&nbsp;&nbsp;&nbsp; specifies the count of bytes in the icon resource, which
appears in the executable file for the application. </p>
<p>cbandplane&nbsp;&nbsp;&nbsp; specifies the count of bytes in the and mask for the icon.
</p>
<p>cbxorplane&nbsp;&nbsp;&nbsp; specifies the count of bytes in the xor mask for the icon.
</p>
<p>pheader&nbsp;&nbsp;&nbsp; specifies an offset from the beginning of the group file to
the resource header for the icon. </p>
<p>pandplane&nbsp;&nbsp;&nbsp; specifies an offset from the beginning of the group file to
the and mask for the icon. </p>
<p>pxorplane&nbsp;&nbsp;&nbsp; specifies an offset from the beginning of the group file to
the xor mask for the icon. <br>
<br>
pname&nbsp;&nbsp;&nbsp; specifies an offset from the beginning of the group file to a
string that specifies the item name. </p>
<p>pcommand&nbsp;&nbsp;&nbsp; specifies an offset from the beginning of the group file to
a string that specifies the name of the executable file containing the application and the
icon resource(s). </p>
<p>piconpath&nbsp;&nbsp;&nbsp; specifies an offset from the beginning of the group file to
a string that specifies the path where the executable file is located. this path can be
used to extract icon data from an executable file. <br>
<br>
tag data<br>
<br>
the tag data contains general information used to display the program item properties
dialog box. the tagdata structure has the following form: <br>
<br>
<br>
<br>
struct tagtagdata{<br>
word wid;<br>
word witem;<br>
word cb;<br>
byte rgb[1];<br>
};<br>
<br>
following are the members in the tagdata structure: <br>
<br>
wid&nbsp;&nbsp;&nbsp; specifies the type of tag data. this member can have one of the
following values: <br>
<br>
value&nbsp;&nbsp;&nbsp; meaning<br>
<br>
0x8101&nbsp;&nbsp;&nbsp; array at which the rgb member points is a null-terminated string
that identifies the path for the application. </p>
<p>0x8102&nbsp;&nbsp;&nbsp; array at which the rgb member points is a 16-bit word value
that identifies the shortcut key specified by the user. </p>
<p>0x8103&nbsp;&nbsp;&nbsp; minimized version of the item is displayed. if this value is
specified, the array to which the rgb member points is not present in the structure and
the value of the cb member is 0x06. </p>
<p>witem&nbsp;&nbsp;&nbsp; specifies the index to the item the tag data refers to. if the
data is not specific to a particular item, this value is 0xffff. </p>
<p>cb&nbsp;&nbsp;&nbsp; specifies the size of the tagdata structure, in bytes. </p>
<p>rgb&nbsp;&nbsp;&nbsp; specifies an array of byte values. the length of this array can
be found by subtracting 6 from the value of the cb member. <br>
&#26;</td>
</tr>
</table>
</center></div>
<p align="center"><a href="../index.htm">返回</a></p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -