Sha256: 44aaa6665f3370e6bf408857665b237f9e1daafa0edea4852cb0853ce266ecaf

Contents?: true

Size: 929 Bytes

Versions: 3

Compression:

Stored size: 929 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

3 entries across 3 versions & 1 rubygems

Version Path
windows-pr-1.2.6 lib/windows/directory.rb
windows-pr-1.2.5 lib/windows/directory.rb
windows-pr-1.2.2 lib/windows/directory.rb