Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to map a dirve using install script?


1 reply to this topic

vkj

vkj
  • Members
  • 15 posts

Posted 07 October 2002 - 12:16

How can I map a network drive using install script? I tried using WNetAddConnection2A in mpr.dll, but it didn't work.

  Also I used WNetGetConnection2A to get the conneciton information of an already mapped drive. Eventhough the function returns ERROR_SUCCESS, I am getting some garbage value in the UNC path return string.



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 October 2002 - 12:59

I believe these APIs are using Unicode strings, so you must call the appropriate API to convert your strings.