View Single Post
Old 25th June 2010, 23:30   #19  |  Link
ChiDragon
Registered User
 
ChiDragon's Avatar
 
Join Date: Sep 2005
Location: Vancouver
Posts: 600
Quote:
Originally Posted by A Pal View Post
1. Yes, please add the command line parameters even without interface options. Please don't forget the parameters for TMT.
EDIT: Version 1.1 tested and added to first post.

Quote:
Originally Posted by A Pal View Post
2. Could you give more specific information about the reset of PDVD 7.3 in Vista/Windows 7? What exactly does your tool do to reset it to 99999 changes?
Well, the script used to build the EXE is plaintext that you can read.

Here is the relevant section:
Code:
$CLDBin = BinOpen ($CLD, 0)

; Often the relevant values are shifted forward by 0x40 (64) bytes; this test byte is (so far) always '00' when this is not the case and '0F' when it is
If BinaryMid ($CLDBin, 0x807, 0x01) = 0 Then	; Chunk1 + Region code + Chunk2 + Changes remaining (99999/0x9F860100) + Chunk3
	$UpdateCL = BinaryMid ($CLDBin, 0x01, 0x800) & Binary (DecSwitch ($Letter)) & BinaryMid ($CLDBin, 0x802, 0x3C) & Binary (99999) & BinaryMid ($CLDBin, 0x845)
Else
	$UpdateCL = BinaryMid ($CLDBin, 0x01, 0x840) & Binary (DecSwitch ($Letter)) & BinaryMid ($CLDBin, 0x842, 0x3C) & Binary (99999) & BinaryMid ($CLDBin, 0x885)
EndIf

BinOpen ($CLD, 2, $UpdateCL)					; Write binary data to CLDShowX.ini stream
It opens the file, reads the binary contents to a variable, closes it, replaces two values, then overwrites the file with the contents of the variable.

Last edited by ChiDragon; 26th June 2010 at 06:30.
ChiDragon is offline   Reply With Quote