I know I can use the WNetAddConnection2 and similar variants to connect to remote shares using custom credentials. I would like to do the same for mapped drives (ex:\\MyShare\MyFolder
mapped to Y:
) and my local disks (eg: C:
,D:
,E:
, etc...)
If I point WNetAddConnection to something not \\
it fails...
Is there a function specific for this scenario???