Class: Fzeet::Windows::ShellItem
- Inherits:
-
Object
- Object
- Fzeet::Windows::ShellItem
- Defined in:
- lib/fzeet/windows/shell/Common.rb
Instance Method Summary collapse
Instance Method Details
#path ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/fzeet/windows/shell/Common.rb', line 64 def path result = nil FFI::MemoryPointer.new(:pointer) { |pwcs| next unless GetDisplayName(SIGDN_FILESYSPATH, pwcs) == S_OK wcs = pwcs.read_pointer begin result = Windows.WCSTOMBS(wcs) ensure Windows.CoTaskMemFree(wcs) end } result end |