コード例 #1
0
        public bool IsInPlane(RegistryPlane plane)
        {
            ThrowIfDisposed();
            var planeString = plane.GetKey();

            return(IORegistryEntryInPlane(Handle, planeString));
        }
コード例 #2
0
        public IORegistryEntry GetParentEntry(RegistryPlane plane)
        {
            ThrowIfDisposed();
            var    planeString = plane.GetKey();
            IntPtr parentRef;
            var    result = IORegistryEntryGetParentEntry(Handle, planeString, out parentRef);

            ThrowIfError(result);
            return(new IORegistryEntry(parentRef, true));
        }
コード例 #3
0
        public string GetPathInPlane(RegistryPlane plane)
        {
            ThrowIfDisposed();
            var planeString = plane.GetKey();
            var path        = new StringBuilder(512);
            var result      = IORegistryEntryGetPath(Handle, planeString, path);

            ThrowIfError(result);
            return(path.ToString());
        }
コード例 #4
0
        public IORegistryIterator <IOObject> GetParentIterator(RegistryPlane plane)
        {
            ThrowIfDisposed();
            var    planeString = plane.GetKey();
            IntPtr iteratorRef;
            var    result = IORegistryEntryGetParentIterator(Handle, planeString, out iteratorRef);

            ThrowIfError(result);
            return(new IORegistryIterator <IOObject> (iteratorRef, true));
        }
コード例 #5
0
        public string GetLocationInPlane(RegistryPlane plane)
        {
            ThrowIfDisposed();
            var planeString = plane.GetKey();
            var location    = new StringBuilder(128);
            var result      = IORegistryEntryGetLocationInPlane(Handle, planeString, location);

            ThrowIfError(result);
            return(location.ToString());
        }
コード例 #6
0
        public string GetNameInPlane(RegistryPlane plane)
        {
            ThrowIfDisposed();
            var planeString = plane.GetKey();
            var name        = new StringBuilder(128);
            var result      = IORegistryEntryGetNameInPlane(Handle, planeString, name);

            ThrowIfError(result);
            return(name.ToString());
        }
コード例 #7
0
        public IORegistryIterator <IOObject> CreateIterator(RegistryPlane plane, RegistryIteratorOptions options)
        {
            ThrowIfDisposed();
            var    planeString = plane.GetKey();
            IntPtr iteratorRef;
            var    result = IORegistryEntryCreateIterator(Handle, planeString, (uint)options, out iteratorRef);

            ThrowIfError(result);
            return(new IORegistryIterator <IOObject> (iteratorRef, true));
        }
コード例 #8
0
ファイル: IORegistryEntry.cs プロジェクト: polipo/maccore
		public string GetLocationInPlane (RegistryPlane plane)
		{
			ThrowIfDisposed ();
			var planeString = plane.GetKey ();
			var location = new StringBuilder (128);
			var result = IORegistryEntryGetLocationInPlane (Handle, planeString, location);
			ThrowIfError (result);
			return location.ToString ();
		}
コード例 #9
0
ファイル: IORegistryEntry.cs プロジェクト: polipo/maccore
		public string GetNameInPlane (RegistryPlane plane)
		{
			ThrowIfDisposed ();
			var planeString = plane.GetKey ();
			var name = new StringBuilder (128);
			var result = IORegistryEntryGetNameInPlane (Handle, planeString, name);
			ThrowIfError (result);
			return name.ToString ();
		}
コード例 #10
0
ファイル: IORegistryEntry.cs プロジェクト: polipo/maccore
		public IORegistryIterator<IOObject> CreateIterator (RegistryPlane plane, RegistryIteratorOptions options)
		{
			ThrowIfDisposed ();
			var planeString = plane.GetKey ();
			IntPtr iteratorRef;
			var result = IORegistryEntryCreateIterator (Handle, planeString, (uint)options, out iteratorRef);
			ThrowIfError (result);
			return new IORegistryIterator<IOObject> (iteratorRef, true);
		}
コード例 #11
0
ファイル: IORegistryEntry.cs プロジェクト: polipo/maccore
		internal static IORegistryIterator<IOObject> CreateRootIteratorForPort (IntPtr machPort, RegistryPlane plane, RegistryIteratorOptions options)
		{
			var planeString = plane.GetKey ();
			IntPtr iteratorRef;
			var result = IORegistryCreateIterator (machPort, planeString, (uint)options, out iteratorRef);
			ThrowIfError (result);
			return new IORegistryIterator<IOObject> (iteratorRef, true);
		}
コード例 #12
0
ファイル: IORegistryEntry.cs プロジェクト: polipo/maccore
		public static IORegistryIterator<IOObject> CreateRootIterator (RegistryPlane plane, RegistryIteratorOptions options)
		{
			return CreateRootIteratorForPort (kIOMasterPortDefault, plane, options);
		}
コード例 #13
0
        internal static IORegistryIterator <IOObject> CreateRootIteratorForPort(IntPtr machPort, RegistryPlane plane, RegistryIteratorOptions options)
        {
            var    planeString = plane.GetKey();
            IntPtr iteratorRef;
            var    result = IORegistryCreateIterator(machPort, planeString, (uint)options, out iteratorRef);

            ThrowIfError(result);
            return(new IORegistryIterator <IOObject> (iteratorRef, true));
        }
コード例 #14
0
ファイル: IORegistryEntry.cs プロジェクト: polipo/maccore
		public IORegistryEntry GetParentEntry (RegistryPlane plane)
		{
			ThrowIfDisposed ();
			var planeString = plane.GetKey ();
			IntPtr parentRef;
			var result = IORegistryEntryGetParentEntry (Handle, planeString, out parentRef);
			ThrowIfError (result);
			return new IORegistryEntry (parentRef, true);
		}
コード例 #15
0
ファイル: IORegistryEntry.cs プロジェクト: polipo/maccore
		public string GetPathInPlane (RegistryPlane plane)
		{
			ThrowIfDisposed ();
			var planeString = plane.GetKey ();
			var path = new StringBuilder (512);
			var result = IORegistryEntryGetPath (Handle, planeString, path);
			ThrowIfError (result);
			return path.ToString ();
		}
コード例 #16
0
ファイル: IOMasterPort.cs プロジェクト: NikoXu/maccore
 public IORegistryIterator <IOObject> CreateRootIterator(RegistryPlane plane, RegistryIteratorOptions options)
 {
     return(IORegistryEntry.CreateRootIteratorForPort(Handle, plane, options));
 }
コード例 #17
0
ファイル: IORegistryEntry.cs プロジェクト: polipo/maccore
		public IORegistryIterator<IOObject> GetParentIterator (RegistryPlane plane)
		{
			ThrowIfDisposed ();
			var planeString = plane.GetKey ();
			IntPtr iteratorRef;
			var result = IORegistryEntryGetParentIterator (Handle, planeString, out iteratorRef);
			ThrowIfError (result);
			return new IORegistryIterator<IOObject> (iteratorRef, true);
		}
コード例 #18
0
ファイル: Enums.cs プロジェクト: NikoXu/maccore
 public static string GetKey(this RegistryPlane value)
 {
     return(GetKeyForEnum(value));
 }
コード例 #19
0
ファイル: IORegistryEntry.cs プロジェクト: polipo/maccore
		public bool IsInPlane (RegistryPlane plane)
		{
			ThrowIfDisposed ();
			var planeString = plane.GetKey ();
			return IORegistryEntryInPlane (Handle, planeString);
		}
コード例 #20
0
 public static IORegistryIterator <IOObject> CreateRootIterator(RegistryPlane plane, RegistryIteratorOptions options)
 {
     return(CreateRootIteratorForPort(kIOMasterPortDefault, plane, options));
 }