为什么从 HDC 时 DisplayMonitors 会失败?
HDC monitorDC = (CreateDC(displayDevices[0].DeviceName, displayDevices[0].DeviceName, NULL, NULL));
// Generates valid HDC from EnumDisplayDevices
EnumDisplayMonitors(NULL, NULL, MonitorEnumProc, 0)
// Returns true
EnumDisplayMonitors(monitorDC, NULL, MonitorEnumProc, 0)
// Returns false