I assume that your code is running in a window of Windows7 or later.
As Sorceri notes in his comment, your application can run under standard rights, and you used elevated rights to map the drive.
If so, you have 2 solutions:
Hopes this helps.
source share