API Question

Post here any topics that related to Enigma Protector, its functionality, your misunderstanding, offers to improvements etc etc etc
Post Reply
Posts: 8
Joined: Tue May 10, 2016 2:57 pm

API Question

Post by lynx550 » Thu Aug 25, 2016 10:31 pm

At what size of a string would you use EP_ProtectedStringByKeyAsWideString INSTEAD OF EP_ProtectedStringByKeyAsAnsiString ?

What are the size limits of each and how do they differ?

Site Admin
Posts: 2546
Joined: Wed Aug 20, 2008 2:24 pm

Re: API Question

Post by Enigma » Fri Aug 26, 2016 9:49 am

Hi, there are no size limitations.

Basically, these two functions should be used for different kind of strings.

If you oen Enigma Protector, Protection Features - Protected Strings and if you edit a string, there is an Option button. There are options to select a type of string, this could be either ansi string, either wide string. WideString is better to use for recent version of Delphi, Ansi string could be usedful for D7 and earlier.

So if you marked your string as WideString, use EP_ProtectedStringByKeyAsWideString function to extract it.

Post Reply