    # File lib/chef/win32/security.rb, line 318
          def self.lookup_privilege_display_name(system_name, name)
            system_name = system_name.to_wstring if system_name
            display_name_size = FFI::Buffer.new(:long).write_long(0)
            language_id = FFI::Buffer.new(:long)
            if LookupPrivilegeDisplayNameW(system_name, name.to_wstring, nil, display_name_size, language_id)
              raise "Expected ERROR_INSUFFICIENT_BUFFER from LookupPrivilegeDisplayName, and got no error!"
            elsif Chef::ReservedNames::Win32::Error.get_last_error != ERROR_INSUFFICIENT_BUFFER
              Chef::ReservedNames::Win32::Error.raise!
            end

            display_name = FFI::MemoryPointer.new :char, (display_name_size.read_long*2)
            unless LookupPrivilegeDisplayNameW(system_name, name.to_wstring, display_name, display_name_size, language_id)
              Chef::ReservedNames::Win32::Error.raise!
            end

            [ display_name.read_wstring(display_name_size.read_long), language_id.read_long ]
          end