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

📄 pjsecure.htm

📁 获取机器特征码
💻 HTM
字号:
<html>

<head>
<title>PJSECURE v1.01</title>
</head>

<body>

<p align="left"><strong><font color="#000000" size="6" face="Arial">PJSECURE v1.01</font></strong></p>

<p><font color="#000000" size="3" face="Arial">Welcome to PJSECURE, A simple C
style DLL which can be used as the basis for a network copy registration for your
products. The program is freeware, meaning you are free to use it in anyway you like so
long as you do not redistribute the source code with your product.</font></p>

<p><font color="#000000" size="3" face="Arial">Full source code is provided for those
interested. A VC 5 workspace file (pjsecure.dsw is provided for those who want to rebuild
the dll). Also included is a simple demo console application which calls the 2 functions in
the dll.</font></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<table border="0">
<TBODY>
  <tr>
    <td><strong><font size="5" face="Arial">Contents</font></strong></td>
  </tr>
  <tr>
    <td><a href="#History"><font face="Arial">History</font></a></td>
  </tr>
  <tr>
    <td><a class="normal" href="#API"><font face="Arial">API</font></a></td>
  </tr>
  <tr>
    <td><a href="#Contact"><font face="Arial">Contacting the Author</font></a></td>
  </tr>
</TBODY>
</table>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p><font face="Arial"><big><a name="History"></a></big><font color="#000000" size="5"><strong>History</strong></font></font></p>

<p><font face="Arial" color="#000000" size="4">v1.0 (18 April 1998)</font>

<ul>
  <li><font face="Arial"><font color="#000000" size="3">Initial Public Release.</font></font></li>
</ul>

<p><font face="Arial" color="#000000" size="4">v1.01 (28 May 2000)</font>

<ul>
  <li><font color="#000000" size="3" face="Arial">Now calls UuidCreateSequential instead of UuidCreate if we
    are running on Windows 2000</font></li>
  <li><font color="#000000" size="3" face="Arial">Code is now Unicode compliant and build configurations                          are provided.</font></li>
</ul>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<h2 class="rh1"><font face="Arial"><a name="API"></a>API</font></h2>

<p class="rh1"><big><strong><font face="Arial">&nbsp;</font></strong></big></p>

<p class="rh1"><big><strong><font face="Arial">GetNicAddress</font></strong></big></p>

<p class="rh1"><strong><font face="Arial">BOOL GetNicAddress(LPTSTR pszNicAddress, UINT
nBufSize);</font></strong></p>

<p class="rh1"><strong><font face="Arial">Parameters</font></strong></p>

<p class="rh1"><font face="Arial"><em>pszNicAddress</em> The string buffer which will
contain the NIC address upon successful return from the function.</font></p>

<p class="rh1"><font face="Arial"><em>nBufSize</em> The size of pszNicAddress. This
should be set to 13 or greater prior to calling the function.</font></p>

<p class="rh1"><strong><font face="Arial">Remarks</font></strong></p>

<p class="rh1"><font face="Arial">This function retrieves the NIC address of the network
card installed on the client machine. The client is responsible for allocating the buffer
which will contain the NIC address upon return from the function. All NIC addresses are 12
bytes long so before calling the function you should allocate a buffer of at least 13
bytes to hold the address. The function internally calls the the RCP functions
UuidCreate or UuidCreateSequential.
This means that the code is not dependent on any specific network protocol being
installed. The return is TRUE if the function succeeded else FALSE is returned.</font></p>

<p class="rh1">&nbsp;</p>

<p class="rh1"><big><strong><font face="Arial">GetCDriveSerialNumber</font></strong></big></p>

<p class="rh1"><strong><font face="Arial">BOOL GetCDriveSerialNumber(LPDWORD
pdwSerialNumber);</font></strong></p>

<p class="rh1"><strong><font face="Arial">Parameters</font></strong></p>

<p class="rh1"><font face="Arial"><em>pdwSerialNumber</em> A pointer to a DWORD which
upon return from the function will contain the serial number of the &quot;C&quot; drive.</font></p>

<p class="rh1"><strong><font face="Arial">Remarks</font></strong></p>

<p class="rh1"><font face="Arial">The return value from the function is TRUE if the
function succeeded else it is FALSE. The value returned in pdwSerialNumber can be
displayed by typing &quot;VOL&quot; at a command prompt. For security programs this call
could be used as a secondary means to obtaining unique information about a client
computer.<br>
</font></p>

<p class="spacing">&nbsp;</p>

<p><strong><font
color="#000000" face="Arial" size="5">Contacting the Author</font></strong></p>

<p><font color="#000000" face="Arial" size="3">PJ Naughter<br>
Email: <a href="mailto:pjna@naughter.com">pjna@naughter.com</a><br>
Web: <a href="http://www.naughter.com">http://www.naughter.com</a><br>
28 May 2000
</font></p>

</body>
</html>

⌨️ 快捷键说明

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