About "adding new capture file format"

Dear all :
I am new to wireshrak, and I hava a problem about "add new capture file".
Wireshark can capture some file format such as "pcap".
But I want add a new capture file format.
According to the develop guide, I have to modify the "wtap" code.
But I don`t know how to modify it.
Could you provide some reference files or samples to me, thanks a lot.
p.s.Because I am not good at English (I am come from Taiwan),there may have some grammar error.
Thanks for your patients.
                                                                                                            From Robert Lai  

想知道無聊生活如何大變身嘛? - 馬上瞧瞧
<div>
<div>
<div>Dear all :</div>
<div>I am new to wireshrak, and I hava a problem about "add new capture file".</div>
<div>Wireshark can capture some file format such as "pcap".</div>
<div>But I want add a new capture file format.</div>
<div>According to the develop guide, I have to modify the "wtap" code.</div>
<div>But I don`t know how to modify it.</div>
<div>Could you provide some reference&nbsp;files or&nbsp;samples&nbsp;to me, thanks a lot.</div>
<div>p.s.Because I am not good at English (I am come from Taiwan),there may have&nbsp;some grammar error. </div>
<div>Thanks for your patients.</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; From&nbsp;Robert Lai&nbsp;&nbsp;</div>
</div>
<br><table align="left" border="0" cellspacing="0" width="100%">
<tr><td bgcolor="black" height="1">
</td></tr>
<tr><td height="40"> &#24819;&#30693;&#36947;&#28961;&#32842;&#29983;&#27963;&#22914;&#20309;&#22823;&#35722;&#36523;&#22043;&#65311; - <a href="http://tw.rd.yahoo.com/referurl/mail/dc/campiagn/*http://tw.promote.mail.yahoo.com/dc/change.html">&#39340;&#19978;&#30631;&#30631;</a>&#65281;</td></tr>
</table>
</div>

Gmane