richardyusan wrote:i dont know to start begin coding , because no example for c++........
Hi richardyusan,
is not so hard,i understand that you are a novice programmer,let's ask Vladimir to show an example about C++,so in the meantime (even i donot know the c++)
i try to explain the logic about string protection.
Code: Select all
void Password()
{
if(Input = "[b]blablabla[/b]")
{
MessageBox(0,"Correct Password !","Info",0);
}
else
{
MessageBox(0,"Wrong Password !","Info",0);
}
}
open Enigma
->PROTECTION FEATURES->Protected Strings
If you want to protect the "blablabla"
Click ADD and fill the field String Data with
blablabla click Ok
Your string can be pulled now from ID or the key (note that Id and key are filled in Enigma with some data)
EP_ProtectedStringByID function returns protected strings. See also Protection Features - Protected Strings.
Parameters
ID - ID of protected string - integer value.
Buffer - pointer to the buffer for protected string. If this parameter is NULL function returns necessary size of buffer.
Len - size of the Buffer for protected string.
Return Value
The function returns size of buffer for protected string or 0 if function fails.
Remark
The function fails in the following cases:
there is no protected string with required ID;
application is not protected.
Definition
by id
extern "C" __declspec( dllimport ) __stdcall int EP_ProtectedStringByID( int Total, char* Left, int Len);
Parameters
Key - pointer to the null terminated string that contain a key of protected string.
Buffer - pointer to the buffer for protected string. If this parameter is NULL function returns necessary size of buffer.
Len - size of the Buffer for protected string.
Return Value
The function returns size of buffer for protected string or 0 if function fails.
Remark
The function fails in the following cases:
there is no protected string with required Key;
application is not protected.
by key
extern "C" __declspec( dllimport ) __stdcall int EP_ProtectedStringByKey( char* Key, char* Left, int Len);
inside aplication you must call the ID or Key