(* OCaml-Win32
 * win32_directory.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: Directory Management Reference *)

external create_directory : name:string -> security:security_attributes option -> unit = "create_directory"

external create_directory_ex : template:string -> name:string -> security:security_attributes option -> unit = "create_directory_ex"

external find_close_change_notification : handle:handle -> unit = "find_close_change_notification"

external find_first_change_notification :
    path:string ->
    watch_subtree:bool ->
    filter:file_change_type list ->
    handle = "find_first_change_notification"

external find_next_change_notification : handle:handle -> unit = "find_next_change_notification"

external get_current_directory : unit -> string = "get_current_directory"

external remove_directory : name:string -> unit = "remove_directory"

external set_current_directory : name:string -> unit = "set_current_directory"
