c++ SHGetPathFromIDList
SHGetPathFromIDList is a Windows API function that is used to retrieve the path from an ITEMIDLIST that represents a file or folder in the file system. The function takes two parameters:
-
HWND hwndOwner: This parameter is a handle to the owner window of any message boxes that the function might display during its operation. This parameter can be set to NULL if no message boxes are expected.
-
LPITEMIDLIST pidl: This parameter is a pointer to the ITEMIDLIST that represents the file or folder whose path is to be retrieved.
The function returns a BOOL value indicating success or failure. If the operation is successful, the function returns TRUE and the path of the file or folder is stored in the buffer pointed to by the second parameter. If the operation fails, the function returns FALSE
原文地址: http://www.cveoy.top/t/topic/hcGk 著作权归作者所有。请勿转载和采集!