예제 #1
0
        public DeviceNode GetParent()
        {
            UInt32 node;
            CR     ret = SetupApi.CM_Get_Parent(out node, DevInst, 0);

            if (ret == CR.NO_SUCH_DEVNODE)
            {
                return(null);
            }
            CMException.Throw(ret, "CM_Get_Parent");
            return(new DeviceNode(node));
        }