MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / Create

Method Create

WinSysCore/DeviceManager.cpp:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18std::unique_ptr<DeviceManager> DeviceManager::Create(const wchar_t* computerName /* = nullptr */,
19 const GUID* classGuid,
20 const wchar_t* enumerator /* = nullptr */, InfoSetOptions options /* = InfoSetOptions::Present | InfoSetOptions::AllClasses */) {
21 auto dm = new DeviceManager(computerName, classGuid, enumerator, options);
22 if (dm->_hInfoSet)
23 return std::unique_ptr<DeviceManager>(dm);
24 delete dm;
25 return nullptr;
26}
27
28std::vector<DeviceInfo> DeviceManager::EnumDevices() {
29 std::vector<DeviceInfo> devices;

Callers 15

CreateAndInitToolBarFunction · 0.45
OnCreateMethod · 0.45
OnInitDialogMethod · 0.45
OnInitDialogMethod · 0.45
OnInitDialogMethod · 0.45
OnInitDialogMethod · 0.45
OnInitDialogMethod · 0.45
OnInitDialogMethod · 0.45
ExecuteMethod · 0.45
UndoMethod · 0.45
OnCreateMethod · 0.45
OnCreateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected