libyal / libbde

Library and tools to access the BitLocker Drive Encryption (BDE) encrypted volumes
GNU Lesser General Public License v3.0
214 stars 52 forks source link

Question about include/libbde/features.h.in #32

Closed sspring closed 5 years ago

sspring commented 5 years ago

It's just a question.https://github.com/libyal/libbde/blob/aa1aba109f82a14bc141f1b069ae51e93e20dfe6/include/libbde/features.h.in#L35 Do you suggest that all functions with LIBBDE_HAVE_BFIO defined shouldn't be used on Windows?
so I can't use libbde_check_volume_signature_file_io_handle on windows if I don't define HAVE_LIBBFIO directly.

joachimmetz commented 5 years ago

Do you suggest that all functions with LIBBDE_HAVE_BFIO defined shouldn't be used on Windows?

No, this line suggest that to use libbfio on Windows (Visual Studio primarily) you'll have to define HAVE_LIBBFIO. "|| ( !defined( WINAPI ) && @HAVE_LIBBFIO@ )" is an override for platforms not WINAPI and that have autotools generate libbde/include/libbde/features.h

sspring commented 5 years ago

Got it.Thanks a lot.