Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
aspr_api.pas
Package: ASProtectV2.4.rar [view]
Upload User: graphite
Upload Date: 2020-09-09
Package Size: 2587k
Code Size: 6k
Category:
Crack_Hack
Development Platform:
Others
- unit aspr_api;
- interface
- uses
- Windows;
- type
- //' Mode status
- TModeStatus = packed record
- ModeID : Byte;
- IsRegistered,
- IsKeyPresent,
- IsWrongHardwareID,
- IsKeyExpired,
- IsModeExpired,
- IsBlackListedKey,
- IsModeActivated : Boolean;
- end;
- PModeStatus = ^TModeStatus;
- function GetRegistrationKeys: PChar; stdcall;
- function GetRegistrationInformation ( ModeID : Byte; var Key : PChar; var Name : PChar ): Boolean; stdcall;
- function RemoveKey ( ModeID : Byte ): Boolean; stdcall;
- function CheckKey ( Key, Name : PChar; ModeStatus : PModeStatus ): Boolean; stdcall;
- function CheckKeyAndDecrypt ( Key, Name : PChar; SaveKey: Boolean ): Boolean; stdcall;
- function GetKeyDate ( ModeID : Byte;
- var Day : WORD;
- var Month : WORD;
- var Year : WORD ): Boolean; stdcall;
- function GetKeyExpirationDate ( ModeID : Byte;
- var Day : WORD;
- var Month : WORD;
- var Year : WORD ): Boolean; stdcall;
- function GetTrialDays ( ModeID : Byte;
- var Total : DWORD;
- var Left : DWORD ): Boolean; stdcall;
- function GetTrialExecs ( ModeID : Byte;
- var Total : DWORD;
- var Left : DWORD ): Boolean; stdcall;
- function GetExpirationDate ( ModeID : Byte;
- var Day : WORD;
- var Month : WORD;
- var Year : WORD ): Boolean; stdcall;
- function GetModeInformation ( ModeID : Byte;
- var ModeName : PChar;
- var ModeStatus : TModeStatus ): Boolean; stdcall;
- function GetHardwareID : PChar; stdcall;
- function GetHardwareIDEx ( ModeID : Byte ) : PChar; stdcall;
- function SetUserKey ( Key : Pointer;
- KeySize : DWORD ): Boolean; stdcall;
- function InstallActivationKey ( Key, Name : String ) : Boolean;
- implementation
- const
- aspr_ide = 'aspr_ide.dll';
- //------------------------------------------------------------------------------
- function GetRegistrationKeys: PChar; external aspr_ide name 'GetRegistrationKeys';
- function GetRegistrationInformation ( ModeID : Byte; var Key : PChar; var Name : PChar ): Boolean; external aspr_ide name 'GetRegistrationInformation';
- function RemoveKey ( ModeID : Byte ): Boolean; external aspr_ide name 'RemoveKey';
- function CheckKey ( Key, Name : PChar; ModeStatus : PModeStatus ): Boolean; external aspr_ide name 'CheckKey';
- function CheckKeyAndDecrypt ( Key, Name : PChar; SaveKey: Boolean ): Boolean; external aspr_ide name 'CheckKeyAndDecrypt';
- function GetKeyDate ( ModeID : Byte;
- var Day : WORD;
- var Month : WORD;
- var Year : WORD ): Boolean; external aspr_ide name 'GetKeyDate';
- function GetKeyExpirationDate ( ModeID : Byte;
- var Day : WORD;
- var Month : WORD;
- var Year : WORD ): Boolean; external aspr_ide name 'GetKeyExpirationDate';
- function GetTrialDays ( ModeID : Byte;
- var Total : DWORD;
- var Left : DWORD ): Boolean; external aspr_ide name 'GetTrialDays';
- function GetTrialExecs ( ModeID : Byte;
- var Total : DWORD;
- var Left : DWORD ): Boolean; external aspr_ide name 'GetTrialExecs';
- function GetExpirationDate ( ModeID : Byte;
- var Day : WORD;
- var Month : WORD;
- var Year : WORD ): Boolean; external aspr_ide name 'GetExpirationDate';
- function GetModeInformation ( ModeID : Byte;
- var ModeName : PChar;
- var ModeStatus : TModeStatus ): Boolean; external aspr_ide name 'GetModeInformation';
- function GetHardwareID : PChar; external aspr_ide name 'GetHardwareID';
- function GetHardwareIDEx ( ModeID : Byte ) : PChar; external aspr_ide name 'GetHardwareIDEx';
- function SetUserKey ( Key : Pointer;
- KeySize : DWORD ): Boolean; external aspr_ide name 'SetUserKey';
- //------------------------------------------------------------------------------
- function InstallActivationKey( Key, Name : String ) : Boolean;
- var
- ModeStatus : TModeStatus;
- begin
- Result := False;
- ZeroMemory(@ModeStatus, SizeOf(TModeStatus));
- if aspr_api.CheckKey( PChar(Key), PChar(Name), @ModeStatus ) then
- begin
- with ModeStatus do
- if (IsModeActivated) AND
- ((ModeID = 3) or (ModeID = 4)) then
- begin
- Result := aspr_api.CheckKeyAndDecrypt( PChar(Key), PChar(Name), True );
- end;
- end;
- end;
- //------------------------------------------------------------------------------
- end.