Any questions? Ask us: support@enigmaprotector.com

Help

Manual
Additional
Manual

EP_MiscGetWatermark

The EP_MiscGetWatermark function returns watermarks contents. To learn more about watermarks, refer to Miscellaneous - Watermark.

Parameters

  • ID - the number of the watermark to return;
  • WM - a pointer to TWMContent struct. If this parameter is NULL, the function returns the count of watermarks;
  • WM.WMType - returns the watermark type;
  • WM.Name - a pointer to the buffer to return Name of the watermark to. If it is NULL, NameLen returns the required buffer length;
  • WM.NameLen - the size of the buffer for the watermark Name;
  • WM.Text - a pointer to the buffer to return Text of the watermark to. If it is NULL, TextLen returns the required buffer length;
  • WM.TextLen - the size of the buffer for the watermark Text;
  • WM.FileName - a pointer to the buffer to return FileName of the watermark to. If it is NULL, FileNameLen returns the required buffer length;
  • WM.FileNameLen - the size of the buffer for the watermark FileName;
  • WM.AFile - a pointer to the buffer to return File of the watermark to. If it is NULL, AFileLen returns the required buffer length;
  • WM.AFileLen - the size of the buffer for the watermark File;

Return Value

If the function succeeds, the return value is the count of watermarks.

If Name parameter of TWMContent is NULL or the length of the buffer that is placed into NameLen variable is less than required, the function returns the necessary buffer length in the NameLen variable.

If Text parameter of TWMContent is NULL or the length of the buffer that is placed into TextLen variable is less than required, the function returns the necessary buffer length in the TextLen variable.

If FileName parameter of TWMContent is NULL or the length of the buffer that is placed into FileNameLen variable is less than required, the function returns the necessary buffer length in the FileNameLen variable.

If AFile parameter of TWMContent is NULL or the length of the buffer that is placed into AFileLen variable is less than required, the function returns the necessary buffer length in the AFileLen variable.

If the function fails, the return value is 0.

Remark

The function fails in the following cases:

  • no watermarks in the protected file;
  • the application is not protected.

Definition

Show/Hide C++ function definition

extern "C" __declspec( dllexport ) __stdcall int EP_MiscGetWatermark( int ID, PWMContent WM );

Show/Hide Delphi function definition

Show/Hide Visual Basic function definition

Show/Hide C# (.NET) function definition

Examples

Show/Hide Delphi function example

See function examples in the installation folder, Examples\Watermarks subfolder.