class Unknownr::Windows::PROPERTYKEY

Public Class Methods

[](type, index) click to toggle source
# File lib/unknownr.rb, line 389
def self.[](type, index)
        new.tap { |key|
                key[:fmtid].tap { |guid|
                        guid[:Data1] = 0x00000000 + index
                        guid[:Data2] = 0x7363
                        guid[:Data3] = 0x696e
                        [0x84, 0x41, 0x79, 0x8a, 0xcf, 0x5a, 0xeb, 0xb7].each_with_index { |part, i|
                                guid[:Data4][i] = part
                        }
                }

                key[:pid] = type
        }
end

Public Instance Methods

==(other) click to toggle source
# File lib/unknownr.rb, line 404
def ==(other) Windows.memcmp(other, self, size) == 0 end