2008-02-17 20:25:05 +01:00
/*
* Unix SMB / CIFS implementation .
* client auto - generated by pidl . DO NOT MODIFY !
*/
# include "includes.h"
2008-12-16 16:32:18 +01:00
# include "../librpc/gen_ndr/cli_ntsvcs.h"
2008-02-17 20:25:05 +01:00
NTSTATUS rpccli_PNP_Disconnect ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_Disconnect r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_Disconnect , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_DISCONNECT ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_Disconnect , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_Connect ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_Connect r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_Connect , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_CONNECT ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_Connect , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetVersion ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
2008-03-25 17:52:33 +01:00
uint16_t * version /* [out] [ref] */ ,
2008-02-17 23:29:35 +01:00
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetVersion r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetVersion , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETVERSION ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetVersion , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
2008-02-17 23:29:35 +01:00
* version = * r . out . version ;
2008-02-17 20:25:05 +01:00
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetGlobalState ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetGlobalState r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetGlobalState , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETGLOBALSTATE ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetGlobalState , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_InitDetection ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_InitDetection r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_InitDetection , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_INITDETECTION ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_InitDetection , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_ReportLogOn ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_ReportLogOn r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_ReportLogOn , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_REPORTLOGON ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_ReportLogOn , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_ValidateDeviceInstance ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
2008-03-25 17:52:33 +01:00
const char * devicepath /* [in] [ref,charset(UTF16)] */ ,
uint32_t flags /* [in] */ ,
2008-02-17 23:29:35 +01:00
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_ValidateDeviceInstance r ;
NTSTATUS status ;
/* In parameters */
2008-02-17 23:44:50 +01:00
r . in . devicepath = devicepath ;
r . in . flags = flags ;
2008-02-17 20:25:05 +01:00
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_ValidateDeviceInstance , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_VALIDATEDEVICEINSTANCE ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_ValidateDeviceInstance , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetRootDeviceInstance ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetRootDeviceInstance r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetRootDeviceInstance , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETROOTDEVICEINSTANCE ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetRootDeviceInstance , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetRelatedDeviceInstance ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetRelatedDeviceInstance r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetRelatedDeviceInstance , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETRELATEDDEVICEINSTANCE ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetRelatedDeviceInstance , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_EnumerateSubKeys ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_EnumerateSubKeys r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_EnumerateSubKeys , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_ENUMERATESUBKEYS ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_EnumerateSubKeys , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetDeviceList ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
2008-10-19 00:26:16 +02:00
const char * filter /* [in] [unique,charset(UTF16)] */ ,
uint16_t * buffer /* [out] [ref,length_is(*length),size_is(*length)] */ ,
uint32_t * length /* [in,out] [ref] */ ,
uint32_t flags /* [in] */ ,
2008-02-17 23:29:35 +01:00
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetDeviceList r ;
NTSTATUS status ;
/* In parameters */
2008-10-19 00:26:16 +02:00
r . in . filter = filter ;
r . in . length = length ;
r . in . flags = flags ;
2008-02-17 20:25:05 +01:00
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetDeviceList , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETDEVICELIST ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetDeviceList , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
2008-10-19 00:26:16 +02:00
memcpy ( buffer , r . out . buffer , * r . in . length * sizeof ( * buffer ) ) ;
* length = * r . out . length ;
2008-02-17 20:25:05 +01:00
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetDeviceListSize ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
2008-03-25 17:52:33 +01:00
const char * devicename /* [in] [unique,charset(UTF16)] */ ,
uint32_t * size /* [out] [ref] */ ,
uint32_t flags /* [in] */ ,
2008-02-17 23:29:35 +01:00
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetDeviceListSize r ;
NTSTATUS status ;
/* In parameters */
2008-02-18 00:26:10 +01:00
r . in . devicename = devicename ;
r . in . flags = flags ;
2008-02-17 20:25:05 +01:00
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetDeviceListSize , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETDEVICELISTSIZE ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetDeviceListSize , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
2008-02-18 00:26:10 +01:00
* size = * r . out . size ;
2008-02-17 20:25:05 +01:00
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetDepth ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetDepth r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetDepth , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETDEPTH ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetDepth , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetDeviceRegProp ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
2008-03-26 11:35:44 +01:00
const char * devicepath /* [in] [ref,charset(UTF16)] */ ,
uint32_t property /* [in] */ ,
2008-11-12 09:18:55 +01:00
enum winreg_Type * reg_data_type /* [in,out] [ref] */ ,
2008-03-26 11:35:44 +01:00
uint8_t * buffer /* [out] [ref,length_is(*buffer_size),size_is(*buffer_size)] */ ,
uint32_t * buffer_size /* [in,out] [ref] */ ,
uint32_t * needed /* [in,out] [ref] */ ,
2008-10-19 00:26:16 +02:00
uint32_t flags /* [in] */ ,
2008-02-17 23:29:35 +01:00
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetDeviceRegProp r ;
NTSTATUS status ;
/* In parameters */
2008-03-26 11:35:44 +01:00
r . in . devicepath = devicepath ;
r . in . property = property ;
2008-10-19 00:26:16 +02:00
r . in . reg_data_type = reg_data_type ;
2008-03-26 11:35:44 +01:00
r . in . buffer_size = buffer_size ;
r . in . needed = needed ;
2008-10-19 00:26:16 +02:00
r . in . flags = flags ;
2008-02-17 20:25:05 +01:00
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetDeviceRegProp , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETDEVICEREGPROP ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetDeviceRegProp , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
2008-10-19 00:26:16 +02:00
* reg_data_type = * r . out . reg_data_type ;
2008-04-15 16:11:10 +02:00
memcpy ( buffer , r . out . buffer , * r . in . buffer_size * sizeof ( * buffer ) ) ;
2008-03-26 11:35:44 +01:00
* buffer_size = * r . out . buffer_size ;
* needed = * r . out . needed ;
2008-02-17 20:25:05 +01:00
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_SetDeviceRegProp ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_SetDeviceRegProp r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_SetDeviceRegProp , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_SETDEVICEREGPROP ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_SetDeviceRegProp , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetClassInstance ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetClassInstance r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetClassInstance , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETCLASSINSTANCE ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetClassInstance , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_CreateKey ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_CreateKey r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_CreateKey , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_CREATEKEY ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_CreateKey , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_DeleteRegistryKey ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_DeleteRegistryKey r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_DeleteRegistryKey , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_DELETEREGISTRYKEY ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_DeleteRegistryKey , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetClassCount ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetClassCount r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetClassCount , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETCLASSCOUNT ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetClassCount , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetClassName ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetClassName r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetClassName , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETCLASSNAME ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetClassName , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_DeleteClassKey ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_DeleteClassKey r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_DeleteClassKey , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_DELETECLASSKEY ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_DeleteClassKey , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetInterfaceDeviceAlias ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetInterfaceDeviceAlias r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetInterfaceDeviceAlias , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETINTERFACEDEVICEALIAS ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetInterfaceDeviceAlias , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetInterfaceDeviceList ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetInterfaceDeviceList r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetInterfaceDeviceList , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETINTERFACEDEVICELIST ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetInterfaceDeviceList , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetInterfaceDeviceListSize ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetInterfaceDeviceListSize r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetInterfaceDeviceListSize , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETINTERFACEDEVICELISTSIZE ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetInterfaceDeviceListSize , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_RegisterDeviceClassAssociation ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_RegisterDeviceClassAssociation r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_RegisterDeviceClassAssociation , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_REGISTERDEVICECLASSASSOCIATION ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_RegisterDeviceClassAssociation , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_UnregisterDeviceClassAssociation ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_UnregisterDeviceClassAssociation r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_UnregisterDeviceClassAssociation , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_UNREGISTERDEVICECLASSASSOCIATION ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_UnregisterDeviceClassAssociation , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetClassRegProp ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetClassRegProp r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetClassRegProp , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETCLASSREGPROP ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetClassRegProp , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_SetClassRegProp ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_SetClassRegProp r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_SetClassRegProp , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_SETCLASSREGPROP ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_SetClassRegProp , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_CreateDevInst ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_CreateDevInst r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_CreateDevInst , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_CREATEDEVINST ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_CreateDevInst , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_DeviceInstanceAction ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_DeviceInstanceAction r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_DeviceInstanceAction , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_DEVICEINSTANCEACTION ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_DeviceInstanceAction , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetDeviceStatus ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetDeviceStatus r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetDeviceStatus , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETDEVICESTATUS ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetDeviceStatus , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_SetDeviceProblem ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_SetDeviceProblem r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_SetDeviceProblem , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_SETDEVICEPROBLEM ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_SetDeviceProblem , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_DisableDevInst ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_DisableDevInst r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_DisableDevInst , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_DISABLEDEVINST ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_DisableDevInst , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_UninstallDevInst ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_UninstallDevInst r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_UninstallDevInst , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_UNINSTALLDEVINST ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_UninstallDevInst , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_AddID ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_AddID r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_AddID , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_ADDID ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_AddID , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_RegisterDriver ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_RegisterDriver r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_RegisterDriver , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_REGISTERDRIVER ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_RegisterDriver , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_QueryRemove ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_QueryRemove r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_QueryRemove , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_QUERYREMOVE ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_QueryRemove , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_RequestDeviceEject ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_RequestDeviceEject r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_RequestDeviceEject , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_REQUESTDEVICEEJECT ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_RequestDeviceEject , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_IsDockStationPresent ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_IsDockStationPresent r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_IsDockStationPresent , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_ISDOCKSTATIONPRESENT ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_IsDockStationPresent , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_RequestEjectPC ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_RequestEjectPC r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_RequestEjectPC , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_REQUESTEJECTPC ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_RequestEjectPC , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_HwProfFlags ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
2008-11-12 09:36:08 +01:00
uint32_t action /* [in] */ ,
2008-03-25 17:52:33 +01:00
const char * devicepath /* [in] [ref,charset(UTF16)] */ ,
2008-11-12 09:36:08 +01:00
uint32_t config /* [in] */ ,
uint32_t * profile_flags /* [in,out] [ref] */ ,
uint16_t * veto_type /* [in,out] [unique] */ ,
2008-03-25 17:52:33 +01:00
const char * unknown5 /* [in] [unique,charset(UTF16)] */ ,
const char * * unknown5a /* [out] [unique,charset(UTF16)] */ ,
2008-11-12 09:36:08 +01:00
uint32_t name_length /* [in] */ ,
uint32_t flags /* [in] */ ,
2008-02-17 23:29:35 +01:00
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_HwProfFlags r ;
NTSTATUS status ;
/* In parameters */
2008-11-12 09:36:08 +01:00
r . in . action = action ;
2008-02-18 01:37:06 +01:00
r . in . devicepath = devicepath ;
2008-11-12 09:36:08 +01:00
r . in . config = config ;
r . in . profile_flags = profile_flags ;
r . in . veto_type = veto_type ;
2008-02-18 01:37:06 +01:00
r . in . unknown5 = unknown5 ;
2008-11-12 09:36:08 +01:00
r . in . name_length = name_length ;
r . in . flags = flags ;
2008-02-17 20:25:05 +01:00
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_HwProfFlags , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_HWPROFFLAGS ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_HwProfFlags , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
2008-11-12 09:36:08 +01:00
* profile_flags = * r . out . profile_flags ;
if ( veto_type & & r . out . veto_type ) {
* veto_type = * r . out . veto_type ;
2008-02-18 01:37:06 +01:00
}
if ( unknown5a & & r . out . unknown5a ) {
* unknown5a = * r . out . unknown5a ;
}
2008-02-17 20:25:05 +01:00
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetHwProfInfo ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
2008-03-25 17:52:33 +01:00
uint32_t idx /* [in] */ ,
struct PNP_HwProfInfo * info /* [in,out] [ref] */ ,
2008-11-12 09:30:46 +01:00
uint32_t size /* [in] */ ,
uint32_t flags /* [in] */ ,
2008-02-17 23:29:35 +01:00
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetHwProfInfo r ;
NTSTATUS status ;
/* In parameters */
2008-02-18 01:38:08 +01:00
r . in . idx = idx ;
r . in . info = info ;
2008-11-12 09:30:46 +01:00
r . in . size = size ;
r . in . flags = flags ;
2008-02-17 20:25:05 +01:00
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetHwProfInfo , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETHWPROFINFO ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetHwProfInfo , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
2008-02-18 01:38:08 +01:00
* info = * r . out . info ;
2008-02-17 20:25:05 +01:00
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_AddEmptyLogConf ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_AddEmptyLogConf r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_AddEmptyLogConf , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_ADDEMPTYLOGCONF ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_AddEmptyLogConf , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_FreeLogConf ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_FreeLogConf r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_FreeLogConf , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_FREELOGCONF ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_FreeLogConf , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetFirstLogConf ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetFirstLogConf r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetFirstLogConf , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETFIRSTLOGCONF ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetFirstLogConf , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetNextLogConf ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetNextLogConf r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetNextLogConf , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETNEXTLOGCONF ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetNextLogConf , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetLogConfPriority ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetLogConfPriority r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetLogConfPriority , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETLOGCONFPRIORITY ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetLogConfPriority , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_AddResDes ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_AddResDes r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_AddResDes , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_ADDRESDES ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_AddResDes , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_FreeResDes ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_FreeResDes r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_FreeResDes , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_FREERESDES ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_FreeResDes , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetNextResDes ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetNextResDes r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetNextResDes , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETNEXTRESDES ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetNextResDes , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetResDesData ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetResDesData r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetResDesData , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETRESDESDATA ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetResDesData , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetResDesDataSize ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetResDesDataSize r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetResDesDataSize , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETRESDESDATASIZE ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetResDesDataSize , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_ModifyResDes ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_ModifyResDes r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_ModifyResDes , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_MODIFYRESDES ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_ModifyResDes , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_DetectResourceLimit ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_DetectResourceLimit r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_DetectResourceLimit , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_DETECTRESOURCELIMIT ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_DetectResourceLimit , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_QueryResConfList ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_QueryResConfList r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_QueryResConfList , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_QUERYRESCONFLIST ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_QueryResConfList , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_SetHwProf ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_SetHwProf r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_SetHwProf , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_SETHWPROF ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_SetHwProf , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_QueryArbitratorFreeData ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_QueryArbitratorFreeData r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_QueryArbitratorFreeData , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_QUERYARBITRATORFREEDATA ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_QueryArbitratorFreeData , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_QueryArbitratorFreeSize ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_QueryArbitratorFreeSize r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_QueryArbitratorFreeSize , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_QUERYARBITRATORFREESIZE ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_QueryArbitratorFreeSize , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_RunDetection ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_RunDetection r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_RunDetection , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_RUNDETECTION ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_RunDetection , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_RegisterNotification ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_RegisterNotification r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_RegisterNotification , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_REGISTERNOTIFICATION ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_RegisterNotification , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_UnregisterNotification ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_UnregisterNotification r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_UnregisterNotification , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_UNREGISTERNOTIFICATION ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_UnregisterNotification , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetCustomDevProp ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetCustomDevProp r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetCustomDevProp , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETCUSTOMDEVPROP ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetCustomDevProp , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetVersionInternal ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetVersionInternal r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetVersionInternal , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETVERSIONINTERNAL ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetVersionInternal , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetBlockedDriverInfo ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetBlockedDriverInfo r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetBlockedDriverInfo , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETBLOCKEDDRIVERINFO ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetBlockedDriverInfo , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}
NTSTATUS rpccli_PNP_GetServerSideDeviceInstallFlags ( struct rpc_pipe_client * cli ,
2008-02-17 23:29:35 +01:00
TALLOC_CTX * mem_ctx ,
WERROR * werror )
2008-02-17 20:25:05 +01:00
{
struct PNP_GetServerSideDeviceInstallFlags r ;
NTSTATUS status ;
/* In parameters */
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_IN_DEBUG ( PNP_GetServerSideDeviceInstallFlags , & r ) ;
}
2009-01-21 13:40:18 +01:00
status = cli - > dispatch ( cli ,
2008-02-17 20:25:05 +01:00
mem_ctx ,
& ndr_table_ntsvcs ,
NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS ,
& r ) ;
if ( ! NT_STATUS_IS_OK ( status ) ) {
return status ;
}
if ( DEBUGLEVEL > = 10 ) {
NDR_PRINT_OUT_DEBUG ( PNP_GetServerSideDeviceInstallFlags , & r ) ;
}
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
2008-02-17 23:29:35 +01:00
if ( werror ) {
* werror = r . out . result ;
}
return werror_to_ntstatus ( r . out . result ) ;
2008-02-17 20:25:05 +01:00
}