Lines Matching refs:param

317 	struct winreg_OpenHKCR *param = arg;  in winreg_s_OpenHK()  local
323 bzero(&param->handle, sizeof (winreg_handle_t)); in winreg_s_OpenHK()
324 param->status = ERROR_ACCESS_DENIED; in winreg_s_OpenHK()
326 bcopy(id, &param->handle, sizeof (winreg_handle_t)); in winreg_s_OpenHK()
327 param->status = ERROR_SUCCESS; in winreg_s_OpenHK()
345 struct winreg_Close *param = arg; in winreg_s_Close() local
346 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in winreg_s_Close()
352 bzero(&param->result_handle, sizeof (winreg_handle_t)); in winreg_s_Close()
353 param->status = ERROR_SUCCESS; in winreg_s_Close()
397 struct winreg_CreateKey *param = arg; in winreg_s_CreateKey() local
398 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in winreg_s_CreateKey()
404 subkey = (char *)param->subkey.str; in winreg_s_CreateKey()
407 bzero(param, sizeof (struct winreg_CreateKey)); in winreg_s_CreateKey()
408 param->status = ERROR_ACCESS_DENIED; in winreg_s_CreateKey()
417 bzero(param, sizeof (struct winreg_CreateKey)); in winreg_s_CreateKey()
418 param->status = ERROR_INVALID_HANDLE; in winreg_s_CreateKey()
424 bzero(param, sizeof (struct winreg_CreateKey)); in winreg_s_CreateKey()
425 param->status = ERROR_NOT_ENOUGH_MEMORY; in winreg_s_CreateKey()
438 bcopy(&key->sk_handle, &param->result_handle, in winreg_s_CreateKey()
443 param->action = action; in winreg_s_CreateKey()
444 param->status = ERROR_SUCCESS; in winreg_s_CreateKey()
467 bcopy(id, &param->result_handle, sizeof (winreg_handle_t)); in winreg_s_CreateKey()
471 param->action = action; in winreg_s_CreateKey()
472 param->status = ERROR_SUCCESS; in winreg_s_CreateKey()
477 bzero(param, sizeof (struct winreg_CreateKey)); in winreg_s_CreateKey()
478 param->status = ERROR_NOT_ENOUGH_MEMORY; in winreg_s_CreateKey()
488 struct winreg_DeleteKey *param = arg; in winreg_s_DeleteKey() local
489 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in winreg_s_DeleteKey()
493 subkey = (char *)param->subkey.str; in winreg_s_DeleteKey()
496 param->status = ERROR_ACCESS_DENIED; in winreg_s_DeleteKey()
506 param->status = ERROR_ACCESS_DENIED; in winreg_s_DeleteKey()
524 param->status = ERROR_SUCCESS; in winreg_s_DeleteKey()
530 param->status = ERROR_ACCESS_DENIED; in winreg_s_DeleteKey()
623 struct winreg_DeleteValue *param = arg; in winreg_s_DeleteValue() local
625 param->status = ERROR_ACCESS_DENIED; in winreg_s_DeleteValue()
635 struct winreg_EnumKey *param = arg; in winreg_s_EnumKey() local
636 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in winreg_s_EnumKey()
648 bzero(param, sizeof (struct winreg_EnumKey)); in winreg_s_EnumKey()
649 param->status = ERROR_NO_MORE_ITEMS; in winreg_s_EnumKey()
653 subkey = winreg_enum_subkey(mxa, name, param->index); in winreg_s_EnumKey()
656 bzero(param, sizeof (struct winreg_EnumKey)); in winreg_s_EnumKey()
657 param->status = ERROR_NO_MORE_ITEMS; in winreg_s_EnumKey()
661 if (NDR_MSTRING(mxa, subkey, (ndr_mstring_t *)&param->name_out) == -1) { in winreg_s_EnumKey()
663 bzero(param, sizeof (struct winreg_EnumKey)); in winreg_s_EnumKey()
664 param->status = ERROR_NOT_ENOUGH_MEMORY; in winreg_s_EnumKey()
673 param->name_out.length = param->name_out.allosize; in winreg_s_EnumKey()
674 param->status = ERROR_SUCCESS; in winreg_s_EnumKey()
684 struct winreg_EnumValue *param = arg; in winreg_s_EnumValue() local
685 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in winreg_s_EnumValue()
688 bzero(param, sizeof (struct winreg_EnumValue)); in winreg_s_EnumValue()
689 param->status = ERROR_NO_MORE_ITEMS; in winreg_s_EnumValue()
693 bzero(param, sizeof (struct winreg_EnumValue)); in winreg_s_EnumValue()
694 param->status = ERROR_NO_MORE_ITEMS; in winreg_s_EnumValue()
706 struct winreg_FlushKey *param = arg; in winreg_s_FlushKey() local
707 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in winreg_s_FlushKey()
710 param->status = ERROR_INVALID_HANDLE; in winreg_s_FlushKey()
712 param->status = ERROR_SUCCESS; in winreg_s_FlushKey()
724 struct winreg_GetKeySec *param = arg; in winreg_s_GetKeySec() local
738 param->sd = NDR_MALLOC(mxa, sizeof (struct winreg_secdesc)); in winreg_s_GetKeySec()
739 if ((param->sd == NULL) || (sd_buf == NULL)) { in winreg_s_GetKeySec()
744 param->sd->sd_len = sd_len; in winreg_s_GetKeySec()
745 param->sd->sd_size = sd_len; in winreg_s_GetKeySec()
746 param->sd->sd_buf = sd_buf; in winreg_s_GetKeySec()
750 param->status = srvsvc_sd_set_relative(&sd, sd_buf->value); in winreg_s_GetKeySec()
757 bzero(param, sizeof (struct winreg_GetKeySec)); in winreg_s_GetKeySec()
758 param->sd = &error_sd; in winreg_s_GetKeySec()
759 param->status = status; in winreg_s_GetKeySec()
791 struct winreg_NotifyChange *param = arg; in winreg_s_NotifyChange() local
794 param->status = ERROR_SUCCESS; in winreg_s_NotifyChange()
796 param->status = ERROR_ACCESS_DENIED; in winreg_s_NotifyChange()
814 struct winreg_OpenKey *param = arg; in winreg_s_OpenKey() local
815 ndr_hdid_t *id = (ndr_hdid_t *)&param->handle; in winreg_s_OpenKey()
817 char *subkey = (char *)param->name.str; in winreg_s_OpenKey()
831 bzero(&param->result_handle, sizeof (winreg_handle_t)); in winreg_s_OpenKey()
832 param->status = ERROR_FILE_NOT_FOUND; in winreg_s_OpenKey()
847 bcopy(id, &param->result_handle, in winreg_s_OpenKey()
851 param->status = ERROR_SUCCESS; in winreg_s_OpenKey()
857 bzero(&param->result_handle, sizeof (winreg_handle_t)); in winreg_s_OpenKey()
858 param->status = ERROR_FILE_NOT_FOUND; in winreg_s_OpenKey()
869 struct winreg_QueryKey *param = arg; in winreg_s_QueryKey() local
873 name = (winreg_string_t *)&param->name; in winreg_s_QueryKey()
874 bzero(param, sizeof (struct winreg_QueryKey)); in winreg_s_QueryKey()
880 bzero(param, sizeof (struct winreg_QueryKey)); in winreg_s_QueryKey()
881 param->status = ERROR_NOT_ENOUGH_MEMORY; in winreg_s_QueryKey()
885 param->status = ERROR_SUCCESS; in winreg_s_QueryKey()
902 struct winreg_QueryValue *param = arg; in winreg_s_QueryValue() local
909 name = (char *)param->value_name.str; in winreg_s_QueryValue()
913 param->status = ERROR_FILE_NOT_FOUND; in winreg_s_QueryValue()
918 param->status = ERROR_CANTREAD; in winreg_s_QueryValue()
925 param->value = (struct winreg_value *)NDR_MALLOC(mxa, msize); in winreg_s_QueryValue()
926 param->type = NDR_NEW(mxa, DWORD); in winreg_s_QueryValue()
927 param->value_size = NDR_NEW(mxa, DWORD); in winreg_s_QueryValue()
928 param->value_size_total = NDR_NEW(mxa, DWORD); in winreg_s_QueryValue()
930 if (param->value == NULL || param->type == NULL || in winreg_s_QueryValue()
931 param->value_size == NULL || param->value_size_total == NULL) { in winreg_s_QueryValue()
932 param->status = ERROR_CANTREAD; in winreg_s_QueryValue()
936 bzero(param->value, msize); in winreg_s_QueryValue()
937 pv = param->value; in winreg_s_QueryValue()
943 *param->type = 1; in winreg_s_QueryValue()
944 *param->value_size = slen; in winreg_s_QueryValue()
945 *param->value_size_total = slen; in winreg_s_QueryValue()
947 param->status = ERROR_SUCCESS; in winreg_s_QueryValue()
998 struct winreg_SetKeySec *param = arg; in winreg_s_SetKeySec() local
1000 param->status = ERROR_ACCESS_DENIED; in winreg_s_SetKeySec()
1011 struct winreg_CreateValue *param = arg; in winreg_s_CreateValue() local
1013 param->status = ERROR_ACCESS_DENIED; in winreg_s_CreateValue()
1026 struct winreg_Shutdown *param = arg; in winreg_s_Shutdown() local
1028 param->status = ERROR_ACCESS_DENIED; in winreg_s_Shutdown()
1040 struct winreg_AbortShutdown *param = arg; in winreg_s_AbortShutdown() local
1043 param->status = ERROR_SUCCESS; in winreg_s_AbortShutdown()
1045 param->status = ERROR_ACCESS_DENIED; in winreg_s_AbortShutdown()
1061 struct winreg_GetVersion *param = arg; in winreg_s_GetVersion() local
1063 param->version = 5; in winreg_s_GetVersion()
1064 param->status = ERROR_SUCCESS; in winreg_s_GetVersion()