(* OCaml-Win32
 * win32_disk.ml
 * Copyright (c) 2002-2004 by Harry Chomsky
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *)

open Win32_core

(********************************************************************)
(* System Services: Files and I/O: SDK Documentation: Storage: Storage Reference: Disk Management Reference *)

type disk_free_space = {
    dfs_sectors_per_cluster : int;
    dfs_bytes_per_sector : int;
    dfs_free_clusters : int32;
    dfs_total_clusters : int32 }
external get_disk_free_space : path:string option -> disk_free_space = "get_disk_free_space"

type disk_free_space_ex = {
    dfsx_free_bytes_available : int64;
    dfsx_total_bytes : int64;
    dfsx_free_bytes : int64 }
external get_disk_free_space_ex : path:string option -> disk_free_space_ex = "get_disk_free_space_ex"
