29
29
uint32 reg_type, uint32 access_mask,
30
30
POLICY_HND *reg_hnd)
32
ZERO_STRUCTP(reg_hnd);
32
ZERO_STRUCTP(reg_hnd);
36
case HKEY_CLASSES_ROOT:
34
if (reg_type == HKEY_CLASSES_ROOT)
37
35
return rpccli_winreg_OpenHKCR( cli, mem_ctx, NULL,
38
access_mask, reg_hnd, NULL);
40
case HKEY_LOCAL_MACHINE:
36
access_mask, reg_hnd, NULL);
37
else if (reg_type == HKEY_LOCAL_MACHINE)
41
38
return rpccli_winreg_OpenHKLM( cli, mem_ctx, NULL,
42
access_mask, reg_hnd, NULL);
39
access_mask, reg_hnd, NULL);
40
else if (reg_type == HKEY_USERS)
45
41
return rpccli_winreg_OpenHKU( cli, mem_ctx, NULL,
46
access_mask, reg_hnd, NULL);
48
case HKEY_CURRENT_USER:
42
access_mask, reg_hnd, NULL);
43
else if (reg_type == HKEY_CURRENT_USER)
49
44
return rpccli_winreg_OpenHKCU( cli, mem_ctx, NULL,
50
access_mask, reg_hnd, NULL);
52
case HKEY_PERFORMANCE_DATA:
45
access_mask, reg_hnd, NULL);
46
else if (reg_type == HKEY_PERFORMANCE_DATA)
53
47
return rpccli_winreg_OpenHKPD( cli, mem_ctx, NULL,
54
access_mask, reg_hnd, NULL);
57
/* fall through to end of function */
61
return NT_STATUS_INVALID_PARAMETER;
48
access_mask, reg_hnd, NULL);
50
return NT_STATUS_INVALID_PARAMETER;
64
53
/*******************************************************************