ifsrmpathmapper

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IFsrmPathMapper interface identifier 6f4dbfff-6920-4821-a6c3-b7e94c1fd60c
	PathMapperIID = &dcom.IID{Data1: 0x6f4dbfff, Data2: 0x6920, Data3: 0x4821, Data4: []byte{0xa6, 0xc3, 0xb7, 0xe9, 0x4c, 0x1f, 0xd6, 0x0c}}
	// Syntax UUID
	PathMapperSyntaxUUID = &uuid.UUID{TimeLow: 0x6f4dbfff, TimeMid: 0x6920, TimeHiAndVersion: 0x4821, ClockSeqHiAndReserved: 0xa6, ClockSeqLow: 0xc3, Node: [6]uint8{0xb7, 0xe9, 0x4c, 0x1f, 0xd6, 0xc}}
	// Syntax ID
	PathMapperSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: PathMapperSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/fsrm"
)

Functions

func NewPathMapperServerHandle

func NewPathMapperServerHandle(o PathMapperServer) dcerpc.ServerHandle

func PathMapperServerHandle

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

func RegisterPathMapperServer

func RegisterPathMapperServer(conn dcerpc.Conn, o PathMapperServer, opts ...dcerpc.Option)

Types

type GetSharePathsForLocalPathRequest

type GetSharePathsForLocalPathRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// localPath: Contains the local path for which to return network shares for.
	LocalPath *oaut.String `idl:"name:localPath" json:"local_path"`
}

GetSharePathsForLocalPathRequest structure represents the GetSharePathsForLocalPath operation request

func (*GetSharePathsForLocalPathRequest) MarshalNDR

func (*GetSharePathsForLocalPathRequest) UnmarshalNDR

type GetSharePathsForLocalPathResponse

type GetSharePathsForLocalPathResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// sharePaths: Pointer to a SAFEARRAY that upon completion contains all the network
	// share paths that point to the specified path.
	SharePaths *oaut.SafeArray `idl:"name:sharePaths" json:"share_paths"`
	// Return: The GetSharePathsForLocalPath return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetSharePathsForLocalPathResponse structure represents the GetSharePathsForLocalPath operation response

func (*GetSharePathsForLocalPathResponse) MarshalNDR

func (*GetSharePathsForLocalPathResponse) UnmarshalNDR

type PathMapperClient

type PathMapperClient interface {

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

	// The GetSharePathsForLocalPath method returns all the network share paths that point
	// to the specified local path.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	|             RETURN             |                                                                                  |
	//	|           VALUE/CODE           |                                   DESCRIPTION                                    |
	//	|                                |                                                                                  |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045306 FSRM_E_INVALID_PATH | The local path to return network shares does not exist or exceeds the maximum    |
	//	|                                | length of 260 characters.                                                        |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG        | This code is returned for the following reasons: The localPath parameter is      |
	//	|                                | empty or NULL. The sharePaths parameter is NULL.                                 |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	GetSharePathsForLocalPath(context.Context, *GetSharePathsForLocalPathRequest, ...dcerpc.CallOption) (*GetSharePathsForLocalPathResponse, error)

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

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

IFsrmPathMapper interface.

func NewPathMapperClient

func NewPathMapperClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (PathMapperClient, error)

type PathMapperServer

type PathMapperServer interface {

	// IDispatch base class.
	idispatch.DispatchServer

	// The GetSharePathsForLocalPath method returns all the network share paths that point
	// to the specified local path.
	//
	// Return Values: The method MUST return zero on success, or a nonzero error code on
	// failure.
	//
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	|             RETURN             |                                                                                  |
	//	|           VALUE/CODE           |                                   DESCRIPTION                                    |
	//	|                                |                                                                                  |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80045306 FSRM_E_INVALID_PATH | The local path to return network shares does not exist or exceeds the maximum    |
	//	|                                | length of 260 characters.                                                        |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG        | This code is returned for the following reasons: The localPath parameter is      |
	//	|                                | empty or NULL. The sharePaths parameter is NULL.                                 |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	GetSharePathsForLocalPath(context.Context, *GetSharePathsForLocalPathRequest) (*GetSharePathsForLocalPathResponse, error)
}

IFsrmPathMapper server interface.

Jump to

Keyboard shortcuts

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