windll.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:SDK 作者: Keypirinha 项目源码 文件源码
def get_known_folder_path(known_folder_guidstr):
    guid = GUID(known_folder_guidstr)
    path_ptr = ct.c_wchar_p()
    res = shell32.SHGetKnownFolderPath(ct.byref(guid), 0, None, ct.byref(path_ptr))
    if res:
        raise OSError(0, "SHGetKnownFolderPath('{}') failed (code {})".format(known_folder_guidstr, res), None, res)
    return path_ptr.value
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号