亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? helpfile.txt

?? HELP文件格式定義清單說明
?? TXT
?? 第 1 頁 / 共 4 頁
字號:

Inside help files Bitmaps and Metafiles are stored in lP- or lp-format. This
is the format of SHG/MRB files that SHED/MRBC produce and may contain multiple
pictures at different resolutions, each with optional additional hotspot data.
Pictures may be embedded in LinkData2 of |TOPIC or appear as |bm<x> files
(or bm<x> in case of Windows 3.0 HC30). Each picture starts with this header
data. The PictureOffset tells you where to look for the desired picture.

short Magic				  0x506C (SHG,lP) or 0x706C (MRB,lp)
short NumberOfPictures			  >1 if multi-resolution-bitmap
long PictureOffset[NumberOfPictures]	  relative to &Magic

You shouldn't depend on Magic lP/lp upon reading, as there are some MRBs
flagged like SHG, but please write correct values.

Seek to PictureOffset and you will find this:

char PictureType	   5=DDB 6=DIB 8=metafile
char PackingMethod	   0=uncompressed 1=RunLen 2=LZ77 3=both

If PictureType is 5 or 6 the picture is a bitmap described by:

compressed unsigned long Xdpi		    resolution in dpi, not PelsPerMeter
compressed unsigned long Ydpi		    resolution in dpi, not PelsPerMeter
compressed unsigned short Planes
compressed unsigned short BitCount
compressed unsigned long Width
compressed unsigned long Height
compressed unsigned long ColorsUsed
compressed unsigned long ColorsImportant    1 if bitmap is transparent
compressed unsigned long CompressedSize
compressed unsigned long HotspotSize	    0 if none are defined
unsigned long CompressedOffset		    relative to &PictureType
unsigned long HotspotOffset		    relative to &PictureType

If PictureType is 6 a color palette follows immediatly

COLORREF palette[ColorsUsed]		    or 1<<BitCount if ColorsUsed=0

If PackingMethod is 0 copy CompressedSize bytes starting at CompressedOffset
to retrieve the bitmap data. If PackingMethod is 1 seek to CompressedOffset,
and decode CompressedSize bytes using the RunLen algorithm:
  n=getc(f); if(n&0x80) copy n&0x7F bytes, else copy next byte n times.
If PackingMethod is 2 use the LZ77 algorithm described above and if Packing-
Method is 3 first use LZ77, then RunLen to decompress.

If PictureType is 8 the picture is a metafile described by:

compressed unsigned short MappingMode
unsigned short Width
unsigned short Height
compressed unsigned long DecompressedSize   can be used to allocate buffer
compressed unsigned long CompressedSize
compressed unsigned long HotspotSize	    0 if none are defined
unsigned long CompressedOffset		    relative to &PictureType
unsigned long HotspotOffset		    relative to &PictureType

Seek to CompressedOffset and decompress CompressedSize bytes as described
above to retrieve metafile data.

If HotspotSize or HotspotOffset is 0, no hotspots are defined. Otherwise
seek to HotspotOffset and retrieve HotspotSize bytes of hotspot definition
as declared below. Each macro hotspot contributes data to MacroData in a
way not fully understood at this moment.

unsigned char Always1
unsigned short NumberOfHotspots
unsigned long SizeOfMacroData
struct
{
    unsigned char id0,id1,id2;
    unsigned short x,y,w,h;
    unsigned long hash;
}
Hotspot[NumberOfHotspots]
char MacroData[SizeOfMacroData]       if SizeOfMacroData>0 the first byte
				      of MacroData is always 2.
struct
{
    STRINGZ HotspotName
    STRINGZ ContextNameOrMacro
}
StringData[NumberOfHotspots]

Possible values of id0,id1,id2 are:
0xC8 0x00 0x00	macro visible
0xCC 0x04 0x00	macro invisible
0xE2 0x00 0x00	popup jump visible
0xE3 0x00 0x00	topic jump visible
0xE6 0x04 0x00	popup jump invisible
0xE7 0x04 0x00	topic jump invisible
0xEA 0x00 0x00	popup jump into external file visible
0xEB 0x00 0x00	topic jump into external file / secondary window visible
0xEE 0x04 0x00	popup jump into external file invisible
0xEF 0x04 0x00	topic jump into external file / secondary window invisible

The hash field is only used if id0 = 0xE2, 0xE3, 0xE6, 0xE7. It is 1 if
id0 = 0xC8 or 0xCC.
The ContextNameOrMacro contains a macro if id0 = 0xC8 or 0xCC, otherwise
it contains a ContextName (id0 = 0xE2, 0xE3, 0xE6, 0xE7) or the complete
reference ContextName>Window@File (id0 = 0xEA, 0xEB, 0xEE, 0xEF) (@File
may be missing if target is in same file).

Annotation file format

An annotation file created by WinHelp uses the same basic file format as
a Windows help file. The first 16 bytes contain the same header as a help
file, with same Magic. DirectoryStart points to a FILEHEADER of an internal
directory formatted the same way as a help file internal directory. There
are just internal files of different name and format used to collect the
annotations.

@VERSION

The first internal file described contains (after the usual FILEHEADER) 6
bytes of version info:
0x08 0x62 0x6D 0x66 0x01 0x00	       (I've never seen other values)

@LINK

The @LINK internal file contains (after the usual FILEHEADER) the number of
annotations and the TOPICOFFSET of every annotation. The TopicOffset separates
into a TopicBlockNumber in it's upper bits and TopicBlockOffset pointing into
the decompression buffer in it's lower bits as explained above in the
description of the |TOPIC format and points the the first TOPICLINK following
the TOPICHEADER of the topic where the annotation belongs to.

unsigned short NumberOfAnnotations
struct
{
    unsigned long TopicOffset
    unsigned long Unknown1	  // always 0
    unsigned long Unknown2	  // always 0
}
AnnotationTopicRef[NumberOfAnnotations]

n!0

For each annotation the ANN file also carrys an internal file with a name like
12345!0, where 12345 is the decimal representation of the TopicOffset (as
listed in the @LINK array) where the annotation belongs to. These files
contain the annotation text as unformatted, uncompressed plain ANSI characters,
and are not NUL terminated.

That's all what I've seen in an annotation file.

*.CAC, *.AUX

Multimedia files using extensions *.CAC or *.AUX are formatted like helpfiles,
but contain only auxillary files, no |SYSTEM or |TOPIC.
Investigate them yourself. HELPDECO may be used to display or extract files
contained in them.

LZ77

You want to handle LZ77 compressed data in HLPs, MRBs, and SHGs yourself ?
Here is an algorithm to do it:

// LZ77 compression / decompression algorithm
// this is the compression Microsoft used in Windows *.HLP and *.MRB files

// so it works like Microsoft COMPRESS.EXE/EXPAND.EXE/LZEXPAND.DLL
//#define MSEXPAND

#include <stdio.h>
#include <stdlib.h>

#define N 4096
#define F 16
#define THRESHOLD 3

#define dad (node+1)
#define lson (node+1+N)
#define rson (node+1+N+N)
#define root (node+1+N+N+N)
#define NIL -1

char *buffer;
int *node;
int pos;

int insert(int i,int run)
{
    int c,j,k,l,n,match;
    int *p;

    k=l=1;
    match=THRESHOLD-1;
    p=&root[(unsigned char)buffer[i]];
    lson[i]=rson[i]=NIL;
    while((j=*p)!=NIL)
    {
	for(n=min(k,l);n<run&&(c=(buffer[j+n]-buffer[i+n]))==0;n++) ;
	if(n>match)
	{
	    match=n;
	    pos=j;
	}
	if(c<0)
	{
	    p=&lson[j];
	    k=n;
	}
	else if(c>0)
	{
	    p=&rson[j];
	    l=n;
	}
	else
	{
	    dad[j]=NIL;
	    dad[lson[j]]=lson+i-node;
	    dad[rson[j]]=rson+i-node;
	    lson[i]=lson[j];
	    rson[i]=rson[j];
	    break;
	}
    }
    dad[i]=p-node;
    *p=i;
    return match;
}

void delete(int z)
{
    int j;

    if(dad[z]!=NIL)
    {
	if(rson[z]==NIL)
	{
	    j=lson[z];
	}
	else if(lson[z]==NIL)
	{
	    j=rson[z];
	}
	else
	{
	    j=lson[z];
	    if(rson[j]!=NIL)
	    {
		do
		{
		    j=rson[j];
		}
		while(rson[j]!=NIL);
		node[dad[j]]=lson[j];
		dad[lson[j]]=dad[j];
		lson[j]=lson[z];
		dad[lson[z]]=lson+j-node;
	    }
	    rson[j]=rson[z];
	    dad[rson[z]]=rson+j-node;
	}
	dad[j]=dad[z];
	node[dad[z]]=j;
	dad[z]=NIL;
    }
}

void compress(FILE *f,FILE *out)
{
    int ch,i,run,len,match,size,mask;
    char buf[17];

    buffer=malloc(N+F+(N+1+N+N+256)*sizeof(int)); // 28.5 k !
    if(buffer)
    {
#ifdef MSEXPAND
	struct { long magic, magic2; int magic3; long filesize; } header;

	header.magic=0x44445A53L; // SZDD
	header.magic2=0x3327F088L;
	header.magic3=0x0041;
	header.filesize=filelength(fileno(f));
	fwrite(&header,sizeof(header),1,out);
#endif
	node=(int *)(buffer+N+F);
	for(i=0;i<256;i++) root[i]=NIL;
	for(i=NIL;i<N;i++) dad[i]=NIL;
	size=mask=1;
	buf[0]=0;
	i=N-F-F;
	for(len=0;len<F&&(ch=getc(f))!=-1;len++)
	{
	    buffer[i+F]=ch;
	    i=(i+1)&(N-1);
	}
	run=len;
	do
	{
	    ch=getc(f);
	    if(i>=N-F)
	    {
		delete(i+F-N);
		buffer[i+F]=buffer[i+F-N]=ch;
	    }
	    else
	    {
		delete(i+F);
		buffer[i+F]=ch;
	    }
	    match=insert(i,run);
	    if(ch==-1)
	    {
		run--;
		len--;
	    }
	    if(len++>=run)
	    {
		if(match>=THRESHOLD)
		{
#ifdef MSEXPAND
		    buf[size++]=pos;
		    buf[size++]=((pos>>4)&0xF0)+(match-3);
#else
		    buf[0]|=mask;
		    *(int *)(buf+size)=((match-3)<<12)|((i-pos-1)&(N-1));
		    size+=2;
#endif
		    len-=match;
		}
		else
		{
#ifdef MSEXPAND
		    buf[0]|=mask;
#endif
		    buf[size++]=buffer[i];
		    len--;
		}
		if(!((mask+=mask)&0xFF))
		{
		    fwrite(buf,size,1,out);
		    size=mask=1;
		    buf[0]=0;
		}
	    }
	    i=(i+1)&(N-1);
	}
	while(len>0);
	if(size>1) fwrite(buf,size,1,out);
	free(buffer);
    }
}

void expand(FILE *f,FILE *out)
{
    int bits,ch,i,j,len,mask;
    char *buffer;

#ifdef MSEXPAND
    struct { long magic, magic2; int magic3; long filesize; } header;

    i=fread(&header,1,sizeof(header),f);
    if(i!=sizeof(header)||header.magic!=0x44445A53L||header.magic2!=0x3327F088L||header.magic3!=0x0041)
    {
	fwrite(&header,1,i,out);
	while((ch=getc(f))!=-1) putc(ch,out);
	return;
    }
#endif
    buffer=malloc(N);
    if(buffer)
    {
	i=N-F;
	while((bits=getc(f))!=-1)
	{
	    for(mask=0x01;mask&0xFF;mask<<=1)
	    {
#ifdef MSEXPAND
		if(!(bits&mask))
		{
		    j=getc(f);
		    if(j==-1) break;
		    len=getc(f);
		    j+=(len&0xF0)<<4;
		    len=(len&15)+3;
#else
		if(bits&mask)
		{
		    j=getw(f);
		    len=((j>>12)&15)+3;
		    j=(i-j-1)&(N-1);
#endif
		    while(len--)
		    {
			putc(buffer[i]=buffer[j],out);
			j=(j+1)&(N-1);
			i=(i+1)&(N-1);
		    }
		}
		else
		{
		    ch=getc(f);
#ifndef MSEXPAND
		    if(ch==-1) break;
#endif
		    putc(buffer[i]=ch,out);
		    i=(i+1)&(N-1);
		}
	    }
	}
	free(buffer);
    }
}

That's all I can tell you about the format of Windows 3.x/95 help files.
If you found out more, please let me know.

M. Winterhoff
100326.2776@compuserve.com

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美在线观看一区二区三区| 欧美二区三区91| 中文在线资源观看网站视频免费不卡| 国产精品1区二区.| 香港成人在线视频| 在线不卡中文字幕| 美女被吸乳得到大胸91| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 亚洲欧美日韩一区二区| 日韩午夜精品电影| 色av成人天堂桃色av| 欧美熟乱第一页| 91官网在线观看| 国产综合一区二区| 亚洲成人精品一区| 一区二区三区视频在线看| 久久精品一区二区三区av| 欧美一区二区黄| 99视频热这里只有精品免费| 肉色丝袜一区二区| 亚洲日本在线视频观看| 亚洲成人免费观看| 久久亚洲捆绑美女| 日韩免费高清电影| 欧美日韩国产在线播放网站| 欧美日韩中文国产| 丁香六月综合激情| 亚洲国产一区二区视频| 亚洲欧洲精品一区二区精品久久久| 日韩免费视频线观看| 国产69精品久久777的优势| 蜜芽一区二区三区| 一区二区免费视频| 午夜视频久久久久久| 久久久亚洲精品一区二区三区| 日韩亚洲欧美一区| 日韩久久久精品| 日韩视频在线永久播放| 精品理论电影在线| 中文字幕巨乱亚洲| 成人欧美一区二区三区白人| 精品国产乱码久久久久久图片| 久久久久久日产精品| 国产精品沙发午睡系列990531| 精品福利视频一区二区三区| 日韩精品专区在线| 日韩精品一区二区三区三区免费| 欧美精品九九99久久| 91精品欧美久久久久久动漫| 欧美视频在线一区二区三区| 91国产福利在线| 日韩精品在线一区| 欧美精品一区二区三区在线| 在线亚洲免费视频| 日韩精品一区二区三区中文精品| 久久久五月婷婷| 国产精品国产精品国产专区不片| 中文字幕日本不卡| 亚洲bt欧美bt精品777| 亚洲精品视频自拍| 首页亚洲欧美制服丝腿| 国产成人综合在线播放| 99久久夜色精品国产网站| www国产精品av| 8v天堂国产在线一区二区| 精品国产1区2区3区| 亚洲男女毛片无遮挡| 日本中文在线一区| aaa亚洲精品| 日韩精品中文字幕在线不卡尤物| 国产精品不卡视频| 蜜桃视频一区二区| 91在线播放网址| 日韩欧美国产一区二区在线播放| 国产欧美精品一区aⅴ影院| 亚洲国产精品久久人人爱| 国产精品99久久久久久似苏梦涵 | 亚洲国产精品高清| 免费在线成人网| 韩国成人精品a∨在线观看| 精品污污网站免费看| 亚洲靠逼com| 国产乱人伦偷精品视频免下载 | 国产一区二区0| 欧美日韩一卡二卡三卡 | 成人小视频在线观看| a美女胸又www黄视频久久| 精品欧美一区二区久久| 一个色综合网站| 国产精品一区二区视频| 国产精品一二三在| 日韩精品一区二区三区中文不卡| 亚洲成av人片在www色猫咪| 成人免费视频一区二区| 成人小视频在线| 欧美日韩视频不卡| 亚洲女子a中天字幕| 国产精品资源网站| 久久看人人爽人人| 欧美高清视频在线高清观看mv色露露十八 | 欧美一区二区黄| 视频一区二区三区在线| 成人黄动漫网站免费app| 欧美成人精品福利| 精品一区二区免费在线观看| 日韩一区二区三区在线| 麻豆精品蜜桃视频网站| 欧美日韩国产区一| 国产精品免费av| 韩国精品在线观看| 精品国产凹凸成av人导航| 亚洲资源在线观看| 99久久综合国产精品| 欧美mv日韩mv亚洲| 国内精品第一页| 久久久久久97三级| 久久99这里只有精品| 色婷婷综合五月| 久久免费电影网| 精品无码三级在线观看视频| 国产aⅴ综合色| 日韩avvvv在线播放| 欧美成人精品1314www| 欧美一区二区三区小说| 亚洲福利国产精品| 9191成人精品久久| 日本午夜精品一区二区三区电影| 国产日韩欧美高清| 成人国产精品免费观看| 一区二区三区四区在线免费观看| 欧美视频一区二区三区四区| 免费的成人av| 91精品国产一区二区三区蜜臀| 九一久久久久久| 美女视频黄免费的久久| 成人午夜av电影| 视频一区中文字幕| 国产很黄免费观看久久| 香蕉影视欧美成人| 久久精子c满五个校花| 亚洲成人福利片| 国产亚洲综合av| 91国偷自产一区二区开放时间 | 国产视频911| 欧美亚洲国产bt| 北条麻妃国产九九精品视频| 亚洲综合激情另类小说区| 久久久蜜桃精品| 在线免费观看日本欧美| 国产精品中文字幕日韩精品 | a级高清视频欧美日韩| 一区二区在线电影| 成人国产在线观看| 亚洲欧美日韩国产综合| 国产ts人妖一区二区| 日韩主播视频在线| 精品999久久久| 欧美剧情片在线观看| 奇米一区二区三区av| 日本一区二区成人| 日韩欧美中文字幕精品| 久久你懂得1024| 美女尤物国产一区| 欧美一二三在线| 日韩中文字幕亚洲一区二区va在线| 成人综合婷婷国产精品久久 | 国产高清视频一区| 欧美成人一区二区三区| 蜜臀av国产精品久久久久| 中文字幕在线免费不卡| 亚洲视频一二区| 国产一区二区网址| 欧美岛国在线观看| 日韩高清欧美激情| 欧美变态凌虐bdsm| 国产精品1区2区| 国产精品区一区二区三区| 成人av影院在线| 亚洲精品五月天| 欧美性videosxxxxx| 国产在线视频精品一区| 国产日韩高清在线| 97精品超碰一区二区三区| 亚洲制服欧美中文字幕中文字幕| 色视频一区二区| 视频一区二区三区在线| 久久久青草青青国产亚洲免观| 成人黄色国产精品网站大全在线免费观看| 欧美韩日一区二区三区四区| 91色九色蝌蚪| 免费在线观看视频一区| 国产欧美精品一区二区色综合| 99精品热视频| 亚洲高清不卡在线| 精品88久久久久88久久久| 99国产精品久久久久| 亚洲va中文字幕| 国产亚洲欧美日韩日本| 欧洲日韩一区二区三区| 久久99热这里只有精品|