To enable SMB sharing, open the Sharing pane of MacOS System Preferences and select the option for File Sharing. And set Shared folders and Users.
Check the required items in Windows Control Panel > Network and Sharing Center > Advanced sharing settings.
Home or Work (current profile) > Turn on network discovery, Turn on file and printer sharing
All Networks > Turn on password protected sharing
Select Advanced Sharing in Properties of sharing folder and set custom permissions.
Tap Network at the bottom and select +(New server).
Enter the Host address (required)
Enter the Title and User/Password (optional)
Enter the Port, Path, Workgroup in the Advanced at the bottom (optional)
Or select Scan Network….
Connectable servers appear.
Select the server with your PC name.