Question about shares and \\

i have a quick query regarding the \\ when put into windows and you look for a server name. What actually enables the server to automatically show up with the shared files or folders? Is it just that they're shares and if you've shared content on a network server, you can see them? It may seem like a silly question but is there a service or option i can turn off to stop network machines going into the server using \\server\ and checking the shares?
Comments
Master of Science in Information Security and Assurance - Western Governors University
Bachelor of Science in Network Administration - Western Governors University
Associate of Applied Science x4 - Heald College
The rules can be accessed through the network and sharing center under the advanced sharing rules, powershell, or the windows advanced firewall settings.
Strange enough, sharing and NTFS permissions are one part of the OS's that I deal with daily so I've learned a lot of odd ball tips/tricks about them.
Are you just trying to understand the process or stop people from seeing the shares altogether? If you don't want theme seeing it simply not share to the everyone group (by default on a server when a folder is shared the everyone group has read access).