status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETMANAGERVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetManagerVersion, (ndr_push_flags_fn_t)ndr_push_dfs_GetManagerVersion);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add, (ndr_push_flags_fn_t)ndr_push_dfs_Add);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove, (ndr_push_flags_fn_t)ndr_push_dfs_Remove);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetInfo, (ndr_push_flags_fn_t)ndr_push_dfs_GetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Enum, (ndr_push_flags_fn_t)ndr_push_dfs_Enum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_RENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Rename, (ndr_push_flags_fn_t)ndr_push_dfs_Rename);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MOVE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Move, (ndr_push_flags_fn_t)ndr_push_dfs_Move);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERGETCONFIGINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerGetConfigInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerGetConfigInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERSENDSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerSendSiteInfo, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerSendSiteInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddFtRoot);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVEFTROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveFtRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveFtRoot);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRoot);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVESTDROOT, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_RemoveStdRoot, (ndr_push_flags_fn_t)ndr_push_dfs_RemoveStdRoot);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_MANAGERINITIALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_ManagerInitialize, (ndr_push_flags_fn_t)ndr_push_dfs_ManagerInitialize);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADDSTDROOTFORCED, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_AddStdRootForced, (ndr_push_flags_fn_t)ndr_push_dfs_AddStdRootForced);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_GETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_GetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_GetDcAddress);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETDCADDRESS, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetDcAddress, (ndr_push_flags_fn_t)ndr_push_dfs_SetDcAddress);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_FLUSHFTTABLE, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_FlushFtTable, (ndr_push_flags_fn_t)ndr_push_dfs_FlushFtTable);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ADD2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Add2, (ndr_push_flags_fn_t)ndr_push_dfs_Add2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_REMOVE2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_Remove2, (ndr_push_flags_fn_t)ndr_push_dfs_Remove2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_ENUMEX, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_EnumEx, (ndr_push_flags_fn_t)ndr_push_dfs_EnumEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, DCERPC_DFS_SETINFO2, &r, (ndr_pull_flags_fn_t)ndr_pull_dfs_SetInfo2, (ndr_push_flags_fn_t)ndr_push_dfs_SetInfo2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_ADDONE, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_AddOne, (ndr_push_flags_fn_t)ndr_push_echo_AddOne);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_ECHODATA, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_EchoData, (ndr_push_flags_fn_t)ndr_push_echo_EchoData);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *out_data = *r.out.out_data;
+ memcpy(out_data, r.out.out_data, r.in.len);
/* Return result */
return NT_STATUS_OK;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_SINKDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_SinkData, (ndr_push_flags_fn_t)ndr_push_echo_SinkData);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_SOURCEDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_SourceData, (ndr_push_flags_fn_t)ndr_push_echo_SourceData);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *data = *r.out.data;
+ memcpy(data, r.out.data, r.in.len);
/* Return result */
return NT_STATUS_OK;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTCALL, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestCall, (ndr_push_flags_fn_t)ndr_push_echo_TestCall);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTCALL2, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestCall2, (ndr_push_flags_fn_t)ndr_push_echo_TestCall2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTSLEEP, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestSleep, (ndr_push_flags_fn_t)ndr_push_echo_TestSleep);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
/* Return variables */
/* Return result */
- /* Sorry, don't know how to convert uint32 to NTSTATUS */
return NT_STATUS_OK;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestEnum, (ndr_push_flags_fn_t)ndr_push_echo_TestEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTSURROUNDING, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestSurrounding, (ndr_push_flags_fn_t)ndr_push_echo_TestSurrounding);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, DCERPC_ECHO_TESTDOUBLEPOINTER, &r, (ndr_pull_flags_fn_t)ndr_pull_echo_TestDoublePointer, (ndr_push_flags_fn_t)ndr_push_echo_TestDoublePointer);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
/* Return variables */
/* Return result */
- /* Sorry, don't know how to convert uint16 to NTSTATUS */
return NT_STATUS_OK;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLEAREVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ClearEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_ClearEventLogW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_BACKUPEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_BackupEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_BackupEventLogW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLOSEEVENTLOG, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_CloseEventLog, (ndr_push_flags_fn_t)ndr_push_eventlog_CloseEventLog);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_DEREGISTEREVENTSOURCE, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_DeregisterEventSource, (ndr_push_flags_fn_t)ndr_push_eventlog_DeregisterEventSource);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETNUMRECORDS, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetNumRecords, (ndr_push_flags_fn_t)ndr_push_eventlog_GetNumRecords);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETOLDESTRECORD, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetOldestRecord, (ndr_push_flags_fn_t)ndr_push_eventlog_GetOldestRecord);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CHANGENOTIFY, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ChangeNotify, (ndr_push_flags_fn_t)ndr_push_eventlog_ChangeNotify);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenEventLogW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTEREVENTSOURCEW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterEventSourceW, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterEventSourceW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENBACKUPEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenBackupEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenBackupEventLogW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_READEVENTLOGW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReadEventLogW, (ndr_push_flags_fn_t)ndr_push_eventlog_ReadEventLogW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REPORTEVENTW, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReportEventW, (ndr_push_flags_fn_t)ndr_push_eventlog_ReportEventW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_CLEAREVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ClearEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_ClearEventLogA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_BACKUPEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_BackupEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_BackupEventLogA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenEventLogA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTEREVENTSOURCEA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterEventSourceA, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterEventSourceA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_OPENBACKUPEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_OpenBackupEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_OpenBackupEventLogA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_READEVENTLOGA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReadEventLogA, (ndr_push_flags_fn_t)ndr_push_eventlog_ReadEventLogA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REPORTEVENTA, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_ReportEventA, (ndr_push_flags_fn_t)ndr_push_eventlog_ReportEventA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_REGISTERCLUSTERSVC, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_RegisterClusterSvc, (ndr_push_flags_fn_t)ndr_push_eventlog_RegisterClusterSvc);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_DEREGISTERCLUSTERSVC, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_DeregisterClusterSvc, (ndr_push_flags_fn_t)ndr_push_eventlog_DeregisterClusterSvc);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_WRITECLUSTEREVENTS, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_WriteClusterEvents, (ndr_push_flags_fn_t)ndr_push_eventlog_WriteClusterEvents);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_GETLOGINTORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_GetLogIntormation, (ndr_push_flags_fn_t)ndr_push_eventlog_GetLogIntormation);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, DCERPC_EVENTLOG_FLUSHEVENTLOG, &r, (ndr_pull_flags_fn_t)ndr_pull_eventlog_FlushEventLog, (ndr_push_flags_fn_t)ndr_push_eventlog_FlushEventLog);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, DCERPC_INITSHUTDOWN_INIT, &r, (ndr_pull_flags_fn_t)ndr_pull_initshutdown_Init, (ndr_push_flags_fn_t)ndr_push_initshutdown_Init);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, DCERPC_INITSHUTDOWN_ABORT, &r, (ndr_pull_flags_fn_t)ndr_pull_initshutdown_Abort, (ndr_push_flags_fn_t)ndr_push_initshutdown_Abort);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, DCERPC_INITSHUTDOWN_INITEX, &r, (ndr_pull_flags_fn_t)ndr_pull_initshutdown_InitEx, (ndr_push_flags_fn_t)ndr_push_initshutdown_InitEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CLOSE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_Close, (ndr_push_flags_fn_t)ndr_push_lsa_Close);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_DELETE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_Delete, (ndr_push_flags_fn_t)ndr_push_lsa_Delete);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMPRIVS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumPrivs, (ndr_push_flags_fn_t)ndr_push_lsa_EnumPrivs);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QuerySecurity, (ndr_push_flags_fn_t)ndr_push_lsa_QuerySecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETSECOBJ, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetSecObj, (ndr_push_flags_fn_t)ndr_push_lsa_SetSecObj);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CHANGEPASSWORD, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_ChangePassword, (ndr_push_flags_fn_t)ndr_push_lsa_ChangePassword);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_OpenPolicy);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYINFOPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryInfoPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_QueryInfoPolicy);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETINFOPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetInfoPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_SetInfoPolicy);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CLEARAUDITLOG, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_ClearAuditLog, (ndr_push_flags_fn_t)ndr_push_lsa_ClearAuditLog);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATEACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateAccount, (ndr_push_flags_fn_t)ndr_push_lsa_CreateAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMACCOUNTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumAccounts, (ndr_push_flags_fn_t)ndr_push_lsa_EnumAccounts);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATETRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_CreateTrustedDomain);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMTRUSTDOM, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumTrustDom, (ndr_push_flags_fn_t)ndr_push_lsa_EnumTrustDom);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPSIDS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupSids, (ndr_push_flags_fn_t)ndr_push_lsa_LookupSids);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATESECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateSecret, (ndr_push_flags_fn_t)ndr_push_lsa_CreateSecret);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenAccount, (ndr_push_flags_fn_t)ndr_push_lsa_OpenAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMPRIVSACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumPrivsAccount, (ndr_push_flags_fn_t)ndr_push_lsa_EnumPrivsAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ADDPRIVILEGESTOACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_AddPrivilegesToAccount, (ndr_push_flags_fn_t)ndr_push_lsa_AddPrivilegesToAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_REMOVEPRIVILEGESFROMACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_RemovePrivilegesFromAccount, (ndr_push_flags_fn_t)ndr_push_lsa_RemovePrivilegesFromAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_GETQUOTASFORACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_GetQuotasForAccount, (ndr_push_flags_fn_t)ndr_push_lsa_GetQuotasForAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETQUOTASFORACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetQuotasForAccount, (ndr_push_flags_fn_t)ndr_push_lsa_SetQuotasForAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_GETSYSTEMACCESSACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_GetSystemAccessAccount, (ndr_push_flags_fn_t)ndr_push_lsa_GetSystemAccessAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETSYSTEMACCESSACCOUNT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetSystemAccessAccount, (ndr_push_flags_fn_t)ndr_push_lsa_SetSystemAccessAccount);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENTRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_OpenTrustedDomain);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYTRUSTEDDOMAININFO, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryTrustedDomainInfo, (ndr_push_flags_fn_t)ndr_push_lsa_QueryTrustedDomainInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETINFORMATIONTRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetInformationTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_SetInformationTrustedDomain);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENSECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenSecret, (ndr_push_flags_fn_t)ndr_push_lsa_OpenSecret);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETSECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetSecret, (ndr_push_flags_fn_t)ndr_push_lsa_SetSecret);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYSECRET, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QuerySecret, (ndr_push_flags_fn_t)ndr_push_lsa_QuerySecret);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPPRIVVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupPrivValue, (ndr_push_flags_fn_t)ndr_push_lsa_LookupPrivValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPPRIVNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupPrivName, (ndr_push_flags_fn_t)ndr_push_lsa_LookupPrivName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPPRIVDISPLAYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupPrivDisplayName, (ndr_push_flags_fn_t)ndr_push_lsa_LookupPrivDisplayName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_DELETEOBJECT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_DeleteObject, (ndr_push_flags_fn_t)ndr_push_lsa_DeleteObject);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMACCOUNTSWITHUSERRIGHT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumAccountsWithUserRight, (ndr_push_flags_fn_t)ndr_push_lsa_EnumAccountsWithUserRight);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMACCOUNTRIGHTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumAccountRights, (ndr_push_flags_fn_t)ndr_push_lsa_EnumAccountRights);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ADDACCOUNTRIGHTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_AddAccountRights, (ndr_push_flags_fn_t)ndr_push_lsa_AddAccountRights);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_REMOVEACCOUNTRIGHTS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_RemoveAccountRights, (ndr_push_flags_fn_t)ndr_push_lsa_RemoveAccountRights);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYTRUSTEDDOMAININFOBYSID, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryTrustedDomainInfoBySid, (ndr_push_flags_fn_t)ndr_push_lsa_QueryTrustedDomainInfoBySid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETTRUSTEDDOMAININFO, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetTrustedDomainInfo, (ndr_push_flags_fn_t)ndr_push_lsa_SetTrustedDomainInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_DELETETRUSTEDDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_DeleteTrustedDomain, (ndr_push_flags_fn_t)ndr_push_lsa_DeleteTrustedDomain);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_STOREPRIVATEDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_StorePrivateData, (ndr_push_flags_fn_t)ndr_push_lsa_StorePrivateData);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_RETRIEVEPRIVATEDATA, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_RetrievePrivateData, (ndr_push_flags_fn_t)ndr_push_lsa_RetrievePrivateData);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENPOLICY2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenPolicy2, (ndr_push_flags_fn_t)ndr_push_lsa_OpenPolicy2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_GETUSERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_GetUserName, (ndr_push_flags_fn_t)ndr_push_lsa_GetUserName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYINFOPOLICY2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryInfoPolicy2, (ndr_push_flags_fn_t)ndr_push_lsa_QueryInfoPolicy2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETINFOPOLICY2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetInfoPolicy2, (ndr_push_flags_fn_t)ndr_push_lsa_SetInfoPolicy2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYTRUSTEDDOMAININFOBYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryTrustedDomainInfoByName, (ndr_push_flags_fn_t)ndr_push_lsa_QueryTrustedDomainInfoByName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETTRUSTEDDOMAININFOBYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetTrustedDomainInfoByName, (ndr_push_flags_fn_t)ndr_push_lsa_SetTrustedDomainInfoByName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_ENUMTRUSTEDDOMAINSEX, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_EnumTrustedDomainsEx, (ndr_push_flags_fn_t)ndr_push_lsa_EnumTrustedDomainsEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATETRUSTEDDOMAINEX, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateTrustedDomainEx, (ndr_push_flags_fn_t)ndr_push_lsa_CreateTrustedDomainEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CLOSETRUSTEDDOMAINEX, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CloseTrustedDomainEx, (ndr_push_flags_fn_t)ndr_push_lsa_CloseTrustedDomainEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_QUERYDOMAININFORMATIONPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_QueryDomainInformationPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_QueryDomainInformationPolicy);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_SETDOMAININFORMATIONPOLICY, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_SetDomainInformationPolicy, (ndr_push_flags_fn_t)ndr_push_lsa_SetDomainInformationPolicy);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_OPENTRUSTEDDOMAINBYNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_OpenTrustedDomainByName, (ndr_push_flags_fn_t)ndr_push_lsa_OpenTrustedDomainByName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_TESTCALL, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_TestCall, (ndr_push_flags_fn_t)ndr_push_lsa_TestCall);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPSIDS2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupSids2, (ndr_push_flags_fn_t)ndr_push_lsa_LookupSids2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames2, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREATETRUSTEDDOMAINEX2, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CreateTrustedDomainEx2, (ndr_push_flags_fn_t)ndr_push_lsa_CreateTrustedDomainEx2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRWRITE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRWRITE, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRWRITE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRREAD, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRREAD, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRREAD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRENUMERATE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRENUMERATE, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRENUMERATE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRWRITEDOMAINCREDENTIALS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRWRITEDOMAINCREDENTIALS, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRWRITEDOMAINCREDENTIALS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRREADDOMAINCREDENTIALS, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRREADDOMAINCREDENTIALS, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRREADDOMAINCREDENTIALS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRDELETE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRDELETE, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRDELETE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRGETTARGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRGETTARGETINFO, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRGETTARGETINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRPROFILELOADED, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRPROFILELOADED, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRPROFILELOADED);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES3, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames3, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames3);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRGETSESSIONTYPES, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRGETSESSIONTYPES, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRGETSESSIONTYPES);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARREGISTERAUDITEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARREGISTERAUDITEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARREGISTERAUDITEVENT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARGENAUDITEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARGENAUDITEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARGENAUDITEVENT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARUNREGISTERAUDITEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARUNREGISTERAUDITEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARUNREGISTERAUDITEVENT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARQUERYFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARQUERYFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_lsa_LSARQUERYFORESTTRUSTINFORMATION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARSETFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARSETFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_lsa_LSARSETFORESTTRUSTINFORMATION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_CREDRRENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_CREDRRENAME, (ndr_push_flags_fn_t)ndr_push_lsa_CREDRRENAME);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPSIDS3, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupSids3, (ndr_push_flags_fn_t)ndr_push_lsa_LookupSids3);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LOOKUPNAMES4, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LookupNames4, (ndr_push_flags_fn_t)ndr_push_lsa_LookupNames4);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSAROPENPOLICYSCE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSAROPENPOLICYSCE, (ndr_push_flags_fn_t)ndr_push_lsa_LSAROPENPOLICYSCE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARADTREGISTERSECURITYEVENTSOURCE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARADTREGISTERSECURITYEVENTSOURCE, (ndr_push_flags_fn_t)ndr_push_lsa_LSARADTREGISTERSECURITYEVENTSOURCE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, (ndr_push_flags_fn_t)ndr_push_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, DCERPC_LSA_LSARADTREPORTSECURITYEVENT, &r, (ndr_pull_flags_fn_t)ndr_pull_lsa_LSARADTREPORTSECURITYEVENT, (ndr_push_flags_fn_t)ndr_push_lsa_LSARADTREPORTSECURITYEVENT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONUASLOGON, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonUasLogon, (ndr_push_flags_fn_t)ndr_push_netr_LogonUasLogon);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONUASLOGOFF, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonUasLogoff, (ndr_push_flags_fn_t)ndr_push_netr_LogonUasLogoff);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGON, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogon, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogon);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGOFF, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogoff, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogoff);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERREQCHALLENGE, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerReqChallenge, (ndr_push_flags_fn_t)ndr_push_netr_ServerReqChallenge);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERAUTHENTICATE, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerAuthenticate, (ndr_push_flags_fn_t)ndr_push_netr_ServerAuthenticate);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERPASSWORDSET, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerPasswordSet, (ndr_push_flags_fn_t)ndr_push_netr_ServerPasswordSet);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASEDELTAS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseDeltas, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseDeltas);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASESYNC, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseSync, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseSync);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_ACCOUNTDELTAS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_AccountDeltas, (ndr_push_flags_fn_t)ndr_push_netr_AccountDeltas);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_ACCOUNTSYNC, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_AccountSync, (ndr_push_flags_fn_t)ndr_push_netr_AccountSync);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_GETDCNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_GetDcName, (ndr_push_flags_fn_t)ndr_push_netr_GetDcName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONCONTROL, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonControl, (ndr_push_flags_fn_t)ndr_push_netr_LogonControl);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_GETANYDCNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_GetAnyDCName, (ndr_push_flags_fn_t)ndr_push_netr_GetAnyDCName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONCONTROL2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonControl2, (ndr_push_flags_fn_t)ndr_push_netr_LogonControl2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERAUTHENTICATE2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerAuthenticate2, (ndr_push_flags_fn_t)ndr_push_netr_ServerAuthenticate2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASESYNC2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseSync2, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseSync2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DATABASEREDO, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DatabaseRedo, (ndr_push_flags_fn_t)ndr_push_netr_DatabaseRedo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONCONTROL2EX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonControl2Ex, (ndr_push_flags_fn_t)ndr_push_netr_LogonControl2Ex);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRENUMERATETRUSTEDDOMAINS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRENUMERATETRUSTEDDOMAINS, (ndr_push_flags_fn_t)ndr_push_netr_NETRENUMERATETRUSTEDDOMAINS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetDCName, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetDCName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONDUMMYROUTINE1, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONDUMMYROUTINE1, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONDUMMYROUTINE1);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONSETSERVICEBITS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONSETSERVICEBITS, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONSETSERVICEBITS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONGETTRUSTRID, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONGETTRUSTRID, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONGETTRUSTRID);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONCOMPUTESERVERDIGEST, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONCOMPUTESERVERDIGEST, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONCOMPUTESERVERDIGEST);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONCOMPUTECLIENTDIGEST, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONCOMPUTECLIENTDIGEST, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONCOMPUTECLIENTDIGEST);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERAUTHENTICATE3, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerAuthenticate3, (ndr_push_flags_fn_t)ndr_push_netr_ServerAuthenticate3);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCNAMEEX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetDCNameEx, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetDCNameEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETSITENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetSiteName, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetSiteName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONGETDOMAININFO, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonGetDomainInfo, (ndr_push_flags_fn_t)ndr_push_netr_LogonGetDomainInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_SERVERPASSWORDSET2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_ServerPasswordSet2, (ndr_push_flags_fn_t)ndr_push_netr_ServerPasswordSet2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRSERVERPASSWORDGET, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRSERVERPASSWORDGET, (ndr_push_flags_fn_t)ndr_push_netr_NETRSERVERPASSWORDGET);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONSENDTOSAM, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONSENDTOSAM, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONSENDTOSAM);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRADDRESSTOSITENAMESW, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRADDRESSTOSITENAMESW, (ndr_push_flags_fn_t)ndr_push_netr_DSRADDRESSTOSITENAMESW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCNAMEEX2, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsRGetDCNameEx2, (ndr_push_flags_fn_t)ndr_push_netr_DsRGetDCNameEx2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, (ndr_push_flags_fn_t)ndr_push_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRENUMERATETRUSTEDDOMAINSEX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRENUMERATETRUSTEDDOMAINSEX, (ndr_push_flags_fn_t)ndr_push_netr_NETRENUMERATETRUSTEDDOMAINSEX);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRADDRESSTOSITENAMESEXW, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRADDRESSTOSITENAMESEXW, (ndr_push_flags_fn_t)ndr_push_netr_DSRADDRESSTOSITENAMESEXW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETDCSITECOVERAGEW, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRGETDCSITECOVERAGEW, (ndr_push_flags_fn_t)ndr_push_netr_DSRGETDCSITECOVERAGEW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGONEX, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogonEx, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogonEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRENUMERATEDOMAINTRUSTS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DsrEnumerateDomainTrusts, (ndr_push_flags_fn_t)ndr_push_netr_DsrEnumerateDomainTrusts);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRDEREGISTERDNSHOSTRECORDS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRDEREGISTERDNSHOSTRECORDS, (ndr_push_flags_fn_t)ndr_push_netr_DSRDEREGISTERDNSHOSTRECORDS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRSERVERTRUSTPASSWORDSGET, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRSERVERTRUSTPASSWORDSGET, (ndr_push_flags_fn_t)ndr_push_netr_NETRSERVERTRUSTPASSWORDSGET);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_DSRGETFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_DSRGETFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_netr_DSRGETFORESTTRUSTINFORMATION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRGETFORESTTRUSTINFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRGETFORESTTRUSTINFORMATION, (ndr_push_flags_fn_t)ndr_push_netr_NETRGETFORESTTRUSTINFORMATION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_LOGONSAMLOGONWITHFLAGS, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_LogonSamLogonWithFlags, (ndr_push_flags_fn_t)ndr_push_netr_LogonSamLogonWithFlags);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, DCERPC_NETR_NETRSERVERGETTRUSTINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_netr_NETRSERVERGETTRUSTINFO, (ndr_push_flags_fn_t)ndr_push_netr_NETRSERVERGETTRUSTINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVCONTROL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevControl, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevControl);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVQENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVQGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVQSETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQSetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQSetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVQPURGE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQPurge, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQPurge);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCHARDEVQPURGESELF, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQPurgeSelf, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQPurgeSelf);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETCONNENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetConnEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetConnEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETFILEENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetFileEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetFileEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETFILEGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetFileGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetFileGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETFILECLOSE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetFileClose, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetFileClose);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSESSENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSessEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSessEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSESSDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSessDel, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSessDel);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREADD, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareAdd, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareAdd);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREENUMALL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareEnumAll, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareEnumAll);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHARESETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareSetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareSetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDel, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDel);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREDELSTICKY, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDelSticky, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDelSticky);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHARECHECK, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareCheck, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareCheck);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSRVGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSrvGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSRVSETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvSetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSrvSetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETDISKENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetDiskEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetDiskEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSERVERSTATISTICSGET, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetServerStatisticsGet, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetServerStatisticsGet);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETTRANSPORTADD, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetTransportAdd, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetTransportAdd);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETTRANSPORTENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetTransportEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetTransportEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETTRANSPORTDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetTransportDel, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetTransportDel);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETREMOTETOD, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetRemoteTOD, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetRemoteTOD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSETSERVICEBITS, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSetServiceBits, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSetServiceBits);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETPATHTYPE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPathType, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPathType);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETPATHCANONICALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPathCanonicalize, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPathCanonicalize);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *can_path = *r.out.can_path;
+ memcpy(can_path, r.out.can_path, r.in.maxbuf);
*pathtype = *r.out.pathtype;
/* Return result */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETPATHCOMPARE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPathCompare, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPathCompare);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETNAMEVALIDATE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetNameValidate, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetNameValidate);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRPRNAMECANONICALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRPRNAMECANONICALIZE, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRPRNAMECANONICALIZE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETPRNAMECOMPARE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPRNameCompare, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPRNameCompare);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREDELSTART, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDelStart, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDelStart);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSHAREDELCOMMIT, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDelCommit, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDelCommit);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETGETFILESECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetGetFileSecurity, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetGetFileSecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSETFILESECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSetFileSecurity, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSetFileSecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSERVERTRANSPORTADDEX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetServerTransportAddEx, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetServerTransportAddEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETSERVERSETSERVICEBITSEX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetServerSetServiceBitsEx, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetServerSetServiceBitsEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSGETVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSGETVERSION, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSGETVERSION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSCREATELOCALPARTITION, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSCREATELOCALPARTITION, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSCREATELOCALPARTITION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSDELETELOCALPARTITION, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSDELETELOCALPARTITION, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSDELETELOCALPARTITION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSSETLOCALVOLUMESTATE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSSETLOCALVOLUMESTATE, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSSETLOCALVOLUMESTATE);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSSETSERVERINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSSETSERVERINFO, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSSETSERVERINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSCREATEEXITPOINT, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSCREATEEXITPOINT, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSCREATEEXITPOINT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSDELETEEXITPOINT, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSDELETEEXITPOINT, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSDELETEEXITPOINT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSMODIFYPREFIX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSMODIFYPREFIX, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSMODIFYPREFIX);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSFIXLOCALVOLUME, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSFIXLOCALVOLUME, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSFIXLOCALVOLUME);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRDFSMANAGERREPORTSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSMANAGERREPORTSITEINFO, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSMANAGERREPORTSITEINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, DCERPC_SRVSVC_NETRSERVERTRANSPORTDELEX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRSERVERTRANSPORTDELEX, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRSERVERTRANSPORTDELEX);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CLOSESERVICEHANDLE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_CloseServiceHandle, (ndr_push_flags_fn_t)ndr_push_svcctl_CloseServiceHandle);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CONTROLSERVICE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_ControlService, (ndr_push_flags_fn_t)ndr_push_svcctl_ControlService);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_DELETESERVICE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_DeleteService, (ndr_push_flags_fn_t)ndr_push_svcctl_DeleteService);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_LOCKSERVICEDATABASE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_LockServiceDatabase, (ndr_push_flags_fn_t)ndr_push_svcctl_LockServiceDatabase);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICEOBJECTSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceObjectSecurity, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceObjectSecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_SETSERVICEOBJECTSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_SetServiceObjectSecurity, (ndr_push_flags_fn_t)ndr_push_svcctl_SetServiceObjectSecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICESTATUS, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceStatus, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceStatus);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_SETSERVICESTATUS, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_SetServiceStatus, (ndr_push_flags_fn_t)ndr_push_svcctl_SetServiceStatus);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_UNLOCKSERVICEDATABASE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_UnlockServiceDatabase, (ndr_push_flags_fn_t)ndr_push_svcctl_UnlockServiceDatabase);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_NOTIFYBOOTCONFIGSTATUS, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_NotifyBootConfigStatus, (ndr_push_flags_fn_t)ndr_push_svcctl_NotifyBootConfigStatus);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_SCSETSERVICEBITSW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_SCSetServiceBitsW, (ndr_push_flags_fn_t)ndr_push_svcctl_SCSetServiceBitsW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CHANGESERVICECONFIGW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_ChangeServiceConfigW, (ndr_push_flags_fn_t)ndr_push_svcctl_ChangeServiceConfigW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CREATESERVICEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_CreateServiceW, (ndr_push_flags_fn_t)ndr_push_svcctl_CreateServiceW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_ENUMDEPENDENTSERVICESW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_EnumDependentServicesW, (ndr_push_flags_fn_t)ndr_push_svcctl_EnumDependentServicesW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_ENUMSERVICESSTATUSW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_EnumServicesStatusW, (ndr_push_flags_fn_t)ndr_push_svcctl_EnumServicesStatusW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *service = *r.out.service;
+ memcpy(service, r.out.service, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
*services_returned = *r.out.services_returned;
if ( resume_handle ) {
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_OPENSCMANAGERW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_OpenSCManagerW, (ndr_push_flags_fn_t)ndr_push_svcctl_OpenSCManagerW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_OPENSERVICEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_OpenServiceW, (ndr_push_flags_fn_t)ndr_push_svcctl_OpenServiceW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICECONFIGW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceConfigW, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceConfigW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *query = *r.out.query;
+ memcpy(query, r.out.query, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
/* Return result */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICELOCKSTATUSW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceLockStatusW, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceLockStatusW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_STARTSERVICEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_StartServiceW, (ndr_push_flags_fn_t)ndr_push_svcctl_StartServiceW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_GETSERVICEDISPLAYNAMEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_GetServiceDisplayNameW, (ndr_push_flags_fn_t)ndr_push_svcctl_GetServiceDisplayNameW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_GETSERVICEKEYNAMEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_GetServiceKeyNameW, (ndr_push_flags_fn_t)ndr_push_svcctl_GetServiceKeyNameW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_SCSETSERVICEBITSA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_SCSetServiceBitsA, (ndr_push_flags_fn_t)ndr_push_svcctl_SCSetServiceBitsA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CHANGESERVICECONFIGA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_ChangeServiceConfigA, (ndr_push_flags_fn_t)ndr_push_svcctl_ChangeServiceConfigA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CREATESERVICEA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_CreateServiceA, (ndr_push_flags_fn_t)ndr_push_svcctl_CreateServiceA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_ENUMDEPENDENTSERVICESA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_EnumDependentServicesA, (ndr_push_flags_fn_t)ndr_push_svcctl_EnumDependentServicesA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_ENUMSERVICESSTATUSA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_EnumServicesStatusA, (ndr_push_flags_fn_t)ndr_push_svcctl_EnumServicesStatusA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *service = *r.out.service;
+ memcpy(service, r.out.service, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
*services_returned = *r.out.services_returned;
if ( resume_handle ) {
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_OPENSCMANAGERA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_OpenSCManagerA, (ndr_push_flags_fn_t)ndr_push_svcctl_OpenSCManagerA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_OPENSERVICEA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_OpenServiceA, (ndr_push_flags_fn_t)ndr_push_svcctl_OpenServiceA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICECONFIGA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceConfigA, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceConfigA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *query = *r.out.query;
+ memcpy(query, r.out.query, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
/* Return result */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICELOCKSTATUSA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceLockStatusA, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceLockStatusA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_STARTSERVICEA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_StartServiceA, (ndr_push_flags_fn_t)ndr_push_svcctl_StartServiceA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_GETSERVICEDISPLAYNAMEA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_GetServiceDisplayNameA, (ndr_push_flags_fn_t)ndr_push_svcctl_GetServiceDisplayNameA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_GETSERVICEKEYNAMEA, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_GetServiceKeyNameA, (ndr_push_flags_fn_t)ndr_push_svcctl_GetServiceKeyNameA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_GETCURRENTGROUPESTATEW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_GetCurrentGroupeStateW, (ndr_push_flags_fn_t)ndr_push_svcctl_GetCurrentGroupeStateW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_ENUMSERVICEGROUPW, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_EnumServiceGroupW, (ndr_push_flags_fn_t)ndr_push_svcctl_EnumServiceGroupW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CHANGESERVICECONFIG2A, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_ChangeServiceConfig2A, (ndr_push_flags_fn_t)ndr_push_svcctl_ChangeServiceConfig2A);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_CHANGESERVICECONFIG2W, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_ChangeServiceConfig2W, (ndr_push_flags_fn_t)ndr_push_svcctl_ChangeServiceConfig2W);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICECONFIG2A, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceConfig2A, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceConfig2A);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *buffer = *r.out.buffer;
+ memcpy(buffer, r.out.buffer, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
/* Return result */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICECONFIG2W, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceConfig2W, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceConfig2W);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *buffer = *r.out.buffer;
+ memcpy(buffer, r.out.buffer, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
/* Return result */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_QUERYSERVICESTATUSEX, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_QueryServiceStatusEx, (ndr_push_flags_fn_t)ndr_push_svcctl_QueryServiceStatusEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *buffer = *r.out.buffer;
+ memcpy(buffer, r.out.buffer, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
/* Return result */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_ENUMSERVICESSTATUSEXA, &r, (ndr_pull_flags_fn_t)ndr_pull_EnumServicesStatusExA, (ndr_push_flags_fn_t)ndr_push_EnumServicesStatusExA);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *services = *r.out.services;
+ memcpy(services, r.out.services, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
*service_returned = *r.out.service_returned;
if ( resume_handle ) {
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_ENUMSERVICESSTATUSEXW, &r, (ndr_pull_flags_fn_t)ndr_pull_EnumServicesStatusExW, (ndr_push_flags_fn_t)ndr_push_EnumServicesStatusExW);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
/* Return variables */
- *services = *r.out.services;
+ memcpy(services, r.out.services, r.in.buf_size);
*bytes_needed = *r.out.bytes_needed;
*service_returned = *r.out.service_returned;
if ( resume_handle ) {
status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, DCERPC_SVCCTL_SCSENDTSMESSAGE, &r, (ndr_pull_flags_fn_t)ndr_pull_svcctl_SCSendTSMessage, (ndr_push_flags_fn_t)ndr_push_svcctl_SCSendTSMessage);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_SIDTOUID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_SidToUid, (ndr_push_flags_fn_t)ndr_push_unixinfo_SidToUid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_UIDTOSID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_UidToSid, (ndr_push_flags_fn_t)ndr_push_unixinfo_UidToSid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_SIDTOGID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_SidToGid, (ndr_push_flags_fn_t)ndr_push_unixinfo_SidToGid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_GIDTOSID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_GidToSid, (ndr_push_flags_fn_t)ndr_push_unixinfo_GidToSid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, DCERPC_UNIXINFO_GETPWUID, &r, (ndr_pull_flags_fn_t)ndr_pull_unixinfo_GetPWUid, (ndr_push_flags_fn_t)ndr_push_unixinfo_GetPWUid);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
/* Return variables */
*count = *r.out.count;
- *infos = *r.out.infos;
+ memcpy(infos, r.out.infos, *r.in.count);
/* Return result */
return r.out.result;
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKCR, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKCR, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKCR);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKCU, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKCU, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKCU);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKLM, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKLM, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKLM);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKPD, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKPD, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKPD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKU, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKU, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKU);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_CLOSEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_CloseKey, (ndr_push_flags_fn_t)ndr_push_winreg_CloseKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_CREATEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_CreateKey, (ndr_push_flags_fn_t)ndr_push_winreg_CreateKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_DELETEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_DeleteKey, (ndr_push_flags_fn_t)ndr_push_winreg_DeleteKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_DELETEVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_DeleteValue, (ndr_push_flags_fn_t)ndr_push_winreg_DeleteValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_ENUMKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_EnumKey, (ndr_push_flags_fn_t)ndr_push_winreg_EnumKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
return werror_to_ntstatus(r.out.result);
}
-NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_ValNameBuf *name, enum winreg_Type *type, uint8_t **data, uint32_t *data_size, uint32_t *value_length)
+NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_ValNameBuf *name, enum winreg_Type *type, uint8_t **data, uint32_t *size, uint32_t *length)
{
struct winreg_EnumValue r;
NTSTATUS status;
r.in.name = name;
r.in.type = type;
r.in.data = data;
- r.in.data_size = data_size;
- r.in.value_length = value_length;
+ r.in.size = size;
+ r.in.length = length;
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_EnumValue, &r);
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_ENUMVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_EnumValue, (ndr_push_flags_fn_t)ndr_push_winreg_EnumValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
if ( type ) {
*type = *r.out.type;
}
- *data = *r.out.data;
- if ( data_size ) {
- *data_size = *r.out.data_size;
+ if ( data ) {
+ *data = *r.out.data;
}
- if ( value_length ) {
- *value_length = *r.out.value_length;
+ if ( size ) {
+ *size = *r.out.size;
+ }
+ if ( length ) {
+ *length = *r.out.length;
}
/* Return result */
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_FLUSHKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_FlushKey, (ndr_push_flags_fn_t)ndr_push_winreg_FlushKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_GETKEYSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_GetKeySecurity, (ndr_push_flags_fn_t)ndr_push_winreg_GetKeySecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_LOADKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_LoadKey, (ndr_push_flags_fn_t)ndr_push_winreg_LoadKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_NOTIFYCHANGEKEYVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_NotifyChangeKeyValue, (ndr_push_flags_fn_t)ndr_push_winreg_NotifyChangeKeyValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenKey, (ndr_push_flags_fn_t)ndr_push_winreg_OpenKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYINFOKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryInfoKey, (ndr_push_flags_fn_t)ndr_push_winreg_QueryInfoKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryValue, (ndr_push_flags_fn_t)ndr_push_winreg_QueryValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_REPLACEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_ReplaceKey, (ndr_push_flags_fn_t)ndr_push_winreg_ReplaceKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_RESTOREKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_RestoreKey, (ndr_push_flags_fn_t)ndr_push_winreg_RestoreKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SAVEKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SaveKey, (ndr_push_flags_fn_t)ndr_push_winreg_SaveKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SETKEYSECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SetKeySecurity, (ndr_push_flags_fn_t)ndr_push_winreg_SetKeySecurity);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SETVALUE, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SetValue, (ndr_push_flags_fn_t)ndr_push_winreg_SetValue);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_UNLOADKEY, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_UnLoadKey, (ndr_push_flags_fn_t)ndr_push_winreg_UnLoadKey);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_INITIATESYSTEMSHUTDOWN, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_InitiateSystemShutdown, (ndr_push_flags_fn_t)ndr_push_winreg_InitiateSystemShutdown);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_ABORTSYSTEMSHUTDOWN, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_AbortSystemShutdown, (ndr_push_flags_fn_t)ndr_push_winreg_AbortSystemShutdown);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_GETVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_GetVersion, (ndr_push_flags_fn_t)ndr_push_winreg_GetVersion);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKCC, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKCC, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKCC);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKDD, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKDD, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKDD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYMULTIPLEVALUES, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryMultipleValues, (ndr_push_flags_fn_t)ndr_push_winreg_QueryMultipleValues);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_INITIATESYSTEMSHUTDOWNEX, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_InitiateSystemShutdownEx, (ndr_push_flags_fn_t)ndr_push_winreg_InitiateSystemShutdownEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_SAVEKEYEX, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_SaveKeyEx, (ndr_push_flags_fn_t)ndr_push_winreg_SaveKeyEx);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKPT, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKPT, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKPT);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_OPENHKPN, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_OpenHKPN, (ndr_push_flags_fn_t)ndr_push_winreg_OpenHKPN);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, DCERPC_WINREG_QUERYMULTIPLEVALUES2, &r, (ndr_pull_flags_fn_t)ndr_pull_winreg_QueryMultipleValues2, (ndr_push_flags_fn_t)ndr_push_winreg_QueryMultipleValues2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String key);
NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String value);
NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_StringBuf *name, struct winreg_StringBuf *keyclass, NTTIME *last_changed_time);
-NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_ValNameBuf *name, enum winreg_Type *type, uint8_t **data, uint32_t *data_size, uint32_t *value_length);
+NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t enum_index, struct winreg_ValNameBuf *name, enum winreg_Type *type, uint8_t **data, uint32_t *size, uint32_t *length);
NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle);
NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint32_t sec_info, struct KeySecurityData *sd);
NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct winreg_String *keyname, struct winreg_String *filename);
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTAGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaGetInfo, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaGetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTASETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaSetInfo, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaSetInfo);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTAENUMUSERS, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaEnumUsers, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaEnumUsers);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTAUSERGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTAUSERGETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTAUSERGETINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTAUSERSETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTAUSERSETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTAUSERSETINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETWKSTATRANSPORTENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetWkstaTransportEnum, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetWkstaTransportEnum);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTATRANSPORTADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTATRANSPORTADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTATRANSPORTADD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWKSTATRANSPORTDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWKSTATRANSPORTDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWKSTATRANSPORTDEL);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEADD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEGETINFO, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEGETINFO);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEDEL);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUSEENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUSEENUM, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUSEENUM);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRMESSAGEBUFFERSEND, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRMESSAGEBUFFERSEND, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRMESSAGEBUFFERSEND);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRWORKSTATIONSTATISTICSGET, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRWORKSTATIONSTATISTICSGET);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRLOGONDOMAINNAMEADD, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRLOGONDOMAINNAMEADD, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRLOGONDOMAINNAMEADD);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRLOGONDOMAINNAMEDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRLOGONDOMAINNAMEDEL, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRLOGONDOMAINNAMEDEL);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRJOINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRJOINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRJOINDOMAIN);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUNJOINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRUNJOINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRUNJOINDOMAIN);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRRENAMEMACHINEINDOMAIN, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRRENAMEMACHINEINDOMAIN);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRVALIDATENAME, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRVALIDATENAME, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRVALIDATENAME);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOININFORMATION, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOININFORMATION, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOININFORMATION);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOINABLEOUS, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOINABLEOUS, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOINABLEOUS);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRJOINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrJoinDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrJoinDomain2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRUNJOINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrUnjoinDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrUnjoinDomain2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRRENAMEMACHINEINDOMAIN2, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrRenameMachineInDomain2, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrRenameMachineInDomain2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRVALIDATENAME2, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRVALIDATENAME2, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRVALIDATENAME2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRGETJOINABLEOUS2, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRGETJOINABLEOUS2, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRGETJOINABLEOUS2);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRADDALTERNATECOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrAddAlternateComputerName, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrAddAlternateComputerName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_NetrRemoveAlternateComputerName, (ndr_push_flags_fn_t)ndr_push_wkssvc_NetrRemoveAlternateComputerName);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRSETPRIMARYCOMPUTERNAME);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, DCERPC_WKSSVC_NETRENUMERATECOMPUTERNAMES, &r, (ndr_pull_flags_fn_t)ndr_pull_WKSSVC_NETRENUMERATECOMPUTERNAMES, (ndr_push_flags_fn_t)ndr_push_WKSSVC_NETRENUMERATECOMPUTERNAMES);
- if ( !NT_STATUS_IS_OK(status) ) {
+ if (!NT_STATUS_IS_OK(status)) {
return status;
}
/* header auto-generated by pidl */
+#include <stdint.h>
+
#ifndef _HEADER_netdfs
#define _HEADER_netdfs
struct {
uint32_t level;
uint32_t bufsize;
- struct dfs_EnumStruct *info;/* [unique] */
uint32_t *unknown;/* [unique] */
+ struct dfs_EnumStruct *info;/* [unique] */
uint32_t *total;/* [unique] */
} in;
/* header auto-generated by pidl */
+#include <stdint.h>
+
#ifndef _HEADER_rpcecho
#define _HEADER_rpcecho
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/lsa.h"
#include "librpc/gen_ndr/security.h"
#ifndef _HEADER_eventlog
/* header auto-generated by pidl */
+#include <stdint.h>
+
#ifndef _HEADER_initshutdown
#define _HEADER_initshutdown
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/security.h"
#ifndef _HEADER_lsarpc
#define _HEADER_lsarpc
struct lsa_EnumPrivs {
struct {
struct policy_handle *handle;/* [ref] */
- uint32_t *resume_handle;/* [ref] */
uint32_t max_count;
+ uint32_t *resume_handle;/* [ref] */
} in;
struct {
- uint32_t *resume_handle;/* [ref] */
struct lsa_PrivArray *privs;/* [ref] */
+ uint32_t *resume_handle;/* [ref] */
NTSTATUS result;
} out;
struct lsa_EnumAccounts {
struct {
struct policy_handle *handle;/* [ref] */
- uint32_t *resume_handle;/* [ref] */
uint32_t num_entries;/* [range(0 8192)] */
+ uint32_t *resume_handle;/* [ref] */
} in;
struct {
- uint32_t *resume_handle;/* [ref] */
struct lsa_SidArray *sids;/* [ref] */
+ uint32_t *resume_handle;/* [ref] */
NTSTATUS result;
} out;
struct lsa_EnumTrustDom {
struct {
struct policy_handle *handle;/* [ref] */
- uint32_t *resume_handle;/* [ref] */
uint32_t max_size;/* [range(0 1000)] */
+ uint32_t *resume_handle;/* [ref] */
} in;
struct {
- uint32_t *resume_handle;/* [ref] */
struct lsa_DomainList *domains;/* [ref] */
+ uint32_t *resume_handle;/* [ref] */
NTSTATUS result;
} out;
struct policy_handle *handle;/* [ref] */
uint32_t num_names;/* [range(0 1000)] */
struct lsa_String *names;/* [size_is(num_names)] */
- struct lsa_TransSidArray *sids;/* [ref] */
uint16_t level;
+ struct lsa_TransSidArray *sids;/* [ref] */
uint32_t *count;/* [ref] */
} in;
struct {
struct policy_handle *handle;/* [ref] */
struct lsa_SidArray *sids;/* [ref] */
- struct lsa_TransNameArray *names;/* [ref] */
uint16_t level;
+ struct lsa_TransNameArray *names;/* [ref] */
uint32_t *count;/* [ref] */
} in;
struct {
struct policy_handle *handle;/* [ref] */
struct lsa_String *name;/* [ref] */
- uint16_t *language_id;/* [ref] */
uint16_t unknown;
+ uint16_t *language_id;/* [ref] */
} in;
struct {
struct lsa_EnumTrustedDomainsEx {
struct {
struct policy_handle *handle;/* [ref] */
- uint32_t *resume_handle;/* [ref] */
uint32_t max_size;
+ uint32_t *resume_handle;/* [ref] */
} in;
struct {
- uint32_t *resume_handle;/* [ref] */
struct lsa_DomainListEx *domains;/* [ref] */
+ uint32_t *resume_handle;/* [ref] */
NTSTATUS result;
} out;
struct {
struct policy_handle *handle;/* [ref] */
struct lsa_SidArray *sids;/* [ref] */
- struct lsa_TransNameArray2 *names;/* [ref] */
uint16_t level;
- uint32_t *count;/* [ref] */
uint32_t unknown1;
uint32_t unknown2;
+ struct lsa_TransNameArray2 *names;/* [ref] */
+ uint32_t *count;/* [ref] */
} in;
struct {
struct policy_handle *handle;/* [ref] */
uint32_t num_names;/* [range(0 1000)] */
struct lsa_String *names;/* [size_is(num_names)] */
- struct lsa_TransSidArray2 *sids;/* [ref] */
uint16_t level;
- uint32_t *count;/* [ref] */
uint32_t unknown1;
uint32_t unknown2;
+ struct lsa_TransSidArray2 *sids;/* [ref] */
+ uint32_t *count;/* [ref] */
} in;
struct {
struct policy_handle *handle;/* [ref] */
uint32_t num_names;/* [range(0 1000)] */
struct lsa_String *names;/* [size_is(num_names)] */
- struct lsa_TransSidArray3 *sids;/* [ref] */
uint16_t level;
- uint32_t *count;/* [ref] */
uint32_t unknown1;
uint32_t unknown2;
+ struct lsa_TransSidArray3 *sids;/* [ref] */
+ uint32_t *count;/* [ref] */
} in;
struct {
struct lsa_LookupSids3 {
struct {
struct lsa_SidArray *sids;/* [ref] */
- struct lsa_TransNameArray2 *names;/* [ref] */
uint16_t level;
- uint32_t *count;/* [ref] */
uint32_t unknown1;
uint32_t unknown2;
+ struct lsa_TransNameArray2 *names;/* [ref] */
+ uint32_t *count;/* [ref] */
} in;
struct {
struct {
uint32_t num_names;/* [range(0 1000)] */
struct lsa_String *names;/* [size_is(num_names)] */
- struct lsa_TransSidArray3 *sids;/* [ref] */
uint16_t level;
- uint32_t *count;/* [ref] */
uint32_t unknown1;
uint32_t unknown2;
+ struct lsa_TransSidArray3 *sids;/* [ref] */
+ uint32_t *count;/* [ref] */
} in;
struct {
{
ndr_print_uint32(ndr, name, r);
ndr->depth++;
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_QUERY_VALUE", KEY_QUERY_VALUE, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_SET_VALUE", KEY_SET_VALUE, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_CREATE_SUB_KEY", KEY_CREATE_SUB_KEY, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_ENUMERATE_SUB_KEYS", KEY_ENUMERATE_SUB_KEYS, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_NOTIFY", KEY_NOTIFY, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_CREATE_LINK", KEY_CREATE_LINK, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_WOW64_64KEY", KEY_WOW64_64KEY, r);
+ ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "KEY_WOW64_32KEY", KEY_WOW64_32KEY, r);
ndr->depth--;
}
if (r->in.type) {
NDR_CHECK(ndr_push_winreg_Type(ndr, NDR_SCALARS, *r->in.type));
}
- if (r->in.data == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.data_size));
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.value_length));
- for (cntr_data_1 = 0; cntr_data_1 < *r->in.value_length; cntr_data_1++) {
- if (r->in.data[cntr_data_1] == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_push_ref_ptr(ndr));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.data));
+ if (r->in.data) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.size));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.length));
+ for (cntr_data_1 = 0; cntr_data_1 < *r->in.length; cntr_data_1++) {
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.data[cntr_data_1]));
+ }
}
- NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.data_size));
- if (r->in.data_size) {
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.data_size));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.size));
+ if (r->in.size) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.size));
}
- NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.value_length));
- if (r->in.value_length) {
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.value_length));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.length));
+ if (r->in.length) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.length));
}
}
if (flags & NDR_OUT) {
if (r->out.type) {
NDR_CHECK(ndr_push_winreg_Type(ndr, NDR_SCALARS, *r->out.type));
}
- if (r->out.data == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.data_size));
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.value_length));
- for (cntr_data_1 = 0; cntr_data_1 < *r->out.value_length; cntr_data_1++) {
- if (r->out.data[cntr_data_1] == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_push_ref_ptr(ndr));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.data));
+ if (r->out.data) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.size));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.length));
+ for (cntr_data_1 = 0; cntr_data_1 < *r->out.length; cntr_data_1++) {
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.data[cntr_data_1]));
+ }
}
- NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.data_size));
- if (r->out.data_size) {
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.data_size));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.size));
+ if (r->out.size) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.size));
}
- NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.value_length));
- if (r->out.value_length) {
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.value_length));
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.length));
+ if (r->out.length) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.length));
}
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
}
uint32_t _ptr_type;
uint32_t _ptr_data;
uint32_t cntr_data_1;
- uint32_t _ptr_data_size;
- uint32_t _ptr_value_length;
+ uint32_t _ptr_size;
+ uint32_t _ptr_length;
TALLOC_CTX *_mem_save_handle_0;
TALLOC_CTX *_mem_save_name_0;
TALLOC_CTX *_mem_save_type_0;
+ TALLOC_CTX *_mem_save_data_0;
TALLOC_CTX *_mem_save_data_1;
TALLOC_CTX *_mem_save_data_2;
- TALLOC_CTX *_mem_save_data_size_0;
- TALLOC_CTX *_mem_save_value_length_0;
+ TALLOC_CTX *_mem_save_size_0;
+ TALLOC_CTX *_mem_save_length_0;
if (flags & NDR_IN) {
ZERO_STRUCT(r->out);
NDR_CHECK(ndr_pull_winreg_Type(ndr, NDR_SCALARS, r->in.type));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_type_0, 0);
}
- NDR_CHECK(ndr_pull_array_size(ndr, &r->in.data));
- NDR_CHECK(ndr_pull_array_length(ndr, &r->in.data));
- if (ndr_get_array_length(ndr, &r->in.data) > ndr_get_array_size(ndr, &r->in.data)) {
- return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.data), ndr_get_array_length(ndr, &r->in.data));
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
+ if (_ptr_data) {
+ NDR_PULL_ALLOC(ndr, r->in.data);
+ } else {
+ r->in.data = NULL;
}
- if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
+ if (r->in.data) {
+ _mem_save_data_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->in.data, 0);
+ NDR_CHECK(ndr_pull_array_size(ndr, &r->in.data));
+ NDR_CHECK(ndr_pull_array_length(ndr, &r->in.data));
+ if (ndr_get_array_length(ndr, &r->in.data) > ndr_get_array_size(ndr, &r->in.data)) {
+ return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->in.data), ndr_get_array_length(ndr, &r->in.data));
+ }
NDR_PULL_ALLOC_N(ndr, r->in.data, ndr_get_array_size(ndr, &r->in.data));
- }
- memcpy(r->out.data, r->in.data, ndr_get_array_size(ndr, &r->in.data) * sizeof(*r->in.data));
- _mem_save_data_1 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->in.data, 0);
- for (cntr_data_1 = 0; cntr_data_1 < *r->in.value_length; cntr_data_1++) {
- NDR_CHECK(ndr_pull_ref_ptr(ndr, &_ptr_data));
- if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
- NDR_PULL_ALLOC(ndr, r->in.data[cntr_data_1]);
+ _mem_save_data_1 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->in.data, 0);
+ for (cntr_data_1 = 0; cntr_data_1 < *r->in.length; cntr_data_1++) {
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
+ if (_ptr_data) {
+ NDR_PULL_ALLOC(ndr, r->in.data[cntr_data_1]);
+ } else {
+ r->in.data[cntr_data_1] = NULL;
+ }
}
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_1, 0);
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_0, 0);
}
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_1, 0);
- NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data_size));
- if (_ptr_data_size) {
- NDR_PULL_ALLOC(ndr, r->in.data_size);
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_size));
+ if (_ptr_size) {
+ NDR_PULL_ALLOC(ndr, r->in.size);
} else {
- r->in.data_size = NULL;
+ r->in.size = NULL;
}
- if (r->in.data_size) {
- _mem_save_data_size_0 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->in.data_size, 0);
- NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.data_size));
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_size_0, 0);
+ if (r->in.size) {
+ _mem_save_size_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->in.size, 0);
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.size));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_size_0, 0);
}
- NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_value_length));
- if (_ptr_value_length) {
- NDR_PULL_ALLOC(ndr, r->in.value_length);
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_length));
+ if (_ptr_length) {
+ NDR_PULL_ALLOC(ndr, r->in.length);
} else {
- r->in.value_length = NULL;
+ r->in.length = NULL;
}
- if (r->in.value_length) {
- _mem_save_value_length_0 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->in.value_length, 0);
- NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.value_length));
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_value_length_0, 0);
+ if (r->in.length) {
+ _mem_save_length_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->in.length, 0);
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.length));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_length_0, 0);
}
NDR_PULL_ALLOC(ndr, r->out.name);
*r->out.name = *r->in.name;
- if (r->in.data_size == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_PULL_ALLOC_N(ndr, r->out.data, *r->in.data_size);
- memcpy(r->out.data, r->in.data, *r->in.data_size * sizeof(*r->in.data));
if (r->in.data) {
- if (r->in.data_size == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.data, *r->in.data_size));
+ if (r->in.size == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
+ NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.data, *r->in.size));
}
if (r->in.data) {
- if (r->in.value_length == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->in.data, *r->in.value_length));
+ if (r->in.length == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
+ NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->in.data, *r->in.length));
}
}
if (flags & NDR_OUT) {
NDR_CHECK(ndr_pull_winreg_Type(ndr, NDR_SCALARS, r->out.type));
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_type_0, 0);
}
- NDR_CHECK(ndr_pull_array_size(ndr, &r->out.data));
- NDR_CHECK(ndr_pull_array_length(ndr, &r->out.data));
- if (ndr_get_array_length(ndr, &r->out.data) > ndr_get_array_size(ndr, &r->out.data)) {
- return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->out.data), ndr_get_array_length(ndr, &r->out.data));
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
+ if (_ptr_data) {
+ NDR_PULL_ALLOC(ndr, r->out.data);
+ } else {
+ r->out.data = NULL;
}
- if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
+ if (r->out.data) {
+ _mem_save_data_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->out.data, 0);
+ NDR_CHECK(ndr_pull_array_size(ndr, &r->out.data));
+ NDR_CHECK(ndr_pull_array_length(ndr, &r->out.data));
+ if (ndr_get_array_length(ndr, &r->out.data) > ndr_get_array_size(ndr, &r->out.data)) {
+ return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", ndr_get_array_size(ndr, &r->out.data), ndr_get_array_length(ndr, &r->out.data));
+ }
NDR_PULL_ALLOC_N(ndr, r->out.data, ndr_get_array_size(ndr, &r->out.data));
- }
- memcpy(r->out.data, r->in.data, ndr_get_array_size(ndr, &r->out.data) * sizeof(*r->in.data));
- _mem_save_data_1 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->out.data, 0);
- for (cntr_data_1 = 0; cntr_data_1 < *r->out.value_length; cntr_data_1++) {
- NDR_CHECK(ndr_pull_ref_ptr(ndr, &_ptr_data));
- if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
- NDR_PULL_ALLOC(ndr, r->out.data[cntr_data_1]);
+ _mem_save_data_1 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->out.data, 0);
+ for (cntr_data_1 = 0; cntr_data_1 < *r->out.length; cntr_data_1++) {
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data));
+ if (_ptr_data) {
+ NDR_PULL_ALLOC(ndr, r->out.data[cntr_data_1]);
+ } else {
+ r->out.data[cntr_data_1] = NULL;
+ }
}
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_1, 0);
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_0, 0);
}
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_1, 0);
- NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data_size));
- if (_ptr_data_size) {
- NDR_PULL_ALLOC(ndr, r->out.data_size);
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_size));
+ if (_ptr_size) {
+ NDR_PULL_ALLOC(ndr, r->out.size);
} else {
- r->out.data_size = NULL;
+ r->out.size = NULL;
}
- if (r->out.data_size) {
- _mem_save_data_size_0 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->out.data_size, 0);
- NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.data_size));
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_size_0, 0);
+ if (r->out.size) {
+ _mem_save_size_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->out.size, 0);
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.size));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_size_0, 0);
}
- NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_value_length));
- if (_ptr_value_length) {
- NDR_PULL_ALLOC(ndr, r->out.value_length);
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_length));
+ if (_ptr_length) {
+ NDR_PULL_ALLOC(ndr, r->out.length);
} else {
- r->out.value_length = NULL;
+ r->out.length = NULL;
}
- if (r->out.value_length) {
- _mem_save_value_length_0 = NDR_PULL_GET_MEM_CTX(ndr);
- NDR_PULL_SET_MEM_CTX(ndr, r->out.value_length, 0);
- NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.value_length));
- NDR_PULL_SET_MEM_CTX(ndr, _mem_save_value_length_0, 0);
+ if (r->out.length) {
+ _mem_save_length_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->out.length, 0);
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.length));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_length_0, 0);
}
NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
if (r->out.data) {
- if (r->out.data_size == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.data, *r->out.data_size));
+ if (r->out.size == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
+ NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.data, *r->out.size));
}
if (r->out.data) {
- if (r->out.value_length == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
- NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->out.data, *r->out.value_length));
+ if (r->out.length == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
+ NDR_CHECK(ndr_check_array_length(ndr, (void*)&r->out.data, *r->out.length));
}
}
return NT_STATUS_OK;
ndr->depth--;
ndr_print_ptr(ndr, "data", r->in.data);
ndr->depth++;
- if (r->in.value_length == NULL) return;
- ndr->print(ndr, "%s: ARRAY(%d)", "data", *r->in.value_length);
- ndr->depth++;
- for (cntr_data_1=0;cntr_data_1<*r->in.value_length;cntr_data_1++) {
- char *idx_1=NULL;
- asprintf(&idx_1, "[%d]", cntr_data_1);
- if (idx_1) {
- ndr_print_ptr(ndr, "data", r->in.data[cntr_data_1]);
- ndr->depth++;
- ndr_print_uint8(ndr, "data", *r->in.data[cntr_data_1]);
- ndr->depth--;
- free(idx_1);
+ if (r->in.data) {
+ if (r->in.length == NULL) return;
+ ndr->print(ndr, "%s: ARRAY(%d)", "data", *r->in.length);
+ ndr->depth++;
+ for (cntr_data_1=0;cntr_data_1<*r->in.length;cntr_data_1++) {
+ char *idx_1=NULL;
+ asprintf(&idx_1, "[%d]", cntr_data_1);
+ if (idx_1) {
+ ndr_print_ptr(ndr, "data", r->in.data[cntr_data_1]);
+ ndr->depth++;
+ if (r->in.data[cntr_data_1]) {
+ ndr_print_uint8(ndr, "data", *r->in.data[cntr_data_1]);
+ }
+ ndr->depth--;
+ free(idx_1);
+ }
}
+ ndr->depth--;
}
ndr->depth--;
- ndr->depth--;
- ndr_print_ptr(ndr, "data_size", r->in.data_size);
+ ndr_print_ptr(ndr, "size", r->in.size);
ndr->depth++;
- if (r->in.data_size) {
- ndr_print_uint32(ndr, "data_size", *r->in.data_size);
+ if (r->in.size) {
+ ndr_print_uint32(ndr, "size", *r->in.size);
}
ndr->depth--;
- ndr_print_ptr(ndr, "value_length", r->in.value_length);
+ ndr_print_ptr(ndr, "length", r->in.length);
ndr->depth++;
- if (r->in.value_length) {
- ndr_print_uint32(ndr, "value_length", *r->in.value_length);
+ if (r->in.length) {
+ ndr_print_uint32(ndr, "length", *r->in.length);
}
ndr->depth--;
ndr->depth--;
ndr->depth--;
ndr_print_ptr(ndr, "data", r->out.data);
ndr->depth++;
- if (r->out.value_length == NULL) return;
- ndr->print(ndr, "%s: ARRAY(%d)", "data", *r->out.value_length);
- ndr->depth++;
- for (cntr_data_1=0;cntr_data_1<*r->out.value_length;cntr_data_1++) {
- char *idx_1=NULL;
- asprintf(&idx_1, "[%d]", cntr_data_1);
- if (idx_1) {
- ndr_print_ptr(ndr, "data", r->out.data[cntr_data_1]);
- ndr->depth++;
- ndr_print_uint8(ndr, "data", *r->out.data[cntr_data_1]);
- ndr->depth--;
- free(idx_1);
+ if (r->out.data) {
+ if (r->out.length == NULL) return;
+ ndr->print(ndr, "%s: ARRAY(%d)", "data", *r->out.length);
+ ndr->depth++;
+ for (cntr_data_1=0;cntr_data_1<*r->out.length;cntr_data_1++) {
+ char *idx_1=NULL;
+ asprintf(&idx_1, "[%d]", cntr_data_1);
+ if (idx_1) {
+ ndr_print_ptr(ndr, "data", r->out.data[cntr_data_1]);
+ ndr->depth++;
+ if (r->out.data[cntr_data_1]) {
+ ndr_print_uint8(ndr, "data", *r->out.data[cntr_data_1]);
+ }
+ ndr->depth--;
+ free(idx_1);
+ }
}
+ ndr->depth--;
}
ndr->depth--;
- ndr->depth--;
- ndr_print_ptr(ndr, "data_size", r->out.data_size);
+ ndr_print_ptr(ndr, "size", r->out.size);
ndr->depth++;
- if (r->out.data_size) {
- ndr_print_uint32(ndr, "data_size", *r->out.data_size);
+ if (r->out.size) {
+ ndr_print_uint32(ndr, "size", *r->out.size);
}
ndr->depth--;
- ndr_print_ptr(ndr, "value_length", r->out.value_length);
+ ndr_print_ptr(ndr, "length", r->out.length);
ndr->depth++;
- if (r->out.value_length) {
- ndr_print_uint32(ndr, "value_length", *r->out.value_length);
+ if (r->out.length) {
+ ndr_print_uint32(ndr, "length", *r->out.length);
}
ndr->depth--;
ndr_print_WERROR(ndr, "result", r->out.result);
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/lsa.h"
#include "librpc/gen_ndr/samr.h"
#include "librpc/gen_ndr/security.h"
const char *server_name;/* [unique,charset(UTF16)] */
const char *computer_name;/* [unique,charset(UTF16)] */
struct netr_Authenticator *credential;/* [unique] */
- struct netr_Authenticator *return_authenticator;/* [unique] */
uint16_t logon_level;
union netr_LogonLevel logon;/* [switch_is(logon_level)] */
uint16_t validation_level;
+ struct netr_Authenticator *return_authenticator;/* [unique] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [unique] */
union netr_Validation *validation;/* [ref,switch_is(validation_level)] */
uint8_t *authoritative;/* [ref] */
+ struct netr_Authenticator *return_authenticator;/* [unique] */
NTSTATUS result;
} out;
const char *server_name;/* [unique,charset(UTF16)] */
const char *computer_name;/* [unique,charset(UTF16)] */
struct netr_Authenticator *credential;/* [unique] */
- struct netr_Authenticator *return_authenticator;/* [unique] */
uint16_t logon_level;
union netr_LogonLevel logon;/* [switch_is(logon_level)] */
+ struct netr_Authenticator *return_authenticator;/* [unique] */
} in;
struct {
const char *logon_server;/* [charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
enum netr_SamDatabaseID database_id;
- uint64_t *sequence_num;/* [ref] */
uint32_t preferredmaximumlength;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
+ uint64_t *sequence_num;/* [ref] */
} in;
struct {
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
struct netr_Authenticator *return_authenticator;/* [ref] */
uint64_t *sequence_num;/* [ref] */
- struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
NTSTATUS result;
} out;
const char *logon_server;/* [charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
enum netr_SamDatabaseID database_id;
- uint32_t *sync_context;/* [ref] */
uint32_t preferredmaximumlength;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
+ uint32_t *sync_context;/* [ref] */
} in;
struct {
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
struct netr_Authenticator *return_authenticator;/* [ref] */
uint32_t *sync_context;/* [ref] */
- struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
NTSTATUS result;
} out;
const char *logon_server;/* [unique,charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_UAS_INFO_0 uas;
uint32_t count;
uint32_t level;
uint32_t buffersize;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_AccountBuffer *buffer;/* [ref,subcontext(4)] */
uint32_t *count_returned;/* [ref] */
uint32_t *total_entries;/* [ref] */
struct netr_UAS_INFO_0 *recordid;/* [ref] */
+ struct netr_Authenticator *return_authenticator;/* [ref] */
NTSTATUS result;
} out;
const char *logon_server;/* [unique,charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
uint32_t reference;
uint32_t level;
uint32_t buffersize;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_UAS_INFO_0 *recordid;/* [ref] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_AccountBuffer *buffer;/* [ref,subcontext(4)] */
uint32_t *count_returned;/* [ref] */
uint32_t *total_entries;/* [ref] */
uint32_t *next_reference;/* [ref] */
+ struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_UAS_INFO_0 *recordid;/* [ref] */
NTSTATUS result;
} out;
const char *logon_server;/* [charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
enum netr_SamDatabaseID database_id;
uint16_t restart_state;
- uint32_t *sync_context;/* [ref] */
uint32_t preferredmaximumlength;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
+ uint32_t *sync_context;/* [ref] */
} in;
struct {
+ struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
struct netr_Authenticator *return_authenticator;/* [ref] */
uint32_t *sync_context;/* [ref] */
- struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
NTSTATUS result;
} out;
const char *logon_server;/* [charset(UTF16)] */
const char *computername;/* [charset(UTF16)] */
struct netr_Authenticator credential;
- struct netr_Authenticator *return_authenticator;/* [ref] */
uint8_t *change_log_entry;/* [unique,size_is(change_log_entry_size)] */
uint32_t change_log_entry_size;
+ struct netr_Authenticator *return_authenticator;/* [ref] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [ref] */
struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [unique] */
+ struct netr_Authenticator *return_authenticator;/* [ref] */
NTSTATUS result;
} out;
} in;
struct {
+ uint32_t *rid;/* [ref] */
struct netr_Credential *credentials;/* [ref] */
uint32_t *negotiate_flags;/* [ref] */
- uint32_t *rid;/* [ref] */
NTSTATUS result;
} out;
const char *server_name;/* [charset(UTF16)] */
const char *computer_name;/* [unique,charset(UTF16)] */
struct netr_Authenticator *credential;/* [ref] */
- struct netr_Authenticator *return_authenticator;/* [ref] */
uint32_t level;
union netr_DomainQuery query;/* [switch_is(level)] */
+ struct netr_Authenticator *return_authenticator;/* [ref] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [ref] */
union netr_DomainInfo *info;/* [ref,switch_is(level)] */
+ struct netr_Authenticator *return_authenticator;/* [ref] */
NTSTATUS result;
} out;
const char *server_name;/* [unique,charset(UTF16)] */
const char *computer_name;/* [unique,charset(UTF16)] */
struct netr_Authenticator *credential;/* [unique] */
- struct netr_Authenticator *return_authenticator;/* [unique] */
uint16_t logon_level;
union netr_LogonLevel logon;/* [switch_is(logon_level)] */
uint16_t validation_level;
+ struct netr_Authenticator *return_authenticator;/* [unique] */
uint32_t *flags;/* [ref] */
} in;
struct {
- struct netr_Authenticator *return_authenticator;/* [unique] */
union netr_Validation *validation;/* [ref,switch_is(validation_level)] */
uint8_t *authoritative;/* [ref] */
+ struct netr_Authenticator *return_authenticator;/* [unique] */
uint32_t *flags;/* [ref] */
NTSTATUS result;
} out;
/* header auto-generated by pidl */
+#include <stdint.h>
+
#ifndef _HEADER_notify
#define _HEADER_notify
r.out.name = r.in.name;
r.out.type = r.in.type;
r.out.data = r.in.data;
- r.out.data_size = r.in.data_size;
- r.out.value_length = r.in.value_length;
+ r.out.size = r.in.size;
+ r.out.length = r.in.length;
r.out.result = _winreg_EnumValue(p, &r);
if (p->rng_fault_state) {
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/security.h"
#include "librpc/gen_ndr/svcctl.h"
#ifndef _HEADER_srvsvc
struct srvsvc_NetCharDevEnum {
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetCharDevCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetCharDevCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
const char *user;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetCharDevQCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetCharDevQCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
const char *path;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetConnCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetConnCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
const char *server_unc;/* [unique,charset(UTF16)] */
const char *path;/* [unique,charset(UTF16)] */
const char *user;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetFileCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetFileCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
const char *server_unc;/* [unique,charset(UTF16)] */
const char *client;/* [unique,charset(UTF16)] */
const char *user;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetSessCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetSessCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
struct srvsvc_NetShareEnumAll {
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetShareCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetShareCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
uint32_t level;
- struct srvsvc_NetDiskInfo *info;/* [ref] */
uint32_t maxlen;
+ struct srvsvc_NetDiskInfo *info;/* [ref] */
uint32_t *resume_handle;/* [unique] */
} in;
struct {
- struct srvsvc_NetDiskInfo *info;/* [ref] */
uint32_t *totalentries;/* [ref] */
+ struct srvsvc_NetDiskInfo *info;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
struct srvsvc_NetTransportEnum {
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetTransportCtr *transports;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetTransportCtr *transports;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
const char *path;/* [charset(UTF16)] */
uint32_t maxbuf;
const char *prefix;/* [charset(UTF16)] */
- uint32_t *pathtype;/* [ref] */
uint32_t pathflags;
+ uint32_t *pathtype;/* [ref] */
} in;
struct {
struct srvsvc_NetShareEnum {
struct {
const char *server_unc;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union srvsvc_NetShareCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [unique] */
} in;
struct {
+ uint32_t *totalentries;/* [ref] */
uint32_t *level;/* [ref] */
union srvsvc_NetShareCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [ref] */
uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
/* header auto-generated by pidl */
+#include <stdint.h>
+
#ifndef _HEADER_svcctl
#define _HEADER_svcctl
uint32_t error_control;
const char *binary_path;/* [charset(UTF16)] */
const char *LoadOrderGroupKey;/* [unique,charset(UTF16)] */
- uint32_t *TagId;/* [unique] */
uint8_t *dependencies;/* [unique,size_is(dependencies_size)] */
uint32_t dependencies_size;
const char *service_start_name;/* [unique,charset(UTF16)] */
uint8_t *password;/* [unique,size_is(password_size)] */
uint32_t password_size;
+ uint32_t *TagId;/* [unique] */
} in;
struct {
- uint32_t *TagId;/* [unique] */
struct policy_handle *handle;/* [ref] */
+ uint32_t *TagId;/* [unique] */
WERROR result;
} out;
uint8_t *services;
uint32_t *bytes_needed;/* [ref] */
uint32_t *service_returned;/* [ref] */
- uint32_t *resume_handle;/* [unique] */
const char **group_name;/* [ref,charset(UTF16)] */
+ uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
uint8_t *services;
uint32_t *bytes_needed;/* [ref] */
uint32_t *service_returned;/* [ref] */
- uint32_t *resume_handle;/* [unique] */
const char **group_name;/* [ref,charset(UTF16)] */
+ uint32_t *resume_handle;/* [unique] */
WERROR result;
} out;
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/security.h"
#ifndef _HEADER_unixinfo
#define _HEADER_unixinfo
struct unixinfo_GetPWUid {
struct {
- uint32_t *count;/* [ref,range(0 1023)] */
uint64_t *uids;/* [size_is(*count)] */
+ uint32_t *count;/* [ref,range(0 1023)] */
} in;
struct {
- uint32_t *count;/* [ref,range(0 1023)] */
struct unixinfo_GetPWUidInfo *infos;/* [size_is(*count)] */
+ uint32_t *count;/* [ref,range(0 1023)] */
NTSTATUS result;
} out;
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/lsa.h"
#include "librpc/gen_ndr/initshutdown.h"
#include "librpc/gen_ndr/security.h"
#define _HEADER_winreg
/* bitmap winreg_AccessMask */
+#define KEY_QUERY_VALUE ( 0x00001 )
+#define KEY_SET_VALUE ( 0x00002 )
+#define KEY_CREATE_SUB_KEY ( 0x00004 )
+#define KEY_ENUMERATE_SUB_KEYS ( 0x00008 )
+#define KEY_NOTIFY ( 0x00010 )
+#define KEY_CREATE_LINK ( 0x00020 )
+#define KEY_WOW64_64KEY ( 0x00100 )
+#define KEY_WOW64_32KEY ( 0x00200 )
#ifndef USE_UINT_ENUMS
enum winreg_Type {
uint32_t enum_index;
struct winreg_ValNameBuf *name;/* [ref] */
enum winreg_Type *type;/* [unique] */
- uint8_t **data;/* [ref,length_is(*value_length),size_is(*data_size)] */
- uint32_t *data_size;/* [unique] */
- uint32_t *value_length;/* [unique] */
+ uint8_t **data;/* [unique,length_is(*length),size_is(*size)] */
+ uint32_t *size;/* [unique] */
+ uint32_t *length;/* [unique] */
} in;
struct {
struct winreg_ValNameBuf *name;/* [ref] */
enum winreg_Type *type;/* [unique] */
- uint8_t **data;/* [ref,length_is(*value_length),size_is(*data_size)] */
- uint32_t *data_size;/* [unique] */
- uint32_t *value_length;/* [unique] */
+ uint8_t **data;/* [unique,length_is(*length),size_is(*size)] */
+ uint32_t *size;/* [unique] */
+ uint32_t *length;/* [unique] */
WERROR result;
} out;
} in;
struct {
- struct winreg_String *classname;/* [ref] */
uint32_t *num_subkeys;/* [ref] */
uint32_t *max_subkeylen;/* [ref] */
uint32_t *max_classlen;/* [ref] */
uint32_t *max_valbufsize;/* [ref] */
uint32_t *secdescsize;/* [ref] */
NTTIME *last_changed_time;/* [ref] */
+ struct winreg_String *classname;/* [ref] */
WERROR result;
} out;
struct winreg_QueryMultipleValues {
struct {
struct policy_handle *key_handle;/* [ref] */
- struct QueryMultipleValue *values;/* [ref,length_is(num_values),size_is(num_values)] */
uint32_t num_values;
+ struct QueryMultipleValue *values;/* [ref,length_is(num_values),size_is(num_values)] */
uint8_t *buffer;/* [unique,length_is(*buffer_size),size_is(*buffer_size)] */
uint32_t *buffer_size;/* [ref] */
} in;
/* header auto-generated by pidl */
+#include <stdint.h>
+
#include "librpc/gen_ndr/srvsvc.h"
#ifndef _HEADER_wkssvc
#define _HEADER_wkssvc
struct {
const char *server_name;/* [unique,charset(UTF16)] */
uint32_t level;
- union WKS_USER_ENUM_UNION *users;/* [ref] */
uint32_t prefmaxlen;
+ union WKS_USER_ENUM_UNION *users;/* [ref] */
uint32_t *resumehandle;/* [ref] */
} in;
struct {
- union WKS_USER_ENUM_UNION *users;/* [ref] */
uint32_t *entriesread;/* [unique] */
uint32_t *totalentries;/* [unique] */
+ union WKS_USER_ENUM_UNION *users;/* [ref] */
uint32_t *resumehandle;/* [ref] */
WERROR result;
} out;
struct wkssvc_NetWkstaTransportEnum {
struct {
const char *server_name;/* [unique,charset(UTF16)] */
+ uint32_t max_buffer;
uint32_t *level;/* [ref] */
union wkssvc_NetWkstaTransportCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t max_buffer;
uint32_t *resume_handle;/* [ref] */
} in;
struct {
+ uint32_t *totalentries;/* [unique] */
uint32_t *level;/* [ref] */
union wkssvc_NetWkstaTransportCtr *ctr;/* [ref,switch_is(*level)] */
- uint32_t *totalentries;/* [unique] */
uint32_t *resume_handle;/* [ref] */
WERROR result;
} out;
declare bitmap security_secinfo;
typedef [bitmap32bit] bitmap {
+ KEY_QUERY_VALUE = 0x00001,
+ KEY_SET_VALUE = 0x00002,
+ KEY_CREATE_SUB_KEY = 0x00004,
+ KEY_ENUMERATE_SUB_KEYS = 0x00008,
+ KEY_NOTIFY = 0x00010,
+ KEY_CREATE_LINK = 0x00020,
+ KEY_WOW64_64KEY = 0x00100,
+ KEY_WOW64_32KEY = 0x00200
} winreg_AccessMask;
typedef [v1_enum] enum {
[in] uint32 enum_index,
[in,out,ref] winreg_ValNameBuf *name,
[in,out,unique] winreg_Type *type,
- [in,out,ref,size_is(*data_size),length_is(*value_length)] uint8 **data,
- [in,out,unique] uint32 *data_size,
- [in,out,unique] uint32 *value_length
+ [in,out,unique,size_is(*size),length_is(*length)] uint8 **data,
+ [in,out,unique] uint32 *size,
+ [in,out,unique] uint32 *length
);
/******************/
}
if (r->out.data != NULL) {
- if ((r->out.data_size == NULL) || (r->out.value_length == NULL)) {
+ if ((r->out.size == NULL) || (r->out.length == NULL)) {
return WERR_INVALID_PARAM;
}
- if (value_blob.length > *r->out.data_size) {
+ if (value_blob.length > *r->out.size) {
return WERR_MORE_DATA;
}
memcpy( r->out.data, value_blob.data, value_blob.length );
}
- if (r->out.value_length != NULL) {
- *r->out.value_length = value_blob.length;
+ if (r->out.length != NULL) {
+ *r->out.length = value_blob.length;
}
- if (r->out.data_size != NULL) {
- *r->out.data_size = value_blob.length;
+ if (r->out.size != NULL) {
+ *r->out.size = value_blob.length;
}
return WERR_OK;