public static IntPtr NewNativeLocalFile(string path, bool followLinks) { IntPtr aResult; using (nsACString aPath = new nsACString(path)) { NS_NewNativeLocalFile(aPath, followLinks, out aResult); } return aResult; }
internal static extern int NS_CStringGetData(nsACString aString, out IntPtr aData, IntPtr aTerminated);
internal static extern int NS_CStringSetData(nsACString aString, string aData, int aDataLength);
internal static extern int NS_CStringContainerFinish(nsACString aString);
internal static extern int NS_CStringContainerInit(nsACString aString);
internal static extern int NS_NewNativeLocalFile(nsACString aPath, bool aFollowLinks, out IntPtr aResult);