Skip to content

PSCreateMemoryPropertyStore out param should be [ComPtr] #2182

@jevansaks

Description

@jevansaks

This method clearly returns a COM object but isn't [ComPtr] so CsWin32 doesn't promote it to an "object" out param as it would for COM parameters.

[DllImport("PROPSYS.dll", ExactSpelling = true, PreserveSig = false)]
[SupportedOSPlatform("windows5.1.2600")]
[Documentation("https://learn.microsoft.com/windows/win32/api/propsys/nf-propsys-pscreatememorypropertystore")]
public unsafe static extern HRESULT PSCreateMemoryPropertyStore([In][Const] Guid* riid, [Out] void** ppv);

ppv needs [ComPtr] too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions