GetAssertionFile

This function gets the file location as stored/set internally where internal assertions should be written to. It works independent if the file location is set through SetAssertionFile() or SetAssertionFileW().

Syntax

public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "GetAssertionFile")]
public static extern IntPtr GetAssertionFile(out IntPtr fileName);

public static string GetAssertionFile()
        {
            IntPtr fileName = IntPtr.Zero;
            GetAssertionFile(out fileName);
            return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(fileName);
        }    

Property fileName

Size: 64 bit / 8 byte (reference)
The file name of the file as available in the file system in ASCII (char *). The given pointer to the array will be filled with the file name / path as available in the library if set or otherwise filled with a null pointer. the memory is allocaed by the library and available as long as the library is active.