Manually set DeviceInstanceID since this registry key is missing on Windows Vista and Server 2008.
This commit is contained in:
parent
085734aaba
commit
b75bdedaee
2 changed files with 22 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue