thanks~

解决方案 »

  1.   

    ms-help://MS.MSDNQTR.2003FEB.2052/cpref/html/frlrfsystemserviceprocessserviceinstallerclassdisplaynametopic.htm
      

  2.   

    i can't find this page~ could you copy its content to here for me??
      

  3.   

    .NET Framework Class Library   ServiceInstaller.DisplayName Property  [C#]See Also
    ServiceInstaller Class | ServiceInstaller Members | System.ServiceProcess Namespace | ServiceName | ServiceInstaller Members (Visual J# Syntax) | Managed Extensions for C++ Programming 
    Requirements
    Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family.NET Framework Security:  Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code 
    Language
    C#C++JScriptVisual BasicShow All
    Indicates the friendly name that identifies the service to the user.[Visual Basic]
    Public Property DisplayName As String[C#]
    public string DisplayName {get; set;}[C++]
    public: __property String* get_DisplayName();
    public: __property void set_DisplayName(String*);[JScript]
    public function get DisplayName() : String;
    public function set DisplayName(String);Property Value
    The name associated with the service, used frequently for interactive tools.Res
    The DisplayName is used, for example, in the Service Control Manager to provide a user-readable descriptive name for the service. The DisplayName is a registry value, but is never used as a registry key. Therefore, restrictions on the ServiceName property value do not apply. ServiceName is used as the HKEY_LOCAL_MACHINES\System\CurentControlSet\Services registry key, so it is restricted.The display name is never used by the install utility to identify the service, so there are no restrictions on the choice of name, as there is for the ServiceName property.Requirements
    Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family.NET Framework Security:  Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code 
    See Also
    ServiceInstaller Class | ServiceInstaller Members | System.ServiceProcess Namespace | ServiceName | ServiceInstaller Members (Visual J# Syntax) | Managed Extensions for C++ Programming 
    Syntax based on .NET Framework version 1.1.
    Documentation version 1.1.0.
    --------------------------------------------------------------------------------Send comments on this topic. © 2001-2002 Microsoft Corporation. All rights reserved. 
      

  4.   

    给你个中文的  .NET Framework 类库   ServiceInstaller.DisplayName 属性请参见
    ServiceInstaller 类 | ServiceInstaller 成员 | System.ServiceProcess 命名空间 | ServiceName | ServiceInstaller 成员(Visual J# 语法) | C++ 托管扩展编程 
    要求
    平台: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列.NET Framework 安全性:  对直接调用方完全信任。部分受信任的代码不能使用此成员。有关更多信息,请参阅在部分受信任的代码中使用库 
    语言
    C#C++JScriptVisual Basic全部显示
    指示向用户标识服务的友好名称。[Visual Basic]
    Public Property DisplayName As String[C#]
    public string DisplayName {get; set;}[C++]
    public: __property String* get_DisplayName();
    public: __property void set_DisplayName(String*);[JScript]
    public function get DisplayName() : String;
    public function set DisplayName(String);属性值
    与服务关联的名称,常用于交互工具。备注
    例如,DisplayName 用在“服务控制管理器”中为服务提供用户可读的描述性名称。DisplayName 是一个注册表值,但从不用作注册表项。因此,对 ServiceName 属性值的限制并不适用。ServiceName 用作 HKEY_LOCAL_MACHINES\System\CurentControlSet\Services 注册表项,因此它是受限制的。安装实用工具从不使用显示名称来标识服务,因此对名称选择没有像对 ServiceName 属性一样的限制。要求
    平台: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列.NET Framework 安全性:  对直接调用方完全信任。部分受信任的代码不能使用此成员。有关更多信息,请参阅在部分受信任的代码中使用库 
    请参见
    ServiceInstaller 类 | ServiceInstaller 成员 | System.ServiceProcess 命名空间 | ServiceName | ServiceInstaller 成员(Visual J# 语法) | C++ 托管扩展编程 
    --------------------------------------------------------------------------------发送有关此主题的意见 © 2001-2002 Microsoft Corporation。保留所有权利。 
      

  5.   

    改的仍是名字唷,我需要改描述嗄,怎改啊??thanks~
      

  6.   

    捺就修改注册表
    HKEY_LOCAL_MACHINES\System\CurentControlSet\Services\服务名\Description