Lines Matching refs:mxa
255 winreg_s_OpenHKCR(void *arg, ndr_xa_t *mxa)
257 return (winreg_s_OpenHK(arg, mxa, "HKCR"));
261 winreg_s_OpenHKCU(void *arg, ndr_xa_t *mxa)
263 return (winreg_s_OpenHK(arg, mxa, "HKCU"));
267 winreg_s_OpenHKLM(void *arg, ndr_xa_t *mxa)
269 return (winreg_s_OpenHK(arg, mxa, "HKLM"));
273 winreg_s_OpenHKPD(void *arg, ndr_xa_t *mxa)
275 return (winreg_s_OpenHK(arg, mxa, "HKPD"));
279 winreg_s_OpenHKU(void *arg, ndr_xa_t *mxa)
281 return (winreg_s_OpenHK(arg, mxa, "HKU"));
285 winreg_s_OpenHKCC(void *arg, ndr_xa_t *mxa)
287 return (winreg_s_OpenHK(arg, mxa, "HKCC"));
291 winreg_s_OpenHKDD(void *arg, ndr_xa_t *mxa)
293 return (winreg_s_OpenHK(arg, mxa, "HKDD"));
297 winreg_s_OpenHKPT(void *arg, ndr_xa_t *mxa)
299 return (winreg_s_OpenHK(arg, mxa, "HKPT"));
303 winreg_s_OpenHKPN(void *arg, ndr_xa_t *mxa)
305 return (winreg_s_OpenHK(arg, mxa, "HKPN"));
314 winreg_s_OpenHK(void *arg, ndr_xa_t *mxa, const char *hkey)
321 if ((id = winreg_alloc_id(mxa, hkey)) == NULL) {
342 winreg_s_Close(void *arg, ndr_xa_t *mxa)
348 winreg_dealloc_id(mxa, id);
357 winreg_alloc_id(ndr_xa_t *mxa, const char *key)
366 if ((id = ndr_hdalloc(mxa, data)) == NULL) {
371 if ((hd = ndr_hdlookup(mxa, id)) != NULL)
378 winreg_dealloc_id(ndr_xa_t *mxa, ndr_hdid_t *id)
382 if ((hd = ndr_hdlookup(mxa, id)) != NULL) {
387 ndr_hdfree(mxa, id);
394 winreg_s_CreateKey(void *arg, ndr_xa_t *mxa)
405 if (!ndr_is_admin(mxa) || (subkey == NULL)) {
413 hd = ndr_hdlookup(mxa, id);
421 if ((action = NDR_NEW(mxa, DWORD)) == NULL) {
452 if ((id = winreg_alloc_id(mxa, subkey)) == NULL)
456 winreg_dealloc_id(mxa, id);
485 winreg_s_DeleteKey(void *arg, ndr_xa_t *mxa)
494 if (!ndr_is_admin(mxa) || (subkey == NULL)) {
501 if ((ndr_hdlookup(mxa, id) == NULL) ||
519 winreg_dealloc_id(mxa, &key->sk_handle);
566 winreg_enum_subkey(ndr_xa_t *mxa, const char *subkey, uint32_t index)
602 if ((entry = NDR_STRDUP(mxa, p)) == NULL)
620 winreg_s_DeleteValue(void *arg, ndr_xa_t *mxa)
632 winreg_s_EnumKey(void *arg, ndr_xa_t *mxa)
642 if ((hd = ndr_hdlookup(mxa, id)) != NULL)
652 subkey = winreg_enum_subkey(mxa, name, param->index);
660 if (NDR_MSTRING(mxa, subkey, (ndr_mstring_t *)¶m->name_out) == -1) {
681 winreg_s_EnumValue(void *arg, ndr_xa_t *mxa)
686 if (ndr_hdlookup(mxa, id) == NULL) {
703 winreg_s_FlushKey(void *arg, ndr_xa_t *mxa)
708 if (ndr_hdlookup(mxa, id) == NULL)
720 winreg_s_GetKeySec(void *arg, ndr_xa_t *mxa)
735 sd_buf = NDR_MALLOC(mxa, sd_len + sizeof (struct winreg_value));
737 param->sd = NDR_MALLOC(mxa, sizeof (struct winreg_secdesc));
788 winreg_s_NotifyChange(void *arg, ndr_xa_t *mxa)
792 if (ndr_is_admin(mxa))
811 winreg_s_OpenKey(void *arg, ndr_xa_t *mxa)
822 if ((hd = ndr_hdlookup(mxa, id)) != NULL)
839 id = winreg_alloc_id(mxa, subkey);
866 winreg_s_QueryKey(void *arg, ndr_xa_t *mxa)
875 if ((name = NDR_NEW(mxa, winreg_string_t)) != NULL)
876 rc = NDR_MSTRING(mxa, "", (ndr_mstring_t *)name);
899 winreg_s_QueryValue(void *arg, ndr_xa_t *mxa)
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);
994 winreg_s_SetKeySec(void *arg, ndr_xa_t *mxa)
1007 winreg_s_CreateValue(void *arg, ndr_xa_t *mxa)
1022 winreg_s_Shutdown(void *arg, ndr_xa_t *mxa)
1036 winreg_s_AbortShutdown(void *arg, ndr_xa_t *mxa)
1040 if (ndr_is_admin(mxa))
1057 winreg_s_GetVersion(void *arg, ndr_xa_t *mxa)