Skip to content

windows-core::GUID::new should call UuidCreate directly rather than bounce through CoCreateGuid #3652

@Robo210

Description

@Robo210

Suggestion

CoCreateGuid is in ole32.dll, and is a simple forwarder to UuidCreate in rpcrt4.dll. Swapping GUID::new to call UuidCreate directly would allow people to use GUIDs for things outside of COM without needing to link against the COM libraries.

ole32.dll is not always available in every Windows edition, but rpcrt4.dll currently is. It would be nice for the GUID class to not statically link to ole32.dll for those of us targeting the smaller Windows editions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions