itypelib

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ITypeLib interface identifier 00020402-0000-0000-c000-000000000046
	TypeLibIID = &dcom.IID{Data1: 0x00020402, Data2: 0x0000, Data3: 0x0000, Data4: []byte{0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}}
	// Syntax UUID
	TypeLibSyntaxUUID = &uuid.UUID{TimeLow: 0x20402, TimeMid: 0x0, TimeHiAndVersion: 0x0, ClockSeqHiAndReserved: 0xc0, ClockSeqLow: 0x0, Node: [6]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x46}}
	// Syntax ID
	TypeLibSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: TypeLibSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/oaut"
)

Functions

func NewTypeLibServerHandle

func NewTypeLibServerHandle(o TypeLibServer) dcerpc.ServerHandle

func RegisterTypeLibServer

func RegisterTypeLibServer(conn dcerpc.Conn, o TypeLibServer, opts ...dcerpc.Option)

func TypeLibServerHandle

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

Types

type FindNameRequest

type FindNameRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// szNameBuf: MUST be a string.
	NameBuffer string `idl:"name:szNameBuf" json:"name_buffer"`
	// lHashVal: MUST be either the hash value corresponding to the value of szNameBuf (as
	// specified in section 2.2.51), or 0.
	HashValue uint32 `idl:"name:lHashVal" json:"hash_value"`
	// pcFound: The client MUST set pcFound to the maximum number of matches that can be
	// returned. The server MUST set pcFound to the number of elements in the ppTInfo and
	// rgMemId arrays.
	FoundCount uint16 `idl:"name:pcFound" json:"found_count"`
}

FindNameRequest structure represents the FindName operation request

func (*FindNameRequest) MarshalNDR

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

func (*FindNameRequest) UnmarshalNDR

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

type FindNameResponse

type FindNameResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppTInfo: MUST be set to an array of references to ITypeInfo server instances (see
	// section 3.7.4). Each entry of ppTInfo MUST correspond to a type whose name matches
	// the value of szNameBuf according to the string matching criteria (as specified in
	// section 2.2.50) or that contains a member whose name matches the value of szNameBuf.
	//
	// The array MUST be empty if there are no types or method or data members of types
	// defined in the automation scope whose names match the value of szNameBuf. Otherwise,
	// the array MUST contain one entry for each named nonparameter element defined in the
	// automation scope whose name matches szNameBuf. The array MAY contain entries for
	// matching types or type members that are referenced, but not defined in the automation
	// scope. <62>
	//
	// If szNameBuf matches the name of a dual interface or one of its members, the corresponding
	// entry in ppTInfo MUST refer to the partner dispinterface and MUST NOT refer to the
	// partner interface.
	TypeInfo []*oaut.TypeInfo `idl:"name:ppTInfo;size_is:(pcFound);length_is:(pcFound)" json:"type_info"`
	// rgMemId: MUST be set to an array of MEMBERIDs (see section 2.2.35) corresponding
	// to the ITypeInfo instances in the ppTInfo array. For each entry in the ppTInfo array,
	// the corresponding value in the rgMemId array MUST specify the MEMBERID of the type
	// member whose name matches the value of szNameBuf, or MEMBERID_NIL to specify that
	// the name of the type matches the value of szNameBuf.
	MemberIDs []int32 `idl:"name:rgMemId;size_is:(pcFound);length_is:(pcFound)" json:"member_ids"`
	// pcFound: The client MUST set pcFound to the maximum number of matches that can be
	// returned. The server MUST set pcFound to the number of elements in the ppTInfo and
	// rgMemId arrays.
	FoundCount uint16 `idl:"name:pcFound" json:"found_count"`
	// pBstrNameInLibrary: MUST be set to a string whose value matches the value of szNameBuf
	// according to the string-matching rules (as specified in section 2.2.50), if the ppTInfo
	// array is not empty. MUST be set to a NULL BSTR otherwise.
	NameInLibrary *oaut.String `idl:"name:pBstrNameInLibrary" json:"name_in_library"`
	// Return: The FindName return value.
	Return int32 `idl:"name:Return" json:"return"`
}

FindNameResponse structure represents the FindName operation response

func (*FindNameResponse) MarshalNDR

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

func (*FindNameResponse) UnmarshalNDR

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

type GetDocumentationRequest

type GetDocumentationRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// index: MUST equal the ordinal position of an automation type description in the type
	// information table, or –1. If index is –1, the values of pBstrName, pBstrDocString,
	// pdwHelpContext, and pBstrHelpFile MUST correspond to the attributes declared with
	// the Type library, as specified in section 2.2.49.2. Otherwise, they MUST correspond
	// to the attributes declared with the specified type.
	Index int32 `idl:"name:index" json:"index"`
	// refPtrFlags: MUST be a combination of the bit flags specified in the following table,
	// or 0.
	//
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	|                                    |                                                                                  |
	//	|               VALUE                |                                     MEANING                                      |
	//	|                                    |                                                                                  |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| TYPEINFO_NameArg 0x00000001        | MUST specify that the client is interested in the actual pBstrName [out]         |
	//	|                                    | argument.                                                                        |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| TYPEINFO_DocStringArg 0x00000002   | MUST specify that the client is interested in the actual pBstrDocString [out]    |
	//	|                                    | argument.                                                                        |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| TYPEINFO_HelpContextArg 0x00000004 | MUST specify that the client is interested in the actual pdwHelpContext [out]    |
	//	|                                    | argument.                                                                        |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//	| TYPEINFO_HelpFileArg 0x00000008    | MUST specify that the client is interested in the actual pBstrHelpFile [out]     |
	//	|                                    | argument.                                                                        |
	//	+------------------------------------+----------------------------------------------------------------------------------+
	//
	// refPtrFlags: MUST be a combination of 0, or the bit flags specified in the following
	// table.
	//
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	|                                   |                                                                                  |
	//	|               VALUE               |                                     MEANING                                      |
	//	|                                   |                                                                                  |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| TYPELIB_NameArg 0x00000001        | MUST specify that the client is interested in the actual pBstrName [out]         |
	//	|                                   | argument.                                                                        |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| TYPELIB_DocStringArg 0x00000002   | MUST specify that the client is interested in the actual pBstrDocString [out]    |
	//	|                                   | argument.                                                                        |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| TYPELIB_HelpContextArg 0x00000004 | MUST specify that the client is interested in the actual pdwHelpContext [out]    |
	//	|                                   | argument.                                                                        |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	//	| TYPELIB_HelpFileArg 0x00000008    | MUST specify that the client is interested in the actual pBstrHelpFile [out]     |
	//	|                                   | argument.                                                                        |
	//	+-----------------------------------+----------------------------------------------------------------------------------+
	PointerFlags uint32 `idl:"name:refPtrFlags" json:"pointer_flags"`
}

GetDocumentationRequest structure represents the GetDocumentation operation request

func (*GetDocumentationRequest) MarshalNDR

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

func (*GetDocumentationRequest) UnmarshalNDR

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

type GetDocumentationResponse

type GetDocumentationResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pBstrName: If the TYPEINFO_NameArg bit flag is set in refPtrFlags,pBstrName MUST
	// be set to a BSTR that contains the name of the type or specified type member. Othernwise,
	// pBstrName MUST be set to a NULL BSTR.
	//
	// pBstrName: MUST be set to a BSTR that contains the name of the specified type or
	// Type library if the TYPELIB_NameArg bit flag is set in refPtrFlags. MUST be set to
	// a NULL BSTR otherwise.
	Name *oaut.String `idl:"name:pBstrName" json:"name"`
	// pBstrDocString: MUST be set to the documentation string that was associated with
	// the type or specified type member using the [helpstring] attribute (see section 2.2.49.2),
	// if the TYPEINFO_DocStringArg bit flag is set in refPtrFlags. MAY be set to an implementation-specific
	// string<59> if no [helpstring] attribute is specified. MUST be set to a NULL BSTR
	// otherwise.
	//
	// pBstrDocString: MUST be set to the documentation string that was associated with
	// the specified type or Type library using the [helpstring] attribute (see section
	// 2.2.49.2), if the TYPELIB_DocStringArg bit flag is set in refPtrFlags. MAY be set
	// to an implementation-specific string<61> if no [helpstring] attribute is specified.
	// MUST be set to a NULL BSTR otherwise.
	DocString *oaut.String `idl:"name:pBstrDocString" json:"doc_string"`
	// pdwHelpContext: MUST be set to the value that was associated with the type or specified
	// type member using the [helpcontext] attribute (see section 2.2.49.2), if the TYPEINFO_HelpContextArg
	// bit flag is set in refPtrFlags. MUST be set to 0 otherwise.
	//
	// pdwHelpContext: MUST be set to the value that was associated with the specified type
	// or Type library using the [helpcontext] attribute (see section 2.2.49.2), if the
	// TYPELIB_HelpContextArg bit flag is set in refPtrFlags. MUST be set to 0 otherwise.
	HelpContext uint32 `idl:"name:pdwHelpContext" json:"help_context"`
	// pBstrHelpFile: MUST be set to the documentation string that was associated with the
	// type or specified type member using the [helpfile] attribute (see section 2.2.49.2),
	// if the TYPEINFO_HelpFileArg bit flag is set in refPtrFlags. MUST be set to a NULL
	// BSTR otherwise.
	//
	// pBstrHelpFile: MUST be set to the documentation string that was associated with the
	// specified type or Type library using the [helpfile] attribute (see section 2.2.49.2),
	// if the TYPELIB_HelpFileArg bit flag is set in refPtrFlags. MUST be set to a NULL
	// BSTR otherwise.
	HelpFile *oaut.String `idl:"name:pBstrHelpFile" json:"help_file"`
	// Return: The GetDocumentation return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetDocumentationResponse structure represents the GetDocumentation operation response

func (*GetDocumentationResponse) MarshalNDR

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

func (*GetDocumentationResponse) UnmarshalNDR

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

type GetLibAttributeRequest

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

GetLibAttributeRequest structure represents the GetLibAttr operation request

func (*GetLibAttributeRequest) MarshalNDR

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

func (*GetLibAttributeRequest) UnmarshalNDR

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

type GetLibAttributeResponse

type GetLibAttributeResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppTLibAttr: MUST be set to a TLIBATTR (section 2.2.45) structure that specifies the
	// attributes declared with the Type library.
	LibAttribute *oaut.TypeLibAttribute `idl:"name:ppTLibAttr" json:"lib_attribute"`
	// Return: The GetLibAttr return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetLibAttributeResponse structure represents the GetLibAttr operation response

func (*GetLibAttributeResponse) MarshalNDR

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

func (*GetLibAttributeResponse) UnmarshalNDR

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

type GetTypeCompRequest

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

GetTypeCompRequest structure represents the GetTypeComp operation request

func (*GetTypeCompRequest) MarshalNDR

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

func (*GetTypeCompRequest) UnmarshalNDR

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

type GetTypeCompResponse

type GetTypeCompResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppTComp: MUST be set to a reference to the ITypeComp server instance associated with
	// the ITypeInfo server (see section 3.5).
	//
	// ppTComp: MUST be set to a reference to the ITypeComp server instance associated with
	// the automation type library, or to NULL if the automation type library does not have
	// an associated ITypeComp server instance.
	Comp *oaut.TypeComp `idl:"name:ppTComp" json:"comp"`
	// Return: The GetTypeComp return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetTypeCompResponse structure represents the GetTypeComp operation response

func (*GetTypeCompResponse) MarshalNDR

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

func (*GetTypeCompResponse) UnmarshalNDR

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

type GetTypeInfoCountRequest

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

GetTypeInfoCountRequest structure represents the GetTypeInfoCount operation request

func (*GetTypeInfoCountRequest) MarshalNDR

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

func (*GetTypeInfoCountRequest) UnmarshalNDR

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

type GetTypeInfoCountResponse

type GetTypeInfoCountResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pcTInfo: MUST be set to the number of automation type descriptions contained in the
	// type information table of the automation type library.
	TypeInfoCount uint32 `idl:"name:pcTInfo" json:"type_info_count"`
	// Return: The GetTypeInfoCount return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetTypeInfoCountResponse structure represents the GetTypeInfoCount operation response

func (*GetTypeInfoCountResponse) MarshalNDR

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

func (*GetTypeInfoCountResponse) UnmarshalNDR

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

type GetTypeInfoOfGUIDRequest

type GetTypeInfoOfGUIDRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// guid: MUST be a GUID.
	GUID *dtyp.GUID `idl:"name:guid" json:"guid"`
}

GetTypeInfoOfGUIDRequest structure represents the GetTypeInfoOfGuid operation request

func (*GetTypeInfoOfGUIDRequest) MarshalNDR

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

func (*GetTypeInfoOfGUIDRequest) UnmarshalNDR

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

type GetTypeInfoOfGUIDResponse

type GetTypeInfoOfGUIDResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppTInfo: MUST be set to an ITypeInfo server instance that represents the automation
	// type description associated with the specified GUID in the type information table
	// (see section 3.7) or to NULL. MUST be NULL if the value of guid is IID_NULL, or is
	// not associated with an automation type description.
	TypeInfo *oaut.TypeInfo `idl:"name:ppTInfo" json:"type_info"`
	// Return: The GetTypeInfoOfGuid return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetTypeInfoOfGUIDResponse structure represents the GetTypeInfoOfGuid operation response

func (*GetTypeInfoOfGUIDResponse) MarshalNDR

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

func (*GetTypeInfoOfGUIDResponse) UnmarshalNDR

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

type GetTypeInfoRequest

type GetTypeInfoRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// index: MUST equal the ordinal position of the specified automation type description
	// within the type information table.
	Index uint32 `idl:"name:index" json:"index"`
}

GetTypeInfoRequest structure represents the GetTypeInfo operation request

func (*GetTypeInfoRequest) MarshalNDR

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

func (*GetTypeInfoRequest) UnmarshalNDR

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

type GetTypeInfoResponse

type GetTypeInfoResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppTInfo: MUST be set to reference an instance of an ITypeInfo server that corresponds
	// to the default nonsource interface of the coclass implementing IDispatch (see section
	// 2.2.49.8). MUST refer to the partner dispinterface if the default nonsource interface
	// is a dual interface. MUST be set to NULL if the coclass does not specify a default
	// nonsource interface.
	//
	// ppTInfo: MUST be set to a reference to the ITypeInfo server instance (see section
	// 3.7) with the specified position in the type information table, or to NULL if the
	// value of index is greater than or equal to the number of automation type descriptions
	// in the type information table.
	TypeInfo *oaut.TypeInfo `idl:"name:ppTInfo" json:"type_info"`
	// Return: The GetTypeInfo return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetTypeInfoResponse structure represents the GetTypeInfo operation response

func (*GetTypeInfoResponse) MarshalNDR

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

func (*GetTypeInfoResponse) UnmarshalNDR

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

type GetTypeInfoTypeRequest

type GetTypeInfoTypeRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// index: MUST equal the ordinal position of the specified automation type description
	// within the type information table.
	Index uint32 `idl:"name:index" json:"index"`
}

GetTypeInfoTypeRequest structure represents the GetTypeInfoType operation request

func (*GetTypeInfoTypeRequest) MarshalNDR

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

func (*GetTypeInfoTypeRequest) UnmarshalNDR

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

type GetTypeInfoTypeResponse

type GetTypeInfoTypeResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pTKind: MUST be set to the TYPEKIND value associated with the type description, as
	// specified in 2.2.17.
	Kind oaut.TypeKind `idl:"name:pTKind" json:"kind"`
	// Return: The GetTypeInfoType return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetTypeInfoTypeResponse structure represents the GetTypeInfoType operation response

func (*GetTypeInfoTypeResponse) MarshalNDR

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

func (*GetTypeInfoTypeResponse) UnmarshalNDR

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

type IsNameRequest

type IsNameRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// szNameBuf: MUST be set to a string to be tested if it matches the name of a type
	// or type member.
	NameBuffer string `idl:"name:szNameBuf" json:"name_buffer"`
	// lHashVal: MUST be either the hash value that corresponds to the value of szNameBuf
	// (as specified in section 2.2.51) or 0.
	HashValue uint32 `idl:"name:lHashVal" json:"hash_value"`
}

IsNameRequest structure represents the IsName operation request

func (*IsNameRequest) MarshalNDR

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

func (*IsNameRequest) UnmarshalNDR

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

type IsNameResponse

type IsNameResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pfName: MUST be set to TRUE if the specified string matches the name of a type or
	// member that is contained in the automation type library (see section 3.11.4.9) or
	// its binding context (see section 3.5.4.1.1.1) according to the string-matching criteria,
	// as specified in section 2.2.50. Otherwise, MUST be set to FALSE.
	Name bool `idl:"name:pfName" json:"name"`
	// pBstrNameInLibrary: MUST be set to a string whose value matches the value of szNameBuf
	// according to the string-matching rules (as specified in section 2.2.50), if pfName
	// is TRUE. MUST be set to a NULL BSTR if pfName is FALSE.
	NameInLibrary *oaut.String `idl:"name:pBstrNameInLibrary" json:"name_in_library"`
	// Return: The IsName return value.
	Return int32 `idl:"name:Return" json:"return"`
}

IsNameResponse structure represents the IsName operation response

func (*IsNameResponse) MarshalNDR

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

func (*IsNameResponse) UnmarshalNDR

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

type TypeLibClient

type TypeLibClient interface {

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

	// The GetTypeInfoCount method provides the number of automation type descriptions in
	// the type information table.
	//
	// The GetTypeInfoCount method specifies whether the automation server provides Type
	// description information.
	//
	// 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.
	GetTypeInfoCount(context.Context, *GetTypeInfoCountRequest, ...dcerpc.CallOption) (*GetTypeInfoCountResponse, error)

	// The GetTypeInfo method provides access to the Type description information exposed
	// by the automation server.
	//
	// The GetTypeInfo method retrieves the automation type description that has the specified
	// ordinal position within the type information table.
	//
	// 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 and the entire HRESULT ( ../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac
	// ) DWORD does not match the value in the following table, a fatal failure occurred.
	//
	// * If the severity bit is set to 1 and the entire HRESULT DWORD matches the value
	// in the following table, a failure occurred.
	//
	// Return value/code
	//
	// # Description
	//
	// 0x8002000B
	//
	// DISP_E_BADINDEX
	//
	// SHOULD be returned when the value of the passed in iTInfo argument was not 0. See
	// [MS-ERREF].
	GetTypeInfo(context.Context, *GetTypeInfoRequest, ...dcerpc.CallOption) (*GetTypeInfoResponse, error)

	// The GetTypeInfoType method retrieves the TYPEKIND value associated with an automation
	// type description.
	//
	// 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 and the entire *HRESULT* DWORD does not match a
	// value in the following table, a fatal failure occurred.
	//
	// * If the severity bit is set to 1 and the entire *HRESULT* DWORD matches a value
	// in the following table, a failure occurred.
	//
	// Return value/code
	//
	// # Description
	//
	// 0x8002802B
	//
	// TYPE_E_ELEMENTNOTFOUND
	//
	// The value of index did not specify the ordinal position of an element in the type
	// information table. See [MS-ERREF].
	GetTypeInfoType(context.Context, *GetTypeInfoTypeRequest, ...dcerpc.CallOption) (*GetTypeInfoTypeResponse, error)

	// The GetTypeInfoOfGuid method retrieves the automation type description with the specified
	// GUID from the server's type information table.
	//
	// 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 and the entire *HRESULT* DWORD does not match a
	// value in the following table, a fatal failure occurred.
	//
	// * If the severity bit is set to 1 and the entire *HRESULT* DWORD matches a value
	// in the following table, a failure occurred.
	//
	// Return value/code
	//
	// # Description
	//
	// 0x8002802B
	//
	// TYPE_E_ELEMENTNOTFOUND
	//
	// The value of guid did not correspond to any entry in the Type information table,
	// or the value of guid was IID_NULL. See [MS-ERREF].
	GetTypeInfoOfGUID(context.Context, *GetTypeInfoOfGUIDRequest, ...dcerpc.CallOption) (*GetTypeInfoOfGUIDResponse, error)

	// The GetLibAttr method retrieves a structure that contains the attributes declared
	// with the Type library.
	//
	// 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.
	GetLibAttribute(context.Context, *GetLibAttributeRequest, ...dcerpc.CallOption) (*GetLibAttributeResponse, error)

	// The GetTypeComp method retrieves a reference to the ITypeComp server instance associated
	// with the ITypeInfo server.
	//
	// The GetTypeComp method retrieves a reference to the ITypeComp server instance associated
	// with the ITypeLib server.
	//
	// 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 sevierty bit is set to 1, the method failed and encountered a fatal error.
	GetTypeComp(context.Context, *GetTypeCompRequest, ...dcerpc.CallOption) (*GetTypeCompResponse, error)

	// The GetDocumentation method retrieves the documentation resources associated with
	// a type member.
	//
	// The GetDocumentation method retrieves the documentation resources associated with
	// the automation type library.
	//
	// 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.
	//
	// If memid is MEMBERID_NIL, the values of pBstrName, pBstrDocString, pdwHelpContext,
	// and pBstrHelpFile MUST correspond to the attributes declared with the type, as specified
	// in section 2.2.49.3. Otherwise, they MUST correspond to the attributes declared with
	// the specified member of the type.
	GetDocumentation(context.Context, *GetDocumentationRequest, ...dcerpc.CallOption) (*GetDocumentationResponse, error)

	// The IsName method indicates whether the specified string matches the name of a type
	// or type member that is contained in the automation type library or its binding context.
	//
	// 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.
	IsName(context.Context, *IsNameRequest, ...dcerpc.CallOption) (*IsNameResponse, error)

	// The FindName method retrieves references to types, or type members, contained in
	// the automation type library whose names match a specified string.
	//
	// 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.
	FindName(context.Context, *FindNameRequest, ...dcerpc.CallOption) (*FindNameResponse, error)

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

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

ITypeLib interface.

func NewTypeLibClient

func NewTypeLibClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (TypeLibClient, error)

type TypeLibServer

type TypeLibServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The GetTypeInfoCount method provides the number of automation type descriptions in
	// the type information table.
	//
	// The GetTypeInfoCount method specifies whether the automation server provides Type
	// description information.
	//
	// 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.
	GetTypeInfoCount(context.Context, *GetTypeInfoCountRequest) (*GetTypeInfoCountResponse, error)

	// The GetTypeInfo method provides access to the Type description information exposed
	// by the automation server.
	//
	// The GetTypeInfo method retrieves the automation type description that has the specified
	// ordinal position within the type information table.
	//
	// 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 and the entire HRESULT ( ../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac
	// ) DWORD does not match the value in the following table, a fatal failure occurred.
	//
	// * If the severity bit is set to 1 and the entire HRESULT DWORD matches the value
	// in the following table, a failure occurred.
	//
	// Return value/code
	//
	// # Description
	//
	// 0x8002000B
	//
	// DISP_E_BADINDEX
	//
	// SHOULD be returned when the value of the passed in iTInfo argument was not 0. See
	// [MS-ERREF].
	GetTypeInfo(context.Context, *GetTypeInfoRequest) (*GetTypeInfoResponse, error)

	// The GetTypeInfoType method retrieves the TYPEKIND value associated with an automation
	// type description.
	//
	// 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 and the entire *HRESULT* DWORD does not match a
	// value in the following table, a fatal failure occurred.
	//
	// * If the severity bit is set to 1 and the entire *HRESULT* DWORD matches a value
	// in the following table, a failure occurred.
	//
	// Return value/code
	//
	// # Description
	//
	// 0x8002802B
	//
	// TYPE_E_ELEMENTNOTFOUND
	//
	// The value of index did not specify the ordinal position of an element in the type
	// information table. See [MS-ERREF].
	GetTypeInfoType(context.Context, *GetTypeInfoTypeRequest) (*GetTypeInfoTypeResponse, error)

	// The GetTypeInfoOfGuid method retrieves the automation type description with the specified
	// GUID from the server's type information table.
	//
	// 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 and the entire *HRESULT* DWORD does not match a
	// value in the following table, a fatal failure occurred.
	//
	// * If the severity bit is set to 1 and the entire *HRESULT* DWORD matches a value
	// in the following table, a failure occurred.
	//
	// Return value/code
	//
	// # Description
	//
	// 0x8002802B
	//
	// TYPE_E_ELEMENTNOTFOUND
	//
	// The value of guid did not correspond to any entry in the Type information table,
	// or the value of guid was IID_NULL. See [MS-ERREF].
	GetTypeInfoOfGUID(context.Context, *GetTypeInfoOfGUIDRequest) (*GetTypeInfoOfGUIDResponse, error)

	// The GetLibAttr method retrieves a structure that contains the attributes declared
	// with the Type library.
	//
	// 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.
	GetLibAttribute(context.Context, *GetLibAttributeRequest) (*GetLibAttributeResponse, error)

	// The GetTypeComp method retrieves a reference to the ITypeComp server instance associated
	// with the ITypeInfo server.
	//
	// The GetTypeComp method retrieves a reference to the ITypeComp server instance associated
	// with the ITypeLib server.
	//
	// 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 sevierty bit is set to 1, the method failed and encountered a fatal error.
	GetTypeComp(context.Context, *GetTypeCompRequest) (*GetTypeCompResponse, error)

	// The GetDocumentation method retrieves the documentation resources associated with
	// a type member.
	//
	// The GetDocumentation method retrieves the documentation resources associated with
	// the automation type library.
	//
	// 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.
	//
	// If memid is MEMBERID_NIL, the values of pBstrName, pBstrDocString, pdwHelpContext,
	// and pBstrHelpFile MUST correspond to the attributes declared with the type, as specified
	// in section 2.2.49.3. Otherwise, they MUST correspond to the attributes declared with
	// the specified member of the type.
	GetDocumentation(context.Context, *GetDocumentationRequest) (*GetDocumentationResponse, error)

	// The IsName method indicates whether the specified string matches the name of a type
	// or type member that is contained in the automation type library or its binding context.
	//
	// 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.
	IsName(context.Context, *IsNameRequest) (*IsNameResponse, error)

	// The FindName method retrieves references to types, or type members, contained in
	// the automation type library whose names match a specified string.
	//
	// 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.
	FindName(context.Context, *FindNameRequest) (*FindNameResponse, error)
}

ITypeLib server interface.

Jump to

Keyboard shortcuts

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