Scroll to navigation

libewf(3) Library Functions Manual libewf(3)

NAME

libewf.hLibrary to access the Expert Witness Compression Format (EWF) format

SYNOPSIS

#include <libewf.h>

Support functions
const char *
libewf_get_version(void);

int
libewf_get_access_flags_read(void);

int
libewf_get_access_flags_read_write(void);

int
libewf_get_access_flags_write(void);

int
libewf_get_access_flags_write_resume(void);

int
libewf_get_codepage(int *codepage, libewf_error_t **error);

int
libewf_set_codepage(int codepage, libewf_error_t **error);

int
libewf_check_file_signature(const char *filename, libewf_error_t **error);

int
libewf_glob(const char *filename, size_t filename_length, uint8_t format, char **filenames[], int *number_of_filenames, libewf_error_t **error);

int
libewf_glob_free(char *filenames[], int number_of_filenames, libewf_error_t **error);

Available when compiled with wide character string support:
int
libewf_check_file_signature_wide(const wchar_t *filename, libewf_error_t **error);

int
libewf_glob_wide(const wchar_t *filename, size_t filename_length, uint8_t format, wchar_t **filenames[], int *number_of_filenames, libewf_error_t **error);

int
libewf_glob_wide_free(wchar_t *filenames[], int number_of_filenames, libewf_error_t **error);

Available when compiled with libbfio support:
int
libewf_check_file_signature_file_io_handle(libbfio_handle_t *file_io_handle, libewf_error_t **error);

Notify functions
void
libewf_notify_set_verbose(int verbose);

int
libewf_notify_set_stream(FILE *stream, libewf_error_t **error);

int
libewf_notify_stream_open(const char *filename, libewf_error_t **error);

int
libewf_notify_stream_close(libewf_error_t **error);

Error functions
void
libewf_error_free(libewf_error_t **error);

int
libewf_error_fprint(libewf_error_t *error, FILE *stream);

int
libewf_error_sprint(libewf_error_t *error, char *string, size_t size);

int
libewf_error_backtrace_fprint(libewf_error_t *error, FILE *stream);

int
libewf_error_backtrace_sprint(libewf_error_t *error, char *string, size_t size);

Handle functions
int
libewf_handle_initialize(libewf_handle_t **handle, libewf_error_t **error);

int
libewf_handle_free(libewf_handle_t **handle, libewf_error_t **error);

int
libewf_handle_clone(libewf_handle_t **destination_handle, libewf_handle_t *source_handle, libewf_error_t **error);

int
libewf_handle_signal_abort(libewf_handle_t *handle, libewf_error_t **error);

int
libewf_handle_open(libewf_handle_t *handle, char * const filenames[], int number_of_filenames, int access_flags, libewf_error_t **error);

int
libewf_handle_close(libewf_handle_t *handle, libewf_error_t **error);

ssize_t
libewf_handle_read_buffer(libewf_handle_t *handle, void *buffer, size_t buffer_size, libewf_error_t **error);

ssize_t
libewf_handle_read_buffer_at_offset(libewf_handle_t *handle, void *buffer, size_t buffer_size, off64_t offset, libewf_error_t **error);

ssize_t
libewf_handle_write_buffer(libewf_handle_t *handle, const void *buffer, size_t buffer_size, libewf_error_t **error);

ssize_t
libewf_handle_write_buffer_at_offset(libewf_handle_t *handle, const void *buffer, size_t buffer_size, off64_t offset, libewf_error_t **error);

int
libewf_handle_get_data_chunk(libewf_handle_t *handle, libewf_data_chunk_t **data_chunk, libewf_error_t **error);

ssize_t
libewf_handle_read_data_chunk(libewf_handle_t *handle, libewf_data_chunk_t *data_chunk, libewf_error_t **error);

ssize_t
libewf_handle_write_data_chunk(libewf_handle_t *handle, libewf_data_chunk_t *data_chunk, libewf_error_t **error);

ssize_t
libewf_handle_write_finalize(libewf_handle_t *handle, libewf_error_t **error);

off64_t
libewf_handle_seek_offset(libewf_handle_t *handle, off64_t offset, int whence, libewf_error_t **error);

int
libewf_handle_get_offset(libewf_handle_t *handle, off64_t *offset, libewf_error_t **error);

int
libewf_handle_set_maximum_number_of_open_handles(libewf_handle_t *handle, int maximum_number_of_open_handles, libewf_error_t **error);

int
libewf_handle_get_segment_filename_size(libewf_handle_t *handle, size_t *filename_size, libewf_error_t **error);

int
libewf_handle_get_segment_filename(libewf_handle_t *handle, char *filename, size_t filename_size, libewf_error_t **error);

int
libewf_handle_set_segment_filename(libewf_handle_t *handle, const char *filename, size_t filename_length, libewf_error_t **error);

int
libewf_handle_get_maximum_segment_size(libewf_handle_t *handle, size64_t *maximum_segment_size, libewf_error_t **error);

int
libewf_handle_set_maximum_segment_size(libewf_handle_t *handle, size64_t maximum_segment_size, libewf_error_t **error);

int
libewf_handle_segment_files_corrupted(libewf_handle_t *handle, libewf_error_t **error);

int
libewf_handle_segment_files_encrypted(libewf_handle_t *handle, libewf_error_t **error);

int
libewf_handle_get_filename_size(libewf_handle_t *handle, size_t *filename_size, libewf_error_t **error);

int
libewf_handle_get_filename(libewf_handle_t *handle, char *filename, size_t filename_size, libewf_error_t **error);

Available when compiled with wide character string support:
int
libewf_handle_open_wide(libewf_handle_t *handle, wchar_t * const filenames[], int number_of_filenames, int access_flags, libewf_error_t **error);

int
libewf_handle_get_segment_filename_size_wide(libewf_handle_t *handle, size_t *filename_size, libewf_error_t **error);

int
libewf_handle_get_segment_filename_wide(libewf_handle_t *handle, wchar_t *filename, size_t filename_size, libewf_error_t **error);

int
libewf_handle_set_segment_filename_wide(libewf_handle_t *handle, const wchar_t *filename, size_t filename_length, libewf_error_t **error);

int
libewf_handle_get_filename_size_wide(libewf_handle_t *handle, size_t *filename_size, libewf_error_t **error);

int
libewf_handle_get_filename_wide(libewf_handle_t *handle, wchar_t *filename, size_t filename_size, libewf_error_t **error);

Available when compiled with libbfio support:
int
libewf_handle_open_file_io_pool(libewf_handle_t *handle, libbfio_pool_t *file_io_pool, int access_flags, libewf_error_t **error);

int
libewf_handle_get_file_io_handle(libewf_handle_t *handle, libbfio_handle_t **file_io_handle, libewf_error_t **error);

Meta data functions
int
libewf_handle_get_sectors_per_chunk(libewf_handle_t *handle, uint32_t *sectors_per_chunk, libewf_error_t **error);

int
libewf_handle_set_sectors_per_chunk(libewf_handle_t *handle, uint32_t sectors_per_chunk, libewf_error_t **error);

int
libewf_handle_get_bytes_per_sector(libewf_handle_t *handle, uint32_t *bytes_per_sector, libewf_error_t **error);

int
libewf_handle_set_bytes_per_sector(libewf_handle_t *handle, uint32_t bytes_per_sector, libewf_error_t **error);

int
libewf_handle_get_number_of_sectors(libewf_handle_t *handle, uint64_t *number_of_sectors, libewf_error_t **error);

int
libewf_handle_get_chunk_size(libewf_handle_t *handle, size32_t *chunk_size, libewf_error_t **error);

int
libewf_handle_get_error_granularity(libewf_handle_t *handle, uint32_t *error_granularity, libewf_error_t **error);

int
libewf_handle_set_error_granularity(libewf_handle_t *handle, uint32_t error_granularity, libewf_error_t **error);

int
libewf_handle_get_compression_method(libewf_handle_t *handle, uint16_t *compression_method, libewf_error_t **error);

int
libewf_handle_set_compression_method(libewf_handle_t *handle, uint16_t compression_method, libewf_error_t **error);

int
libewf_handle_get_compression_values(libewf_handle_t *handle, int8_t *compression_level, uint8_t *compression_flags, libewf_error_t **error);

int
libewf_handle_set_compression_values(libewf_handle_t *handle, int8_t compression_level, uint8_t compression_flags, libewf_error_t **error);

int
libewf_handle_get_media_size(libewf_handle_t *handle, size64_t *media_size, libewf_error_t **error);

int
libewf_handle_set_media_size(libewf_handle_t *handle, size64_t media_size, libewf_error_t **error);

int
libewf_handle_get_media_type(libewf_handle_t *handle, uint8_t *media_type, libewf_error_t **error);

int
libewf_handle_set_media_type(libewf_handle_t *handle, uint8_t media_type, libewf_error_t **error);

int
libewf_handle_get_media_flags(libewf_handle_t *handle, uint8_t *media_flags, libewf_error_t **error);

int
libewf_handle_set_media_flags(libewf_handle_t *handle, uint8_t media_flags, libewf_error_t **error);

int
libewf_handle_get_format(libewf_handle_t *handle, uint8_t *format, libewf_error_t **error);

int
libewf_handle_set_format(libewf_handle_t *handle, uint8_t format, libewf_error_t **error);

int
libewf_handle_get_segment_file_version(libewf_handle_t *handle, uint8_t *major_version, uint8_t *minor_version, libewf_error_t **error);

int
libewf_handle_get_segment_file_set_identifier(libewf_handle_t *handle, uint8_t *set_identifier, size_t size, libewf_error_t **error);

int
libewf_handle_set_segment_file_set_identifier(libewf_handle_t *handle, const uint8_t *set_identifier, size_t size, libewf_error_t **error);

int
libewf_handle_get_md5_hash(libewf_handle_t *handle, uint8_t *md5_hash, size_t size, libewf_error_t **error);

int
libewf_handle_set_md5_hash(libewf_handle_t *handle, const uint8_t *md5_hash, size_t size, libewf_error_t **error);

int
libewf_handle_get_sha1_hash(libewf_handle_t *handle, uint8_t *sha1_hash, size_t size, libewf_error_t **error);

int
libewf_handle_set_sha1_hash(libewf_handle_t *handle, const uint8_t *sha1_hash, size_t size, libewf_error_t **error);

int
libewf_handle_get_number_of_chunks_written(libewf_handle_t *handle, uint32_t *number_of_chunks, libewf_error_t **error);

int
libewf_handle_set_read_zero_chunk_on_error(libewf_handle_t *handle, uint8_t zero_on_error, libewf_error_t **error);

int
libewf_handle_copy_media_values(libewf_handle_t *destination_handle, libewf_handle_t *source_handle, libewf_error_t **error);

int
libewf_handle_get_number_of_acquiry_errors(libewf_handle_t *handle, uint32_t *number_of_errors, libewf_error_t **error);

int
libewf_handle_get_acquiry_error(libewf_handle_t *handle, uint32_t index, uint64_t *start_sector, uint64_t *number_of_sectors, libewf_error_t **error);

int
libewf_handle_append_acquiry_error(libewf_handle_t *handle, uint64_t start_sector, uint64_t number_of_sectors, libewf_error_t **error);

int
libewf_handle_get_number_of_checksum_errors(libewf_handle_t *handle, uint32_t *number_of_errors, libewf_error_t **error);

int
libewf_handle_get_checksum_error(libewf_handle_t *handle, uint32_t error_index, uint64_t *start_sector, uint64_t *number_of_sectors, libewf_error_t **error);

int
libewf_handle_append_checksum_error(libewf_handle_t *handle, uint64_t start_sector, uint64_t number_of_sectors, libewf_error_t **error);

int
libewf_handle_get_number_of_sessions(libewf_handle_t *handle, uint32_t *number_of_sessions, libewf_error_t **error);

int
libewf_handle_get_session(libewf_handle_t *handle, uint32_t index, uint64_t *start_sector, uint64_t *number_of_sectors, libewf_error_t **error);

int
libewf_handle_append_session(libewf_handle_t *handle, uint64_t start_sector, uint64_t number_of_sectors, libewf_error_t **error);

int
libewf_handle_get_number_of_tracks(libewf_handle_t *handle, uint32_t *number_of_tracks, libewf_error_t **error);

int
libewf_handle_get_track(libewf_handle_t *handle, uint32_t index, uint64_t *start_sector, uint64_t *number_of_sectors, libewf_error_t **error);

int
libewf_handle_append_track(libewf_handle_t *handle, uint64_t start_sector, uint64_t number_of_sectors, libewf_error_t **error);

int
libewf_handle_get_header_codepage(libewf_handle_t *handle, int *header_codepage, libewf_error_t **error);

int
libewf_handle_set_header_codepage(libewf_handle_t *handle, int header_codepage, libewf_error_t **error);

int
libewf_handle_get_header_values_date_format(libewf_handle_t *handle, int *date_format, libewf_error_t **error);

int
libewf_handle_set_header_values_date_format(libewf_handle_t *handle, int date_format, libewf_error_t **error);

int
libewf_handle_get_number_of_header_values(libewf_handle_t *handle, uint32_t *number_of_values, libewf_error_t **error);

int
libewf_handle_get_header_value_identifier_size(libewf_handle_t *handle, uint32_t index, size_t *identifier_size, libewf_error_t **error);

int
libewf_handle_get_header_value_identifier(libewf_handle_t *handle, uint32_t index, uint8_t *identifier, size_t identifier_size, libewf_error_t **error);

int
libewf_handle_get_utf8_header_value_size(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_handle_get_utf8_header_value(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_handle_set_utf8_header_value(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, const uint8_t *utf8_string, size_t utf8_string_length, libewf_error_t **error);

int
libewf_handle_get_utf16_header_value_size(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_handle_get_utf16_header_value(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_handle_set_utf16_header_value(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, const uint16_t *utf16_string, size_t utf16_string_length, libewf_error_t **error);

int
libewf_handle_copy_header_values(libewf_handle_t *destination_handle, libewf_handle_t *source_handle, libewf_error_t **error);

int
libewf_handle_get_number_of_hash_values(libewf_handle_t *handle, uint32_t *number_of_values, libewf_error_t **error);

int
libewf_handle_get_hash_value_identifier_size(libewf_handle_t *handle, uint32_t index, size_t *identifier_size, libewf_error_t **error);

int
libewf_handle_get_hash_value_identifier(libewf_handle_t *handle, uint32_t index, uint8_t *identifier, size_t identifier_size, libewf_error_t **error);

int
libewf_handle_get_utf8_hash_value_size(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_handle_get_utf8_hash_value(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_handle_set_utf8_hash_value(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, const uint8_t *utf8_string, size_t utf8_string_length, libewf_error_t **error);

int
libewf_handle_get_utf16_hash_value_size(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_handle_get_utf16_hash_value(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_handle_set_utf16_hash_value(libewf_handle_t *handle, const uint8_t *identifier, size_t identifier_length, const uint16_t *utf16_string, size_t utf16_string_length, libewf_error_t **error);

int
libewf_handle_get_root_file_entry(libewf_handle_t *handle, libewf_file_entry_t **root_file_entry, libewf_error_t **error);

int
libewf_handle_get_file_entry_by_utf8_path(libewf_handle_t *handle, const uint8_t *utf8_string, size_t utf8_string_length, libewf_file_entry_t **file_entry, libewf_error_t **error);

int
libewf_handle_get_file_entry_by_utf16_path(libewf_handle_t *handle, const uint16_t *utf16_string, size_t utf16_string_length, libewf_file_entry_t **file_entry, libewf_error_t **error);

Data chunk functions
int
libewf_data_chunk_free(libewf_data_chunk_t **data_chunk, libewf_error_t **error);

int
libewf_data_chunk_is_corrupted(libewf_data_chunk_t *data_chunk, libewf_error_t **error);

ssize_t
libewf_data_chunk_read_buffer(libewf_data_chunk_t *data_chunk, void *buffer, size_t buffer_size, libewf_error_t **error);

ssize_t
libewf_data_chunk_write_buffer(libewf_data_chunk_t *data_chunk, const void *buffer, size_t buffer_size, libewf_error_t **error);

File entry functions
int
libewf_file_entry_free(libewf_file_entry_t **file_entry, libewf_error_t **error);

int
libewf_file_entry_get_identifier(libewf_file_entry_t *file_entry, uint64_t *identifier, libewf_error_t **error);

int
libewf_file_entry_get_type(libewf_file_entry_t *file_entry, uint8_t *type, libewf_error_t **error);

int
libewf_file_entry_get_flags(libewf_file_entry_t *file_entry, uint32_t *flags, libewf_error_t **error);

int
libewf_file_entry_get_media_data_offset(libewf_file_entry_t *file_entry, off64_t *media_data_offset, libewf_error_t **error);

int
libewf_file_entry_get_media_data_size(libewf_file_entry_t *file_entry, size64_t *media_data_size, libewf_error_t **error);

int
libewf_file_entry_get_duplicate_media_data_offset(libewf_file_entry_t *file_entry, off64_t *duplicate_media_data_offset, libewf_error_t **error);

int
libewf_file_entry_get_utf8_name_size(libewf_file_entry_t *file_entry, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_file_entry_get_utf8_name(libewf_file_entry_t *file_entry, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_file_entry_get_utf16_name_size(libewf_file_entry_t *file_entry, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_file_entry_get_utf16_name(libewf_file_entry_t *file_entry, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_file_entry_get_utf8_short_name_size(libewf_file_entry_t *file_entry, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_file_entry_get_utf8_short_name(libewf_file_entry_t *file_entry, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_file_entry_get_utf16_short_name_size(libewf_file_entry_t *file_entry, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_file_entry_get_utf16_short_name(libewf_file_entry_t *file_entry, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_file_entry_get_size(libewf_file_entry_t *file_entry, size64_t *size, libewf_error_t **error);

int
libewf_file_entry_get_creation_time(libewf_file_entry_t *file_entry, int64_t *posix_time, libewf_error_t **error);

int
libewf_file_entry_get_modification_time(libewf_file_entry_t *file_entry, int64_t *posix_time, libewf_error_t **error);

int
libewf_file_entry_get_access_time(libewf_file_entry_t *file_entry, int64_t *posix_time, libewf_error_t **error);

int
libewf_file_entry_get_entry_modification_time(libewf_file_entry_t *file_entry, int64_t *posix_time, libewf_error_t **error);

int
libewf_file_entry_get_deletion_time(libewf_file_entry_t *file_entry, int64_t *posix_time, libewf_error_t **error);

int
libewf_file_entry_get_utf8_hash_value_md5(libewf_file_entry_t *file_entry, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_file_entry_get_utf16_hash_value_md5(libewf_file_entry_t *file_entry, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_file_entry_get_utf8_hash_value_sha1(libewf_file_entry_t *file_entry, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_file_entry_get_utf16_hash_value_sha1(libewf_file_entry_t *file_entry, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

ssize_t
libewf_file_entry_read_buffer(libewf_file_entry_t *file_entry, void *buffer, size_t buffer_size, libewf_error_t **error);

ssize_t
libewf_file_entry_read_buffer_at_offset(libewf_file_entry_t *file_entry, void *buffer, size_t buffer_size, off64_t offset, libewf_error_t **error);

off64_t
libewf_file_entry_seek_offset(libewf_file_entry_t *file_entry, off64_t offset, int whence, libewf_error_t **error);

int
libewf_file_entry_get_offset(libewf_file_entry_t *file_entry, off64_t *offset, libewf_error_t **error);

int
libewf_file_entry_get_number_of_sub_file_entries(libewf_file_entry_t *file_entry, int *number_of_sub_file_entries, libewf_error_t **error);

int
libewf_file_entry_get_sub_file_entry(libewf_file_entry_t *file_entry, int sub_file_entry_index, libewf_file_entry_t **sub_file_entry, libewf_error_t **error);

int
libewf_file_entry_get_sub_file_entry_by_utf8_name(libewf_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libewf_file_entry_t **sub_file_entry, libewf_error_t **error);

int
libewf_file_entry_get_sub_file_entry_by_utf8_path(libewf_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libewf_file_entry_t **sub_file_entry, libewf_error_t **error);

int
libewf_file_entry_get_sub_file_entry_by_utf16_name(libewf_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libewf_file_entry_t **sub_file_entry, libewf_error_t **error);

int
libewf_file_entry_get_sub_file_entry_by_utf16_path(libewf_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libewf_file_entry_t **sub_file_entry, libewf_error_t **error);

int
libewf_file_entry_get_number_of_attributes(libewf_file_entry_t *file_entry, int *number_of_attributes, libewf_error_t **error);

int
libewf_file_entry_get_attribute(libewf_file_entry_t *file_entry, int attribute_index, libewf_attribute_t **attribute, libewf_error_t **error);

int
libewf_file_entry_get_number_of_access_control_entries(libewf_file_entry_t *file_entry, int *number_of_access_control_entries, libewf_error_t **error);

int
libewf_file_entry_get_access_control_entry(libewf_file_entry_t *file_entry, int access_control_entry_index, libewf_access_control_entry_t **access_control_entry, libewf_error_t **error);

int
libewf_file_entry_get_source(libewf_file_entry_t *file_entry, libewf_source_t **source, libewf_error_t **error);

Attribute functions
int
libewf_attribute_free(libewf_attribute_t **attribute, libewf_error_t **error);

int
libewf_attribute_get_utf8_name_size(libewf_attribute_t *attribute, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_attribute_get_utf8_name(libewf_attribute_t *attribute, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_attribute_get_utf16_name_size(libewf_attribute_t *attribute, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_attribute_get_utf16_name(libewf_attribute_t *attribute, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_attribute_get_utf8_value_size(libewf_attribute_t *attribute, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_attribute_get_utf8_value(libewf_attribute_t *attribute, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_attribute_get_utf16_value_size(libewf_attribute_t *attribute, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_attribute_get_utf16_value(libewf_attribute_t *attribute, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

Access control entry functions
int
libewf_access_control_entry_free(libewf_access_control_entry_t **access_control_entry, libewf_error_t **error);

int
libewf_access_control_entry_get_type(libewf_access_control_entry_t *access_control_entry, uint32_t *type, libewf_error_t **error);

int
libewf_access_control_entry_get_utf8_identifier_size(libewf_access_control_entry_t *access_control_entry, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_access_control_entry_get_utf8_identifier(libewf_access_control_entry_t *access_control_entry, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_access_control_entry_get_utf16_identifier_size(libewf_access_control_entry_t *access_control_entry, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_access_control_entry_get_utf16_identifier(libewf_access_control_entry_t *access_control_entry, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_access_control_entry_get_utf8_name_size(libewf_access_control_entry_t *access_control_entry, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_access_control_entry_get_utf8_name(libewf_access_control_entry_t *access_control_entry, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_access_control_entry_get_utf16_name_size(libewf_access_control_entry_t *access_control_entry, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_access_control_entry_get_utf16_name(libewf_access_control_entry_t *access_control_entry, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_access_control_entry_get_access_mask(libewf_access_control_entry_t *access_control_entry, uint32_t *access_mask, libewf_error_t **error);

int
libewf_access_control_entry_get_flags(libewf_access_control_entry_t *access_control_entry, uint32_t *flags, libewf_error_t **error);

Source functions
int
libewf_source_free(libewf_source_t **source, libewf_error_t **error);

int
libewf_source_get_utf8_name_size(libewf_source_t *source, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_name(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_name_size(libewf_source_t *source, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_name(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_evidence_number_size(libewf_source_t *source, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_evidence_number(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_evidence_number_size(libewf_source_t *source, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_evidence_number(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_location_size(libewf_source_t *source, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_location(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_location_size(libewf_source_t *source, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_location(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_device_guid_size(libewf_source_t *source, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_device_guid(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_device_guid_size(libewf_source_t *source, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_device_guid(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_primary_device_guid_size(libewf_source_t *source, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_primary_device_guid(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_primary_device_guid_size(libewf_source_t *source, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_primary_device_guid(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_manufacturer_size(libewf_source_t *source, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_manufacturer(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_manufacturer_size(libewf_source_t *source, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_manufacturer(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_model_size(libewf_source_t *source, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_model(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_model_size(libewf_source_t *source, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_model(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_serial_number_size(libewf_source_t *source, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_serial_number(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_serial_number_size(libewf_source_t *source, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_serial_number(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_domain_size(libewf_source_t *source, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_domain(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_domain_size(libewf_source_t *source, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_domain(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_ip_address_size(libewf_source_t *source, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_ip_address(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_ip_address_size(libewf_source_t *source, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_ip_address(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_mac_address_size(libewf_source_t *source, size_t *utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_mac_address(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_mac_address_size(libewf_source_t *source, size_t *utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_mac_address(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_size(libewf_source_t *source, size64_t *size, libewf_error_t **error);

int
libewf_source_get_acquisition_time(libewf_source_t *source, int64_t *posix_time, libewf_error_t **error);

int
libewf_source_get_utf8_hash_value_md5(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_hash_value_md5(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

int
libewf_source_get_utf8_hash_value_sha1(libewf_source_t *source, uint8_t *utf8_string, size_t utf8_string_size, libewf_error_t **error);

int
libewf_source_get_utf16_hash_value_sha1(libewf_source_t *source, uint16_t *utf16_string, size_t utf16_string_size, libewf_error_t **error);

Subject functions
int
libewf_subject_free(libewf_subject_t **subject, libewf_error_t **error);

DESCRIPTION

The () function is used to retrieve the library version.

RETURN VALUES

Most of the functions return NULL or -1 on error, dependent on the return type. For the actual return values see "libewf.h".

ENVIRONMENT

None

FILES

None

NOTES

libewf can be compiled with wide character support (wchar_t).

To compile libewf with wide character support use: ./configure --enable-wide-character-type=yes
or define: _UNICODE
or UNICODE
during compilation.

LIBEWF_WIDE_CHARACTER_TYPE
in libewf/features.h can be used to determine if libewf was compiled with wide character support.

BUGS

Please report bugs of any kind on the project issue tracker: https://github.com/libyal/libewf/issues

AUTHOR

These man pages are generated from "libewf.h".

COPYRIGHT

Copyright (C) 2006-2024, Joachim Metz <joachim.metz@gmail.com>.

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

the libewf.h include file

December 2, 2020 libewf