A simple C++ utility that takes a directory path and prints the visible column names in Windows Explorer's detail view for that directory using the Windows Shell API and IColumnManager
.
This tool helps you retrieve the list of column names that are visible in the Windows Explorer detail view for a specific directory. It utilizes the Windows Shell API, particularly the IColumnManager
interface, to access the column information.
- Retrieves visible column names for any directory in Windows Explorer.
- Utilizes modern C++ practices and Windows Shell utility functions.
- Simplified code without unnecessary complexities.
- Operating System: Windows Vista or later.
- Development Environment: Visual Studio (2015 or later recommended).
- Windows SDK: Ensure that the Windows SDK is installed and configured in your development environment.
- Clone the repository
git clone https://github.com/shea-c4/GetColumnsCppApp.git
-
Open a Visual Studio Developer Command Prompt
-
Navigate to the project directory.
cd path\to\GetColumnsCppApp
- Compile the source code
cl /EHsc /D_UNICODE /DUNICODE GetColumnsCppApp.cpp /link shell32.lib ole32.lib propsys.lib
- Explanation of Flags:
- /EHsc: Enables standard C++ exception handling.
- /D_UNICODE /DUNICODE: Defines Unicode support.
- /link: Specifies the libraries to link against.
- Run the executable
After successful compilation, run the executable:
GetColumnsCppApp.exe C:\Windows
This project is licensed under the MIT License