RegistryHelper::getGuidString

0 0 2025-05-29 本文地址:http://www.pnpon.com/fun/detail-32.html
wstring RegistryHelper::getGuidString(GUID guid)
{
    wchar_t* temp;
    if (FAILED(StringFromCLSID(guid, &temp)))
        throw RegistryException(L"Could not convert GUID to string");
    std::wstring result(temp);
    CoTaskMemFree(temp);

    return result;
}
取消
感谢您的支持,我会继续努力的!
扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

您的支持,是我们前进的动力!