engiSaveSchemaBNUnicode

This function saves the schema (wchar, i.e. Unicode file name).

Syntax

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

[DllImport(enginedll, EntryPoint = "engiSaveSchemaBNUnicode")]
public static extern byte x86_engiSaveSchemaBNUnicode(Int32 model, string filePath);

[DllImport(enginedll, EntryPoint = "engiSaveSchemaBNUnicode")]
public static extern byte x64_engiSaveSchemaBNUnicode(Int64 model, string filePath);

public static byte engiSaveSchemaBNUnicode(Int64 model, string filePath)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_engiSaveSchemaBNUnicode((Int32)model, filePath);
				return _result;
			}
			else
			{
				return x64_engiSaveSchemaBNUnicode(model, filePath);
			}
		}

[DllImport(enginedll, EntryPoint = "engiSaveSchemaBNUnicode")]
public static extern byte x86_engiSaveSchemaBNUnicode(Int32 model, byte[] filePath);

[DllImport(enginedll, EntryPoint = "engiSaveSchemaBNUnicode")]
public static extern byte x64_engiSaveSchemaBNUnicode(Int64 model, byte[] filePath);

public static byte engiSaveSchemaBNUnicode(Int64 model, byte[] filePath)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_engiSaveSchemaBNUnicode((Int32)model, filePath);
				return _result;
			}
			else
			{
				return x64_engiSaveSchemaBNUnicode(model, filePath);
			}
		}    

Property model

Size: 64 bit / 8 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property filePath

Size: 64 bit / 8 byte (reference)
The file path of the file as available in the file system in Unicode (wchar_t *). The given wchar_t array will not be adjusted. The size of each wchar_t element is depending on the OS, both 16 bit/2 bytes wchar_t elements as well as 32 bit/4 byte wchar_t elements are recognized and supported.