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 = "GetAssertionFileW")]
public static extern IntPtr GetAssertionFileW(out IntPtr fileName);
public static string GetAssertionFileW()
{
IntPtr fileName = IntPtr.Zero;
GetAssertionFileW(out fileName);
return System.Runtime.InteropServices.Marshal.PtrToStringUni(fileName);
}
Property fileName
Size: 32 bit / 4 byte (reference)
The file name of the file as available in the file system in Unicode (wchar_t *). 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.