class Fzeet::Windows::ShellItemArray
Public Instance Methods
count()
click to toggle source
# File lib/fzeet/windows/shell/Common.rb, line 125 def count; FFI::MemoryPointer.new(:ulong) { |pc| next unless GetCount(pc) == S_OK; return pc.get_ulong(0) } end
each(&block)
click to toggle source
# File lib/fzeet/windows/shell/Common.rb, line 143 def each(&block) length.times { |i| get(i, &block) }; self end
get(i) { |si| ... }
click to toggle source
# File lib/fzeet/windows/shell/Common.rb, line 129 def get(i) FFI::MemoryPointer.new(:pointer) { |psi| next unless GetItemAt(i, psi) == S_OK si = ShellItem.new(psi.read_pointer) begin yield si ensure si.Release end } end