Documentation
¶
Index ¶
- Variables
- func NewServicesServerHandle(o ServicesServer) dcerpc.ServerHandle
- func RegisterServicesServer(conn dcerpc.Conn, o ServicesServer, opts ...dcerpc.Option)
- func ServicesServerHandle(ctx context.Context, o ServicesServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- type CancelAsyncCallRequest
- type CancelAsyncCallResponse
- type CreateClassEnumAsyncRequest
- type CreateClassEnumAsyncResponse
- type CreateClassEnumRequest
- type CreateClassEnumResponse
- type CreateInstanceEnumAsyncRequest
- type CreateInstanceEnumAsyncResponse
- type CreateInstanceEnumRequest
- type CreateInstanceEnumResponse
- type DeleteClassAsyncRequest
- type DeleteClassAsyncResponse
- type DeleteClassRequest
- type DeleteClassResponse
- type DeleteInstanceAsyncRequest
- type DeleteInstanceAsyncResponse
- type DeleteInstanceRequest
- type DeleteInstanceResponse
- type ExecMethodAsyncRequest
- type ExecMethodAsyncResponse
- type ExecMethodRequest
- type ExecMethodResponse
- type ExecNotificationQueryAsyncRequest
- type ExecNotificationQueryAsyncResponse
- type ExecNotificationQueryRequest
- type ExecNotificationQueryResponse
- type ExecQueryAsyncRequest
- type ExecQueryAsyncResponse
- type ExecQueryRequest
- type ExecQueryResponse
- type GetObjectAsyncRequest
- type GetObjectAsyncResponse
- type GetObjectRequest
- type GetObjectResponse
- type OpenNamespaceRequest
- type OpenNamespaceResponse
- type PutClassAsyncRequest
- type PutClassAsyncResponse
- type PutClassRequest
- type PutClassResponse
- type PutInstanceAsyncRequest
- type PutInstanceAsyncResponse
- type PutInstanceRequest
- type PutInstanceResponse
- type QueryObjectSinkRequest
- type QueryObjectSinkResponse
- type ServicesClient
- type ServicesServer
- type UnimplementedServicesServer
- func (UnimplementedServicesServer) CancelAsyncCall(context.Context, *CancelAsyncCallRequest) (*CancelAsyncCallResponse, error)
- func (UnimplementedServicesServer) CreateClassEnum(context.Context, *CreateClassEnumRequest) (*CreateClassEnumResponse, error)
- func (UnimplementedServicesServer) CreateClassEnumAsync(context.Context, *CreateClassEnumAsyncRequest) (*CreateClassEnumAsyncResponse, error)
- func (UnimplementedServicesServer) CreateInstanceEnum(context.Context, *CreateInstanceEnumRequest) (*CreateInstanceEnumResponse, error)
- func (UnimplementedServicesServer) CreateInstanceEnumAsync(context.Context, *CreateInstanceEnumAsyncRequest) (*CreateInstanceEnumAsyncResponse, error)
- func (UnimplementedServicesServer) DeleteClass(context.Context, *DeleteClassRequest) (*DeleteClassResponse, error)
- func (UnimplementedServicesServer) DeleteClassAsync(context.Context, *DeleteClassAsyncRequest) (*DeleteClassAsyncResponse, error)
- func (UnimplementedServicesServer) DeleteInstance(context.Context, *DeleteInstanceRequest) (*DeleteInstanceResponse, error)
- func (UnimplementedServicesServer) DeleteInstanceAsync(context.Context, *DeleteInstanceAsyncRequest) (*DeleteInstanceAsyncResponse, error)
- func (UnimplementedServicesServer) ExecMethod(context.Context, *ExecMethodRequest) (*ExecMethodResponse, error)
- func (UnimplementedServicesServer) ExecMethodAsync(context.Context, *ExecMethodAsyncRequest) (*ExecMethodAsyncResponse, error)
- func (UnimplementedServicesServer) ExecNotificationQuery(context.Context, *ExecNotificationQueryRequest) (*ExecNotificationQueryResponse, error)
- func (UnimplementedServicesServer) ExecNotificationQueryAsync(context.Context, *ExecNotificationQueryAsyncRequest) (*ExecNotificationQueryAsyncResponse, error)
- func (UnimplementedServicesServer) ExecQuery(context.Context, *ExecQueryRequest) (*ExecQueryResponse, error)
- func (UnimplementedServicesServer) ExecQueryAsync(context.Context, *ExecQueryAsyncRequest) (*ExecQueryAsyncResponse, error)
- func (UnimplementedServicesServer) GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)
- func (UnimplementedServicesServer) GetObjectAsync(context.Context, *GetObjectAsyncRequest) (*GetObjectAsyncResponse, error)
- func (UnimplementedServicesServer) OpenNamespace(context.Context, *OpenNamespaceRequest) (*OpenNamespaceResponse, error)
- func (UnimplementedServicesServer) PutClass(context.Context, *PutClassRequest) (*PutClassResponse, error)
- func (UnimplementedServicesServer) PutClassAsync(context.Context, *PutClassAsyncRequest) (*PutClassAsyncResponse, error)
- func (UnimplementedServicesServer) PutInstance(context.Context, *PutInstanceRequest) (*PutInstanceResponse, error)
- func (UnimplementedServicesServer) PutInstanceAsync(context.Context, *PutInstanceAsyncRequest) (*PutInstanceAsyncResponse, error)
- func (UnimplementedServicesServer) QueryObjectSink(context.Context, *QueryObjectSinkRequest) (*QueryObjectSinkResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( // IWbemServices interface identifier 9556dc99-828c-11cf-a37e-00aa003240c7 ServicesIID = &dcom.IID{Data1: 0x9556dc99, Data2: 0x828c, Data3: 0x11cf, Data4: []byte{0xa3, 0x7e, 0x00, 0xaa, 0x00, 0x32, 0x40, 0xc7}} // Syntax UUID ServicesSyntaxUUID = &uuid.UUID{TimeLow: 0x9556dc99, TimeMid: 0x828c, TimeHiAndVersion: 0x11cf, ClockSeqHiAndReserved: 0xa3, ClockSeqLow: 0x7e, Node: [6]uint8{0x0, 0xaa, 0x0, 0x32, 0x40, 0xc7}} // Syntax ID ServicesSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ServicesSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "dcom/wmi"
)
Functions ¶
func NewServicesServerHandle ¶
func NewServicesServerHandle(o ServicesServer) dcerpc.ServerHandle
func RegisterServicesServer ¶
func RegisterServicesServer(conn dcerpc.Conn, o ServicesServer, opts ...dcerpc.Option)
Types ¶
type CancelAsyncCallRequest ¶
type CancelAsyncCallRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// pSink: MUST be a pointer to the IWbemObjectSink interface object that was passed
// to the asynchronous method that the client wants to cancel. This parameter MUST NOT
// be NULL.
Sink *wmi.ObjectSink `idl:"name:pSink" json:"sink"`
}
CancelAsyncCallRequest structure represents the CancelAsyncCall operation request
func (*CancelAsyncCallRequest) MarshalNDR ¶
func (*CancelAsyncCallRequest) UnmarshalNDR ¶
type CancelAsyncCallResponse ¶
type CancelAsyncCallResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// Return: The CancelAsyncCall return value.
Return int32 `idl:"name:Return" json:"return"`
}
CancelAsyncCallResponse structure represents the CancelAsyncCall operation response
func (*CancelAsyncCallResponse) MarshalNDR ¶
func (*CancelAsyncCallResponse) UnmarshalNDR ¶
type CreateClassEnumAsyncRequest ¶
type CreateClassEnumAsyncRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
Superclass *oaut.String `idl:"name:strSuperclass" json:"superclass"`
// lFlags: Flags that affect the behavior of the CreateClassEnum method. Flag behavior
// MUST be interpreted as specified in the following table.
//
// The server MUST allow any combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is not set, the server SHOULD return no CIM localizable information. |
// | | If this bit is set, the server SHOULD return CIM localizable information for the |
// | | CIM object as specified in section 2.2.6. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SEND_STATUS 0x00000080 | If this bit is not set, the server MUST make one final |
// | | IWbemObjectSink::SetStatus call on the interface pointer that is provided in the |
// | | pResponseHandler parameter. If this bit is set, the server MAY make intermediate |
// | | IWbemObjectSink::SetStatus calls on the interface pointer prior to call |
// | | completion. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SHALLOW 0x00000001 | When this bit is not set, the server MUST return all classes that are derived |
// | | from the requested class and all its subclasses. When this bit is set, the |
// | | server MUST only return the classes that are directly derived from the requested |
// | | class. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If pCtx is NULL, the parameter
// MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// pResponseHandler: MUST be a pointer to the IWbemObjectSink that is implemented by
// the caller, where enumeration results are delivered. The parameter MUST NOT be NULL.
// In error cases, indicated by the return value, the supplied IWbemObjectSink interface
// pointer MUST NOT be used. If WBEM_S_NO_ERROR is returned, the user IWbemObjectSink
// interface pointer MUST be called to indicate the results of the CreateClassEnumAsync
// operation, as specified later in this section.
ResponseHandler *wmi.ObjectSink `idl:"name:pResponseHandler" json:"response_handler"`
}
CreateClassEnumAsyncRequest structure represents the CreateClassEnumAsync operation request
func (*CreateClassEnumAsyncRequest) MarshalNDR ¶
func (*CreateClassEnumAsyncRequest) UnmarshalNDR ¶
type CreateClassEnumAsyncResponse ¶
type CreateClassEnumAsyncResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// Return: The CreateClassEnumAsync return value.
Return int32 `idl:"name:Return" json:"return"`
}
CreateClassEnumAsyncResponse structure represents the CreateClassEnumAsync operation response
func (*CreateClassEnumAsyncResponse) MarshalNDR ¶
func (*CreateClassEnumAsyncResponse) UnmarshalNDR ¶
type CreateClassEnumRequest ¶
type CreateClassEnumRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
Superclass *oaut.String `idl:"name:strSuperclass" json:"superclass"`
// lFlags: Flags affect the behavior of the CreateClassEnum method. Flag behavior MUST
// be interpreted as specified in the following table.
//
// The server MUST allow any combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is not set, the server SHOULD return no CIM localizable information. |
// | | If this bit is set, the server SHOULD return CIM localizable information for the |
// | | CIM object, as specified in section 2.2.6. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY 0x00000010 | If this bit is not set, the server MUST make the method call synchronously. If |
// | | this bit is set, the server MUST make the method call semisynchronously. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SHALLOW 0x00000001 | When this bit is not set, the server MUST return all classes that are derived |
// | | from the requested class and all its subclasses. When this bit is set, the |
// | | server MUST return only the classes that are directly derived from the requested |
// | | class. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_FORWARD_ONLY 0x00000020 | When this bit is not set, the server MUST return an enumerator that has reset |
// | | capability. When this bit is set, the server MUST return an enumerator that does |
// | | not have reset capability, as specified in section 3.1.4.4. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface that MUST contain additional
// information that the client wants to pass to the server. If the pCtx parameter is
// NULL, it MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
}
CreateClassEnumRequest structure represents the CreateClassEnum operation request
func (*CreateClassEnumRequest) MarshalNDR ¶
func (*CreateClassEnumRequest) UnmarshalNDR ¶
type CreateClassEnumResponse ¶
type CreateClassEnumResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppEnum: MUST receive the pointer to the enumerator that implements the IEnumWbemClassObject
// interface. This parameter MUST NOT be NULL.
Enum *wmi.EnumClassObject `idl:"name:ppEnum" json:"enum"`
// Return: The CreateClassEnum return value.
Return int32 `idl:"name:Return" json:"return"`
}
CreateClassEnumResponse structure represents the CreateClassEnum operation response
func (*CreateClassEnumResponse) MarshalNDR ¶
func (*CreateClassEnumResponse) UnmarshalNDR ¶
type CreateInstanceEnumAsyncRequest ¶
type CreateInstanceEnumAsyncRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strSuperClass: MUST contain the name of the CIM class for which the client wants
// instances. This parameter MUST NOT be NULL.
Superclass *oaut.String `idl:"name:strSuperClass" json:"superclass"`
// lFlags: Flags that affect the behavior of the IWbemServices::CreateInstanceEnumAsync
// method. Flag behavior MUST be interpreted as specified in the following table.
//
// The server MUST allow any combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is not set, the server SHOULD return no CIM localizable information. |
// | | If this bit is set, the server SHOULD return CIM localizable information for the |
// | | CIM object, as specified in section 2.2.6. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SEND_STATUS 0x00000080 | If this bit is not set the server MUST make one final IWbemObjectSink::SetStatus |
// | | call on the interface pointer that is provided in the pResponseHandler |
// | | parameter. If this bit is set, the server MAY make intermediate |
// | | IWbemObjectSink::SetStatus calls on the interface pointer prior to call |
// | | completion. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_DIRECT_READ 0x00000200 | If this bit is not set, the server MUST consider the entire class hierarchy when |
// | | it returns the result. If this bit is set, the server MUST disregard any derived |
// | | class when it searches the result. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SHALLOW 0x00000001 | If this bit is set, the server MUST return instances of the requested class only |
// | | and MUST exclude instances of classes that are derived from the requested class. |
// | | If this bit is not set, the server MUST return all instances of the requested |
// | | class as well as instances of classes that are derived from the requested class. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If pCtx is NULL, the parameter
// MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// pResponseHandler: MUST be a pointer to the IWbemObjectSink interface that is implemented
// by the caller and where enumeration results are delivered. The parameter MUST NOT
// be NULL.
ResponseHandler *wmi.ObjectSink `idl:"name:pResponseHandler" json:"response_handler"`
}
CreateInstanceEnumAsyncRequest structure represents the CreateInstanceEnumAsync operation request
func (*CreateInstanceEnumAsyncRequest) MarshalNDR ¶
func (*CreateInstanceEnumAsyncRequest) UnmarshalNDR ¶
type CreateInstanceEnumAsyncResponse ¶
type CreateInstanceEnumAsyncResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// Return: The CreateInstanceEnumAsync return value.
Return int32 `idl:"name:Return" json:"return"`
}
CreateInstanceEnumAsyncResponse structure represents the CreateInstanceEnumAsync operation response
func (*CreateInstanceEnumAsyncResponse) MarshalNDR ¶
func (*CreateInstanceEnumAsyncResponse) UnmarshalNDR ¶
type CreateInstanceEnumRequest ¶
type CreateInstanceEnumRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strSuperClass: MUST contain the name of the CIM class for which the client wants
// instances. This parameter MUST NOT be NULL.
Superclass *oaut.String `idl:"name:strSuperClass" json:"superclass"`
// lFlags: Flags that affect the behavior of the CreateInstanceEnum method. Flag behavior
// MUST be interpreted as specified in the following table.
//
// The server MUST allow any combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is not set, the server SHOULD return no CIM localizable information. |
// | | If this bit is set, the server SHOULD return CIM localizable information for the |
// | | CIM object, as specified in section 2.2.6. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY 0x00000010 | If this bit is not set, the server MUST make the method call synchronously. If |
// | | this bit is set, the server MUST make the method call semisynchronously. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_DIRECT_READ 0x00000200 | If this bit is not set, the server MUST consider the entire class hierarchy when |
// | | it returns the result. If this bit is set, the server MUST disregard any derived |
// | | class when it searches the result. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SHALLOW 0x00000001 | If this bit is set, the server MUST return instances of the requested class only |
// | | and MUST exclude instances of classes that are derived from the requested class. |
// | | If this bit is not set, the server MUST return all instances of the requested |
// | | class as well as instances of classes that are derived from the requested class. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_FORWARD_ONLY 0x00000020 | If this bit is not set, the server MUST return an enumerator that has reset |
// | | capability. If this bit is set, the server MUST return an enumerator that does |
// | | not have reset capability, as specified in section 3.1.4.4. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which contains additional information
// that the client wants to pass to the server. If pCtx is NULL, the parameter MUST
// be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
}
CreateInstanceEnumRequest structure represents the CreateInstanceEnum operation request
func (*CreateInstanceEnumRequest) MarshalNDR ¶
func (*CreateInstanceEnumRequest) UnmarshalNDR ¶
type CreateInstanceEnumResponse ¶
type CreateInstanceEnumResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppEnum: MUST receive the pointer to the enumerator that is used to enumerate through
// the returned class instances, which implements the IEnumWbemClassObject interface.
// This parameter MUST NOT be NULL.
Enum *wmi.EnumClassObject `idl:"name:ppEnum" json:"enum"`
// Return: The CreateInstanceEnum return value.
Return int32 `idl:"name:Return" json:"return"`
}
CreateInstanceEnumResponse structure represents the CreateInstanceEnum operation response
func (*CreateInstanceEnumResponse) MarshalNDR ¶
func (*CreateInstanceEnumResponse) UnmarshalNDR ¶
type DeleteClassAsyncRequest ¶
type DeleteClassAsyncRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strClass: MUST be the name of the class to delete. This parameter MUST NOT be NULL.
Class *oaut.String `idl:"name:strClass" json:"class"`
// lFlags: Specifies the behavior of the DeleteClassAsync method. Flag behavior MUST
// be interpreted as specified in the following table.
//
// +----------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +----------------------------------+----------------------------------------------------------------------------------+
// +----------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SEND_STATUS 0x00000080 | If this bit is not set, the server MUST make one final |
// | | IWbemObjectSink::SetStatus call on the interface pointer that is provided in the |
// | | pResponseHandler parameter. If this bit is set, the server MAY make intermediate |
// | | IWbemObjectSink::SetStatus calls on the interface pointer prior to call |
// | | completion. |
// +----------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If pCtx is NULL, the parameter
// MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// pResponseHandler: MUST be a pointer to an IWbemObjectSink interface object that is
// implemented by the client of this method. This parameter MUST NOT be NULL.
ResponseHandler *wmi.ObjectSink `idl:"name:pResponseHandler" json:"response_handler"`
}
DeleteClassAsyncRequest structure represents the DeleteClassAsync operation request
func (*DeleteClassAsyncRequest) MarshalNDR ¶
func (*DeleteClassAsyncRequest) UnmarshalNDR ¶
type DeleteClassAsyncResponse ¶
type DeleteClassAsyncResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// Return: The DeleteClassAsync return value.
Return int32 `idl:"name:Return" json:"return"`
}
DeleteClassAsyncResponse structure represents the DeleteClassAsync operation response
func (*DeleteClassAsyncResponse) MarshalNDR ¶
func (*DeleteClassAsyncResponse) UnmarshalNDR ¶
type DeleteClassRequest ¶
type DeleteClassRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strClass: MUST be the name of the class to delete. This parameter MUST NOT be NULL.
Class *oaut.String `idl:"name:strClass" json:"class"`
// lFlags: Specifies the behavior of the DeleteClass method. Flag behavior MUST be interpreted
// as specified in the following table.
//
// +-----------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +-----------------------------------------+----------------------------------------------------------------------------------+
// +-----------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY 0x00000010 | If this bit is set, the server MUST make the method call semisynchronously. If |
// | | this bit is not set, the server MUST make the method call synchronously. |
// +-----------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If pCtx is NULL, the parameter
// MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// ppCallResult: The output parameter MUST be filled according to the state of the lFlags
// parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following
// table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | FLAG | OPERATION STARTED | OPERATION FAILED TO |
// | STATE | SUCCESSFULLY | START |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to IWbemCallResult if the ppCallResult input parameter is non-NULL. | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | The ppCallResult parameter MUST NOT be NULL upon input. If NULL, the server | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// | | MUST return WBEM_E_INVALID_PARAMETER. On output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
}
DeleteClassRequest structure represents the DeleteClass operation request
func (*DeleteClassRequest) MarshalNDR ¶
func (*DeleteClassRequest) UnmarshalNDR ¶
type DeleteClassResponse ¶
type DeleteClassResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppCallResult: The output parameter MUST be filled according to the state of the lFlags
// parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following
// table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | FLAG | OPERATION STARTED | OPERATION FAILED TO |
// | STATE | SUCCESSFULLY | START |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to IWbemCallResult if the ppCallResult input parameter is non-NULL. | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | The ppCallResult parameter MUST NOT be NULL upon input. If NULL, the server | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// | | MUST return WBEM_E_INVALID_PARAMETER. On output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
// Return: The DeleteClass return value.
Return int32 `idl:"name:Return" json:"return"`
}
DeleteClassResponse structure represents the DeleteClass operation response
func (*DeleteClassResponse) MarshalNDR ¶
func (*DeleteClassResponse) UnmarshalNDR ¶
type DeleteInstanceAsyncRequest ¶
type DeleteInstanceAsyncRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strObjectPath: MUST be the CIM path to the class instance that the client wants to
// delete. This parameter MUST NOT be NULL. The CIM path MUST contain the class name
// and the value of the key properties.
ObjectPath *oaut.String `idl:"name:strObjectPath" json:"object_path"`
// lFlags: Flags that affect the behavior of the IWbemServices::DeleteInstanceAsync
// method. Flag behavior MUST be interpreted as specified in the following table.
//
// +----------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +----------------------------------+----------------------------------------------------------------------------------+
// +----------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SEND_STATUS 0x00000080 | If this bit is not set, the server MUST make one final |
// | | IWbemObjectSink::SetStatus call on the interface pointer that is provided in the |
// | | pResponseHandler parameter. If this bit is set, the server MAY make intermediate |
// | | IWbemObjectSink::SetStatus calls on the interface pointer prior to call |
// | | completion. |
// +----------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which contains additional information
// that the client wants to pass to the server. If pCtx is NULL, the parameter MUST
// be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// pResponseHandler: MUST be a pointer to an IWbemObjectSink interface object that is
// implemented by the client of this method. This parameter MUST NOT be NULL.
ResponseHandler *wmi.ObjectSink `idl:"name:pResponseHandler" json:"response_handler"`
}
DeleteInstanceAsyncRequest structure represents the DeleteInstanceAsync operation request
func (*DeleteInstanceAsyncRequest) MarshalNDR ¶
func (*DeleteInstanceAsyncRequest) UnmarshalNDR ¶
type DeleteInstanceAsyncResponse ¶
type DeleteInstanceAsyncResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// Return: The DeleteInstanceAsync return value.
Return int32 `idl:"name:Return" json:"return"`
}
DeleteInstanceAsyncResponse structure represents the DeleteInstanceAsync operation response
func (*DeleteInstanceAsyncResponse) MarshalNDR ¶
func (*DeleteInstanceAsyncResponse) UnmarshalNDR ¶
type DeleteInstanceRequest ¶
type DeleteInstanceRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strObjectPath: MUST be the CIM path to the class instance that the client wants to
// delete. This parameter MUST NOT be NULL. The CIM path MUST contain the class name
// and the value of the key properties.
ObjectPath *oaut.String `idl:"name:strObjectPath" json:"object_path"`
// lFlags: Flags that affect the behavior of the IWbemServices::DeleteInstance method.
// Flag behavior MUST be interpreted as specified in the following table.
//
// +-----------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +-----------------------------------------+----------------------------------------------------------------------------------+
// +-----------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY 0x00000010 | If this bit is not set, the server MUST make the method call synchronously. If |
// | | this bit is set, the server MUST make the method call semisynchronously. |
// +-----------------------------------------+----------------------------------------------------------------------------------+
//
// Any other DWORD value that does not match the preceding condition MUST be treated
// as invalid.
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If pCtx is NULL, the parameter
// MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// ppCallResult: If the input parameter is non-NULL, the server MUST return WBEM_S_NO_ERROR
// and IWbemCallResult MUST deliver the result of the requested operation (regardless
// whether WBEM_FLAG_RETURN_IMMEDIATELY is set). The output parameter MUST be filled
// according to the state of the lFlags parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY
// is set) as listed in the following table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | FLAG | OPERATION STARTED | OPERATION FAILED TO |
// | STATE | SUCCESSFULLY | START |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to IWbemCallResult if the input parameter is non-NULL. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | This parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. On output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
}
DeleteInstanceRequest structure represents the DeleteInstance operation request
func (*DeleteInstanceRequest) MarshalNDR ¶
func (*DeleteInstanceRequest) UnmarshalNDR ¶
type DeleteInstanceResponse ¶
type DeleteInstanceResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppCallResult: If the input parameter is non-NULL, the server MUST return WBEM_S_NO_ERROR
// and IWbemCallResult MUST deliver the result of the requested operation (regardless
// whether WBEM_FLAG_RETURN_IMMEDIATELY is set). The output parameter MUST be filled
// according to the state of the lFlags parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY
// is set) as listed in the following table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | FLAG | OPERATION STARTED | OPERATION FAILED TO |
// | STATE | SUCCESSFULLY | START |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to IWbemCallResult if the input parameter is non-NULL. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | This parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. On output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
// Return: The DeleteInstance return value.
Return int32 `idl:"name:Return" json:"return"`
}
DeleteInstanceResponse structure represents the DeleteInstance operation response
func (*DeleteInstanceResponse) MarshalNDR ¶
func (*DeleteInstanceResponse) UnmarshalNDR ¶
type ExecMethodAsyncRequest ¶
type ExecMethodAsyncRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strObjectPath: MUST be the CIM path to the class or instance that implements the
// method. This parameter MUST NOT be NULL. The CIM path MUST contain the class name
// and the value of the key properties.
ObjectPath *oaut.String `idl:"name:strObjectPath" json:"object_path"`
// strMethodName: MUST be the name of the method to be executed. This parameter MUST
// NOT be NULL.
MethodName *oaut.String `idl:"name:strMethodName" json:"method_name"`
// lFlags: Specifies the behavior of the ExecMethodAsync method. Flag behavior MUST
// be interpreted as specified in the following table.
//
// +----------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +----------------------------------+----------------------------------------------------------------------------------+
// +----------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SEND_STATUS 0x00000080 | If this bit is not set, the server MUST make just one final |
// | | IWbemObjectSink::SetStatus call on the interface pointer that is provided in the |
// | | pResponseHandler parameter. If this bit is set, the server MAY make intermediate |
// | | IWbemObjectSink::SetStatus calls on the interface pointer prior to call |
// | | completion. |
// +----------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If pCtx is NULL, the parameter
// MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// pInParams: MUST be a pointer to an IWbemClassObject interface pointer, which MUST
// contain an instance of input parameter CIM class as defined in [MS-WMIO] (section
// 2.3.3), with method parameter values set as properties. This parameter MUST be NULL
// when the method has no input parameters.
InParams *wmi.ClassObject `idl:"name:pInParams" json:"in_params"`
// pResponseHandler: MUST be a pointer to an IWbemObjectSink interface object that is
// implemented by the client of this method. This parameter MUST NOT be NULL.
ResponseHandler *wmi.ObjectSink `idl:"name:pResponseHandler" json:"response_handler"`
}
ExecMethodAsyncRequest structure represents the ExecMethodAsync operation request
func (*ExecMethodAsyncRequest) MarshalNDR ¶
func (*ExecMethodAsyncRequest) UnmarshalNDR ¶
type ExecMethodAsyncResponse ¶
type ExecMethodAsyncResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// Return: The ExecMethodAsync return value.
Return int32 `idl:"name:Return" json:"return"`
}
ExecMethodAsyncResponse structure represents the ExecMethodAsync operation response
func (*ExecMethodAsyncResponse) MarshalNDR ¶
func (*ExecMethodAsyncResponse) UnmarshalNDR ¶
type ExecMethodRequest ¶
type ExecMethodRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strObjectPath: MUST be the CIM path to the class or instance that implements the
// method. This parameter MUST NOT be NULL. The CIM path MUST contain the class name
// and the value of the key properties.
ObjectPath *oaut.String `idl:"name:strObjectPath" json:"object_path"`
// strMethodName: MUST be the name of the method to be executed. This parameter MUST
// NOT be NULL.
MethodName *oaut.String `idl:"name:strMethodName" json:"method_name"`
// lFlags: Specifies the behavior of the IWbemServices::ExecMethod method. Flag behavior
// MUST be interpreted as specified in the following table.
//
// +-----------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +-----------------------------------------+----------------------------------------------------------------------------------+
// +-----------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY 0x00000010 | If this bit is not set, the server MUST make the method call synchronously. If |
// | | this bit is set, the server MUST make the method call semisynchronously. |
// +-----------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If pCtx is NULL, the parameter
// MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// pInParams: MUST be a pointer to an IWbemClassObject interface pointer, which MUST
// contain an instance of input parameter CIM class as defined in [MS-WMIO] (section
// 2.3.3), with method parameter values set as properties. This parameter MUST be NULL
// when the method has no input parameters.
InParams *wmi.ClassObject `idl:"name:pInParams" json:"in_params"`
// ppOutParams: The output parameter MUST be filled according to the state of the lFlags
// parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following
// table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | FLAG | SUCCESS | FAILURE |
// | STATE | OPERATION | OPERATION |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | This parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. Upon output, the parameter MUST contain an | |
// | | IWbemClassObject interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | MUST return NULL. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
OutParams *wmi.ClassObject `idl:"name:ppOutParams;pointer:unique" json:"out_params"`
// ppCallResult: In this situation, the output parameter MUST be filled according to
// the state of the lFlags parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as
// listed in the following table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | | SUCCESS | FAILURE |
// | CONDITION | OPERATION | OPERATION |
// | | | |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to IWbemCallResult if the ppCallResult input parameter is non-NULL. | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | The ppCallResult parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. Upon output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
}
ExecMethodRequest structure represents the ExecMethod operation request
func (*ExecMethodRequest) MarshalNDR ¶
func (*ExecMethodRequest) UnmarshalNDR ¶
type ExecMethodResponse ¶
type ExecMethodResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppOutParams: The output parameter MUST be filled according to the state of the lFlags
// parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following
// table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | FLAG | SUCCESS | FAILURE |
// | STATE | OPERATION | OPERATION |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | This parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. Upon output, the parameter MUST contain an | |
// | | IWbemClassObject interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | MUST return NULL. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
OutParams *wmi.ClassObject `idl:"name:ppOutParams;pointer:unique" json:"out_params"`
// ppCallResult: In this situation, the output parameter MUST be filled according to
// the state of the lFlags parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as
// listed in the following table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | | SUCCESS | FAILURE |
// | CONDITION | OPERATION | OPERATION |
// | | | |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to IWbemCallResult if the ppCallResult input parameter is non-NULL. | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | The ppCallResult parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. Upon output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
// Return: The ExecMethod return value.
Return int32 `idl:"name:Return" json:"return"`
}
ExecMethodResponse structure represents the ExecMethod operation response
func (*ExecMethodResponse) MarshalNDR ¶
func (*ExecMethodResponse) UnmarshalNDR ¶
type ExecNotificationQueryAsyncRequest ¶
type ExecNotificationQueryAsyncRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strQueryLanguage: MUST be set to "WQL".
QueryLanguage *oaut.String `idl:"name:strQueryLanguage" json:"query_language"`
// strQuery: MUST contain the WQL event-related query text as specified in section 2.2.1.
// This parameter MUST NOT be NULL.
Query *oaut.String `idl:"name:strQuery" json:"query"`
// lFlags: Specifies the behavior of the IWbemServices::ExecNotificationQueryAsync method.
// Flag behavior MUST be interpreted as specified in the following table.
//
// The server MUST allow any combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is not set, the server SHOULD return no CIM localizable information. |
// | | If this bit is set, the server SHOULD return CIM localizable information. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SEND_STATUS 0x00000080 | This flag is ignored. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If pCtx is NULL, this parameter
// MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// pResponseHandler: MUST be a pointer to the IWbemObjectSink interface that is implemented
// by the caller, where enumeration results are delivered. This parameter MUST NOT be
// NULL.
ResponseHandler *wmi.ObjectSink `idl:"name:pResponseHandler" json:"response_handler"`
}
ExecNotificationQueryAsyncRequest structure represents the ExecNotificationQueryAsync operation request
func (*ExecNotificationQueryAsyncRequest) MarshalNDR ¶
func (*ExecNotificationQueryAsyncRequest) UnmarshalNDR ¶
type ExecNotificationQueryAsyncResponse ¶
type ExecNotificationQueryAsyncResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// Return: The ExecNotificationQueryAsync return value.
Return int32 `idl:"name:Return" json:"return"`
}
ExecNotificationQueryAsyncResponse structure represents the ExecNotificationQueryAsync operation response
func (*ExecNotificationQueryAsyncResponse) MarshalNDR ¶
func (*ExecNotificationQueryAsyncResponse) UnmarshalNDR ¶
type ExecNotificationQueryRequest ¶
type ExecNotificationQueryRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strQueryLanguage: MUST be set to "WQL".
QueryLanguage *oaut.String `idl:"name:strQueryLanguage" json:"query_language"`
// strQuery: MUST contain the WQL event-related query text as specified in section 2.2.1.
// This parameter MUST NOT be NULL.
Query *oaut.String `idl:"name:strQuery" json:"query"`
// lFlags: Specifies the behavior of the IWbemServices::ExecNotificationQuery method.
// Flag behavior MUST be interpreted as specified in the following table.
//
// The server MUST allow any combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is not set, the server SHOULD return no CIM localizable information. |
// | | If this bit is set, the server SHOULD return CIM localizable information for the |
// | | CIM object, as specified in section 2.2.6. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY 0x00000010 | If this bit is set, the server MUST make the method call semisynchronously. This |
// | | flag MUST always be set. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_FORWARD_ONLY 0x00000020 | If this bit is set, the server MUST return an enumerator that does not have |
// | | reset capability, as specified in section 3.1.4.4. This flag MUST always be set. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If pCtx is NULL, the parameter
// MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
}
ExecNotificationQueryRequest structure represents the ExecNotificationQuery operation request
func (*ExecNotificationQueryRequest) MarshalNDR ¶
func (*ExecNotificationQueryRequest) UnmarshalNDR ¶
type ExecNotificationQueryResponse ¶
type ExecNotificationQueryResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppEnum: MUST receive the pointer to the IEnumWbemClassObject that is used to enumerate
// through the CIM objects that are returned for the query result set. This parameter
// MUST NOT be NULL.
Enum *wmi.EnumClassObject `idl:"name:ppEnum" json:"enum"`
// Return: The ExecNotificationQuery return value.
Return int32 `idl:"name:Return" json:"return"`
}
ExecNotificationQueryResponse structure represents the ExecNotificationQuery operation response
func (*ExecNotificationQueryResponse) MarshalNDR ¶
func (*ExecNotificationQueryResponse) UnmarshalNDR ¶
type ExecQueryAsyncRequest ¶
type ExecQueryAsyncRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strQueryLanguage: MUST be set to "WQL".
QueryLanguage *oaut.String `idl:"name:strQueryLanguage" json:"query_language"`
// strQuery: MUST contain the WQL query text as specified in section 2.2.1. This parameter
// MUST NOT be NULL.
Query *oaut.String `idl:"name:strQuery" json:"query"`
// lFlags: Specifies the behavior of the IWbemServices::ExecQueryAsync method. Flag
// behavior MUST be interpreted as specified in the following table.
//
// The server MUST allow any combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is not set, the server SHOULD not return CIM localizable |
// | | information. If this bit is set, the server SHOULD return CIM localizable |
// | | information for the CIM object, as specified in section 2.2.6. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SEND_STATUS 0x00000080 | If this bit is not set the server MUST make one final IWbemObjectSink::SetStatus |
// | | call on the interface pointer that is provided in the pResponseHandler |
// | | parameter. If this bit is set, the server MAY make intermediate |
// | | IWbemObjectSink::SetStatus calls on the interface pointer prior to call |
// | | completion. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_PROTOTYPE 0x00000002 | If this bit is not set, the server MUST run the query. If this bit is set, the |
// | | server MUST only return the class schema of the resulting objects. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_DIRECT_READ 0x00000200 | If this bit is not set, the server MUST consider the entire class hierarchy when |
// | | it returns the result. If this bit is set, the server MUST disregard any derived |
// | | class when it searches the result. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If pCtx is NULL, the parameter
// MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// pResponseHandler: MUST be a pointer to the IWbemObjectSink interface that is implemented
// by the caller, where enumeration results are delivered. The parameter MUST NOT be
// NULL.
ResponseHandler *wmi.ObjectSink `idl:"name:pResponseHandler" json:"response_handler"`
}
ExecQueryAsyncRequest structure represents the ExecQueryAsync operation request
func (*ExecQueryAsyncRequest) MarshalNDR ¶
func (*ExecQueryAsyncRequest) UnmarshalNDR ¶
type ExecQueryAsyncResponse ¶
type ExecQueryAsyncResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// Return: The ExecQueryAsync return value.
Return int32 `idl:"name:Return" json:"return"`
}
ExecQueryAsyncResponse structure represents the ExecQueryAsync operation response
func (*ExecQueryAsyncResponse) MarshalNDR ¶
func (*ExecQueryAsyncResponse) UnmarshalNDR ¶
type ExecQueryRequest ¶
type ExecQueryRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strQueryLanguage: MUST be set to "WQL".
QueryLanguage *oaut.String `idl:"name:strQueryLanguage" json:"query_language"`
// strQuery: MUST contain the "WQL" query text as specified in [UNICODE] (UTF-16) and
// in section 2.2.1. This parameter MUST NOT be NULL.
Query *oaut.String `idl:"name:strQuery" json:"query"`
// lFlags: Specifies the behavior of the IWbemServices::ExecQuery method. Flag behavior
// MUST be interpreted as specified in the following table.
//
// The server MUST allow any combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is not set, the server SHOULD not return CIM localizable |
// | | information. If this bit is set, the server SHOULD return CIM localizable |
// | | information for the CIM object, as specified in section 2.2.6. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY 0x00000010 | If this bit is not set, the server MUST make the method call synchronously. If |
// | | this bit is set, the server MUST make the method call semisynchronously. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_DIRECT_READ 0x00000200 | If this bit is not set, the server MUST consider the entire class hierarchy when |
// | | it returns the result. If this bit is set, the server MUST disregard any derived |
// | | class when it searches the result. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_PROTOTYPE 0x00000002 | If this bit is not set, the server MUST run the query. If this bit is set, the |
// | | server MUST only return the class schema of the resulting objects. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_FORWARD_ONLY 0x00000020 | If this bit is not set, the server MUST return an enumerator that has reset |
// | | capability. If this bit is set, the server MUST return an enumerator without |
// | | reset capability, as specified in section 3.1.4.4. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If pCtx is NULL, the parameter
// MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
}
ExecQueryRequest structure represents the ExecQuery operation request
func (*ExecQueryRequest) MarshalNDR ¶
func (*ExecQueryRequest) UnmarshalNDR ¶
type ExecQueryResponse ¶
type ExecQueryResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppEnum: MUST receive the pointer to the IEnumWbemClassObject that is used to enumerate
// through the CIM objects that are returned for the query result set. This parameter
// MUST NOT be NULL.
Enum *wmi.EnumClassObject `idl:"name:ppEnum" json:"enum"`
// Return: The ExecQuery return value.
Return int32 `idl:"name:Return" json:"return"`
}
ExecQueryResponse structure represents the ExecQuery operation response
func (*ExecQueryResponse) MarshalNDR ¶
func (*ExecQueryResponse) UnmarshalNDR ¶
type GetObjectAsyncRequest ¶
type GetObjectAsyncRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strObjectPath: MUST be the CIM path of the CIM object to be retrieved. If this parameter
// is set to NULL, the server MUST return an empty CIM object.
ObjectPath *oaut.String `idl:"name:strObjectPath" json:"object_path"`
// lFlags: Specifies the behavior of the GetObjectAsync method. Flag behavior MUST be
// interpreted as specified in the following table.
//
// The server MUST accept a combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is not set, the server SHOULD return no CIM localizable information. |
// | | If this bit is set, the server SHOULD return CIM localizable information for the |
// | | CIM object, as specified in section 2.2.6. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SEND_STATUS 0x00000080 | If this bit is not set, the server MUST make one final |
// | | IWbemObjectSink::SetStatus call on the interface pointer that is provided in the |
// | | pResponseHandler parameter. If this bit is set, the server MAY make intermediate |
// | | IWbemObjectSink::SetStatus calls on the interface pointer prior to call |
// | | completion. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_DIRECT_READ 0x00000200 | If this bit is not set, the implementer MUST consider the entire class hierarchy |
// | | when it returns the result. If this bit is set, the server MUST disregard any |
// | | derived class when it searches the result. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to provide to the server about the CIM object referred
// to by strObjectPath. If pCtx is NULL, the parameter MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// pResponseHandler: MUST be a pointer to the IWbemObjectSink interface that is implemented
// by the caller, where enumeration results are delivered. The parameter MUST NOT be
// NULL. If the parameter is NULL, the server MUST return WBEM_E_INVALID_PARAMETER.
ResponseHandler *wmi.ObjectSink `idl:"name:pResponseHandler" json:"response_handler"`
}
GetObjectAsyncRequest structure represents the GetObjectAsync operation request
func (*GetObjectAsyncRequest) MarshalNDR ¶
func (*GetObjectAsyncRequest) UnmarshalNDR ¶
type GetObjectAsyncResponse ¶
type GetObjectAsyncResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// Return: The GetObjectAsync return value.
Return int32 `idl:"name:Return" json:"return"`
}
GetObjectAsyncResponse structure represents the GetObjectAsync operation response
func (*GetObjectAsyncResponse) MarshalNDR ¶
func (*GetObjectAsyncResponse) UnmarshalNDR ¶
type GetObjectRequest ¶
type GetObjectRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strObjectPath: MUST be the CIM path of the CIM object to be retrieved. If the parameter
// is NULL, the server MUST return an empty CIM Object.
ObjectPath *oaut.String `idl:"name:strObjectPath" json:"object_path"`
// lFlags: Specifies the behavior of the IWbemServices::GetObject method. Flag behavior
// MUST be interpreted as specified in the following table.
//
// The server MUST allow any combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is not set, the server SHOULD return no CIM localizable information. |
// | | If this bit is set, the server SHOULD return CIM localizable information for the |
// | | CIM object, as specified in section 2.2.6. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY 0x00000010 | If this bit is not set, the server MUST make the method call synchronously. If |
// | | this bit is set, the server MUST make the method call semisynchronously. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_DIRECT_READ 0x00000200 | If this bit is set, the server MUST disregard any derived class when it searches |
// | | the result. If this bit is not set, the server MUST consider the entire class |
// | | hierarchy when it returns the result. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass for processing to the implementer of the
// CIM object that is referred to by strObjectPath. If the parameter is set to NULL,
// the server MUST ignore it.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// ppObject: If the parameter is set to NULL, the server MUST ignore it. In this case,
// the output parameter MUST be filled according to the state of the lFlags parameter
// (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following table.
//
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | FLAG | SUCCESS | FAILURE |
// | STATE | OPERATION | OPERATION |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST contain an IWbemClassObject interface pointer. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | MUST be set to NULL if the input parameter is non-NULL. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
Object *wmi.ClassObject `idl:"name:ppObject;pointer:unique" json:"object"`
// ppCallResult: The output parameter MUST be filled according to the state of the lFlags
// parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following
// table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | FLAG | SUCCESS | FAILURE |
// | STATE | OPERATION | OPERATION |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to NULL if the ppCallResult input parameter is non-NULL. | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | The ppCallResult parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. Upon output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
}
GetObjectRequest structure represents the GetObject operation request
func (*GetObjectRequest) MarshalNDR ¶
func (*GetObjectRequest) UnmarshalNDR ¶
type GetObjectResponse ¶
type GetObjectResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppObject: If the parameter is set to NULL, the server MUST ignore it. In this case,
// the output parameter MUST be filled according to the state of the lFlags parameter
// (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following table.
//
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | FLAG | SUCCESS | FAILURE |
// | STATE | OPERATION | OPERATION |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST contain an IWbemClassObject interface pointer. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | MUST be set to NULL if the input parameter is non-NULL. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
Object *wmi.ClassObject `idl:"name:ppObject;pointer:unique" json:"object"`
// ppCallResult: The output parameter MUST be filled according to the state of the lFlags
// parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following
// table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | FLAG | SUCCESS | FAILURE |
// | STATE | OPERATION | OPERATION |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to NULL if the ppCallResult input parameter is non-NULL. | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | The ppCallResult parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the ppCallResult input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. Upon output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+----------------------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
// Return: The GetObject return value.
Return int32 `idl:"name:Return" json:"return"`
}
GetObjectResponse structure represents the GetObject operation response
func (*GetObjectResponse) MarshalNDR ¶
func (*GetObjectResponse) UnmarshalNDR ¶
type OpenNamespaceRequest ¶
type OpenNamespaceRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// strNamespace: MUST be the CIM path to the target namespace. This parameter MUST NOT
// be NULL.
Namespace *oaut.String `idl:"name:strNamespace" json:"namespace"`
// lFlags: Flags that affect the behavior of the OpenNamespace method. The behavior
// of each flag MUST be interpreted as follows:
//
// * If this bit is not set, the server MUST make the method call synchronous.
//
// * If this bit is set, the server MUST make the method call semisynchronously.
//
// # Name
//
// # Value
//
// WBEM_FLAG_RETURN_IMMEDIATELY
//
// 0x00000010
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: This parameter MUST be NULL.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// ppWorkingNamespace: This parameter MUST NOT be NULL on input when WBEM_FLAG_RETURN_IMMEDIATELY
// is not set. If the method returns WBEM_S_NO_ERROR, ppWorkingNamespace MUST receive
// a pointer to an IWbemServices interface pointer to the requested namespace.
//
// The output parameter MUST be based on the state of the lFlags parameter (whether
// WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following table.
//
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | FLAG | SUCCESS | FAILURE |
// | STATE | OPERATION | OPERATION |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to the requested IWbemServices interface. | MUST be set to NULL if the input parameter is not-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | MUST be set to NULL if the input parameter is not-NULL. | MUST be set to NULL if the input parameter is not-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
WorkingNamespace *wmi.Services `idl:"name:ppWorkingNamespace;pointer:unique" json:"working_namespace"`
// ppResult: The output parameter MUST be filled according to the state of the lFlags
// parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following
// table.
//
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | FLAG | SUCCESS | FAILURE |
// | STATE | OPERATION | OPERATION |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to NULL if the input parameter is not-NULL. | MUST be set to NULL if the input parameter is not-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | MUST be set to the requested IWbemCallResult interface. | MUST be set to NULL if the input parameter is not-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
Result *wmi.CallResult `idl:"name:ppResult;pointer:unique" json:"result"`
}
OpenNamespaceRequest structure represents the OpenNamespace operation request
func (*OpenNamespaceRequest) MarshalNDR ¶
func (*OpenNamespaceRequest) UnmarshalNDR ¶
type OpenNamespaceResponse ¶
type OpenNamespaceResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppWorkingNamespace: This parameter MUST NOT be NULL on input when WBEM_FLAG_RETURN_IMMEDIATELY
// is not set. If the method returns WBEM_S_NO_ERROR, ppWorkingNamespace MUST receive
// a pointer to an IWbemServices interface pointer to the requested namespace.
//
// The output parameter MUST be based on the state of the lFlags parameter (whether
// WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following table.
//
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | FLAG | SUCCESS | FAILURE |
// | STATE | OPERATION | OPERATION |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to the requested IWbemServices interface. | MUST be set to NULL if the input parameter is not-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | MUST be set to NULL if the input parameter is not-NULL. | MUST be set to NULL if the input parameter is not-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
WorkingNamespace *wmi.Services `idl:"name:ppWorkingNamespace;pointer:unique" json:"working_namespace"`
// ppResult: The output parameter MUST be filled according to the state of the lFlags
// parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY is set) as listed in the following
// table.
//
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | FLAG | SUCCESS | FAILURE |
// | STATE | OPERATION | OPERATION |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to NULL if the input parameter is not-NULL. | MUST be set to NULL if the input parameter is not-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | MUST be set to the requested IWbemCallResult interface. | MUST be set to NULL if the input parameter is not-NULL. |
// +------------------------------------------+---------------------------------------------------------+---------------------------------------------------------+
Result *wmi.CallResult `idl:"name:ppResult;pointer:unique" json:"result"`
// Return: The OpenNamespace return value.
Return int32 `idl:"name:Return" json:"return"`
}
OpenNamespaceResponse structure represents the OpenNamespace operation response
func (*OpenNamespaceResponse) MarshalNDR ¶
func (*OpenNamespaceResponse) UnmarshalNDR ¶
type PutClassAsyncRequest ¶
type PutClassAsyncRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// pObject: MUST be a pointer to an IWbemClassObject interface pointer that MUST contain
// the class information to create a new class or update an existing class. The class
// that is specified by the parameter MUST have been correctly initialized with all
// the required property values. This parameter MUST NOT be NULL.
Object *wmi.ClassObject `idl:"name:pObject" json:"object"`
// lFlags: Specifies the behavior of the PutClassAsync method. Flag behavior MUST be
// interpreted as specified in the following table.
//
// The server MUST accept a combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is set, the server SHOULD ignore all the amended qualifiers while |
// | | it creates or updates a CIM class.<36> If this bit is not set, the server SHOULD |
// | | include all the qualifiers, including amended qualifiers, while it updates or |
// | | creates a CIM class. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_UPDATE_ONLY 0x00000001 | The server MUST update a CIM class pObject if the CIM class is present. This |
// | | flag is mutually exclusive with WBEM_FLAG_CREATE_ONLY. If none of these flags |
// | | are set, the server MUST create or update a CIM class pObject. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_CREATE_ONLY 0x00000002 | The server MUST create a CIM class pObject if the CIM class is not already |
// | | present. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_UPDATE_FORCE_MODE 0x00000040 | The server MUST forcefully update the class even when conflicting child classes |
// | | exist. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_UPDATE_SAFE_MODE 0x00000020 | The server MUST update the class as long as the change does not cause any |
// | | conflicts with existing child classes or instances. This flag is mutually |
// | | exclusive with WBEM_FLAG_UPDATE_FORCE_MODE. If none of these flags are set, |
// | | the server MUST update the class if there is no derived class, if there is no |
// | | instance for that class, or if the class is unchanged. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SEND_STATUS 0x00000080 | If this bit is not set, the server MUST make one final |
// | | IWbemObjectSink::SetStatus method call on the interface pointer that is provided |
// | | in the pResponseHandler parameter. If this bit is set, the server MAY make |
// | | intermediate IWbemObjectSink::SetStatus calls on the interface pointer prior to |
// | | call completion. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to pass to the server. If the pCtx parameter is
// NULL, the parameter MUST be ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// pResponseHandler: MUST be a pointer to an IWbemObjectSink interface object that is
// implemented by the client of this method. The parameter MUST NOT be NULL.
ResponseHandler *wmi.ObjectSink `idl:"name:pResponseHandler" json:"response_handler"`
}
PutClassAsyncRequest structure represents the PutClassAsync operation request
func (*PutClassAsyncRequest) MarshalNDR ¶
func (*PutClassAsyncRequest) UnmarshalNDR ¶
type PutClassAsyncResponse ¶
type PutClassAsyncResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// Return: The PutClassAsync return value.
Return int32 `idl:"name:Return" json:"return"`
}
PutClassAsyncResponse structure represents the PutClassAsync operation response
func (*PutClassAsyncResponse) MarshalNDR ¶
func (*PutClassAsyncResponse) UnmarshalNDR ¶
type PutClassRequest ¶
type PutClassRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// pObject: MUST be a pointer to an IWbemClassObject interface pointer that MUST contain
// the class information to create a new class or update an existing class. This parameter
// MUST NOT be NULL.
Object *wmi.ClassObject `idl:"name:pObject" json:"object"`
// lFlags: Specifies the behavior of the PutClass method. Flag behavior MUST be interpreted
// as specified in the following table.
//
// The server MUST accept a combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is set, the server SHOULD ignore all the amended qualifiers while it |
// | | creates or updates the CIM class.<34> If this bit is not set, the server SHOULD |
// | | include all the qualifiers, including amended qualifiers, while it updates or |
// | | creates the CIM class. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY 0x00000010 | If this bit is not set, the server MUST make the method call synchronously. If |
// | | this bit is set, the server MUST make the method call semisynchronously. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_UPDATE_ONLY 0x00000001 | The server MUST update a CIM class pObject if the CIM class is present. This |
// | | flag is mutually exclusive with WBEM_FLAG_CREATE_ONLY. If none of these flags |
// | | are set, the server MUST create or update a CIM class pObject. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_CREATE_ONLY 0x00000002 | The server MUST create a CIM class pObject if the CIM class is not already |
// | | present. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_UPDATE_FORCE_MODE 0x00000040 | The server MUST update the class even if conflicting child classes exist. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_UPDATE_SAFE_MODE 0x00000020 | The server MUST update the class as long as the change does not cause any |
// | | conflicts with existing child classes or instances. This flag is mutually |
// | | exclusive with WBEM_FLAG_UPDATE_FORCE_MODE. If none of these flags are set, |
// | | the server MUST update the class if there is no derived class, if there is no |
// | | instance for that class, or if the class is unchanged. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: MUST be a pointer to an IWbemContext interface, which MUST contain additional
// information that the client wants to provide to the server about the CIM class that
// is referred to by the pObject parameter. If the pCtx parameter is NULL, it MUST be
// ignored.
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// ppCallResult: If the input parameter is non-NULL, the server MUST return WBEM_S_NO_ERROR
// and IWbemCallResult MUST deliver the result of the requested operation (regardless
// whether WBEM_FLAG_RETURN_IMMEDIATELY is set). The output parameter MUST be filled
// according to the state of the lFlags parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY
// is set) as listed in the following table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | FLAG | OPERATION STARTED | OPERATION FAILED TO |
// | STATE | SUCCESSFULLY | START |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to IWbemCallResult if the input parameter is non-NULL. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | This parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. On output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
}
PutClassRequest structure represents the PutClass operation request
func (*PutClassRequest) MarshalNDR ¶
func (*PutClassRequest) UnmarshalNDR ¶
type PutClassResponse ¶
type PutClassResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppCallResult: If the input parameter is non-NULL, the server MUST return WBEM_S_NO_ERROR
// and IWbemCallResult MUST deliver the result of the requested operation (regardless
// whether WBEM_FLAG_RETURN_IMMEDIATELY is set). The output parameter MUST be filled
// according to the state of the lFlags parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY
// is set) as listed in the following table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | FLAG | OPERATION STARTED | OPERATION FAILED TO |
// | STATE | SUCCESSFULLY | START |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to IWbemCallResult if the input parameter is non-NULL. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | This parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. On output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
// Return: The PutClass return value.
Return int32 `idl:"name:Return" json:"return"`
}
PutClassResponse structure represents the PutClass operation response
func (*PutClassResponse) MarshalNDR ¶
func (*PutClassResponse) UnmarshalNDR ¶
type PutInstanceAsyncRequest ¶
type PutInstanceAsyncRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// pInst: MUST be a pointer to an IWbemClassObject interface object that MUST contain
// the class instance that the client wants to create or update. This parameter MUST
// NOT be NULL.
Instance *wmi.ClassObject `idl:"name:pInst" json:"instance"`
// lFlags: Flags that affect the behavior of the PutInstanceAsync method. Flag behavior
// MUST be interpreted as specified in the following table.
//
// The server MUST accept a combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not comply with this condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is set, the server SHOULD ignore all the amended qualifiers while |
// | | this method creates or updates a CIM instance. If this bit is not set, the |
// | | server SHOULD include all the qualifiers, including amended qualifiers, while |
// | | this method creates or updates a CIM instance. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_UPDATE_ONLY 0x00000001 | The server MUST update a CIM instance pObject if the CIM instance is present. |
// | | This flag is mutually exclusive with WBEM_FLAG_CREATE_ONLY. If none of these |
// | | flags are set, the server MUST create or update a CIM instance pObject. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_CREATE_ONLY 0x00000002 | The server MUST create a CIM instance pObject if the CIM instance is not already |
// | | present. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_SEND_STATUS 0x00000080 | If this bit is not set, the server MUST make one final |
// | | IWbemObjectSink::SetStatus call on the interface pointer that is provided in the |
// | | pResponseHandler parameter. If this bit is set, the server MAY make intermediate |
// | | IWbemObjectSink::SetStatus calls on the interface pointer prior to call |
// | | completion. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: This parameter is optional. The pCtx parameter MUST be a pointer to an IWbemContext
// (section 2.2.13) interface object. The pCtx parameter indicates whether the client
// is requesting a partial-instance update or full-instance update. A partial-instance
// update modifies a subset of CIM instance properties; a full-instance update modifies
// all the properties. If NULL, this parameter indicates that the client application
// is requesting a full-instance update. When pCtx is used to perform a partial-instance
// update, the IWbemContext interface MUST be completed with the properties that are
// specified in the following table. If the IWbemContext interface object does not contain
// the properties in the table, the method MUST return WBEM_E_INVALID_CONTEXT.
//
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// | PROPERTY | | |
// | NAME | TYPE | DESCRIPTION |
// | | | |
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// | __PUT_EXTENSIONS | VT_BOOL | If this property is set to TRUE, one or more of the other IWbemContext values |
// | | | have been specified. To perform a partial-instance update, this property MUST be |
// | | | set to TRUE. |
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// | __PUT_EXT_STRICT_NULLS | VT_BOOL | If this property is set to TRUE, the server MUST force the setting of properties |
// | | | to NULL. This parameter is optional. |
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// | __PUT_EXT_PROPERTIES | VT_ARRAY | VT_BSTR | Contains a CIM property list to update. The server MUST ignore properties that |
// | | | are not listed. To perform a partial-instance update, the list of properties |
// | | | MUST be specified. |
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// | __PUT_EXT_ATOMIC | VT_BOOL | If the return code indicates success, all CIM property updates MUST have been |
// | | | successful. On failure, the server MUST revert any changes to the original |
// | | | state for all CIM property updates. On failure, any changes MUST NOT remain. The |
// | | | operation is successful when all properties are updated. |
// +------------------------+--------------------+----------------------------------------------------------------------------------+
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// pResponseHandler: MUST be a pointer to an IWbemObjectSink interface object that is
// implemented by the client of this method. This parameter MUST NOT be NULL.
ResponseHandler *wmi.ObjectSink `idl:"name:pResponseHandler" json:"response_handler"`
}
PutInstanceAsyncRequest structure represents the PutInstanceAsync operation request
func (*PutInstanceAsyncRequest) MarshalNDR ¶
func (*PutInstanceAsyncRequest) UnmarshalNDR ¶
type PutInstanceAsyncResponse ¶
type PutInstanceAsyncResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// Return: The PutInstanceAsync return value.
Return int32 `idl:"name:Return" json:"return"`
}
PutInstanceAsyncResponse structure represents the PutInstanceAsync operation response
func (*PutInstanceAsyncResponse) MarshalNDR ¶
func (*PutInstanceAsyncResponse) UnmarshalNDR ¶
type PutInstanceRequest ¶
type PutInstanceRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// pInst: MUST be a pointer to an IWbemClassObject interface object that MUST contain
// the class instance that the client wants to create or update. This parameter MUST
// NOT be NULL.
Instance *wmi.ClassObject `idl:"name:pInst" json:"instance"`
// lFlags: Flags that affect the behavior of the PutInstance method. Flag behavior MUST
// be interpreted as specified in the following table.
//
// The server MUST accept a combination of zero or more flags from the following table
// and MUST comply with all the restrictions in a flag description. Any other DWORD
// value that does not match a flag condition MUST be treated as not valid.
//
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | | |
// | VALUE | MEANING |
// | | |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_USE_AMENDED_QUALIFIERS 0x00020000 | If this bit is set, the server SHOULD ignore all the amended qualifiers while |
// | | this method creates or updates a CIM instance. If this bit is not set, the |
// | | server SHOULD include all the qualifiers, including amended qualifiers, while |
// | | this method creates or updates a CIM instance. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY 0x00000010 | If this bit is not set, the server MUST make the method call synchronously. If |
// | | this bit is set, the server MUST make the method call semisynchronously. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_UPDATE_ONLY 0x00000001 | The server MUST update a CIM instance pObject if the CIM instance is present. |
// | | This flag is mutually exclusive with WBEM_FLAG_CREATE_ONLY. If none of these |
// | | flags are set, the server MUST create or update a CIM instance pObject. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
// | WBEM_FLAG_CREATE_ONLY 0x00000002 | The server MUST create a CIM instance pObject if the CIM instance is not already |
// | | present. |
// +---------------------------------------------+----------------------------------------------------------------------------------+
Flags int32 `idl:"name:lFlags" json:"flags"`
// pCtx: This parameter is optional. The pCtx parameter MUST be a pointer to an IWbemContext
// interface object. The pCtx parameter indicates whether the client is requesting a
// partial-instance update or a full-instance update. A partial-instance update modifies
// a subset of the CIM instance properties. In contrast, a full-instance update modifies
// all the properties. If NULL, this parameter indicates that the client application
// is requesting a full-instance update. When pCtx is used to perform a partial-instance
// update, the IWbemContext interface object MUST be filled in with the properties that
// are specified in the following table. If the IWbemContext interface object does not
// contain the properties in the table, the method MUST return WBEM_E_INVALID_CONTEXT.
//
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// | PROPERTY | | |
// | NAME | TYPE | DESCRIPTION |
// | | | |
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// | __PUT_EXTENSIONS | VT_BOOL | If this property is set to TRUE, one or more of the other IWbemContext values |
// | | | have been specified. To perform a partial instance update, this property MUST |
// | | | be set to TRUE and the properties that follow MUST be set as specified in their |
// | | | respective descriptions. |
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// | __PUT_EXT_STRICT_NULLS | VT_BOOL | If this property is set to TRUE, the server MUST force the setting of properties |
// | | | to NULL. This parameter is optional. |
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// | __PUT_EXT_PROPERTIES | VT_ARRAY | VT_BSTR | Contains a CIM property list to update. The server MUST ignore the properties |
// | | | that are not listed. To perform a partial instance update, the list of |
// | | | properties MUST be specified. |
// +------------------------+--------------------+----------------------------------------------------------------------------------+
// | __PUT_EXT_ATOMIC | VT_BOOL | If the return code indicates success, all CIM property updates MUST have been |
// | | | successful. On failure, the server MUST revert any changes to the original state |
// | | | for all CIM property that was updated. On failure, not a single change MUST |
// | | | remain. The operation is successful when all properties are updated. |
// +------------------------+--------------------+----------------------------------------------------------------------------------+
Context *wmi.Context `idl:"name:pCtx" json:"context"`
// ppCallResult: If the input parameter is non-NULL, the server MUST return WBEM_S_NO_ERROR
// and IWbemCallResult MUST deliver the result of the requested operation (regardless
// whether WBEM_FLAG_RETURN_IMMEDIATELY is set). The output parameter MUST be filled
// according to the state of the lFlags parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY
// is set) as listed in the following table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | FLAG | OPERATION STARTED | OPERATION FAILED TO |
// | STATE | SUCCESSFULLY | START |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to IWbemCallResult if the input parameter is non-NULL. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | This parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. On output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
}
PutInstanceRequest structure represents the PutInstance operation request
func (*PutInstanceRequest) MarshalNDR ¶
func (*PutInstanceRequest) UnmarshalNDR ¶
type PutInstanceResponse ¶
type PutInstanceResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppCallResult: If the input parameter is non-NULL, the server MUST return WBEM_S_NO_ERROR
// and IWbemCallResult MUST deliver the result of the requested operation (regardless
// whether WBEM_FLAG_RETURN_IMMEDIATELY is set). The output parameter MUST be filled
// according to the state of the lFlags parameter (whether WBEM_FLAG_RETURN_IMMEDIATELY
// is set) as listed in the following table.
//
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | FLAG | OPERATION STARTED | OPERATION FAILED TO |
// | STATE | SUCCESSFULLY | START |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is not set. | MUST be set to IWbemCallResult if the input parameter is non-NULL. | MUST be set to NULL if the input parameter is non-NULL. |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
// | WBEM_FLAG_RETURN_IMMEDIATELY is set. | This parameter MUST NOT be NULL upon input. If NULL, the server MUST | MUST be set to NULL if the input parameter is non-NULL. |
// | | return WBEM_E_INVALID_PARAMETER. On output, the parameter MUST contain the | |
// | | IWbemCallResult interface pointer. | |
// +------------------------------------------+----------------------------------------------------------------------------------+---------------------------------------------------------+
CallResult *wmi.CallResult `idl:"name:ppCallResult;pointer:unique" json:"call_result"`
// Return: The PutInstance return value.
Return int32 `idl:"name:Return" json:"return"`
}
PutInstanceResponse structure represents the PutInstance operation response
func (*PutInstanceResponse) MarshalNDR ¶
func (*PutInstanceResponse) UnmarshalNDR ¶
type QueryObjectSinkRequest ¶
type QueryObjectSinkRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// lFlags: This parameter is not used and its value MUST be 0x0.
Flags int32 `idl:"name:lFlags" json:"flags"`
}
QueryObjectSinkRequest structure represents the QueryObjectSink operation request
func (*QueryObjectSinkRequest) MarshalNDR ¶
func (*QueryObjectSinkRequest) UnmarshalNDR ¶
type QueryObjectSinkResponse ¶
type QueryObjectSinkResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// ppResponseHandler: MUST be a pointer to a QueryObjectSink interface pointer to the
// notification handler that allows the client to send events directly to the server.
// This parameter MUST be set to NULL on error.
ResponseHandler *wmi.ObjectSink `idl:"name:ppResponseHandler" json:"response_handler"`
// Return: The QueryObjectSink return value.
Return int32 `idl:"name:Return" json:"return"`
}
QueryObjectSinkResponse structure represents the QueryObjectSink operation response
func (*QueryObjectSinkResponse) MarshalNDR ¶
func (*QueryObjectSinkResponse) UnmarshalNDR ¶
type ServicesClient ¶
type ServicesClient interface {
// IUnknown retrieval method.
Unknown() iunknown.UnknownClient
// The IWbemServices::OpenNamespace method provides the client with an IWbemServices
// interface pointer that is scoped to the requested namespace. The specified namespace
// MUST be a child namespace of the current namespace through which this method is called.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR, as specified in section
// 2.2.11, to indicate the successful completion of the method.
//
// Requirements described in the parameter definitions are checked, and if the requirements
// are not met, the server returns WBEM_E_INVALID_PARAMETER.
OpenNamespace(context.Context, *OpenNamespaceRequest, ...dcerpc.CallOption) (*OpenNamespaceResponse, error)
// The IWbemServices::CancelAsyncCall method cancels a currently pending asynchronous
// method call identified by the IWbemObjectSink pointer passed to the initial asynchronous
// method.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
//
// +----------------------+-------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +----------------------+-------------------------------------------------------+
// +----------------------+-------------------------------------------------------+
// | 0x00 WBEM_S_NO_ERROR | Indicates a successful completion to the method call. |
// +----------------------+-------------------------------------------------------+
CancelAsyncCall(context.Context, *CancelAsyncCallRequest, ...dcerpc.CallOption) (*CancelAsyncCallResponse, error)
// The QueryObjectSink method obtains a notification handler that allows the client
// to send events directly to the server.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
QueryObjectSink(context.Context, *QueryObjectSinkRequest, ...dcerpc.CallOption) (*QueryObjectSinkResponse, error)
// The IWbemServices::GetObject method retrieves a CIM class or a CIM instance. This
// method MUST retrieve CIM objects from the namespace that is associated with the current
// IWbemServices interface.
//
// Return Values: This method MUST return an HRESULT that MUST indicate the status of
// the method call. The HRESULT MUST have the type and values as specified in section
// 2.2.11. The server MUST return WBEM_S_NO_ERROR (as specified in section 2.2.11) to
// indicate the successful completion of the method.
GetObject(context.Context, *GetObjectRequest, ...dcerpc.CallOption) (*GetObjectResponse, error)
// The IWbemServices::GetObjectAsync method is the asynchronous version of the IWbemServices::GetObject
// method.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
GetObjectAsync(context.Context, *GetObjectAsyncRequest, ...dcerpc.CallOption) (*GetObjectAsyncResponse, error)
// The IWbemServices::PutClass method creates a new class or updates an existing class
// in the namespace that is associated with the current IWbemServices interface. The
// server MUST NOT allow the creation of classes that have names that begin or end with
// an underscore because those names are reserved for system classes. If the class name
// does not conform to the CLASS-NAME element defined in WQL, the server MUST return
// WBEM_E_INVALID_PARAMETER.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
PutClass(context.Context, *PutClassRequest, ...dcerpc.CallOption) (*PutClassResponse, error)
// The IWbemServices::PutClassAsync method is the asynchronous version of the IWbemServices::PutClass
// method. The PutClassAsync method creates a new class or updates an existing class.
// The server MUST NOT allow the creation of classes that have names that begin or end
// with an underscore because those names are reserved for system classes. If the class
// name does not conform to the CLASS-NAME element defined in WQL, the server MUST return
// WBEM_E_INVALID_PARAMETER.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
PutClassAsync(context.Context, *PutClassAsyncRequest, ...dcerpc.CallOption) (*PutClassAsyncResponse, error)
// The IWbemServices::DeleteClass method MUST delete a specified class from the namespace
// that is associated with the current IWbemServices interface.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
DeleteClass(context.Context, *DeleteClassRequest, ...dcerpc.CallOption) (*DeleteClassResponse, error)
// The IWbemServices::DeleteClassAsync method is the asynchronous version of the IWbemServices::DeleteClass
// method. The DeleteClassAsync method MUST delete a specified class from the namespace.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
DeleteClassAsync(context.Context, *DeleteClassAsyncRequest, ...dcerpc.CallOption) (*DeleteClassAsyncResponse, error)
// The IWbemServices::CreateClassEnum method provides a class enumeration. When this
// method is invoked, the server MUST return all classes that satisfy the selection
// criteria from the namespace that is associated with the current IWbemServices interface.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
CreateClassEnum(context.Context, *CreateClassEnumRequest, ...dcerpc.CallOption) (*CreateClassEnumResponse, error)
// The IWbemServices::CreateClassEnumAsync method provides an asynchronous class enumeration.
// When this method is invoked, the server MUST return all classes that satisfy the
// selection criteria.
//
// Return Values: This method MUST return an HRESULT, which MUST indicate the status
// of the method call. The HRESULT MUST have the type and values as specified in section
// 2.2.11. The server MUST return WBEM_S_NO_ERROR (specified in section 2.2.11) to indicate
// the successful completion of the method.
CreateClassEnumAsync(context.Context, *CreateClassEnumAsyncRequest, ...dcerpc.CallOption) (*CreateClassEnumAsyncResponse, error)
// The IWbemServices::PutInstance method creates or updates an instance of an existing
// class.
//
// The PutInstance method opnum equals 14.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
PutInstance(context.Context, *PutInstanceRequest, ...dcerpc.CallOption) (*PutInstanceResponse, error)
// The IWbemServices::PutInstanceAsync method is the asynchronous version of the PutInstance
// method. The PutInstanceAsync method creates or updates an instance of an existing
// class.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
PutInstanceAsync(context.Context, *PutInstanceAsyncRequest, ...dcerpc.CallOption) (*PutInstanceAsyncResponse, error)
// The IWbemServices::DeleteInstance method deletes an instance of an existing class
// from the namespace that is pointed to by the IWbemServices interface object that
// is used to call the method.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
DeleteInstance(context.Context, *DeleteInstanceRequest, ...dcerpc.CallOption) (*DeleteInstanceResponse, error)
// The IWbemServices::DeleteInstanceAsync method is the asynchronous version of the
// IWbemServices::DeleteInstance method. The IWbemServices::DeleteInstanceAsync method
// deletes an instance of an existing class from the namespace that is pointed to by
// the IWbemServices interface that is used to call the method.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
DeleteInstanceAsync(context.Context, *DeleteInstanceAsyncRequest, ...dcerpc.CallOption) (*DeleteInstanceAsyncResponse, error)
// The IWbemServices::CreateInstanceEnum method provides an instance enumeration. When
// this method is invoked, the server MUST return all instances for the specific class
// in the current namespace.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return the following value (specified in section
// 2.2.11) to indicate the successful completion of the method.
CreateInstanceEnum(context.Context, *CreateInstanceEnumRequest, ...dcerpc.CallOption) (*CreateInstanceEnumResponse, error)
// The IWbemServices::CreateInstanceEnumAsync method provides an asynchronous instance
// enumeration. When this method is invoked, the server MUST return all instances for
// the specific class in the current namespace.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
CreateInstanceEnumAsync(context.Context, *CreateInstanceEnumAsyncRequest, ...dcerpc.CallOption) (*CreateInstanceEnumAsyncResponse, error)
// The IWbemServices::ExecQuery method returns an enumerable collection of IWbemClassObject
// interface objects based on a query.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
ExecQuery(context.Context, *ExecQueryRequest, ...dcerpc.CallOption) (*ExecQueryResponse, error)
// The IWbemServices::ExecQueryAsync method is the asynchronous version of the IWbemServices::ExecQuery
// method. The IWbemServices::ExecQueryAsync method returns an enumerable collection
// of IWbemClassObject interface objects based on a query.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
ExecQueryAsync(context.Context, *ExecQueryAsyncRequest, ...dcerpc.CallOption) (*ExecQueryAsyncResponse, error)
// The IWbemServices::ExecNotificationQuery method provides a subscription for event
// notifications. When this method is invoked, the server runs a query to deliver events
// matching the query. The call is executed semisynchronously and MUST follow the rules
// that are specified in section 3.1.1.1.2. The WMI client can poll the returned enumerator
// for events as they arrive. Releasing the returned enumerator cancels the query.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
ExecNotificationQuery(context.Context, *ExecNotificationQueryRequest, ...dcerpc.CallOption) (*ExecNotificationQueryResponse, error)
// The IWbemServices::ExecNotificationQueryAsync method is the asynchronous version
// of the IWbemServices::ExecNotificationQuery method. The IWbemServices::ExecNotificationQueryAsync
// method provides subscription for asynchronous event notifications. When this method
// is invoked, the server performs the same task as the IWbemServices::ExecNotificationQuery
// method, except that events are supplied to the specified response handler (pResponseHandler)
// until the IWbemServices::CancelAsyncCall method is called.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR, as specified in section
// 2.2.11, to indicate the successful completion of the method.
ExecNotificationQueryAsync(context.Context, *ExecNotificationQueryAsyncRequest, ...dcerpc.CallOption) (*ExecNotificationQueryAsyncResponse, error)
// The IWbemServices::ExecMethod method executes a CIM method that is implemented by
// a CIM class or a CIM instance that is retrieved from the IWbemServices interface.
//
// Return Values: This method MUST return an HRESULT, which MUST indicate the status
// of the method call. HRESULT MUST have the type and values as specified in section
// 2.2.11. The server MUST return WBEM_S_NO_ERROR (specified in section 2.2.11) to indicate
// the successful completion of the method.
ExecMethod(context.Context, *ExecMethodRequest, ...dcerpc.CallOption) (*ExecMethodResponse, error)
// The IWbemServices::ExecMethodAsync method asynchronously executes a CIM method that
// is implemented by a CIM class or a CIM instance that is retrieved from the IWbemServices
// interface.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
ExecMethodAsync(context.Context, *ExecMethodAsyncRequest, ...dcerpc.CallOption) (*ExecMethodAsyncResponse, error)
// AlterContext alters the client context.
AlterContext(context.Context, ...dcerpc.Option) error
// Conn returns the client connection (unsafe)
Conn() dcerpc.Conn
// IPID sets the object interface identifier.
IPID(context.Context, *dcom.IPID) ServicesClient
}
IWbemServices interface.
func NewServicesClient ¶
type ServicesServer ¶
type ServicesServer interface {
// IUnknown base class.
iunknown.UnknownServer
// The IWbemServices::OpenNamespace method provides the client with an IWbemServices
// interface pointer that is scoped to the requested namespace. The specified namespace
// MUST be a child namespace of the current namespace through which this method is called.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR, as specified in section
// 2.2.11, to indicate the successful completion of the method.
//
// Requirements described in the parameter definitions are checked, and if the requirements
// are not met, the server returns WBEM_E_INVALID_PARAMETER.
OpenNamespace(context.Context, *OpenNamespaceRequest) (*OpenNamespaceResponse, error)
// The IWbemServices::CancelAsyncCall method cancels a currently pending asynchronous
// method call identified by the IWbemObjectSink pointer passed to the initial asynchronous
// method.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
//
// +----------------------+-------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +----------------------+-------------------------------------------------------+
// +----------------------+-------------------------------------------------------+
// | 0x00 WBEM_S_NO_ERROR | Indicates a successful completion to the method call. |
// +----------------------+-------------------------------------------------------+
CancelAsyncCall(context.Context, *CancelAsyncCallRequest) (*CancelAsyncCallResponse, error)
// The QueryObjectSink method obtains a notification handler that allows the client
// to send events directly to the server.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
QueryObjectSink(context.Context, *QueryObjectSinkRequest) (*QueryObjectSinkResponse, error)
// The IWbemServices::GetObject method retrieves a CIM class or a CIM instance. This
// method MUST retrieve CIM objects from the namespace that is associated with the current
// IWbemServices interface.
//
// Return Values: This method MUST return an HRESULT that MUST indicate the status of
// the method call. The HRESULT MUST have the type and values as specified in section
// 2.2.11. The server MUST return WBEM_S_NO_ERROR (as specified in section 2.2.11) to
// indicate the successful completion of the method.
GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)
// The IWbemServices::GetObjectAsync method is the asynchronous version of the IWbemServices::GetObject
// method.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
GetObjectAsync(context.Context, *GetObjectAsyncRequest) (*GetObjectAsyncResponse, error)
// The IWbemServices::PutClass method creates a new class or updates an existing class
// in the namespace that is associated with the current IWbemServices interface. The
// server MUST NOT allow the creation of classes that have names that begin or end with
// an underscore because those names are reserved for system classes. If the class name
// does not conform to the CLASS-NAME element defined in WQL, the server MUST return
// WBEM_E_INVALID_PARAMETER.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
PutClass(context.Context, *PutClassRequest) (*PutClassResponse, error)
// The IWbemServices::PutClassAsync method is the asynchronous version of the IWbemServices::PutClass
// method. The PutClassAsync method creates a new class or updates an existing class.
// The server MUST NOT allow the creation of classes that have names that begin or end
// with an underscore because those names are reserved for system classes. If the class
// name does not conform to the CLASS-NAME element defined in WQL, the server MUST return
// WBEM_E_INVALID_PARAMETER.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
PutClassAsync(context.Context, *PutClassAsyncRequest) (*PutClassAsyncResponse, error)
// The IWbemServices::DeleteClass method MUST delete a specified class from the namespace
// that is associated with the current IWbemServices interface.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
DeleteClass(context.Context, *DeleteClassRequest) (*DeleteClassResponse, error)
// The IWbemServices::DeleteClassAsync method is the asynchronous version of the IWbemServices::DeleteClass
// method. The DeleteClassAsync method MUST delete a specified class from the namespace.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
DeleteClassAsync(context.Context, *DeleteClassAsyncRequest) (*DeleteClassAsyncResponse, error)
// The IWbemServices::CreateClassEnum method provides a class enumeration. When this
// method is invoked, the server MUST return all classes that satisfy the selection
// criteria from the namespace that is associated with the current IWbemServices interface.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
CreateClassEnum(context.Context, *CreateClassEnumRequest) (*CreateClassEnumResponse, error)
// The IWbemServices::CreateClassEnumAsync method provides an asynchronous class enumeration.
// When this method is invoked, the server MUST return all classes that satisfy the
// selection criteria.
//
// Return Values: This method MUST return an HRESULT, which MUST indicate the status
// of the method call. The HRESULT MUST have the type and values as specified in section
// 2.2.11. The server MUST return WBEM_S_NO_ERROR (specified in section 2.2.11) to indicate
// the successful completion of the method.
CreateClassEnumAsync(context.Context, *CreateClassEnumAsyncRequest) (*CreateClassEnumAsyncResponse, error)
// The IWbemServices::PutInstance method creates or updates an instance of an existing
// class.
//
// The PutInstance method opnum equals 14.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
PutInstance(context.Context, *PutInstanceRequest) (*PutInstanceResponse, error)
// The IWbemServices::PutInstanceAsync method is the asynchronous version of the PutInstance
// method. The PutInstanceAsync method creates or updates an instance of an existing
// class.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
PutInstanceAsync(context.Context, *PutInstanceAsyncRequest) (*PutInstanceAsyncResponse, error)
// The IWbemServices::DeleteInstance method deletes an instance of an existing class
// from the namespace that is pointed to by the IWbemServices interface object that
// is used to call the method.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
DeleteInstance(context.Context, *DeleteInstanceRequest) (*DeleteInstanceResponse, error)
// The IWbemServices::DeleteInstanceAsync method is the asynchronous version of the
// IWbemServices::DeleteInstance method. The IWbemServices::DeleteInstanceAsync method
// deletes an instance of an existing class from the namespace that is pointed to by
// the IWbemServices interface that is used to call the method.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
// 2.2.11) to indicate the successful completion of the method.
DeleteInstanceAsync(context.Context, *DeleteInstanceAsyncRequest) (*DeleteInstanceAsyncResponse, error)
// The IWbemServices::CreateInstanceEnum method provides an instance enumeration. When
// this method is invoked, the server MUST return all instances for the specific class
// in the current namespace.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return the following value (specified in section
// 2.2.11) to indicate the successful completion of the method.
CreateInstanceEnum(context.Context, *CreateInstanceEnumRequest) (*CreateInstanceEnumResponse, error)
// The IWbemServices::CreateInstanceEnumAsync method provides an asynchronous instance
// enumeration. When this method is invoked, the server MUST return all instances for
// the specific class in the current namespace.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
CreateInstanceEnumAsync(context.Context, *CreateInstanceEnumAsyncRequest) (*CreateInstanceEnumAsyncResponse, error)
// The IWbemServices::ExecQuery method returns an enumerable collection of IWbemClassObject
// interface objects based on a query.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
ExecQuery(context.Context, *ExecQueryRequest) (*ExecQueryResponse, error)
// The IWbemServices::ExecQueryAsync method is the asynchronous version of the IWbemServices::ExecQuery
// method. The IWbemServices::ExecQueryAsync method returns an enumerable collection
// of IWbemClassObject interface objects based on a query.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
ExecQueryAsync(context.Context, *ExecQueryAsyncRequest) (*ExecQueryAsyncResponse, error)
// The IWbemServices::ExecNotificationQuery method provides a subscription for event
// notifications. When this method is invoked, the server runs a query to deliver events
// matching the query. The call is executed semisynchronously and MUST follow the rules
// that are specified in section 3.1.1.1.2. The WMI client can poll the returned enumerator
// for events as they arrive. Releasing the returned enumerator cancels the query.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
ExecNotificationQuery(context.Context, *ExecNotificationQueryRequest) (*ExecNotificationQueryResponse, error)
// The IWbemServices::ExecNotificationQueryAsync method is the asynchronous version
// of the IWbemServices::ExecNotificationQuery method. The IWbemServices::ExecNotificationQueryAsync
// method provides subscription for asynchronous event notifications. When this method
// is invoked, the server performs the same task as the IWbemServices::ExecNotificationQuery
// method, except that events are supplied to the specified response handler (pResponseHandler)
// until the IWbemServices::CancelAsyncCall method is called.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR, as specified in section
// 2.2.11, to indicate the successful completion of the method.
ExecNotificationQueryAsync(context.Context, *ExecNotificationQueryAsyncRequest) (*ExecNotificationQueryAsyncResponse, error)
// The IWbemServices::ExecMethod method executes a CIM method that is implemented by
// a CIM class or a CIM instance that is retrieved from the IWbemServices interface.
//
// Return Values: This method MUST return an HRESULT, which MUST indicate the status
// of the method call. HRESULT MUST have the type and values as specified in section
// 2.2.11. The server MUST return WBEM_S_NO_ERROR (specified in section 2.2.11) to indicate
// the successful completion of the method.
ExecMethod(context.Context, *ExecMethodRequest) (*ExecMethodResponse, error)
// The IWbemServices::ExecMethodAsync method asynchronously executes a CIM method that
// is implemented by a CIM class or a CIM instance that is retrieved from the IWbemServices
// interface.
//
// Return Values: This method MUST return an HRESULT value that MUST indicate the status
// of the method call. The server MUST return WBEM_S_NO_ERROR (as specified in section
// 2.2.11) to indicate the successful completion of the method.
ExecMethodAsync(context.Context, *ExecMethodAsyncRequest) (*ExecMethodAsyncResponse, error)
}
IWbemServices server interface.
type UnimplementedServicesServer ¶
type UnimplementedServicesServer struct {
iunknown.UnimplementedUnknownServer
}
Unimplemented IWbemServices
func (UnimplementedServicesServer) CancelAsyncCall ¶
func (UnimplementedServicesServer) CancelAsyncCall(context.Context, *CancelAsyncCallRequest) (*CancelAsyncCallResponse, error)
func (UnimplementedServicesServer) CreateClassEnum ¶
func (UnimplementedServicesServer) CreateClassEnum(context.Context, *CreateClassEnumRequest) (*CreateClassEnumResponse, error)
func (UnimplementedServicesServer) CreateClassEnumAsync ¶
func (UnimplementedServicesServer) CreateClassEnumAsync(context.Context, *CreateClassEnumAsyncRequest) (*CreateClassEnumAsyncResponse, error)
func (UnimplementedServicesServer) CreateInstanceEnum ¶
func (UnimplementedServicesServer) CreateInstanceEnum(context.Context, *CreateInstanceEnumRequest) (*CreateInstanceEnumResponse, error)
func (UnimplementedServicesServer) CreateInstanceEnumAsync ¶
func (UnimplementedServicesServer) CreateInstanceEnumAsync(context.Context, *CreateInstanceEnumAsyncRequest) (*CreateInstanceEnumAsyncResponse, error)
func (UnimplementedServicesServer) DeleteClass ¶
func (UnimplementedServicesServer) DeleteClass(context.Context, *DeleteClassRequest) (*DeleteClassResponse, error)
func (UnimplementedServicesServer) DeleteClassAsync ¶
func (UnimplementedServicesServer) DeleteClassAsync(context.Context, *DeleteClassAsyncRequest) (*DeleteClassAsyncResponse, error)
func (UnimplementedServicesServer) DeleteInstance ¶
func (UnimplementedServicesServer) DeleteInstance(context.Context, *DeleteInstanceRequest) (*DeleteInstanceResponse, error)
func (UnimplementedServicesServer) DeleteInstanceAsync ¶
func (UnimplementedServicesServer) DeleteInstanceAsync(context.Context, *DeleteInstanceAsyncRequest) (*DeleteInstanceAsyncResponse, error)
func (UnimplementedServicesServer) ExecMethod ¶
func (UnimplementedServicesServer) ExecMethod(context.Context, *ExecMethodRequest) (*ExecMethodResponse, error)
func (UnimplementedServicesServer) ExecMethodAsync ¶
func (UnimplementedServicesServer) ExecMethodAsync(context.Context, *ExecMethodAsyncRequest) (*ExecMethodAsyncResponse, error)
func (UnimplementedServicesServer) ExecNotificationQuery ¶
func (UnimplementedServicesServer) ExecNotificationQuery(context.Context, *ExecNotificationQueryRequest) (*ExecNotificationQueryResponse, error)
func (UnimplementedServicesServer) ExecNotificationQueryAsync ¶
func (UnimplementedServicesServer) ExecNotificationQueryAsync(context.Context, *ExecNotificationQueryAsyncRequest) (*ExecNotificationQueryAsyncResponse, error)
func (UnimplementedServicesServer) ExecQuery ¶
func (UnimplementedServicesServer) ExecQuery(context.Context, *ExecQueryRequest) (*ExecQueryResponse, error)
func (UnimplementedServicesServer) ExecQueryAsync ¶
func (UnimplementedServicesServer) ExecQueryAsync(context.Context, *ExecQueryAsyncRequest) (*ExecQueryAsyncResponse, error)
func (UnimplementedServicesServer) GetObject ¶
func (UnimplementedServicesServer) GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)
func (UnimplementedServicesServer) GetObjectAsync ¶
func (UnimplementedServicesServer) GetObjectAsync(context.Context, *GetObjectAsyncRequest) (*GetObjectAsyncResponse, error)
func (UnimplementedServicesServer) OpenNamespace ¶
func (UnimplementedServicesServer) OpenNamespace(context.Context, *OpenNamespaceRequest) (*OpenNamespaceResponse, error)
func (UnimplementedServicesServer) PutClass ¶
func (UnimplementedServicesServer) PutClass(context.Context, *PutClassRequest) (*PutClassResponse, error)
func (UnimplementedServicesServer) PutClassAsync ¶
func (UnimplementedServicesServer) PutClassAsync(context.Context, *PutClassAsyncRequest) (*PutClassAsyncResponse, error)
func (UnimplementedServicesServer) PutInstance ¶
func (UnimplementedServicesServer) PutInstance(context.Context, *PutInstanceRequest) (*PutInstanceResponse, error)
func (UnimplementedServicesServer) PutInstanceAsync ¶
func (UnimplementedServicesServer) PutInstanceAsync(context.Context, *PutInstanceAsyncRequest) (*PutInstanceAsyncResponse, error)
func (UnimplementedServicesServer) QueryObjectSink ¶
func (UnimplementedServicesServer) QueryObjectSink(context.Context, *QueryObjectSinkRequest) (*QueryObjectSinkResponse, error)