How to Fix EP_RegHardwareID Api

Post here messages if you have any problems with working of Enigma Protector
Post Reply
buzzard
Posts: 23
Joined: Sat Jun 04, 2011 8:18 am

How to Fix EP_RegHardwareID Api

Post by buzzard »

i'm facing a problem. I don't know is it My Fault or Enigma bug. I
usuallu use few Enigma api like EP_RegKeyDaysLeft , EP_TrialDaysLeft
in Visual Studio Express 2012. These api works fine But
EP_RegHardwareID This api does not work. Check the image please.
After protecting I always get this error message.

Image

I'm using Enigma_4.00_20140304_en.exe
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: How to Fix EP_RegHardwareID Api

Post by Enigma »

Hi,

This happens with latest version of .NET framework files.

Just use the function EP_RegistrationHardwareID from the EnigmaIDE.cs, it calls the native EP_RegHardwareID safely.
buzzard
Posts: 23
Joined: Sat Jun 04, 2011 8:18 am

Re: How to Fix EP_RegHardwareID Api

Post by buzzard »

Sorry bro, Actually I don't use c# I'm using visual Basic in .net. is there any other way please ? I also don't get any Function EP_RegistrationHardwareID from the EnigmaIDE.cs .
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: How to Fix EP_RegHardwareID Api

Post by Enigma »

Ah, ok...

Can you convert this C# code in VB.NET?

Code: Select all

    public static string EP_RegistrationHardwareID()
    {
        return Marshal.PtrToStringAnsi(EP_RegHardwareID());
    }
buzzard
Posts: 23
Joined: Sat Jun 04, 2011 8:18 am

Re: How to Fix EP_RegHardwareID Api

Post by buzzard »

Thanks bro got it. :)
Post Reply