    # File lib/chef/win32/security.rb, line 87
          def self.convert_sid_to_string_sid(sid)
            sid = sid.pointer if sid.respond_to?(:pointer)
            result = FFI::MemoryPointer.new :pointer
            # TODO: use the W version
            unless ConvertSidToStringSidA(sid, result)
              Chef::ReservedNames::Win32::Error.raise!
            end

            result_string = result.read_pointer.read_string

            Chef::ReservedNames::Win32::Memory.local_free(result.read_pointer)

            result_string
          end