iupdate4

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IUpdate4 interface identifier 27e94b0d-5139-49a2-9a61-93522dc54652
	Update4IID = &dcom.IID{Data1: 0x27e94b0d, Data2: 0x5139, Data3: 0x49a2, Data4: []byte{0x9a, 0x61, 0x93, 0x52, 0x2d, 0xc5, 0x46, 0x52}}
	// Syntax UUID
	Update4SyntaxUUID = &uuid.UUID{TimeLow: 0x27e94b0d, TimeMid: 0x5139, TimeHiAndVersion: 0x49a2, ClockSeqHiAndReserved: 0x9a, ClockSeqLow: 0x61, Node: [6]uint8{0x93, 0x52, 0x2d, 0xc5, 0x46, 0x52}}
	// Syntax ID
	Update4SyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: Update4SyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/uamg"
)

Functions

func NewUpdate4ServerHandle

func NewUpdate4ServerHandle(o Update4Server) dcerpc.ServerHandle

func RegisterUpdate4Server

func RegisterUpdate4Server(conn dcerpc.Conn, o Update4Server, opts ...dcerpc.Option)

func Update4ServerHandle

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

Types

type GetPerUserRequest

type GetPerUserRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetPerUserRequest structure represents the PerUser operation request

func (*GetPerUserRequest) MarshalNDR

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

func (*GetPerUserRequest) UnmarshalNDR

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

type GetPerUserResponse

type GetPerUserResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// retval: MUST be set either to VARIANT_TRUE if this update is installed per user rather
	// than per machine or to VARIANT_FALSE if not.
	ReturnValue int16 `idl:"name:retval" json:"return_value"`
	// Return: The PerUser return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetPerUserResponse structure represents the PerUser operation response

func (*GetPerUserResponse) MarshalNDR

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

func (*GetPerUserResponse) UnmarshalNDR

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

type UnimplementedUpdate4Server

type UnimplementedUpdate4Server struct {
	iupdate3.UnimplementedUpdate3Server
}

Unimplemented IUpdate4

func (UnimplementedUpdate4Server) GetPerUser

type Update4Client

type Update4Client interface {

	// IUpdate3 retrieval method.
	Update3() iupdate3.Update3Client

	// The IUpdate4::PerUser (opnum 58) method retrieves whether the update is per user.
	//
	// The IWindowsDriverUpdate4::PerUser (opnum 67) method retrieves whether the update
	// is per user.
	//
	// 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].
	//
	// This method SHOULD return the value of the PerUser ADM element.
	GetPerUser(context.Context, *GetPerUserRequest, ...dcerpc.CallOption) (*GetPerUserResponse, 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) Update4Client
}

IUpdate4 interface.

func NewUpdate4Client

func NewUpdate4Client(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (Update4Client, error)

type Update4Server

type Update4Server interface {

	// IUpdate3 base class.
	iupdate3.Update3Server

	// The IUpdate4::PerUser (opnum 58) method retrieves whether the update is per user.
	//
	// The IWindowsDriverUpdate4::PerUser (opnum 67) method retrieves whether the update
	// is per user.
	//
	// 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].
	//
	// This method SHOULD return the value of the PerUser ADM element.
	GetPerUser(context.Context, *GetPerUserRequest) (*GetPerUserResponse, error)
}

IUpdate4 server interface.

Jump to

Keyboard shortcuts

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