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
上面这些是什么意思啊清高收帮忙注释下 谢谢
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
上面这些是什么意思啊清高收帮忙注释下 谢谢
Const HKEY_CLASSES_ROOT = &H80000000'当前用户的配置和优先级
Const HKEY_CURRENT_USER = &H80000001'有关本机的物理硬件,软件,网络和安全性的信息
Const HKEY_LOCAL_MACHINE = &H80000002'本机所有用户的列表,及其设置和优先级
Const HKEY_USERS = &H80000003'本机显示器和打印机的配置信息
Const HKEY_CURRENT_CONFIG = &H80000005
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 READ_CONTROL=&H20000
以后使用READ_CONTROL 实际上就是使用&H20000
免费的学习、交流、源码、工具网站,欢迎大家访问!
http://www.j2soft.cn/
不过我也觉得这些东西挺麻烦的.
在C++的文档里倒是有比较详细的说明,API本来就是给C++用的,在VB说明做得不是很好,要找一些定义挺麻烦
中的值=&H20000是什么意思我差了很多资料多没看见
由于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.
sure answer
Else
up
End If