WCHAR* temp = L"{AB8902B4-09CA-4BB6-B78D-A8F59079A8D5}";
CLSID clsid;
CLSIDFromString(temp, &clsid);
CLSIDFromProgID(L"Word.Application", &clsid);
LPOLESTR a;
if (StringFromCLSID(clsid, &a) == S_OK)
{
CoTaskMemFree(a);
}
LPOLESTR b;
if (S_OK == ProgIDFromCLSID(clsid, &b))
{
CoTaskMemFree(b);
}
CLSID学习
最新推荐文章于 2024-06-25 15:51:53 发布