-
-
Save Appendme/be52bb0348ad9e74cc05997de307cf65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Регистрация в Plugin::Initialize() | |
if (FAILED(core->RegisterExtension(IID_IAIMPServiceFileInfo, new FileInfoProvider))) | |
return Fail(); | |
class FileInfoProvider final | |
: public IUnknownII<IAIMPExtensionFileInfoProvider> | |
{ | |
public: | |
FileInfoProvider() = default; | |
HRESULT WINAPI QueryInterface( | |
const IID& riid, LPVOID* ppvObj) override | |
{ | |
if (!ppvObj) return E_POINTER; | |
if (riid == IID_IAIMPExtensionFileInfoProvider) | |
{ | |
*ppvObj = this; | |
AddRef(); | |
return S_OK; | |
} | |
return E_NOINTERFACE; | |
} | |
HRESULT WINAPI GetFileInfo( | |
IAIMPString* fileUri, IAIMPFileInfo* info) override | |
{ | |
/*Code*/ | |
return S_OK; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment