summaryrefslogtreecommitdiffstats
path: root/src/win32.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-04-11 11:45:06 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-04-11 11:45:06 +0200
commitb62aab4cde8ec4b2296b40ab05014ee3e9c01854 (patch)
treeff0d8fa7651a23dda50d395248bcd234dd8cfd71 /src/win32.h
parentef4cf90c9405b38b39ec1b033cd17e5a0f4eb65e (diff)
Reorganize how disk geometry, size and sector size is gathered
Diffstat (limited to 'src/win32.h')
-rw-r--r--src/win32.h30
1 files changed, 28 insertions, 2 deletions
diff --git a/src/win32.h b/src/win32.h
index 5ca89b1..3d7c65f 100644
--- a/src/win32.h
+++ b/src/win32.h
@@ -1,4 +1,30 @@
+/*
+
+ File: win32.h
+
+ Copyright (C) 2008 Christophe GRENIER <grenier@cgsecurity.org>
+
+ This software is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write the Free Software Foundation, Inc., 51
+ Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ */
+#ifndef _WIN32_H
+#define _WIN32_H
#if defined(__CYGWIN__) || defined(__MINGW32__)
-void file_win32_disk_get_info(HANDLE handle, disk_t *dev, const int verbose);
+disk_t *file_test_availability_win32(const char *device, const int verbose, const arch_fnct_t *arch, const int testdisk_mode);
+unsigned int disk_get_sector_size_win32(HANDLE handle, const char *device, const int verbose);
+uint64_t disk_get_size_win32(HANDLE handle, const char *device, const int verbose);
+void disk_get_geometry_win32(CHS_t *CHS, HANDLE handle, const char *device, const int verbose);
+#endif
#endif
-