Sha256: 4e21aa38b3fa710e18926f3e844ffd4818fc997443748b6e53bf0e74ffbde4a7

Contents?: true

Size: 902 Bytes

Versions: 4

Compression:

Stored size: 902 Bytes

Contents

require 'windows/api'

# The Windows::Directory module contains functions that are used in directory
# management. Note that functions that could be applied to files or
# directories, such as CreateFile(), are probably in the Windows::File
# module.
#
module Windows
  module Directory
    API.auto_namespace = 'Windows::Directory'
    API.auto_constant  = true
    API.auto_method    = true
    API.auto_unicode   = true

    private

    API.new('CreateDirectory', 'PP', 'B')
    API.new('CreateDirectoryEx', 'PPP', 'B')
    API.new('FindCloseChangeNotification', 'L', 'B')
    API.new('FindFirstChangeNotification', 'PIL', 'L')
    API.new('FindNextChangeNotification', 'PIL', 'B')
    API.new('GetCurrentDirectory', 'LP', 'L')
    API.new('ReadDirectoryChangesW', 'LPLILPPP', 'B') # No ANSI equivalent
    API.new('RemoveDirectory', 'P', 'B')
    API.new('SetCurrentDirectory', 'P', 'B')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
windows-pr-1.2.4 lib/windows/directory.rb
windows-pr-1.2.3 lib/windows/directory.rb
windows-pr-1.2.1 lib/windows/directory.rb
windows-pr-1.2.0 lib/windows/directory.rb