Manually set DeviceInstanceID since this registry key is missing on Windows Vista and Server 2008.

This commit is contained in:
Adam Ierymenko 2015-08-13 15:52:54 -07:00
parent 085734aaba
commit b75bdedaee
2 changed files with 22 additions and 3 deletions

View file

@ -53,9 +53,10 @@ public:
* Installs a new instance of the ZT tap driver
*
* @param pathToInf Path to zttap driver .inf file
* @param deviceInstanceId Buffer to fill with device instance ID on success (and if SetupDiGetDeviceInstanceIdA succeeds, which it should)
* @return Empty string on success, otherwise an error message
*/
static std::string addNewPersistentTapDevice(const char *pathToInf);
static std::string addNewPersistentTapDevice(const char *pathToInf,std::string &deviceInstanceId);
/**
* Uninstalls all persistent tap devices that have legacy drivers