how to programmatically prevent file access via Ethernet in c# (if internet cable is connected )?
( Not a manual way ) I want to check the file sharing status .

Who wants to help for such a beginner

many thanks