Skip to content
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

Microsoft OS 2.0 registry property descriptor #28

Merged
merged 1 commit into from
Jan 31, 2018

Conversation

oostap1
Copy link
Contributor

@oostap1 oostap1 commented Jan 30, 2017

Per MS https://msdn.microsoft.com/en-
us/library/windows/hardware/hh450799(v=vs.85).aspx
device should create DeviceInterfaceGUIDs. It can be done by driver and,
in case of real PnP solution, device should expose MS "Microsoft OS 2.0
registry property descriptor". Such descriptor can insert any record
into Windows registry per device/configuration/interface. In our case it
will insert "DeviceInterfaceGUIDs" multi string property.

GUID is freshly generated and should be OK to use.

Per MS requirements https://msdn.microsoft.com/en-
us/library/windows/hardware/hh450799(v=vs.85).aspx
device should create DeviceInterfaceGUIDs. It can be done by driver and
in case of real PnP solution device should expose MS "Microsoft OS 2.0
registry property descriptor". Such descriptor can insert any record
into Windows registry per device/configuration/interface. In our case it
will insert "DeviceInterfaceGUIDs" multistring property.

GUID is freshly generated and should be OK to use.
@jpliew
Copy link
Contributor

jpliew commented May 20, 2017

Hi @oostap1 will you consider adding an option to define the following please?

//bPropertyData: “{975F44D9-0D08-43FD-8B3E-127CA8AFFF9D}”

'{', 0x00, '9', 0x00, '7', 0x00, '5', 0x00, 'F', 0x00, '4', 0x00, '4', 0x00, 'D', 0x00, '9', 0x00, '-', 0x00,
'0', 0x00, 'D', 0x00, '0', 0x00, '8', 0x00, '-', 0x00, '4', 0x00, '3', 0x00, 'F', 0x00, 'D', 0x00, '-', 0x00,
'8', 0x00, 'B', 0x00, '3', 0x00, 'E', 0x00, '-', 0x00, '1', 0x00, '2', 0x00, '7', 0x00, 'C', 0x00, 'A', 0x00,
'8', 0x00, 'A', 0x00, 'F', 0x00, 'F', 0x00, 'F', 0x00, '9', 0x00, 'D', 0x00, '}'

Because the boards.txt has two different boards,
Arduino Micro 0x2341:0x8037
Leonardo 0x2341:0x8036

Users that have two boards when selecting the boards in Arduino IDE flashing the demo sketch.ino will get the same GUID if during compile time there is no mechanism to choose the right GUID based on the board selected.

Cheers

@alexandr-
Copy link

fixed my issues on chrome under windows 10! Thank you!

@reillyeon reillyeon merged commit d845253 into webusb:gh-pages Jan 31, 2018
@reillyeon
Copy link
Collaborator

Thank you for contributing this patch. I'm sorry it took so long for it to get merged.

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

Successfully merging this pull request may close these issues.

4 participants