Documentation ¶
Index ¶
- Variables
- func NewWinsi2ServerHandle(o Winsi2Server) dcerpc.ServerHandle
- func RegisterWinsi2Server(conn dcerpc.Conn, o Winsi2Server, opts ...dcerpc.Option)
- func Winsi2ServerHandle(ctx context.Context, o Winsi2Server, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- type CheckAccessRequest
- type CheckAccessResponse
- type TombstoneDBRecordsRequest
- type TombstoneDBRecordsResponse
- type Winsi2Client
- type Winsi2Server
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)
Types ¶
type CheckAccessRequest ¶
type CheckAccessRequest struct { }
CheckAccessRequest structure represents the R_WinsCheckAccess operation request
func (*CheckAccessRequest) MarshalNDR ¶
func (*CheckAccessRequest) UnmarshalNDR ¶
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 (*CheckAccessResponse) UnmarshalNDR ¶
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 (*TombstoneDBRecordsRequest) UnmarshalNDR ¶
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 (*TombstoneDBRecordsResponse) UnmarshalNDR ¶
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 // Conn returns the client connection (unsafe) Conn() dcerpc.Conn }
winsi2 interface.
func NewWinsi2Client ¶
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.
Click to show internal directories.
Click to hide internal directories.