I'm following this blog to write the same code to change the System.AppUserModel.ID
of a window: The Old New Thing :: How do I prevent users from pinning my program to the taskbar?
He is doing:
hr = pps->SetValue(pkey, var);
PropVariantClear(&var);
He does not do a pps->Commit()
, I'm getting confused because I have written the code, I do SetValue
and I do Commit
but my changes won't take.
How come he doesn't do Commit
? Is he mistaken? Or is his a special case where you don't need Commit
?
Thanks