def try_function(name, params, returns, options={}, &def_block)
      begin
        function name, params, returns, options, &def_block
      rescue Win::Errors::NotFoundError
        "This platform does not support function #{name}"
      end
    end
def try_function(name, params, returns, options={}, &def_block)
      begin
        function name, params, returns, options, &def_block
      rescue Win::Errors::NotFoundError
        "This platform does not support function #{name}"
      end
    end
Try to define platform-specific function, rescue error, return message