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

Type mismatch between STGM constants, various storage object method parameters #754

Closed
yan0lovesha opened this issue Nov 23, 2021 · 2 comments
Assignees
Labels
usability Touch-up to improve the user experience for a language projection

Comments

@yan0lovesha
Copy link

OpenPropertyStore here has a parameter stgmaccess which is u32. But the constant like STGM_READ and STGM_Write here is defined as i32.

@riverar
Copy link
Collaborator

riverar commented Nov 23, 2021

Transferring to win32metadata. This is another example of #750.

Some more helpful information for others:

Some affected methods: IMMDevice::OpenPropertyStore, IFunctionInstance::OpenPropertyStore

Example method on Windows.Win32.Media.Audio.IMMDevice

HRESULT OpenPropertyStore(
  [in]  DWORD          stgmAccess,
  [out] IPropertyStore **ppProperties
);

Constants in metadata

// win32metadata 15.0.10.58516
public const int STGM_READ = 0;
public const int STGM_WRITE = 1;
public const int STGM_READWRITE = 2;
...

@riverar riverar changed the title type mismatch of the parameter stgmaccess in function OpenPropertyStore Type mismatch between STGM constants, various storage object method parameters Nov 23, 2021
@riverar riverar transferred this issue from microsoft/windows-rs Nov 23, 2021
@mikebattista mikebattista self-assigned this Nov 29, 2021
@mikebattista mikebattista added the usability Touch-up to improve the user experience for a language projection label Nov 29, 2021
@riverar
Copy link
Collaborator

riverar commented Dec 2, 2021

Thanks again @mikebattista!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability Touch-up to improve the user experience for a language projection
Projects
None yet
Development

No branches or pull requests

3 participants