[DllImport(IOKit)] // plane = IOService public static extern IOReturn IORegistryEntryGetPath(int entry, [MarshalAs(UnmanagedType.LPStr)] string plane, out io_string_t path);
[DllImport(IOKit, EntryPoint = "IORegistryEntryGetPath")] // plane = IOService public static extern IOReturn IORegistryEntryGetPath(int entry, [MarshalAs(UnmanagedType.LPStr)] string plane, out io_string_t path);
public static extern int IORegistryEntryFromPath(int masterPort, ref io_string_t path);
public static extern int IORegistryEntryFromPath(int masterPort, ref io_string_t path);