与 dogprotect / linux-build 分支同一次改名,等价内容:
- 产品名/展示串、SDK 与运行时导出 API、.NET 命名空间全部换为 DogProtect
- 文件名与目录改名(dogprotect.sln / DogProtect/ / DogProtectCon/ / sdk/DogProtect.SDK/ /
sdk/DogProtectSDK.{h,pas,bas,inc} / runtime/DogProtect.Runtime/ / core/dogprotect.rc /
app/dogprotect_gui.app)
- 项目文件扩展名 .vmp → .dog;VM 代码节名默认 .dog(产物节 .dog0/.dog1/...)
- 授权数据/配置: DogProtect.dat、DogProtectLicense.ini、Global\\DogProtect.dat
- 域名占位 dogprotect.example、bundle id com.dogprotect.dogprotect
- 保留 VMP_* 内部宏与 third-party/
69 lines
2.2 KiB
PHP
69 lines
2.2 KiB
PHP
; protection
|
|
DogProtectBegin PROTO :DWORD
|
|
DogProtectBeginVirtualization PROTO :DWORD
|
|
DogProtectBeginMutation PROTO :DWORD
|
|
DogProtectBeginUltra PROTO :DWORD
|
|
DogProtectBeginVirtualizationLockByKey PROTO :DWORD
|
|
DogProtectBeginUltraLockByKey PROTO :DWORD
|
|
DogProtectEnd PROTO
|
|
|
|
; utils
|
|
DogProtectIsProtected PROTO
|
|
DogProtectIsDebuggerPresent PROTO :DWORD
|
|
DogProtectIsVirtualMachinePresent PROTO
|
|
DogProtectIsDebuggerPresent PROTO :DWORD
|
|
DogProtectDecryptStringA PROTO :DWORD
|
|
DogProtectDecryptStringW PROTO :DWORD
|
|
DogProtectFreeString PROTO :DWORD
|
|
|
|
; licensing
|
|
SERIAL_STATE_SUCCESS equ 0
|
|
SERIAL_STATE_FLAG_CORRUPTED equ 0x00000001
|
|
SERIAL_STATE_FLAG_INVALID equ 0x00000002
|
|
SERIAL_STATE_FLAG_BLACKLISTED equ 0x00000004
|
|
SERIAL_STATE_FLAG_DATE_EXPIRED equ 0x00000008
|
|
SERIAL_STATE_FLAG_RUNNING_TIME_OVER equ 0x00000010
|
|
SERIAL_STATE_FLAG_BAD_HWID equ 0x00000020
|
|
SERIAL_STATE_FLAG_MAX_BUILD_EXPIRED equ 0x00000040
|
|
|
|
DogProtectDate STRUCT
|
|
wYear WORD ?
|
|
bMonth BYTE ?
|
|
bDay BYTE ?
|
|
DogProtectDate ENDS
|
|
|
|
DogProtectSerialNumberData STRUCT
|
|
nState DWORD ? ; DogProtectSerialStateFlags
|
|
wUserName WCHAR[256] ; user name
|
|
wEMail WCHAR[256] ; email
|
|
dtExpire DogProtectDate <> ; date of serial number expiration
|
|
dtMaxBuild DogProtectDate <> ; max date of build, that will accept this key
|
|
bRunningTime DWORD ? ; running time in minutes
|
|
nUserDataLength BYTE ? ; length of user data in bUserData
|
|
bUserData BYTE[255] ? ; up to 255 bytes of user data
|
|
DogProtectSerialNumberData ENDS
|
|
|
|
DogProtectSetSerialNumber PROTO :DWORD
|
|
DogProtectGetSerialNumberState PROTO
|
|
DogProtectGetSerialNumberData PROTO :DWORD,:DWORD
|
|
DogProtectGetCurrentHWID PROTO :DWORD,:DWORD
|
|
|
|
; activation
|
|
ACTIVATION_OK equ 0
|
|
ACTIVATION_SMALL_BUFFER equ 1
|
|
ACTIVATION_NO_CONNECTION equ 2
|
|
ACTIVATION_BAD_REPLY equ 3
|
|
ACTIVATION_BANNED equ 4
|
|
ACTIVATION_CORRUPTED equ 5
|
|
ACTIVATION_BAD_CODE equ 6
|
|
ACTIVATION_ALREADY_USED equ 7
|
|
ACTIVATION_SERIAL_UNKNOWN equ 8
|
|
ACTIVATION_NOT_AVAILABLE equ 9
|
|
|
|
DogProtectActivateLicense PROTO :DWORD,:DWORD,:DWORD
|
|
DogProtectDeactivateLicense PROTO :DWORD
|
|
DogProtectGetOfflineActivationString PROTO :DWORD,:DWORD,:DWORD
|
|
DogProtectGetOfflineDeactivationString PROTO :DWORD,:DWORD,:DWORD
|
|
|
|
; libs
|
|
includelib DogProtectSDK32.lib |