Documentation ¶
Index ¶
- Variables
- func EnumVariantServerHandle(ctx context.Context, o EnumVariantServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewEnumVariantServerHandle(o EnumVariantServer) dcerpc.ServerHandle
- func RegisterEnumVariantServer(conn dcerpc.Conn, o EnumVariantServer, opts ...dcerpc.Option)
- type CloneRequest
- type CloneResponse
- type EnumVariantClient
- type EnumVariantServer
- type NextRequest
- type NextResponse
- type ResetRequest
- type ResetResponse
- type SkipRequest
- type SkipResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IEnumVARIANT interface identifier 00020404-0000-0000-c000-000000000046 EnumVariantIID = &dcom.IID{Data1: 0x00020404, Data2: 0x0000, Data3: 0x0000, Data4: []byte{0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}} // Syntax UUID EnumVariantSyntaxUUID = &uuid.UUID{TimeLow: 0x20404, TimeMid: 0x0, TimeHiAndVersion: 0x0, ClockSeqHiAndReserved: 0xc0, ClockSeqLow: 0x0, Node: [6]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x46}} // Syntax ID EnumVariantSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: EnumVariantSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
View Source
var (
// import guard
GoPackage = "dcom/oaut"
)
Functions ¶
func EnumVariantServerHandle ¶
func NewEnumVariantServerHandle ¶
func NewEnumVariantServerHandle(o EnumVariantServer) dcerpc.ServerHandle
func RegisterEnumVariantServer ¶
func RegisterEnumVariantServer(conn dcerpc.Conn, o EnumVariantServer, opts ...dcerpc.Option)
Types ¶
type CloneRequest ¶
type CloneRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
CloneRequest structure represents the Clone operation request
func (*CloneRequest) MarshalNDR ¶
func (*CloneRequest) UnmarshalNDR ¶
type CloneResponse ¶
type CloneResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // ppEnum: MUST be set to an instance of the enumeration. Enum *oaut.EnumVariant `idl:"name:ppEnum" json:"enum"` // Return: The Clone return value. Return int32 `idl:"name:Return" json:"return"` }
CloneResponse structure represents the Clone operation response
func (*CloneResponse) MarshalNDR ¶
func (*CloneResponse) UnmarshalNDR ¶
type EnumVariantClient ¶
type EnumVariantClient interface { // IUnknown retrieval method. Unknown() iunknown.UnknownClient // The IEnumVARIANT::Next method returns up to the number of requested items that occur // next in the enumeration sequence. // // Return Values: The method MUST return the information in an HRESULT data structure, // which is defined in [MS-ERREF] section 2.1. The severity bit in the structure identifies // the following conditions: // // * If the severity bit is set to 0, the method completed successfully. // // * If the severity bit is set to 1, the method failed and encountered a fatal error. // // A static or semistatic IEnumVARIANT server MUST retrieve the next celt elements from // the sequence and fill in rgVar up to the celt elements or up to the remaining number // of elements that are not yet enumerated. // // A dynamic server MUST use its server-specific state to retrieve the next elements. // // In all cases, the server MUST: // // * Set pCeltFetched with the number retrieved. // // * Update the current position in the sequence. // // * Return a status of 1 (S_FALSE) if pCeltFetched is not equal to celt. Next(context.Context, *NextRequest, ...dcerpc.CallOption) (*NextResponse, error) // The IEnumVARIANT::Skip method skips over the requested number of elements in the // enumeration sequence. // // Return Values: The method MUST return information in an HRESULT data structure, defined // in [MS-ERREF] section 2.1. The severity bit in the structure identifies the following // conditions: // // * If the severity bit is set to 0, the method completed successfully. // // * If the severity bit is set to 1, the method failed and encountered a fatal error. // // A static or semi-static IEnumVARIANT server MUST update the current position in the // sequence by either celt elements, or the number of elements remaining, whichever // is smaller. // // A dynamic server MUST use its server-specific state to affect the dynamic collection // it manages, and MUST update the current position in the sequence by either celt elements, // or the number of elements remaining, whichever is smaller. // // In all cases, the server MUST return 1 (S_FALSE), if the current position was updated // by less than celt elements. Skip(context.Context, *SkipRequest, ...dcerpc.CallOption) (*SkipResponse, error) // The IEnumVARIANT::Reset method resets the enumeration sequence to the beginning. // // This method has no parameters. // // Return Values: The method MUST return information in an HRESULT data structure, defined // in [MS-ERREF] section 2.1. The severity bit in the structure identifies the following // conditions: // // * If the severity bit is set to 0, the method completed successfully. // // * If the severity bit is set to 1, the method failed and encountered a fatal error. // // A static server MUST reset its current position in the sequence. // // A semi-static or dynamic server MUST update the sequence of elements it maintains // and MUST reset the current position in the sequence to the beginning. Reset(context.Context, *ResetRequest, ...dcerpc.CallOption) (*ResetResponse, error) // The IEnumVARIANT::Clone method creates a copy of the current state of the enumeration. // // Return Values: The method MUST return information in an HRESULT data structure, defined // in [MS-ERREF] section 2.1. The severity bit in the structure identifies the following // conditions: // // * If the severity bit is set to 0, the method completed successfully. // // * If the severity bit is set to 1, the method failed and encountered a fatal error. Clone(context.Context, *CloneRequest, ...dcerpc.CallOption) (*CloneResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) EnumVariantClient }
IEnumVARIANT interface.
func NewEnumVariantClient ¶
type EnumVariantServer ¶
type EnumVariantServer interface { // IUnknown base class. iunknown.UnknownServer // The IEnumVARIANT::Next method returns up to the number of requested items that occur // next in the enumeration sequence. // // Return Values: The method MUST return the information in an HRESULT data structure, // which is defined in [MS-ERREF] section 2.1. The severity bit in the structure identifies // the following conditions: // // * If the severity bit is set to 0, the method completed successfully. // // * If the severity bit is set to 1, the method failed and encountered a fatal error. // // A static or semistatic IEnumVARIANT server MUST retrieve the next celt elements from // the sequence and fill in rgVar up to the celt elements or up to the remaining number // of elements that are not yet enumerated. // // A dynamic server MUST use its server-specific state to retrieve the next elements. // // In all cases, the server MUST: // // * Set pCeltFetched with the number retrieved. // // * Update the current position in the sequence. // // * Return a status of 1 (S_FALSE) if pCeltFetched is not equal to celt. Next(context.Context, *NextRequest) (*NextResponse, error) // The IEnumVARIANT::Skip method skips over the requested number of elements in the // enumeration sequence. // // Return Values: The method MUST return information in an HRESULT data structure, defined // in [MS-ERREF] section 2.1. The severity bit in the structure identifies the following // conditions: // // * If the severity bit is set to 0, the method completed successfully. // // * If the severity bit is set to 1, the method failed and encountered a fatal error. // // A static or semi-static IEnumVARIANT server MUST update the current position in the // sequence by either celt elements, or the number of elements remaining, whichever // is smaller. // // A dynamic server MUST use its server-specific state to affect the dynamic collection // it manages, and MUST update the current position in the sequence by either celt elements, // or the number of elements remaining, whichever is smaller. // // In all cases, the server MUST return 1 (S_FALSE), if the current position was updated // by less than celt elements. Skip(context.Context, *SkipRequest) (*SkipResponse, error) // The IEnumVARIANT::Reset method resets the enumeration sequence to the beginning. // // This method has no parameters. // // Return Values: The method MUST return information in an HRESULT data structure, defined // in [MS-ERREF] section 2.1. The severity bit in the structure identifies the following // conditions: // // * If the severity bit is set to 0, the method completed successfully. // // * If the severity bit is set to 1, the method failed and encountered a fatal error. // // A static server MUST reset its current position in the sequence. // // A semi-static or dynamic server MUST update the sequence of elements it maintains // and MUST reset the current position in the sequence to the beginning. Reset(context.Context, *ResetRequest) (*ResetResponse, error) // The IEnumVARIANT::Clone method creates a copy of the current state of the enumeration. // // Return Values: The method MUST return information in an HRESULT data structure, defined // in [MS-ERREF] section 2.1. The severity bit in the structure identifies the following // conditions: // // * If the severity bit is set to 0, the method completed successfully. // // * If the severity bit is set to 1, the method failed and encountered a fatal error. Clone(context.Context, *CloneRequest) (*CloneResponse, error) }
IEnumVARIANT server interface.
type NextRequest ¶
type NextRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // celt: MUST be set to the maximum number of elements to return. The value MUST NOT // be 0. Count uint32 `idl:"name:celt" json:"count"` }
NextRequest structure represents the Next operation request
func (*NextRequest) MarshalNDR ¶
func (*NextRequest) UnmarshalNDR ¶
type NextResponse ¶
type NextResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // rgVar: MUST be set to an array of elements that are returned from the enumeration // sequence. Var []*oaut.Variant `idl:"name:rgVar;size_is:(celt);length_is:(pCeltFetched)" json:"var"` // pCeltFetched: MUST be set to the number of elements successfully returned. This number // MUST be equal to the value in celt, unless the end of the enumeration sequence is // encountered. CountFetched uint32 `idl:"name:pCeltFetched" json:"count_fetched"` // Return: The Next return value. Return int32 `idl:"name:Return" json:"return"` }
NextResponse structure represents the Next operation response
func (*NextResponse) MarshalNDR ¶
func (*NextResponse) UnmarshalNDR ¶
type ResetRequest ¶
type ResetRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
ResetRequest structure represents the Reset operation request
func (*ResetRequest) MarshalNDR ¶
func (*ResetRequest) UnmarshalNDR ¶
type ResetResponse ¶
type ResetResponse 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 Reset return value. Return int32 `idl:"name:Return" json:"return"` }
ResetResponse structure represents the Reset operation response
func (*ResetResponse) MarshalNDR ¶
func (*ResetResponse) UnmarshalNDR ¶
type SkipRequest ¶
type SkipRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // celt: MUST be set to the maximum number of elements to skip over. Count uint32 `idl:"name:celt" json:"count"` }
SkipRequest structure represents the Skip operation request
func (*SkipRequest) MarshalNDR ¶
func (*SkipRequest) UnmarshalNDR ¶
type SkipResponse ¶
type SkipResponse 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 Skip return value. Return int32 `idl:"name:Return" json:"return"` }
SkipResponse structure represents the Skip operation response
func (*SkipResponse) MarshalNDR ¶
func (*SkipResponse) UnmarshalNDR ¶
Click to show internal directories.
Click to hide internal directories.