Skip to content

Update the connectorInstance field description #1101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: docs
Choose a base branch
from

Conversation

mr-intj
Copy link

@mr-intj mr-intj commented Mar 22, 2022

'type' in this context is too vague. It seems that it may be referring to DISPLAYCONFIG_TARGET_BASE_TYPE.baseOutputTechnology?

We were trying to use connectorInstance as part of a composite key that would uniquely identify each target monitor connected to an adapter. However, a test system with three monitors connected returned 0 for each of them. The same system with two of those monitors disconnected (leaving only the primary monitor) returned 1 for connectorInstance.

connectorInstance seems to need a clearer, more comprehensive explanation.

I think it would also be very helpful to identify the fields (from various CCD structs) that, taken together, uniquely identify a target device, and are stable between OS restarts. It seems to me to be a common requirement to identify a display, associate some data/state to it, persist that data between runs of an app, and then retrieve it and use it to locate that display again (if it's connected). We thought connectorInstance would be a good way to do that, but it seems not. Since Microsoft's Display settings app seems to do all of this, some explanation would be very helpful and avoid a lot of empirical experimentation...

'type' in this context is too vague. It seems that it may be referring to `DISPLAYCONFIG_TARGET_BASE_TYPE.baseOutputTechnology`?

We were trying to use `connectorInstance` as part of a composite key that would uniquely identify each target monitor connected to an adapter. However, a test system with three monitors connected returned **0** for each of them. The same system with two of those monitors disconnected (leaving only the primary monitor) returned **1** for connectorInstance.

**`connectorInstance`** seems to need a clearer, more comprehensive explanation.

I think it would also be very helpful to identify the fields (from various CCD structs) that, taken together, uniquely identify a target device, and are stable between OS restarts. It seems to me to be a common requirement to identify a display, associate some data/state to it, persist that data between runs of an app, and then retrieve it and use it to locate that display again (if it's connected). We thought connectorInstance would be a good way to do that, but it seems not. Since Microsoft's **Display settings** app seems to do all of this, some explanation would be very helpful and avoid a lot of empirical experimentation...
@PRMerger-2
Copy link

@mr-intj : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@mr-intj
Copy link
Author

mr-intj commented Mar 23, 2022

Forgot to add this link, which provides additional information/context:

https://stackoverflow.com/questions/71565110/displayconfig-target-device-name-connectorinstance-is-zero-when-multiple-monitor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants