In Files

Parent

Methods

WinEx::Struct::FILETIME

typedef struct _FILETIME

Wrapper for the FILETIME struct.

Public Class Methods

new(string_data = "\000" * 8) click to toggle source

If string_data is not provided, a NULL padded string buffer with the size of the struct is returned.

# File WinEx.rb, line 148
                def initialize(string_data = "\000" * 8)
                        super(string_data)
                end

Public Instance Methods

time() click to toggle source

Returns a Time object.

# File WinEx.rb, line 157
                def time
                        fileTimeToSystemTime = Win32API.new('Kernel32','FileTimeToSystemTime',['P', 'P'], 'I')
                        system_time = SYSTEMTIME.new()
                        fileTimeToSystemTime.call(self, system_time)
                        return system_time.time
                end
to_a() click to toggle source

Returns an Array of the data extracted from the data string.

# File WinEx.rb, line 152
                def to_a
                        return self.unpack('LL')
                end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.