Class: Fzeet::Windows::PROPERTYKEY
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Fzeet::Windows::PROPERTYKEY
- Defined in:
- lib/fzeet/windows/shell/Common.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.[](type, index) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/fzeet/windows/shell/Common.rb', line 14 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 |
Instance Method Details
#==(other) ⇒ Object
29 |
# File 'lib/fzeet/windows/shell/Common.rb', line 29 def ==(other) Windows.memcmp(other, self, size) == 0 end |