Optional parameter that specifies the access permissions to be verified. You can add these values together to verify more ...

Optional parameter that specifies the access permissions to be verified. You can add these values together to verify more than one access permission. The default value is 3. The following access permission values are defined in Winnt.h: 
KEY_QUERY_VALUE (0X0001) 
KEY_SET_VALUE (0X0002) 
KEY_CREATE_SUB_KEY (0X0004) 
KEY_ENUMERATE_SUB_KEYS (0X0008) 
KEY_NOTIFY (0X0010) 
KEY_CREATE_LINK (0X0020) 
DELETE (0x00010000) 
READ_CONTROL (0x00020000) 
WRITE_DAC (0X00040000) 
WRITE_OWNER (0X00080000)