ivdsservicesw

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IVdsServiceSw interface identifier 15fc031c-0652-4306-b2c3-f558b8f837e2
	ServiceSwIID = &dcom.IID{Data1: 0x15fc031c, Data2: 0x0652, Data3: 0x4306, Data4: []byte{0xb2, 0xc3, 0xf5, 0x58, 0xb8, 0xf8, 0x37, 0xe2}}
	// Syntax UUID
	ServiceSwSyntaxUUID = &uuid.UUID{TimeLow: 0x15fc031c, TimeMid: 0x652, TimeHiAndVersion: 0x4306, ClockSeqHiAndReserved: 0xb2, ClockSeqLow: 0xc3, Node: [6]uint8{0xf5, 0x58, 0xb8, 0xf8, 0x37, 0xe2}}
	// Syntax ID
	ServiceSwSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ServiceSwSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func NewServiceSwServerHandle

func NewServiceSwServerHandle(o ServiceSwServer) dcerpc.ServerHandle

func RegisterServiceSwServer

func RegisterServiceSwServer(conn dcerpc.Conn, o ServiceSwServer, opts ...dcerpc.Option)

func ServiceSwServerHandle

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

Types

type GetDiskObjectRequest

type GetDiskObjectRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pwszDeviceID: The null-terminated Unicode device path that the operating system uses
	// to identify the device for the disk.
	DeviceID string `idl:"name:pwszDeviceID;string" json:"device_id"`
}

GetDiskObjectRequest structure represents the GetDiskObject operation request

func (*GetDiskObjectRequest) MarshalNDR

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

func (*GetDiskObjectRequest) UnmarshalNDR

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

type GetDiskObjectResponse

type GetDiskObjectResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That        *dcom.ORPCThat `idl:"name:That" json:"that"`
	DiskUnknown *dcom.Unknown  `idl:"name:ppDiskUnk" json:"disk_unknown"`
	// Return: The GetDiskObject return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetDiskObjectResponse structure represents the GetDiskObject operation response

func (*GetDiskObjectResponse) MarshalNDR

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

func (*GetDiskObjectResponse) UnmarshalNDR

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

type ServiceSwClient

type ServiceSwClient interface {

	// IUnknown retrieval method.
	Unknown() iunknown.UnknownClient

	// The GetDiskObject method<75> returns the disk for the given PnP Device ID string.
	//
	// Return Values: The method MUST return zero or a non-error HRESULT, as specified in
	// [MS-ERREF], to indicate success or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	GetDiskObject(context.Context, *GetDiskObjectRequest, ...dcerpc.CallOption) (*GetDiskObjectResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error

	// IPID sets the object interface identifier.
	IPID(context.Context, *dcom.IPID) ServiceSwClient
}

IVdsServiceSw interface.

func NewServiceSwClient

func NewServiceSwClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ServiceSwClient, error)

type ServiceSwServer

type ServiceSwServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The GetDiskObject method<75> returns the disk for the given PnP Device ID string.
	//
	// Return Values: The method MUST return zero or a non-error HRESULT, as specified in
	// [MS-ERREF], to indicate success or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	GetDiskObject(context.Context, *GetDiskObjectRequest) (*GetDiskObjectResponse, error)
}

IVdsServiceSw server interface.

Jump to

Keyboard shortcuts

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