Menu

Tree [1b2394] default tip /
 History

Read Only access


File Date Author Commit
 .clang-format 2023-10-02 Oliver Schneider Oliver Schneider [a3cac8] Upgrade to VS2022, reformatted the code, addres...
 .editorconfig 2023-10-02 Oliver Schneider Oliver Schneider [a3cac8] Upgrade to VS2022, reformatted the code, addres...
 .hgignore 2023-10-02 Oliver Schneider Oliver Schneider [1b2394] Fixing some negligence
 .hgtags 2013-12-29 Oliver Schneider Oliver Schneider [9400a4] Added tag 2013-12-29_release for changeset e91d...
 .vsconfig 2023-10-02 Oliver Schneider Oliver Schneider [a3cac8] Upgrade to VS2022, reformatted the code, addres...
 AlternateDataStreams.hpp 2023-10-02 Oliver Schneider Oliver Schneider [5f9922] Cosmetics to unify some related projects
 Directory.Build.props 2023-10-02 Oliver Schneider Oliver Schneider [b382e2] Regenerated the projects
 README.rst 2023-10-02 Oliver Schneider Oliver Schneider [a3cac8] Upgrade to VS2022, reformatted the code, addres...
 VersionInfo.hpp 2023-10-02 Oliver Schneider Oliver Schneider [465511] Addressed SAST findings
 VerySimpleBuf.hpp 2023-10-02 Oliver Schneider Oliver Schneider [465511] Addressed SAST findings
 clang-reformat.sh 2023-10-02 Oliver Schneider Oliver Schneider [5f9922] Cosmetics to unify some related projects
 exeversion.h 2023-10-02 Oliver Schneider Oliver Schneider [5f9922] Cosmetics to unify some related projects
 exeversion.rc 2023-10-02 Oliver Schneider Oliver Schneider [2690e1] Correction to match expectations by existing code
 hgid.cmd 2023-10-02 Oliver Schneider Oliver Schneider [465511] Addressed SAST findings
 lsads.cpp 2023-10-02 Oliver Schneider Oliver Schneider [a3cac8] Upgrade to VS2022, reformatted the code, addres...
 lsads.h 2023-10-02 Oliver Schneider Oliver Schneider [a3cac8] Upgrade to VS2022, reformatted the code, addres...
 lsads.vs17.sln 2023-10-02 Oliver Schneider Oliver Schneider [a3cac8] Upgrade to VS2022, reformatted the code, addres...
 lsads.vs17.vcxproj 2023-10-02 Oliver Schneider Oliver Schneider [b382e2] Regenerated the projects
 lsads.vs17.vcxproj.filters 2023-10-02 Oliver Schneider Oliver Schneider [b382e2] Regenerated the projects
 lsads.vs8.sln 2017-09-15 Oliver Schneider Oliver Schneider [7c6757] Outputting version info from resources now
 lsads.vs8.vcproj 2023-10-02 Oliver Schneider Oliver Schneider [b382e2] Regenerated the projects
 premake4.lua 2023-10-02 Oliver Schneider Oliver Schneider [5f9922] Cosmetics to unify some related projects
 project.early.props 2023-10-02 Oliver Schneider Oliver Schneider [b382e2] Regenerated the projects
 project.late.props 2023-10-02 Oliver Schneider Oliver Schneider [b382e2] Regenerated the projects
 relbuild.cmd 2023-10-02 Oliver Schneider Oliver Schneider [a3cac8] Upgrade to VS2022, reformatted the code, addres...
 setvcvars.cmd 2023-10-02 Oliver Schneider Oliver Schneider [a3cac8] Upgrade to VS2022, reformatted the code, addres...

Read Me

 CAlternateDataStreams and lsads

About

CAlternateDataStreams is a C++ utility class without dependencies to the STL, MFC, ATL or some such. It allows you to list all the alternate data streams (ADS) on an NTFS file or folder.

lsads is a simple tool to enumerate the ADS from the command line.

Installation

No installation required. Download the binaries (32 and 64bit) from SourceForge. Use an archiver to unpack the archive, I recommend 7-Zip, and then place the .exe files into a folder listed in your PATH environment variable.

As for the utility class all you need is to place the files AlternateDataStreams.hpp and VerySimpleBuf.hpp into your project, #include the former and you should be set to use the CAlternateDataStreams C++ class.

Build instructions

If you prefer to use Visual Studio, a solution/project for Visual Studio 2005 is included and you can generate any of the other supported projects yourself using the premake4 that comes with the WinDirStat source code. Use a tool such as sigcheck to verify the code signature on it, though.

The way you generate the projects is by calling premake4 one of the following ways:

premake4 vs2005
premake4 vs2008
premake4 vs2010
premake4 vs2012
premake4 vs2013
premake4 vs2015
premake4 vs2017
premake4 vs2019
premake4 vs2022

The earlier Visual Studio versions may work, but no guarantees.

My prepared premake4.lua can take a number of arguments. Most notably it'll take

  • --xp to generate XP-compatible projects on newer VS versions.
  • --msvcrt to use the msvcrt.dll import Windows Vista WDK which makes the resulting binary statically import msvcrt.dll, but in the version backwards compatible until Windows 2000 (and 2003 for x64). In order to make use of this, you have to set the environment variable WLHBASE to point to your WDK (e.g. WLHBASE=C:\WINDDK\6001.18002).
  • --release will generate the release solution (no Debug configuration) and is used by the relbuild.cmd script. This option implies --xp and --msvcrt at the time of this writing.

Requirements

The program should run on Windows 2000 and later for x86-32, and on Windows 2003 and later for x86-64, aka x64 (this includes Windows XP x64, which used the same code base as Windows 2003 Server). Itanium CPUs are not supported, but feel free to build that yourself, if needed.

The CAlternateDataStreams class should work starting on Windows 2000, too. If you happen to have some old NT4 box around, try it there. It's likely it will still work even there (except if your linker does funny things).

Usage

Syntax:

lsads [--nologo] <path>

License

The tool and the classes are placed into the PUBLIC DOMAIN/CC0, with the exception of CVersionInfo (inside VersionInfo.hpp), which is licensed under the very liberal MIT license. Licensing information can usually be found at the top of each source file. Anything not explicitly licensed in the source file can be assumed to have been placed into the PUBLIC DOMAIN/CC0.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.