Lines Matching refs:param
316 struct winreg_OpenHKCR *param = arg;
322 bzero(¶m->handle, sizeof (winreg_handle_t));
323 param->status = ERROR_ACCESS_DENIED;
325 bcopy(id, ¶m->handle, sizeof (winreg_handle_t));
326 param->status = ERROR_SUCCESS;
344 struct winreg_Close *param = arg;
345 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle;
351 bzero(¶m->result_handle, sizeof (winreg_handle_t));
352 param->status = ERROR_SUCCESS;
396 struct winreg_CreateKey *param = arg;
397 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle;
403 subkey = (char *)param->subkey.str;
406 bzero(param, sizeof (struct winreg_CreateKey));
407 param->status = ERROR_ACCESS_DENIED;
416 bzero(param, sizeof (struct winreg_CreateKey));
417 param->status = ERROR_INVALID_HANDLE;
423 bzero(param, sizeof (struct winreg_CreateKey));
424 param->status = ERROR_NOT_ENOUGH_MEMORY;
437 bcopy(&key->sk_handle, ¶m->result_handle,
442 param->action = action;
443 param->status = ERROR_SUCCESS;
466 bcopy(id, ¶m->result_handle, sizeof (winreg_handle_t));
470 param->action = action;
471 param->status = ERROR_SUCCESS;
476 bzero(param, sizeof (struct winreg_CreateKey));
477 param->status = ERROR_NOT_ENOUGH_MEMORY;
487 struct winreg_DeleteKey *param = arg;
488 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle;
492 subkey = (char *)param->subkey.str;
495 param->status = ERROR_ACCESS_DENIED;
505 param->status = ERROR_ACCESS_DENIED;
523 param->status = ERROR_SUCCESS;
529 param->status = ERROR_ACCESS_DENIED;
622 struct winreg_DeleteValue *param = arg;
624 param->status = ERROR_ACCESS_DENIED;
634 struct winreg_EnumKey *param = arg;
635 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle;
647 bzero(param, sizeof (struct winreg_EnumKey));
648 param->status = ERROR_NO_MORE_ITEMS;
652 subkey = winreg_enum_subkey(mxa, name, param->index);
655 bzero(param, sizeof (struct winreg_EnumKey));
656 param->status = ERROR_NO_MORE_ITEMS;
660 if (NDR_MSTRING(mxa, subkey, (ndr_mstring_t *)¶m->name_out) == -1) {
662 bzero(param, sizeof (struct winreg_EnumKey));
663 param->status = ERROR_NOT_ENOUGH_MEMORY;
672 param->name_out.length = param->name_out.allosize;
673 param->status = ERROR_SUCCESS;
683 struct winreg_EnumValue *param = arg;
684 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle;
687 bzero(param, sizeof (struct winreg_EnumValue));
688 param->status = ERROR_NO_MORE_ITEMS;
692 bzero(param, sizeof (struct winreg_EnumValue));
693 param->status = ERROR_NO_MORE_ITEMS;
705 struct winreg_FlushKey *param = arg;
706 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle;
709 param->status = ERROR_INVALID_HANDLE;
711 param->status = ERROR_SUCCESS;
723 struct winreg_GetKeySec *param = arg;
737 param->sd = NDR_MALLOC(mxa, sizeof (struct winreg_secdesc));
738 if ((param->sd == NULL) || (sd_buf == NULL)) {
743 param->sd->sd_len = sd_len;
744 param->sd->sd_size = sd_len;
745 param->sd->sd_buf = sd_buf;
749 param->status = srvsvc_sd_set_relative(&sd, sd_buf->value);
756 bzero(param, sizeof (struct winreg_GetKeySec));
757 param->sd = &error_sd;
758 param->status = status;
790 struct winreg_NotifyChange *param = arg;
793 param->status = ERROR_SUCCESS;
795 param->status = ERROR_ACCESS_DENIED;
813 struct winreg_OpenKey *param = arg;
814 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle;
816 char *subkey = (char *)param->name.str;
830 bzero(¶m->result_handle, sizeof (winreg_handle_t));
831 param->status = ERROR_FILE_NOT_FOUND;
846 bcopy(id, ¶m->result_handle,
850 param->status = ERROR_SUCCESS;
856 bzero(¶m->result_handle, sizeof (winreg_handle_t));
857 param->status = ERROR_FILE_NOT_FOUND;
868 struct winreg_QueryKey *param = arg;
872 name = (winreg_string_t *)¶m->name;
873 bzero(param, sizeof (struct winreg_QueryKey));
879 bzero(param, sizeof (struct winreg_QueryKey));
880 param->status = ERROR_NOT_ENOUGH_MEMORY;
884 param->status = ERROR_SUCCESS;
901 struct winreg_QueryValue *param = arg;
908 name = (char *)param->value_name.str;
911 param->status = ERROR_FILE_NOT_FOUND;
916 param->status = ERROR_CANTREAD;
923 param->value = (struct winreg_value *)NDR_MALLOC(mxa, msize);
924 param->type = NDR_NEW(mxa, DWORD);
925 param->value_size = NDR_NEW(mxa, DWORD);
926 param->value_size_total = NDR_NEW(mxa, DWORD);
928 if (param->value == NULL || param->type == NULL ||
929 param->value_size == NULL || param->value_size_total == NULL) {
930 param->status = ERROR_CANTREAD;
934 bzero(param->value, msize);
935 pv = param->value;
941 *param->type = 1;
942 *param->value_size = slen;
943 *param->value_size_total = slen;
945 param->status = ERROR_SUCCESS;
996 struct winreg_SetKeySec *param = arg;
998 param->status = ERROR_ACCESS_DENIED;
1009 struct winreg_CreateValue *param = arg;
1011 param->status = ERROR_ACCESS_DENIED;
1024 struct winreg_Shutdown *param = arg;
1026 param->status = ERROR_ACCESS_DENIED;
1038 struct winreg_AbortShutdown *param = arg;
1041 param->status = ERROR_SUCCESS;
1043 param->status = ERROR_ACCESS_DENIED;
1059 struct winreg_GetVersion *param = arg;
1061 param->version = 5;
1062 param->status = ERROR_SUCCESS;