13#if __has_include("defs.h")
bool SerEnum_UsingRegistry(std::vector< int > &ports)
Enumerates all values under HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM to retrieve available CO...
Definition serenum3.cpp:18
bool SerEnum_UsingCreateFile(std::vector< int > &ports)
Iterate from 1 to 255 finding those ports for which the CreateFile function doesn't fail.
Definition serenum1.cpp:33
bool SerEnum_UsingSetupAPI(std::vector< int > &ports, std::vector< std::string > &names)
Uses SetupDiEnumDeviceInfo function to retrieve available COM ports and their friendly name.
Definition serenum2.cpp:22