Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <shobjidl.h>
- #include <propkey.h>
- #include <propvarutil.h>
- //Tying around IPropertyStore, change an mp3 file property
- void main()
- {
- CoInitialize(NULL);
- IPropertyStore* store = NULL;
- SHGetPropertyStoreFromParsingName(L"C:\\Temp\\tests\\judas-priest-firepower.mp3", NULL, GPS_READWRITE, __uuidof(IPropertyStore), (void**)&store);
- PROPVARIANT variant;
- store->GetValue(PKEY_Music_AlbumArtist, &variant);
- InitPropVariantFromString(L"Tata Monique", &variant);
- store->SetValue(PKEY_Music_AlbumArtist, variant);
- store->Commit();
- store->Release();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement