iwindowsupdateagentinfo

package
v1.2.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IWindowsUpdateAgentInfo interface identifier 85713fa1-7796-4fa2-be3b-e2d6124dd373
	WindowsUpdateAgentInfoIID = &dcom.IID{Data1: 0x85713fa1, Data2: 0x7796, Data3: 0x4fa2, Data4: []byte{0xbe, 0x3b, 0xe2, 0xd6, 0x12, 0x4d, 0xd3, 0x73}}
	// Syntax UUID
	WindowsUpdateAgentInfoSyntaxUUID = &uuid.UUID{TimeLow: 0x85713fa1, TimeMid: 0x7796, TimeHiAndVersion: 0x4fa2, ClockSeqHiAndReserved: 0xbe, ClockSeqLow: 0x3b, Node: [6]uint8{0xe2, 0xd6, 0x12, 0x4d, 0xd3, 0x73}}
	// Syntax ID
	WindowsUpdateAgentInfoSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: WindowsUpdateAgentInfoSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/uamg"
)

Functions

func NewWindowsUpdateAgentInfoServerHandle

func NewWindowsUpdateAgentInfoServerHandle(o WindowsUpdateAgentInfoServer) dcerpc.ServerHandle

func RegisterWindowsUpdateAgentInfoServer

func RegisterWindowsUpdateAgentInfoServer(conn dcerpc.Conn, o WindowsUpdateAgentInfoServer, opts ...dcerpc.Option)

func WindowsUpdateAgentInfoServerHandle

func WindowsUpdateAgentInfoServerHandle(ctx context.Context, o WindowsUpdateAgentInfoServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)

Types

type GetInfoRequest

type GetInfoRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// varInfoIdentifier: A VARIANT ([MS-OAUT] section 2.2.29.2) containing a string specifying
	// the type of version information to retrieve. The vt member of varInfoIdentifier MUST
	// be set to VT_BSTR, and the BSTR ([MS-OAUT] section 2.2.23) stored in the bstrVal
	// member MUST case-insensitively compare equal to one of the following values.
	//
	//	+----------------------+--------------------------------------------------------------+
	//	|       BSTRVAL        |                      INFORMATION TO BE                       |
	//	|        VALUE         |                          RETRIEVED                           |
	//	+----------------------+--------------------------------------------------------------+
	//	+----------------------+--------------------------------------------------------------+
	//	| ApiMajorVersion      | The major version number of the server side of the protocol. |
	//	+----------------------+--------------------------------------------------------------+
	//	| ApiMinorVersion      | The minor version number of the server side of the protocol. |
	//	+----------------------+--------------------------------------------------------------+
	//	| ProductVersionString | The version of the update agent.                             |
	//	+----------------------+--------------------------------------------------------------+
	VarInfoID *oaut.Variant `idl:"name:varInfoIdentifier" json:"var_info_id"`
}

GetInfoRequest structure represents the GetInfo operation request

func (*GetInfoRequest) MarshalNDR

func (o *GetInfoRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetInfoRequest) UnmarshalNDR

func (o *GetInfoRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetInfoResponse

type GetInfoResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// retval: A VARIANT containing the requested version information, as specified by the
	// following table.
	//
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	|    VARINFOIDENTIFIER BSTRVAL    |                                                                                  |
	//	|              VALUE              |                                      RETVAL                                      |
	//	|                                 |                                                                                  |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	| ApiMajorVersion                 | The vt member MUST be set to VT_I4. The lVal member SHOULD<52> be set to the     |
	//	|                                 | server's major version.                                                          |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	| ApiMinorVersion                 | The vt member MUST be set to VT_I4. The lVal member SHOULD<53> be set to the     |
	//	|                                 | server's minor version.                                                          |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	| ProductVersionString            | The vt member MUST be set to VT_BSTR. The bstrVal member SHOULD<54> be set to    |
	//	|                                 | the version of the update agent.                                                 |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	ReturnValue *oaut.Variant `idl:"name:retval" json:"return_value"`
	// Return: The GetInfo return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetInfoResponse structure represents the GetInfo operation response

func (*GetInfoResponse) MarshalNDR

func (o *GetInfoResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetInfoResponse) UnmarshalNDR

func (o *GetInfoResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type UnimplementedWindowsUpdateAgentInfoServer

type UnimplementedWindowsUpdateAgentInfoServer struct {
	idispatch.UnimplementedDispatchServer
}

Unimplemented IWindowsUpdateAgentInfo

func (UnimplementedWindowsUpdateAgentInfoServer) GetInfo

type WindowsUpdateAgentInfoClient

type WindowsUpdateAgentInfoClient interface {

	// IDispatch retrieval method.
	Dispatch() idispatch.DispatchClient

	// The IWindowsUpdateAgentInfo::GetInfo (opnum 8) method retrieves version information
	// for the server side of the protocol and the update agent.
	//
	// Return Values: The method MUST return information in an HRESULT data structure. The
	// severity bit in the structure identifies the following conditions:
	//
	// * If the severity bit is set to 0, the method completed successfully.
	//
	// * If the severity bit is set to 1, the method failed and encountered a fatal error.
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	GetInfo(context.Context, *GetInfoRequest, ...dcerpc.CallOption) (*GetInfoResponse, 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) WindowsUpdateAgentInfoClient
}

IWindowsUpdateAgentInfo interface.

func NewWindowsUpdateAgentInfoClient

func NewWindowsUpdateAgentInfoClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (WindowsUpdateAgentInfoClient, error)

type WindowsUpdateAgentInfoServer

type WindowsUpdateAgentInfoServer interface {

	// IDispatch base class.
	idispatch.DispatchServer

	// The IWindowsUpdateAgentInfo::GetInfo (opnum 8) method retrieves version information
	// for the server side of the protocol and the update agent.
	//
	// Return Values: The method MUST return information in an HRESULT data structure. The
	// severity bit in the structure identifies the following conditions:
	//
	// * If the severity bit is set to 0, the method completed successfully.
	//
	// * If the severity bit is set to 1, the method failed and encountered a fatal error.
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
}

IWindowsUpdateAgentInfo server interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL