PyUnicode = SHGetSpecialFolderPath(hwndOwner, nFolder , bCreate )

Retrieves the path of a special folder.


hwndOwner : PyHANDLE

Parent window, can be None (or 0)

nFolder : int

One of the CSIDL_* constants specifying the path.

bCreate=0 : int

Should the path be created.


This method is only available in shell version 4.71. If the function is not available, a COM Exception with HRESULT=E_NOTIMPL will be raised. If the function fails, a COM Exception with HRESULT=E_FAIL will be raised.