public const READ_CONTROL=&H20000
public const STANDARD_RIGHTS_READ=(READ_CONTROL)
public const STANDARD_RIGHTS_WRITE=(READ_CONTROL)
public const KEY_QUERY_VALUE=&H1
public const KEY_SET_VALUE=&H2
public const KEY_CREATE_SUB_KEY=&H4
public const KEY_ENUMERATE_SUB_KEYS=&H8
public const KEY_NOTIFY=&H10
public const KEY_CREATE_LINK=&H20
public const SYNCHRONIZE=&H100000
public const STANDARD_RIGHTS_ALL=&H1F0000
public const ERROR_SUCCESS=0%
public const HKEY_CLASSES_ROOT=&H80000000
public const HKEY_CURRENT_USER=&H80000001
public const HKEY_LOCAL_MACHINE=&H80000002
public const HKEY_USERS=&H80000003
上面这些是什么意思啊清高收帮忙注释下 谢谢

解决方案 »

  1.   

    定义的一些常量,它们是整型的,int
      

  2.   

    都是VB操作注册表的API中用到的常量,比如:'按文件类型定义,描述文档类. 及他们如何被运用和管理的
    Const HKEY_CLASSES_ROOT = &H80000000'当前用户的配置和优先级
    Const HKEY_CURRENT_USER = &H80000001'有关本机的物理硬件,软件,网络和安全性的信息
    Const HKEY_LOCAL_MACHINE = &H80000002'本机所有用户的列表,及其设置和优先级
    Const HKEY_USERS = &H80000003'本机显示器和打印机的配置信息
    Const HKEY_CURRENT_CONFIG = &H80000005
      

  3.   

    HKEY_是注册表的长量,哪些树上比较多
    public const READ_CONTROL=&H20000
    public const STANDARD_RIGHTS_READ=(READ_CONTROL)
    public const STANDARD_RIGHTS_WRITE=(READ_CONTROL)
    public const KEY_QUERY_VALUE=&H1
    public const KEY_SET_VALUE=&H2
    public const KEY_CREATE_SUB_KEY=&H4
    public const KEY_ENUMERATE_SUB_KEYS=&H8
    public const KEY_NOTIFY=&H10
    public const KEY_CREATE_LINK=&H20
    public const SYNCHRONIZE=&H100000
    public const STANDARD_RIGHTS_ALL=&H1F0000
    public const ERROR_SUCCESS=0%
    是什么意思啊
      

  4.   

    在不同的API函数里面每个常量恐怕不一定意义一样!!
      你上面就是常量声明!
    比如:public const READ_CONTROL=&H20000
     以后使用READ_CONTROL 实际上就是使用&H20000
      

  5.   

    就是声明的一些常量,具体的到API文本浏览器中去查询,至于每一个常量的意见,可以查询一下API帮助说明文档。========================
    免费的学习、交流、源码、工具网站,欢迎大家访问!
    http://www.j2soft.cn/
      

  6.   

    这要看你是用在什么API里啦.
    不过我也觉得这些东西挺麻烦的.
    在C++的文档里倒是有比较详细的说明,API本来就是给C++用的,在VB说明做得不是很好,要找一些定义挺麻烦
      

  7.   

    常量值在不同函数或API中意义不一样。这里前面用别名来定义常量,就是为了好记。所以这可以看出常量的意义,但就是不知是要用在什么函数或是什么API之类的引用中。
      

  8.   

    比如:public const READ_CONTROL=&H20000
    中的值=&H20000是什么意思我差了很多资料多没看见
      

  9.   

    READ_CONTROL等是权限API所用的常数,NT平台才有,属于罕见API
    由于Microsoft想为注册表访问也增加权限控制,所以也用到了这些常数MSDN:
    Standard Access Rights
    Each type of securable object has a set of access rights that correspond to operations specific to that type of object. In addition to these object-specific access rights, there is a set of standard access rights that correspond to operations common to most types of securable objects. Both the Windows NT access mask format and the provider-independent access mask format include a set of bits for the standard access rights. For a table that maps the Windows NT standard access rights to the corresponding provider-independent access rights, see Provider-Independent and Windows NT Access Rights.The following table shows the Win32 constants defined for the standard access rights. Constant Meaning 
    DELETE The right to delete the object. 
    READ_CONTROL The right to read the information in the object's security descriptor, not including the information in the SACL. 
    SYNCHRONIZE The right to use the object for synchronization. This enables a thread to wait until the object is in the signaled state. Some object types do not support this access right. 
    WRITE_DAC The right to modify the DACL in the object's security descriptor. 
    WRITE_OWNER The right to change the owner in the object's security descriptor. 
    The Win32 API also defines the following constants that are combinations of the standard access rights.Constant Meaning 
    STANDARD_RIGHTS_ALL Combines DELETE, READ_CONTROL, WRITE_DAC, WRITE_OWNER, and SYNCHRONIZE access. 
    STANDARD_RIGHTS_EXECUTE Currently defined to equal READ_CONTROL. 
    STANDARD_RIGHTS_READ Currently defined to equal READ_CONTROL. 
    STANDARD_RIGHTS_REQUIRED Combines DELETE, READ_CONTROL, WRITE_DAC, and WRITE_OWNER access. 
    STANDARD_RIGHTS_WRITE Currently defined to equal READ_CONTROL. 
      

  10.   

    我是来接分的。楼上的把我想说的全说了。haha
      

  11.   

    If VB.understand Then
       sure answer 
    Else
      up
    End If