in child custody matters, the power of the High Court in granting the writ 14is qualified only in cases where the detention of a minor by a person who is not entitled to his legal custody. It has further been held that in child custody matters, the writ of habeas corpus is maintainable where it is proved that the detention of a minor child by a parent or others was illegal and without any authority of law. 13. This Court further held that in child custody matters, the ordinary remedy lies only under the Hindu Minority and Guardianship Act or the Guardians and Wards Act as the case may be. It has been held that there are significant differences between the enquiry under the Guardians and Wards Act and the exercise of powers by a writ court which is summary in nature. It has further been held that what is important is the welfare of the child. It has been further held that where the court is of the view that a detailed enquiry is required, the court may decline to exercise the