ivdsservice

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IVdsService interface identifier 0818a8ef-9ba9-40d8-a6f9-e22833cc771e
	ServiceIID = &dcom.IID{Data1: 0x0818a8ef, Data2: 0x9ba9, Data3: 0x40d8, Data4: []byte{0xa6, 0xf9, 0xe2, 0x28, 0x33, 0xcc, 0x77, 0x1e}}
	// Syntax UUID
	ServiceSyntaxUUID = &uuid.UUID{TimeLow: 0x818a8ef, TimeMid: 0x9ba9, TimeHiAndVersion: 0x40d8, ClockSeqHiAndReserved: 0xa6, ClockSeqLow: 0xf9, Node: [6]uint8{0xe2, 0x28, 0x33, 0xcc, 0x77, 0x1e}}
	// Syntax ID
	ServiceSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ServiceSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func NewServiceServerHandle

func NewServiceServerHandle(o ServiceServer) dcerpc.ServerHandle

func RegisterServiceServer

func RegisterServiceServer(conn dcerpc.Conn, o ServiceServer, opts ...dcerpc.Option)

func ServiceServerHandle

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

Types

type AdviseRequest

type AdviseRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pSink: A pointer to an IVdsAdviseSink interface of the callback object to register
	// with the server for notification of object changes.
	Sink *vds.AdviseSink `idl:"name:pSink" json:"sink"`
}

AdviseRequest structure represents the Advise operation request

func (*AdviseRequest) MarshalNDR

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

func (*AdviseRequest) UnmarshalNDR

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

type AdviseResponse

type AdviseResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pdwCookie: A pointer to a variable that, if the operation is successfully completed,
	// receives a unique cookie value that the client can later use to unregister the callback
	// object from receiving notification changes from the service. For information about
	// how to register callback objects, see section 3.3.1.1.
	Cookie uint32 `idl:"name:pdwCookie" json:"cookie"`
	// Return: The Advise return value.
	Return int32 `idl:"name:Return" json:"return"`
}

AdviseResponse structure represents the Advise operation response

func (*AdviseResponse) MarshalNDR

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

func (*AdviseResponse) UnmarshalNDR

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

type CleanupObsoleteMountPointsRequest

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

CleanupObsoleteMountPointsRequest structure represents the CleanupObsoleteMountPoints operation request

func (*CleanupObsoleteMountPointsRequest) MarshalNDR

func (*CleanupObsoleteMountPointsRequest) UnmarshalNDR

type CleanupObsoleteMountPointsResponse

type CleanupObsoleteMountPointsResponse 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 CleanupObsoleteMountPoints return value.
	Return int32 `idl:"name:Return" json:"return"`
}

CleanupObsoleteMountPointsResponse structure represents the CleanupObsoleteMountPoints operation response

func (*CleanupObsoleteMountPointsResponse) MarshalNDR

func (*CleanupObsoleteMountPointsResponse) UnmarshalNDR

type ClearFlagsRequest

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

ClearFlagsRequest structure represents the ClearFlags operation request

func (*ClearFlagsRequest) MarshalNDR

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

func (*ClearFlagsRequest) UnmarshalNDR

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

type ClearFlagsResponse

type ClearFlagsResponse 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 ClearFlags return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ClearFlagsResponse structure represents the ClearFlags operation response

func (*ClearFlagsResponse) MarshalNDR

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

func (*ClearFlagsResponse) UnmarshalNDR

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

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"`
	// ObjectId: The GUID of the desired object.
	ObjectID *vds.ObjectID `idl:"name:ObjectId" json:"object_id"`
	// type: The object type that VDS_OBJECT_TYPE enumerates. All object types are valid
	// except VDS_OT_UNKNOWN, VDS_OT_PROVIDER, VDS_OT_ASYNC, and VDS_OT_ENUM.
	Type vds.ObjectType `idl:"name:type" json:"type"`
}

GetObjectRequest structure represents the GetObject operation request

func (*GetObjectRequest) MarshalNDR

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

func (*GetObjectRequest) UnmarshalNDR

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

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"`
	// ppObjectUnk: A pointer to an IUnknown interface that, if the operation is successfully
	// completed, receives an IUnknown interface of the object. Callers MUST release the
	// interface that is received when they are done with it.
	ObjectUnknown *dcom.Unknown `idl:"name:ppObjectUnk" json:"object_unknown"`
	// Return: The GetObject return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetObjectResponse structure represents the GetObject operation response

func (*GetObjectResponse) MarshalNDR

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

func (*GetObjectResponse) UnmarshalNDR

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

type GetPropertiesRequest

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

GetPropertiesRequest structure represents the GetProperties operation request

func (*GetPropertiesRequest) MarshalNDR

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

func (*GetPropertiesRequest) UnmarshalNDR

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

type GetPropertiesResponse

type GetPropertiesResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That            *dcom.ORPCThat       `idl:"name:That" json:"that"`
	ServiceProperty *vds.ServiceProperty `idl:"name:pServiceProp" json:"service_property"`
	// Return: The GetProperties return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetPropertiesResponse structure represents the GetProperties operation response

func (*GetPropertiesResponse) MarshalNDR

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

func (*GetPropertiesResponse) UnmarshalNDR

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

type IsServiceReadyRequest

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

IsServiceReadyRequest structure represents the IsServiceReady operation request

func (*IsServiceReadyRequest) MarshalNDR

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

func (*IsServiceReadyRequest) UnmarshalNDR

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

type IsServiceReadyResponse

type IsServiceReadyResponse 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 IsServiceReady return value.
	Return int32 `idl:"name:Return" json:"return"`
}

IsServiceReadyResponse structure represents the IsServiceReady operation response

func (*IsServiceReadyResponse) MarshalNDR

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

func (*IsServiceReadyResponse) UnmarshalNDR

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

type QueryDriveLettersRequest

type QueryDriveLettersRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// wcFirstLetter: The first drive letter to query as a single uppercase or lowercase
	// alphabetical (A-Z) Unicode character.
	FirstLetter uint16 `idl:"name:wcFirstLetter" json:"first_letter"`
	// count: The total number of drive letters to retrieve, beginning with the letter that
	// wcFirstLetter specifies. This MUST also be the number of elements in the pDriveLetterPropArray.
	// It MUST NOT exceed the total number of drive letters between the letter in wcFirstLetter
	// and the last possible drive letter (Z), inclusive.
	Count uint32 `idl:"name:count" json:"count"`
}

QueryDriveLettersRequest structure represents the QueryDriveLetters operation request

func (*QueryDriveLettersRequest) MarshalNDR

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

func (*QueryDriveLettersRequest) UnmarshalNDR

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

type QueryDriveLettersResponse

type QueryDriveLettersResponse struct {
	// XXX: count is an implicit input depedency for output parameters
	Count uint32 `idl:"name:count" json:"count"`

	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pDriveLetterPropArray: An array of VDS_DRIVE_LETTER_PROP structures that, if the
	// operation is successfully completed, receives the array of drive letter properties.
	DriveLetterPropertyArray []*vds.DriveLetterProperty `idl:"name:pDriveLetterPropArray;size_is:(count)" json:"drive_letter_property_array"`
	// Return: The QueryDriveLetters return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryDriveLettersResponse structure represents the QueryDriveLetters operation response

func (*QueryDriveLettersResponse) MarshalNDR

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

func (*QueryDriveLettersResponse) UnmarshalNDR

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

type QueryFileSystemTypesRequest

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

QueryFileSystemTypesRequest structure represents the QueryFileSystemTypes operation request

func (*QueryFileSystemTypesRequest) MarshalNDR

func (*QueryFileSystemTypesRequest) UnmarshalNDR

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

type QueryFileSystemTypesResponse

type QueryFileSystemTypesResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppFileSystemTypeProps: A pointer to an array of VDS_FILE_SYSTEM_TYPE_PROP structures
	// that, if the operation is successfully completed, receives the array of file system
	// type properties.
	FileSystemTypeProperties []*vds.FileSystemTypeProperty `idl:"name:ppFileSystemTypeProps;size_is:(, plNumberOfFileSystems)" json:"file_system_type_properties"`
	// plNumberOfFileSystems: A pointer to a variable that, if the operation is successfully
	// completed, receives the total number of elements returned in ppFileSystemTypeProps.
	NumberOfFileSystems int32 `idl:"name:plNumberOfFileSystems" json:"number_of_file_systems"`
	// Return: The QueryFileSystemTypes return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryFileSystemTypesResponse structure represents the QueryFileSystemTypes operation response

func (*QueryFileSystemTypesResponse) MarshalNDR

func (*QueryFileSystemTypesResponse) UnmarshalNDR

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

type QueryProvidersRequest

type QueryProvidersRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// masks: The combination of any values, by using a bitwise OR operator, that the VDS_QUERY_PROVIDER_FLAG
	// enumeration defines. The values that are set in the mask specify the types of providers
	// to return.
	Masks uint32 `idl:"name:masks" json:"masks"`
}

QueryProvidersRequest structure represents the QueryProviders operation request

func (*QueryProvidersRequest) MarshalNDR

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

func (*QueryProvidersRequest) UnmarshalNDR

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

type QueryProvidersResponse

type QueryProvidersResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppEnum: A pointer to an IEnumVdsObject interface that, if successfully completed,
	// receives the IEnumVdsObject interface of the object that contains an enumeration
	// of provider objects on the server. Callers MUST release the interface that is received
	// when they are done with it.
	Enum *vds.EnumObject `idl:"name:ppEnum" json:"enum"`
	// Return: The QueryProviders return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryProvidersResponse structure represents the QueryProviders operation response

func (*QueryProvidersResponse) MarshalNDR

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

func (*QueryProvidersResponse) UnmarshalNDR

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

type QueryUnallocatedDisksRequest

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

QueryUnallocatedDisksRequest structure represents the QueryUnallocatedDisks operation request

func (*QueryUnallocatedDisksRequest) MarshalNDR

func (*QueryUnallocatedDisksRequest) UnmarshalNDR

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

type QueryUnallocatedDisksResponse

type QueryUnallocatedDisksResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppEnum: A pointer to an IEnumVdsObject interface that, if the operation is successfully
	// completed, receives the IEnumVdsObject interface of the object that contains an enumeration
	// of disk objects that correspond to unallocated disks on the server. Callers MUST
	// release the interface that is received when they are done with it.
	Enum *vds.EnumObject `idl:"name:ppEnum" json:"enum"`
	// Return: The QueryUnallocatedDisks return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryUnallocatedDisksResponse structure represents the QueryUnallocatedDisks operation response

func (*QueryUnallocatedDisksResponse) MarshalNDR

func (*QueryUnallocatedDisksResponse) UnmarshalNDR

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

type RebootRequest

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

RebootRequest structure represents the Reboot operation request

func (*RebootRequest) MarshalNDR

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

func (*RebootRequest) UnmarshalNDR

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

type RebootResponse

type RebootResponse 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 Reboot return value.
	Return int32 `idl:"name:Return" json:"return"`
}

RebootResponse structure represents the Reboot operation response

func (*RebootResponse) MarshalNDR

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

func (*RebootResponse) UnmarshalNDR

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

type ReenumerateRequest

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

ReenumerateRequest structure represents the Reenumerate operation request

func (*ReenumerateRequest) MarshalNDR

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

func (*ReenumerateRequest) UnmarshalNDR

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

type ReenumerateResponse

type ReenumerateResponse 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 Reenumerate return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ReenumerateResponse structure represents the Reenumerate operation response

func (*ReenumerateResponse) MarshalNDR

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

func (*ReenumerateResponse) UnmarshalNDR

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

type RefreshRequest

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

RefreshRequest structure represents the Refresh operation request

func (*RefreshRequest) MarshalNDR

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

func (*RefreshRequest) UnmarshalNDR

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

type RefreshResponse

type RefreshResponse 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 Refresh return value.
	Return int32 `idl:"name:Return" json:"return"`
}

RefreshResponse structure represents the Refresh operation response

func (*RefreshResponse) MarshalNDR

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

func (*RefreshResponse) UnmarshalNDR

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

type ServiceClient

type ServiceClient interface {

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

	// The IsServiceReady method determines whether a service is finished initializing.
	// Until the service initialization completes, an application SHOULD NOT call any method
	// other than GetProperties.<71>
	//
	// This method has no parameters.
	//
	// 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.
	IsServiceReady(context.Context, *IsServiceReadyRequest, ...dcerpc.CallOption) (*IsServiceReadyResponse, error)

	// The WaitForServiceReady method waits for VDS initialization to complete and returns
	// the status of the VDS initialization in the HRESULT.
	//
	// This method has no parameters.
	//
	// Return Values: The method MUST return zero to indicate success or the error code
	// VDS_E_INITIALIZED_FAILED if the service-ready state is "failed".
	WaitForServiceReady(context.Context, *WaitForServiceReadyRequest, ...dcerpc.CallOption) (*WaitForServiceReadyResponse, error)

	// GetProperties operation.
	GetProperties(context.Context, *GetPropertiesRequest, ...dcerpc.CallOption) (*GetPropertiesResponse, error)

	// The QueryProviders method enumerates the providers of the server.
	//
	// 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.
	QueryProviders(context.Context, *QueryProvidersRequest, ...dcerpc.CallOption) (*QueryProvidersResponse, error)

	// The QueryUnallocatedDisks method enumerates the unallocated disks on the server.
	//
	// 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.
	QueryUnallocatedDisks(context.Context, *QueryUnallocatedDisksRequest, ...dcerpc.CallOption) (*QueryUnallocatedDisksResponse, error)

	// The GetObject method retrieves an IUnknown pointer to a specified object.
	//
	// 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.
	GetObject(context.Context, *GetObjectRequest, ...dcerpc.CallOption) (*GetObjectResponse, error)

	// The QueryDriveLetters method enumerates the drive letters of the server.
	//
	// 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.
	QueryDriveLetters(context.Context, *QueryDriveLettersRequest, ...dcerpc.CallOption) (*QueryDriveLettersResponse, error)

	// The QueryFileSystemTypes method returns property details for all file systems that
	// are known to VDS.
	//
	// 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.
	QueryFileSystemTypes(context.Context, *QueryFileSystemTypesRequest, ...dcerpc.CallOption) (*QueryFileSystemTypesResponse, error)

	// The Reenumerate method discovers newly added and newly removed disks and returns
	// the status of the operation in the HRESULT.
	//
	// This method has no parameters.
	//
	// 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.
	Reenumerate(context.Context, *ReenumerateRequest, ...dcerpc.CallOption) (*ReenumerateResponse, error)

	// The Refresh method refreshes the ownership and layout of disks on the server.
	//
	// This method has no parameters.
	//
	// 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.
	Refresh(context.Context, *RefreshRequest, ...dcerpc.CallOption) (*RefreshResponse, error)

	// The CleanupObsoleteMountPoints method removes any mount points that point to volumes
	// that no longer exist.
	//
	// This method has no parameters.
	//
	// 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.
	CleanupObsoleteMountPoints(context.Context, *CleanupObsoleteMountPointsRequest, ...dcerpc.CallOption) (*CleanupObsoleteMountPointsResponse, error)

	// The Advise method registers a notification callback with the server. Clients pass
	// the callback object to the server to receive notifications.
	//
	// 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.
	Advise(context.Context, *AdviseRequest, ...dcerpc.CallOption) (*AdviseResponse, error)

	// The Unadvise method unregisters a client from being notified by the server of changes
	// to storage objects.
	//
	// 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.
	Unadvise(context.Context, *UnadviseRequest, ...dcerpc.CallOption) (*UnadviseResponse, error)

	// The Reboot method restarts the computer on which the server is running.<73>
	//
	// This method has no parameters.
	//
	// 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.
	Reboot(context.Context, *RebootRequest, ...dcerpc.CallOption) (*RebootResponse, error)

	// SetFlags operation.
	SetFlags(context.Context, *SetFlagsRequest, ...dcerpc.CallOption) (*SetFlagsResponse, error)

	// ClearFlags operation.
	ClearFlags(context.Context, *ClearFlagsRequest, ...dcerpc.CallOption) (*ClearFlagsResponse, 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) ServiceClient
}

IVdsService interface.

func NewServiceClient

func NewServiceClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ServiceClient, error)

type ServiceServer

type ServiceServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The IsServiceReady method determines whether a service is finished initializing.
	// Until the service initialization completes, an application SHOULD NOT call any method
	// other than GetProperties.<71>
	//
	// This method has no parameters.
	//
	// 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.
	IsServiceReady(context.Context, *IsServiceReadyRequest) (*IsServiceReadyResponse, error)

	// The WaitForServiceReady method waits for VDS initialization to complete and returns
	// the status of the VDS initialization in the HRESULT.
	//
	// This method has no parameters.
	//
	// Return Values: The method MUST return zero to indicate success or the error code
	// VDS_E_INITIALIZED_FAILED if the service-ready state is "failed".
	WaitForServiceReady(context.Context, *WaitForServiceReadyRequest) (*WaitForServiceReadyResponse, error)

	// GetProperties operation.
	GetProperties(context.Context, *GetPropertiesRequest) (*GetPropertiesResponse, error)

	// The QueryProviders method enumerates the providers of the server.
	//
	// 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.
	QueryProviders(context.Context, *QueryProvidersRequest) (*QueryProvidersResponse, error)

	// The QueryUnallocatedDisks method enumerates the unallocated disks on the server.
	//
	// 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.
	QueryUnallocatedDisks(context.Context, *QueryUnallocatedDisksRequest) (*QueryUnallocatedDisksResponse, error)

	// The GetObject method retrieves an IUnknown pointer to a specified object.
	//
	// 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.
	GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)

	// The QueryDriveLetters method enumerates the drive letters of the server.
	//
	// 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.
	QueryDriveLetters(context.Context, *QueryDriveLettersRequest) (*QueryDriveLettersResponse, error)

	// The QueryFileSystemTypes method returns property details for all file systems that
	// are known to VDS.
	//
	// 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.
	QueryFileSystemTypes(context.Context, *QueryFileSystemTypesRequest) (*QueryFileSystemTypesResponse, error)

	// The Reenumerate method discovers newly added and newly removed disks and returns
	// the status of the operation in the HRESULT.
	//
	// This method has no parameters.
	//
	// 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.
	Reenumerate(context.Context, *ReenumerateRequest) (*ReenumerateResponse, error)

	// The Refresh method refreshes the ownership and layout of disks on the server.
	//
	// This method has no parameters.
	//
	// 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.
	Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error)

	// The CleanupObsoleteMountPoints method removes any mount points that point to volumes
	// that no longer exist.
	//
	// This method has no parameters.
	//
	// 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.
	CleanupObsoleteMountPoints(context.Context, *CleanupObsoleteMountPointsRequest) (*CleanupObsoleteMountPointsResponse, error)

	// The Advise method registers a notification callback with the server. Clients pass
	// the callback object to the server to receive notifications.
	//
	// 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.
	Advise(context.Context, *AdviseRequest) (*AdviseResponse, error)

	// The Unadvise method unregisters a client from being notified by the server of changes
	// to storage objects.
	//
	// 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.
	Unadvise(context.Context, *UnadviseRequest) (*UnadviseResponse, error)

	// The Reboot method restarts the computer on which the server is running.<73>
	//
	// This method has no parameters.
	//
	// 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.
	Reboot(context.Context, *RebootRequest) (*RebootResponse, error)

	// SetFlags operation.
	SetFlags(context.Context, *SetFlagsRequest) (*SetFlagsResponse, error)

	// ClearFlags operation.
	ClearFlags(context.Context, *ClearFlagsRequest) (*ClearFlagsResponse, error)
}

IVdsService server interface.

type SetFlagsRequest

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

SetFlagsRequest structure represents the SetFlags operation request

func (*SetFlagsRequest) MarshalNDR

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

func (*SetFlagsRequest) UnmarshalNDR

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

type SetFlagsResponse

type SetFlagsResponse 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 SetFlags return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetFlagsResponse structure represents the SetFlags operation response

func (*SetFlagsResponse) MarshalNDR

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

func (*SetFlagsResponse) UnmarshalNDR

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

type UnadviseRequest

type UnadviseRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// dwCookie: The cookie value generated when the IVdsAdviseSink interface was registered.
	Cookie uint32 `idl:"name:dwCookie" json:"cookie"`
}

UnadviseRequest structure represents the Unadvise operation request

func (*UnadviseRequest) MarshalNDR

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

func (*UnadviseRequest) UnmarshalNDR

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

type UnadviseResponse

type UnadviseResponse 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 Unadvise return value.
	Return int32 `idl:"name:Return" json:"return"`
}

UnadviseResponse structure represents the Unadvise operation response

func (*UnadviseResponse) MarshalNDR

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

func (*UnadviseResponse) UnmarshalNDR

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

type UnimplementedServiceServer added in v1.1.5

type UnimplementedServiceServer struct {
	iunknown.UnimplementedUnknownServer
}

Unimplemented IVdsService

func (UnimplementedServiceServer) Advise added in v1.1.5

func (UnimplementedServiceServer) CleanupObsoleteMountPoints added in v1.1.5

func (UnimplementedServiceServer) ClearFlags added in v1.1.5

func (UnimplementedServiceServer) GetObject added in v1.1.5

func (UnimplementedServiceServer) GetProperties added in v1.1.5

func (UnimplementedServiceServer) IsServiceReady added in v1.1.5

func (UnimplementedServiceServer) QueryDriveLetters added in v1.1.5

func (UnimplementedServiceServer) QueryFileSystemTypes added in v1.1.5

func (UnimplementedServiceServer) QueryProviders added in v1.1.5

func (UnimplementedServiceServer) QueryUnallocatedDisks added in v1.1.5

func (UnimplementedServiceServer) Reboot added in v1.1.5

func (UnimplementedServiceServer) Reenumerate added in v1.1.5

func (UnimplementedServiceServer) Refresh added in v1.1.5

func (UnimplementedServiceServer) SetFlags added in v1.1.5

func (UnimplementedServiceServer) Unadvise added in v1.1.5

func (UnimplementedServiceServer) WaitForServiceReady added in v1.1.5

type WaitForServiceReadyRequest

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

WaitForServiceReadyRequest structure represents the WaitForServiceReady operation request

func (*WaitForServiceReadyRequest) MarshalNDR

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

func (*WaitForServiceReadyRequest) UnmarshalNDR

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

type WaitForServiceReadyResponse

type WaitForServiceReadyResponse 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 WaitForServiceReady return value.
	Return int32 `idl:"name:Return" json:"return"`
}

WaitForServiceReadyResponse structure represents the WaitForServiceReady operation response

func (*WaitForServiceReadyResponse) MarshalNDR

func (*WaitForServiceReadyResponse) UnmarshalNDR

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

Jump to

Keyboard shortcuts

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