Protection API - SDP_IsRegistered


SDP_IsRegistered

The SDP_IsRegistered function is used to check whether a valid license is present

  For C++:

        BOOL SDP_IsRegistered();

  For Delphi:

        function SDP_IsRegistered:LongBool;

Parameters
This function has no parameters.
Return Values
If a valid license is present, the return value is nonzero.

If no valid license is present, the return value is zero.

Remarks
You should avoid using a global variable in all of your code to indicate whether it is registered. if you want to check, please use this protection API we provided
Example
for C++

#include "SDProtector.h"
//...
BOOL CheckLicense() { if(SDP_IsRegistered()) { //if registered ::MessageBox(NULL,"This a registered version","Info",MB_ICONINFORMATION);
} else { //if not registered ::MessageBox(NULL,"This an unregistered version","Info",MB_ICONINFORMATION); }

}

for Delphi

        
procedure CheckLicense; begin if SDP_IsRegistered() = True then MessageBox(0,'This a registered version', 'Info', MB_ICONINFORMATION); else MessageBox(0,'This an unregistered version', 'Info', MB_ICONINFORMATION); end;
Sample application is located in \Examples\Delphi\API\ and \Examples\VC\API\ directory.
 
CopyRight(C) 2003 SDProtector.com All Rights Reserved