?? lesson1410.htm
字號:
<html>
<head>
<title>看雪學苑</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.p8 { font-size: 8pt}
.p9 { font-size: 9pt}
a:hover { color: #00FF00}
a { text-decoration: none; color: #3333CC}
.p12 { font-size: 12pt; font-weight: bold; color: #FF3333}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#000000">
<a name="top"></a>
<script src="fubiao.js" tppabs="http://toye.dihou.org/img/fubiao.js"></script>
<table width="80%" border="1" cellspacing="0" cellpadding="0" align="center" bgcolor="#99CCFF" bordercolorlight="#99CCFF" bordercolordark="#99CCFF">
<tr>
<td width="72%" class="p9"><a href="javascript:if(confirm('http://toye.yeah.net/ \n\n這個文件不能通過 Teleport Pro 取回, 因為 它被訪問于一個域或在它的起始地址邊界外部的路徑上. \n\n你想從服務器打開它嗎?'))window.location='http://toye.yeah.net/'" tppabs="http://toye.yeah.net/">看雪教學</a></td>
<td width="10%" class="p9"> </td>
<td width="10%"><a href="index.htm" tppabs="http://toye.dihou.org/index.htm" class="p9">返回<br>
首頁 <br>
</a></td>
<td width="8%"><a href="molu.htm" tppabs="http://toye.dihou.org/molu.htm" class="p9">返回<br>
目錄 </a></td>
</tr>
</table>
<table width="80%" cellspacing="0" cellpadding="0" align="center">
<tr bgcolor="#FFFF33">
<td>
<div align="center"><span class="p"><b><font color="#FF3333" class="p11">第十課
crack常見技巧</font></b></span></div>
</td>
</tr>
</table>
<table border="1" width="80%" cellpadding="0" bordercolor="#86D8FF" bgcolor="#FBFDFF" align="center">
<tr>
<td width="50%" valign="middle" align="center" class="p9" height="20">
<div align="left"><span class="p9"><span class="p9">1、<span class="p9"><a href="lesson1401.htm" tppabs="http://toye.dihou.org/lesson1401.htm"><span class="p9"><span class="p9">一些常用方法</span></span></a></span></span></span></div>
</td>
<td width="50%" valign="top" class="p9" height="20">
<div align="left"><span class="p9"><span class="p9">5、<a href="lesson1406.htm" tppabs="http://toye.dihou.org/lesson1406.htm">Key
File保護</a></span></span></div>
</td>
</tr>
<tr>
<td width="50%" valign="middle" align="center" class="p9" height="20">
<div align="left"><span class="p9"><span class="p9">2、<span class="p9"><span class="p9"><a href="lesson1402.htm" tppabs="http://toye.dihou.org/lesson1402.htm">序列號方式</a></span></span></span></span></div>
</td>
<td width="50%" valign="top" class="p9" height="20"><span class="p9"><span class="p9">6、<span class="p9"><span class="p9"><a href="lesson1407.htm" tppabs="http://toye.dihou.org/lesson1407.htm">功能限制的程序</a></span></span> </span></span></td>
</tr>
<tr>
<td width="50%" valign="middle" align="center" class="p9" height="20">
<div align="left"><span class="p9"><span class="p9">3、<a href="lesson1403.htm" tppabs="http://toye.dihou.org/lesson1403.htm">NAG方式(警告窗口)</a></span></span></div>
</td>
<td width="50%" valign="top" class="p9" height="20"><span class="p9"><span class="p9">7、<span class="p9"><span class="p9"><a href="lesson1408.htm" tppabs="http://toye.dihou.org/lesson1408.htm">InstallSHIELD
Setups </a></span><span class="p9"><span class="p9"><span class="p9"> </span>
</span></span> </span></span></span></td>
</tr>
<tr>
<td width="50%" valign="middle" align="center" class="p9" height="20">
<div align="left"><span class="p9"><span class="p9">4、<a href="lesson1404.htm" tppabs="http://toye.dihou.org/lesson1404.htm">運行時間限制</a></span></span></div>
</td>
<td width="50%" valign="top" class="p9" height="20">8、<font color="#FF0033">CD-check</font></td>
</tr>
</table>
<p align="center" class="p9">8、CD-check <a href="lesson14101.htm" tppabs="http://toye.dihou.org/lesson14101.htm">【習題】</a></p>
<p align="left" class="p9">一、可將游戲(或其它程序)的光盤拿出,運行游戲,將出現一些錯誤提示,如: Please insert
the - CD, or: You need the CD to play the - . 利用這提示可在W32DASM中利用串式數據參考功能查找相應的代碼進行分析。</p>
<p align="left" class="p9">二、相關函數</p>
<p align="left" class="p9">1、GetDrivetype(a) 判斷一個磁盤驅動器的類型</p>
<table width="100%" border="1" align="center" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0">
<tr bgcolor="#E6E6F4">
<td height="7" class="p9" colspan="2"> UINT GetDriveType(
<p> LPCTSTR lpRootPathName // String,包含了驅動器根目錄路徑的一個字串<br>
); </p>
<tr bgcolor="#E6E6F4">
<td height="7" class="p9" colspan="2">返回值
<tr bgcolor="#E6E6F4">
<td height="12" class="p9" width="18%">
<div align="center">0</div>
<td height="12" class="p9" width="82%">驅動器不能識別
<tr bgcolor="#E6E6F4">
<td height="12" class="p9" width="18%">
<div align="center">1</div>
<td height="12" class="p9" width="82%">指定的目錄不存在
<tr bgcolor="#E6E6F4">
<td height="12" class="p9" width="18%">
<div align="center">2</div>
<td height="12" class="p9" width="82%">DriveRemoveable
<tr bgcolor="#E6E6F4">
<td height="12" class="p9" width="18%">
<div align="center">3</div>
<td height="12" class="p9" width="82%"> A Fixed Disk (HardDrive)
<tr bgcolor="#E6E6F4">
<td height="12" class="p9" width="18%">
<div align="center">4</div>
<td height="12" class="p9" width="82%">Remote Drive(Network)
<tr bgcolor="#E6E6F4">
<td height="12" class="p9" width="18%">
<div align="center">5</div>
<td height="12" class="p9" width="82%"> Cd-Rom驅動器
<tr bgcolor="#E6E6F4">
<td height="12" class="p9" width="18%">
<div align="center">6</div>
<td height="12" class="p9" width="82%">RamDisk
</table>
<p align="left" class="p9">如果是普通的程序,你可將EAX由5改成3即可。</p>
<p align="left" class="p9">注意:有些程序可能檢測光盤根目錄相關文件,CD的卷標也可能被檢測。</p>
<p class="p9">2、GetLogicalDrives 判斷系統中存在哪些邏輯驅動器字母</p>
<table width="100%" border="1" align="center" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0">
<tr bgcolor="#E6E6F4">
<td height="14">
<p class="p9">這函數沒有參數</p>
<tr bgcolor="#E6E6F4">
<td height="14" class="p9">返回值
<tr bgcolor="#E6E6F4">
<td height="14" class="p9">這個結構中的二進制位標志著存在哪些驅動器。其中,位0設為1表示驅動器A:存在于系統中;位1設為1表示存在B:驅動器;以次類推
</table>
<p class="p9">3、GetLogicalDriveStrings 獲取一個字串,其中包含了當前所有邏輯驅動器的根驅動器路徑</p>
<table width="100%" border="1" align="center" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0">
<tr bgcolor="#E6E6F4" class="p9">
<td height="70">
<p>DWORD GetLogicalDriveStrings(</p>
<p> DWORD nBufferLength, // 字串的長度 <br>
LPTSTR lpBuffer // 用于裝載邏輯驅動器名稱的字串。每個名字都用一個NULL字符分隔,在最后一個名 字后面用兩個NULL表示中止(空中止)<br>
);</p>
<tr bgcolor="#E6E6F4" class="p9">
<td height="6">返回值
<tr bgcolor="#E6E6F4" class="p9">
<td height="28">裝載到lpBuffer的字符數量(排除空中止字符)。如緩沖區的長度不夠,不能容下路徑,則返回值就變成要求的緩沖區大小。零表示失敗。會設置GetLastError
</table>
<p class="p9">4、GetFileAttributesA 判斷指定文件的屬性</p>
<table width="100%" border="1" align="center" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0">
<tr bgcolor="#E6E6F4" class="p9">
<td height="28">
<p>DWORD GetFileAttributes(</p>
<p> LPCTSTR lpFileName //指定欲獲取屬性的一個文件的名字<br>
);</p>
</table>
<p class="p9">5、GetFileSize 判斷文件長度</p>
<table width="100%" border="1" align="center" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0">
<tr bgcolor="#E6E6F4" class="p9">
<td height="28">
<p>DWORD GetFileSize(</p>
<p> HANDLE hFile, // 文件的句柄<br>
LPDWORD lpFileSizeHigh, // 指定一個長整數,用于裝載一個64位文件長度的頭32位。如這個長度沒有超過 2^32字節,則該參數可以設為NULL(變成ByVal)<br>
);</p>
<tr bgcolor="#E6E6F4" class="p9">
<td height="13">返回值
<tr bgcolor="#E6E6F4" class="p9">
<td height="2">返回文件長度。&HFFFFFFFF表示出錯。注意如lpFileSizeHigh不為NULL,且結果為&HFFFFFFFF,那么必須調用<font color="#FF3333">GetLastError</font>,判斷是否實際發生了一個錯誤,因為這是一個有效的結果
</table>
<p class="p9">6、GetLastError <font color="#000000">針對之前調用的api函數,用這個函數取得擴展錯誤信息</font></p>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF" class="p9" bgcolor="#CCCCFF">
<tr bgcolor="#E6E6F4">
<td width="100%" colspan="2">返回值</td>
</tr>
<tr bgcolor="#E6E6F4">
<td width="100%" colspan="2">由api函數決定。請參考api32.txt文件,其中列出了一系列錯誤常數;都以ERROR_前綴起頭。常用的錯誤代碼見下表</td>
</tr>
<tr bgcolor="#E6E6F4">
<td width="50%">ERROR_INVALID_HANDLE</td>
<td width="50%">無效的句柄作為一個參數傳遞</td>
</tr>
<tr bgcolor="#E6E6F4">
<td width="50%">ERROR_CALL_NOT_IMPLEMENTED</td>
<td width="50%">在win 95下調用專為win nt設計的win32 api函數</td>
</tr>
<tr bgcolor="#E6E6F4">
<td width="50%">ERROR_INVALID_PARAMETER</td>
<td width="50%">函數中有個參數不正確</td>
</tr>
</table>
<p class="p9">7、ReadFile 從文件中讀出數據 </p>
<p class="p9">具體參考KEYFILE一節。</p>
<p class="p9">8、其它一些CDROM信息</p>
<p class="p9">中斷2F是mscdex中斷,可用bpint 2f, al=0 ah=15檢測Mmscdex是否安裝。<br>
也可試著用文件存取設斷 <br>
</p>
<table width="80%" border="1" cellspacing="0" cellpadding="0" align="center" bgcolor="#99CCFF" bordercolorlight="#99CCFF" bordercolordark="#99CCFF">
<tr>
<td width="82%" class="p8" height="34">Copyright @看雪 2000 All rights reserved
<a href="mailto:toye@126.com">與我聯系</a></td>
<td width="10%" class="p9" height="34"><a href="index.htm" tppabs="http://toye.dihou.org/index.htm">返回<br>
首頁</a></td>
<td width="8%" class="p8" height="34"><a href="molu.htm" tppabs="http://toye.dihou.org/molu.htm" class="p9">返回<br>
目錄</a></td>
</tr>
</table>
<p> </p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -