Class: Chef::ReservedNames::Win32::API::File::REPARSE_DATA_BUFFER_MOUNT_POINT

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/chef/win32/api/file.rb

Instance Method Summary collapse

Instance Method Details



332
333
334
335
# File 'lib/chef/win32/api/file.rb', line 332

def print_name
  string_pointer = FFI::Pointer.new(pointer.address) + offset_of(:PathBuffer) + self[:PrintNameOffset]
  string_pointer.read_wstring(self[:PrintNameLength] / 2)
end

#substitute_nameObject



327
328
329
330
# File 'lib/chef/win32/api/file.rb', line 327

def substitute_name
  string_pointer = FFI::Pointer.new(pointer.address) + offset_of(:PathBuffer) + self[:SubstituteNameOffset]
  string_pointer.read_wstring(self[:SubstituteNameLength] / 2)
end