Page 1 of 1

VIRTUAL Box - registery

Posted: Fri Mar 23, 2018 8:11 pm
by Alieivazzadeh
is this possible to Write some data like Strings or binary data to Virtual registry after compile and link it with enigma?
and how can i do that with C++?
Similar Functions or another method?
Please give the sample source code

Like that C# code:

Code: Select all

public bool Write(string KeyName, object Value)
{
    try
    {
        // Setting
        RegistryKey rk = baseRegistryKey ;
        // I have to use CreateSubKey 
        // (create or open it if already exits), 
        // 'cause OpenSubKey open a subKey as read-only
        RegistryKey sk1 = rk.CreateSubKey(subKey);
        // Save the value
        sk1.SetValue(KeyName.ToUpper(), Value);

        return true;
    }
    catch (Exception e)
    {
        // AAAAAAAAAAARGH, an error!
        ShowErrorMessage(e, "Writing registry " + KeyName.ToUpper());
        return false;
    }
}
The full code on this link: https://www.codeproject.com/Articles/33 ... try-with-C

Re: VIRTUAL Box - registery

Posted: Mon Mar 26, 2018 1:27 pm
by Enigma
Hi, yes, this would be possible, but please note, after application restart these changes will be ignored. So all changes to virtual files and registry are working within one running session only. When application restarts, protection takes the initial files and registry parameters. Is it OK for you?