MLIB
Loading...
Searching...
No Matches
serenum.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <vector>
9#include <string>
10
11#if __has_include("defs.h")
12#include "defs.h"
13#endif
14
15namespace mlib {
16
17bool SerEnum_UsingCreateFile (std::vector<int>& ports);
18bool SerEnum_UsingSetupAPI (std::vector<int>& ports, std::vector<std::string>& names);
19bool SerEnum_UsingRegistry (std::vector<int>& ports);
20
21} // namespace mlib
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:32
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:23