Documentation ¶
Index ¶
- Variables
- func CallResultServerHandle(ctx context.Context, o CallResultServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewCallResultServerHandle(o CallResultServer) dcerpc.ServerHandle
- func RegisterCallResultServer(conn dcerpc.Conn, o CallResultServer, opts ...dcerpc.Option)
- type CallResultClient
- type CallResultServer
- type GetCallStatusRequest
- type GetCallStatusResponse
- type GetResultObjectRequest
- type GetResultObjectResponse
- type GetResultServicesRequest
- type GetResultServicesResponse
- type GetResultStringRequest
- type GetResultStringResponse
Constants ¶
This section is empty.
Variables ¶
var ( // IWbemCallResult interface identifier 44aca675-e8fc-11d0-a07c-00c04fb68820 CallResultIID = &dcom.IID{Data1: 0x44aca675, Data2: 0xe8fc, Data3: 0x11d0, Data4: []byte{0xa0, 0x7c, 0x00, 0xc0, 0x4f, 0xb6, 0x88, 0x20}} // Syntax UUID CallResultSyntaxUUID = &uuid.UUID{TimeLow: 0x44aca675, TimeMid: 0xe8fc, TimeHiAndVersion: 0x11d0, ClockSeqHiAndReserved: 0xa0, ClockSeqLow: 0x7c, Node: [6]uint8{0x0, 0xc0, 0x4f, 0xb6, 0x88, 0x20}} // Syntax ID CallResultSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: CallResultSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "dcom/wmi"
)
Functions ¶
func CallResultServerHandle ¶
func NewCallResultServerHandle ¶
func NewCallResultServerHandle(o CallResultServer) dcerpc.ServerHandle
func RegisterCallResultServer ¶
func RegisterCallResultServer(conn dcerpc.Conn, o CallResultServer, opts ...dcerpc.Option)
Types ¶
type CallResultClient ¶
type CallResultClient interface { // IUnknown retrieval method. Unknown() iunknown.UnknownClient // When the IWbemCallResult::GetResultObject method is called, the server MUST attempt // to retrieve a CIM object from a previous semisynchronous operation call to the IWbemServices::GetObject // method or the IWbemServices::ExecMethod method. The entry in WbemCallResultTable // with WbemCallResultPointer pointing to IWbemCallResult is used to identify the previous // semisynchronous call. // // 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. GetResultObject(context.Context, *GetResultObjectRequest, ...dcerpc.CallOption) (*GetResultObjectResponse, error) // When the IWbemCallResult::GetResultString method is called, the server MUST return // the assigned CIM path of a CIM instance that was created by the IWbemServices::PutInstance // method that returned IWbemCallResult in the ppCallResult 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. GetResultString(context.Context, *GetResultStringRequest, ...dcerpc.CallOption) (*GetResultStringResponse, error) // When the IWbemCallResult::GetResultServices method is called, the server MUST retrieve // a pointer to the IWbemServices interface that results from a semisynchronous call // to the IWbemServices::OpenNamespace 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. GetResultServices(context.Context, *GetResultServicesRequest, ...dcerpc.CallOption) (*GetResultServicesResponse, error) // When the IWbemCallResult::GetCallStatus method is invoked, the server MUST return // the status of the current outstanding semisynchronous call. // // 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. GetCallStatus(context.Context, *GetCallStatusRequest, ...dcerpc.CallOption) (*GetCallStatusResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) CallResultClient }
IWbemCallResult interface.
func NewCallResultClient ¶
type CallResultServer ¶
type CallResultServer interface { // IUnknown base class. iunknown.UnknownServer // When the IWbemCallResult::GetResultObject method is called, the server MUST attempt // to retrieve a CIM object from a previous semisynchronous operation call to the IWbemServices::GetObject // method or the IWbemServices::ExecMethod method. The entry in WbemCallResultTable // with WbemCallResultPointer pointing to IWbemCallResult is used to identify the previous // semisynchronous call. // // 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. GetResultObject(context.Context, *GetResultObjectRequest) (*GetResultObjectResponse, error) // When the IWbemCallResult::GetResultString method is called, the server MUST return // the assigned CIM path of a CIM instance that was created by the IWbemServices::PutInstance // method that returned IWbemCallResult in the ppCallResult 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. GetResultString(context.Context, *GetResultStringRequest) (*GetResultStringResponse, error) // When the IWbemCallResult::GetResultServices method is called, the server MUST retrieve // a pointer to the IWbemServices interface that results from a semisynchronous call // to the IWbemServices::OpenNamespace 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. GetResultServices(context.Context, *GetResultServicesRequest) (*GetResultServicesResponse, error) // When the IWbemCallResult::GetCallStatus method is invoked, the server MUST return // the status of the current outstanding semisynchronous call. // // 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. GetCallStatus(context.Context, *GetCallStatusRequest) (*GetCallStatusResponse, error) }
IWbemCallResult server interface.
type GetCallStatusRequest ¶
type GetCallStatusRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // lTimeout: MUST be the maximum amount of time, in milliseconds, that the call to GetCallStatus // allows to pass before timing out. If the constant WBEM_INFINITE (0xFFFFFFFF) is used, // the Skip method call waits until the operation succeeds. Timeout int32 `idl:"name:lTimeout" json:"timeout"` }
GetCallStatusRequest structure represents the GetCallStatus operation request
func (*GetCallStatusRequest) MarshalNDR ¶
func (*GetCallStatusRequest) UnmarshalNDR ¶
type GetCallStatusResponse ¶
type GetCallStatusResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // plStatus: MUST be the status of a call to an IWbemServices method if the WBEM_S_NO_ERROR // code is returned for this method. When sent by the client, this parameter MUST NOT // be NULL. Upon return by the server, this parameter can be NULL if there is a failure // or if there are no results. Status int32 `idl:"name:plStatus" json:"status"` // Return: The GetCallStatus return value. Return int32 `idl:"name:Return" json:"return"` }
GetCallStatusResponse structure represents the GetCallStatus operation response
func (*GetCallStatusResponse) MarshalNDR ¶
func (*GetCallStatusResponse) UnmarshalNDR ¶
type GetResultObjectRequest ¶
type GetResultObjectRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // lTimeout: MUST be the maximum amount of time, in milliseconds, that the call to the // IWbemCallResult::GetResultObject method allows to pass before it times out. If the // constant WBEM_INFINITE (0xFFFFFFFF) is used, the GetResultObject method call MUST // wait until the operation succeeds. If this parameter is set to 0 and the result object // is available at the time of the method call, the object MUST be returned in ppResultObject // and WBEM_S_NO_ERROR MUST also be returned. If this parameter is set to 0 but the // result object is not available at the time of the method call, WBEM_S_TIMEDOUT MUST // be returned. Timeout int32 `idl:"name:lTimeout" json:"timeout"` }
GetResultObjectRequest structure represents the GetResultObject operation request
func (*GetResultObjectRequest) MarshalNDR ¶
func (*GetResultObjectRequest) UnmarshalNDR ¶
type GetResultObjectResponse ¶
type GetResultObjectResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // ppResultObject: A pointer to a variable that receives a logical copy of the CIM object // when the semisynchronous operation is complete. A new CIM object MUST NOT be returned // on error. When sent by the client, this parameter value MUST NOT be NULL. Upon return // by the server, this parameter value can be NULL if there is a failure or if there // are no results. The caller of this method MUST call IWbemClassObject::Release on // the returned object when the object is no longer required. ResultObject *wmi.ClassObject `idl:"name:ppResultObject" json:"result_object"` // Return: The GetResultObject return value. Return int32 `idl:"name:Return" json:"return"` }
GetResultObjectResponse structure represents the GetResultObject operation response
func (*GetResultObjectResponse) MarshalNDR ¶
func (*GetResultObjectResponse) UnmarshalNDR ¶
type GetResultServicesRequest ¶
type GetResultServicesRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // lTimeout: MUST be the time, in milliseconds, that the call to GetResultServices allows // to pass before timing out. If the constant WBEM_INFINITE (0xFFFFFFFF) is used, the // Skip method call MUST wait until the operation succeeds. Timeout int32 `idl:"name:lTimeout" json:"timeout"` }
GetResultServicesRequest structure represents the GetResultServices operation request
func (*GetResultServicesRequest) MarshalNDR ¶
func (*GetResultServicesRequest) UnmarshalNDR ¶
type GetResultServicesResponse ¶
type GetResultServicesResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // ppServices: MUST be a pointer to the IWbemServices interface that is requested by // the original call to IWbemServices::OpenNamespace when that interface becomes available. // If the semisynchronous operation fails, the returned parameter MUST be NULL. When // sent by the client, this pointer parameter MUST NOT be NULL. If the original operation // does not return an interface pointer, the returned parameter MUST be NULL. Services *wmi.Services `idl:"name:ppServices" json:"services"` // Return: The GetResultServices return value. Return int32 `idl:"name:Return" json:"return"` }
GetResultServicesResponse structure represents the GetResultServices operation response
func (*GetResultServicesResponse) MarshalNDR ¶
func (*GetResultServicesResponse) UnmarshalNDR ¶
type GetResultStringRequest ¶
type GetResultStringRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // lTimeout: MUST be a maximum amount of time, in milliseconds, that the call to GetResultString // allows to pass before timing out. If the constant WBEM_INFINITE (0xFFFFFFFF) is used, // the GetResultString method call MUST wait until the operation succeeds. This parameter // MUST NOT be NULL. Timeout int32 `idl:"name:lTimeout" json:"timeout"` }
GetResultStringRequest structure represents the GetResultString operation request
func (*GetResultStringRequest) MarshalNDR ¶
func (*GetResultStringRequest) UnmarshalNDR ¶
type GetResultStringResponse ¶
type GetResultStringResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // pstrResultString: MUST be a pointer to a BSTR value, which MUST contain the CIM path // of the CIM object instance, which MUST lead to the CIM instance that was created // using IWbemServices::PutInstance. In case of failure of the semisynchronous operation, // the returned string MUST be NULL. When sent by the client, this pointer parameter // MUST NOT be NULL. If the original operation does not return a string, the returned // string MUST be NULL. ResultString *oaut.String `idl:"name:pstrResultString" json:"result_string"` // Return: The GetResultString return value. Return int32 `idl:"name:Return" json:"return"` }
GetResultStringResponse structure represents the GetResultString operation response