We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
24 ) 25 pObject = POINTER(cls)() ---> 26 pServiceProvider.QueryService( 27 clsid or cls._iid_, 28 cls._iid_, 29 pObject, 30 ) 31 return pObject COMError: (-2147467262, 'No such interface supported', (None, None, None, 0, None))
This works fine on my windows 10 machine. Not sure what to do with this on Windows 11.
The text was updated successfully, but these errors were encountered:
Do you have some minimal reproducing code sample?
Sorry, something went wrong.
The following code in an incorrect way to call QueryService if QueryService is from the IServiceProvider class
pServiceProvider.QueryService( clsid or cls._iid_, cls._iid_, pObject, )
you need to only pass the IID of the service and also the interface Not a pointer to the interface.
so as follows
pObject = pServiceProvider.QueryService( cls._iid_, cls )
No branches or pull requests
This works fine on my windows 10 machine. Not sure what to do with this on Windows 11.
The text was updated successfully, but these errors were encountered: