On 05/01/2019 16:03, Bart wrote: > I need some function to get a unique ID for a disk.
Take a look at OnGuard - which is software copy projection software written for Delphi and FPC (originally by TurboPower Software Co). The latest software changes I made to it can be found on Github: https://www.github.com/graemeg/onguard/ See the ogutils.pas unit. If I remember correctly the hard drive detection code worked for Windows, Linux, FreeBSD and OSX (? - not 100% sure about this one). Hope that helps. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal