winsi2

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	Winsi2SyntaxUUID = &uuid.UUID{TimeLow: 0x811109bf, TimeMid: 0xa4e1, TimeHiAndVersion: 0x11d1, ClockSeqHiAndReserved: 0xab, ClockSeqLow: 0x54, Node: [6]uint8{0x0, 0xa0, 0xc9, 0x1e, 0x9b, 0x45}}
	// Syntax ID
	Winsi2SyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: Winsi2SyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "raiw"
)

Functions

func NewWinsi2ServerHandle

func NewWinsi2ServerHandle(o Winsi2Server) dcerpc.ServerHandle

func RegisterWinsi2Server

func RegisterWinsi2Server(conn dcerpc.Conn, o Winsi2Server, opts ...dcerpc.Option)

func Winsi2ServerHandle

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

Types

type CheckAccessRequest

type CheckAccessRequest struct {
}

CheckAccessRequest structure represents the R_WinsCheckAccess operation request

func (*CheckAccessRequest) MarshalNDR

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

func (*CheckAccessRequest) UnmarshalNDR

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

type CheckAccessResponse

type CheckAccessResponse struct {
	// Access: Pointer to the access level value. This value MUST not be NULL. The following
	// values are possible as output.
	//
	//	+----------------------+-------+
	//	|                      |       |
	//	|         NAME         | VALUE |
	//	|                      |       |
	//	+----------------------+-------+
	//	+----------------------+-------+
	//	| No access            |     0 |
	//	+----------------------+-------+
	//	| Control level access |     1 |
	//	+----------------------+-------+
	//	| Query level access   |     2 |
	//	+----------------------+-------+
	Access uint32 `idl:"name:Access" json:"access"`
	// Return: The R_WinsCheckAccess return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

CheckAccessResponse structure represents the R_WinsCheckAccess operation response

func (*CheckAccessResponse) MarshalNDR

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

func (*CheckAccessResponse) UnmarshalNDR

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

type TombstoneDBRecordsRequest

type TombstoneDBRecordsRequest struct {
	WINSAddr *raiw.Addr `idl:"name:pWinsAddr;pointer:ref" json:"wins_addr"`
	// MinVersNo: The lower bound on the range of version numbers that identifies the range
	// of records to be tombstoned.
	MinVersNo *raiw.VersNo `idl:"name:MinVersNo" json:"min_vers_no"`
	// MaxVersNo: The upper bound on the range of version numbers that identifies the range
	// of records to be tombstoned.
	MaxVersNo *raiw.VersNo `idl:"name:MaxVersNo" json:"max_vers_no"`
}

TombstoneDBRecordsRequest structure represents the R_WinsTombstoneDbRecs operation request

func (*TombstoneDBRecordsRequest) MarshalNDR

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

func (*TombstoneDBRecordsRequest) UnmarshalNDR

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

type TombstoneDBRecordsResponse

type TombstoneDBRecordsResponse struct {
	// Return: The R_WinsTombstoneDbRecs return value.
	Return uint32 `idl:"name:Return" json:"return"`
}

TombstoneDBRecordsResponse structure represents the R_WinsTombstoneDbRecs operation response

func (*TombstoneDBRecordsResponse) MarshalNDR

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

func (*TombstoneDBRecordsResponse) UnmarshalNDR

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

type Winsi2Client

type Winsi2Client interface {

	// The R_WinsTombstoneDbRecs method tombstones records whose version numbers fall within
	// a range of version numbers and are owned by a server with a specified address.
	//
	// Return Values: A 32 bit unsigned integer value that indicates the return status.
	// A return value of ERROR_SUCCESS (0x00000000) indicates that the operation completed
	// successfully. Any other return value is a Win32 error code as specified in [MS-ERREF].
	// The following Win32 error codes can be returned:
	//
	//	+--------------------------------+--------------------------------------------------+
	//	|             RETURN             |                                                  |
	//	|           VALUE/CODE           |                   DESCRIPTION                    |
	//	|                                |                                                  |
	//	+--------------------------------+--------------------------------------------------+
	//	+--------------------------------+--------------------------------------------------+
	//	| 0x00000000 ERROR_SUCCESS       | The call was successful.                         |
	//	+--------------------------------+--------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED | The caller does not have sufficient permissions. |
	//	+--------------------------------+--------------------------------------------------+
	//	| 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. |
	//	+--------------------------------+--------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	TombstoneDBRecords(context.Context, *TombstoneDBRecordsRequest, ...dcerpc.CallOption) (*TombstoneDBRecordsResponse, error)

	// The R_ WinsCheckAccess method retrieves the level of access the client is granted.<12>
	//
	// Return Values: A 32-bit unsigned integer value that indicates the return status.
	// A return value of ERROR_SUCCESS (0x00000000) indicates that the operation completed
	// successfully. Any other return value is a Win32 error code as specified in [MS-ERREF].
	// The following Win32 error codes can be returned:
	//
	//	+--------------------------+--------------------------+
	//	|          RETURN          |                          |
	//	|        VALUE/CODE        |       DESCRIPTION        |
	//	|                          |                          |
	//	+--------------------------+--------------------------+
	//	+--------------------------+--------------------------+
	//	| 0x00000000 ERROR_SUCCESS | The call was successful. |
	//	+--------------------------+--------------------------+
	//
	// Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	CheckAccess(context.Context, *CheckAccessRequest, ...dcerpc.CallOption) (*CheckAccessResponse, error)

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

winsi2 interface.

func NewWinsi2Client

func NewWinsi2Client(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (Winsi2Client, error)

type Winsi2Server

type Winsi2Server interface {

	// The R_WinsTombstoneDbRecs method tombstones records whose version numbers fall within
	// a range of version numbers and are owned by a server with a specified address.
	//
	// Return Values: A 32 bit unsigned integer value that indicates the return status.
	// A return value of ERROR_SUCCESS (0x00000000) indicates that the operation completed
	// successfully. Any other return value is a Win32 error code as specified in [MS-ERREF].
	// The following Win32 error codes can be returned:
	//
	//	+--------------------------------+--------------------------------------------------+
	//	|             RETURN             |                                                  |
	//	|           VALUE/CODE           |                   DESCRIPTION                    |
	//	|                                |                                                  |
	//	+--------------------------------+--------------------------------------------------+
	//	+--------------------------------+--------------------------------------------------+
	//	| 0x00000000 ERROR_SUCCESS       | The call was successful.                         |
	//	+--------------------------------+--------------------------------------------------+
	//	| 0x00000005 ERROR_ACCESS_DENIED | The caller does not have sufficient permissions. |
	//	+--------------------------------+--------------------------------------------------+
	//	| 0x00000FA0 ERROR_WINS_INTERNAL | An error occurred while processing the RPC call. |
	//	+--------------------------------+--------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	TombstoneDBRecords(context.Context, *TombstoneDBRecordsRequest) (*TombstoneDBRecordsResponse, error)

	// The R_ WinsCheckAccess method retrieves the level of access the client is granted.<12>
	//
	// Return Values: A 32-bit unsigned integer value that indicates the return status.
	// A return value of ERROR_SUCCESS (0x00000000) indicates that the operation completed
	// successfully. Any other return value is a Win32 error code as specified in [MS-ERREF].
	// The following Win32 error codes can be returned:
	//
	//	+--------------------------+--------------------------+
	//	|          RETURN          |                          |
	//	|        VALUE/CODE        |       DESCRIPTION        |
	//	|                          |                          |
	//	+--------------------------+--------------------------+
	//	+--------------------------+--------------------------+
	//	| 0x00000000 ERROR_SUCCESS | The call was successful. |
	//	+--------------------------+--------------------------+
	//
	// Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	CheckAccess(context.Context, *CheckAccessRequest) (*CheckAccessResponse, error)
}

winsi2 server interface.

Jump to

Keyboard shortcuts

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