    # File lib/chef/win32/security.rb, line 102
          def self.convert_string_sid_to_sid(string_sid)
            result = FFI::MemoryPointer.new :pointer
            unless ConvertStringSidToSidW(string_sid.to_wstring, result)
              Chef::ReservedNames::Win32::Error.raise!
            end

            result_pointer = result.read_pointer
            sid = SID.new(result_pointer)

            # The result pointer must be freed with local_free
            ObjectSpace.define_finalizer(sid, Memory.local_free_finalizer(result_pointer))

            sid
          end