Looking for something, can I translate into Java?
http://dev.19xz.com/soft/47939.htm
-------------------------------------------------- ----
There are many ways to limit the number of software trials. The key is where the number of times is stored. Here, a method is introduced to limit the number of figures by changing the time of the file, thereby limiting the trial of the software. First, by changing the file time to limit the number of software in MS-DOS, the time of the file is saved by a 16-bit value, bit 15 ~ 11 is used to save the hour number, the bits 10 ~ 5 are used to save minutes Number, bit 4 ~ 0 is used to save the number of seconds. This 16-bit value is prior to use us to save the number of trials. For example, in the sample program below, the author uses the number of saved number of minutes. Run the instruction routine, we can see that the number of minutes of the file time is added 1, and the average person is difficult to detect. This method has a better concealment. Second, the interrupts involved in the sample program 1. The function of interrupting 21h 3DH Use: Open files for reading. Write or make up. Call register: AH = 3dh, al = 00h, DS: DX = file name; return register: CF reset - success, ax = file handle. CF set - error, ax = error code. 2. The function of interrupting 21h 3EH use: Forced clear all buffers, update the directory, so that the file handle is invalid. Call register: AH = 3EH, bx = file handle; return register: CF reset - success, AX is destroyed, CF set - error, ax = error code. 3. The function of the interrupt 21h is 57h, and the sub-function 00h is used: read the date and time of the last modified date. Call register: AX = 5700H, bx = file handle; return register: CF reset - success, cx = file time, DX = file date, CF set - error, ax = error code. 4. The function of the interrupt 21h is 57h, and the sub-function 01h is used: the date and time information of the file last modified will become a specified value. Call register: AX = 5701H, bx = file handle, cx = new time, DX = new date; return register: CF reset - success, CF set - error, ax = error code.