Documentation ¶
Index ¶
- Variables
- func NewTypeLib2ServerHandle(o TypeLib2Server) dcerpc.ServerHandle
- func RegisterTypeLib2Server(conn dcerpc.Conn, o TypeLib2Server, opts ...dcerpc.Option)
- func TypeLib2ServerHandle(ctx context.Context, o TypeLib2Server, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- type GetAllCustomDataRequest
- type GetAllCustomDataResponse
- type GetCustomDataRequest
- type GetCustomDataResponse
- type GetDocumentation2Request
- type GetDocumentation2Response
- type GetLibStatisticsRequest
- type GetLibStatisticsResponse
- type TypeLib2Client
- type TypeLib2Server
Constants ¶
This section is empty.
Variables ¶
var ( // ITypeLib2 interface identifier 00020411-0000-0000-c000-000000000046 TypeLib2IID = &dcom.IID{Data1: 0x00020411, Data2: 0x0000, Data3: 0x0000, Data4: []byte{0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}} // Syntax UUID TypeLib2SyntaxUUID = &uuid.UUID{TimeLow: 0x20411, TimeMid: 0x0, TimeHiAndVersion: 0x0, ClockSeqHiAndReserved: 0xc0, ClockSeqLow: 0x0, Node: [6]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x46}} // Syntax ID TypeLib2SyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: TypeLib2SyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "dcom/oaut"
)
Functions ¶
func NewTypeLib2ServerHandle ¶
func NewTypeLib2ServerHandle(o TypeLib2Server) dcerpc.ServerHandle
func RegisterTypeLib2Server ¶
func RegisterTypeLib2Server(conn dcerpc.Conn, o TypeLib2Server, opts ...dcerpc.Option)
Types ¶
type GetAllCustomDataRequest ¶
type GetAllCustomDataRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
GetAllCustomDataRequest structure represents the GetAllCustData operation request
func (*GetAllCustomDataRequest) MarshalNDR ¶
func (*GetAllCustomDataRequest) UnmarshalNDR ¶
type GetAllCustomDataResponse ¶
type GetAllCustomDataResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // pCustData: MUST be set to a CUSTDATA structure that contains an array of custom data // items, as specified in section 2.2.47. The structure's cCustData field MUST be set // to 0 and its prgCustData field set to NULL if there are no custom data items associated // with the automation type library. // // pCustData: MUST be set to a CUSTDATA structure that contains an array of custom data // items, as specified in section 2.2.47. The structure's cCustData field MUST be set // to 0 and its prgCustData field set to NULL, if there are no custom data items associated // with the automation type description. CustomData *oaut.CustomData `idl:"name:pCustData" json:"custom_data"` // Return: The GetAllCustData return value. Return int32 `idl:"name:Return" json:"return"` }
GetAllCustomDataResponse structure represents the GetAllCustData operation response
func (*GetAllCustomDataResponse) MarshalNDR ¶
func (*GetAllCustomDataResponse) UnmarshalNDR ¶
type GetCustomDataRequest ¶
type GetCustomDataRequest 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 the GUID associated with the custom data item using the [custom] attribute, // as specified in section 2.2.49.2. // // guid: MUST be a GUID associated with the custom data item. GUID *dtyp.GUID `idl:"name:guid" json:"guid"` }
GetCustomDataRequest structure represents the GetCustData operation request
func (*GetCustomDataRequest) MarshalNDR ¶
func (*GetCustomDataRequest) UnmarshalNDR ¶
type GetCustomDataResponse ¶
type GetCustomDataResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // pVarVal: MUST be set to the value of the custom data item, or VT_EMPTY if there is // no custom data item associated with the specified GUID. // // pVarVal: MUST be set to the value associated with the GUID using the [custom] attribute // (as specified in section 2.2.49.3), or VT_EMPTY if the type does not have a value // associated with the GUID. VarValue *oaut.Variant `idl:"name:pVarVal" json:"var_value"` // Return: The GetCustData return value. Return int32 `idl:"name:Return" json:"return"` }
GetCustomDataResponse structure represents the GetCustData operation response
func (*GetCustomDataResponse) MarshalNDR ¶
func (*GetCustomDataResponse) UnmarshalNDR ¶
type GetDocumentation2Request ¶
type GetDocumentation2Request 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 be equal to the index of an automation type description or to –1. If // index is –1, the values of pBstrHelpString, pdwHelpStringContext, and pBstrHelpStringDll // MUST correspond to the attributes declared with the Type library as specified in // section 2.2.49.3. Otherwise, they MUST correspond to the attributes declared with // the specified type. Index int32 `idl:"name:index" json:"index"` // lcid: MUST be the locale ID of the specified type or type library. // // lcid: MUST be the Locale ID associated with the specified type member. LocaleID uint32 `idl:"name:lcid" json:"locale_id"` // refPtrFlags: MUST be 0, or a combination of the bit flags specified in the following // table. // // +-----------------------------------+----------------------------------------------------------------------------------+ // | | | // | VALUE | MEANING | // | | | // +-----------------------------------+----------------------------------------------------------------------------------+ // +-----------------------------------+----------------------------------------------------------------------------------+ // | TYPELIB_HelpStringArg 0x00000001 | MUST specify that the client is interested in the actual pBstrHelpString [out] | // | | argument. | // +-----------------------------------+----------------------------------------------------------------------------------+ // | TYPELIB_HelpContextArg 0x00000002 | MUST specify that the client is interested in the actual pdwHelpStringContext | // | | [out] argument. | // +-----------------------------------+----------------------------------------------------------------------------------+ // | TYPELIB_HelpFileArg 0x00000004 | MUST specify that the client is interested in the actual pBstrHelpStringDll | // | | [out] argument. | // +-----------------------------------+----------------------------------------------------------------------------------+ PointerFlags uint32 `idl:"name:refPtrFlags" json:"pointer_flags"` }
GetDocumentation2Request structure represents the GetDocumentation2 operation request
func (*GetDocumentation2Request) MarshalNDR ¶
func (*GetDocumentation2Request) UnmarshalNDR ¶
type GetDocumentation2Response ¶
type GetDocumentation2Response struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // pbstrHelpString: MUST be set to an implementation-specific BSTR type<63> if the TYPELIB_HelpStringArg // bit flag is set in refPtrFlags. MUST be set to a NULL BSTR otherwise. // // pbstrHelpString: If the TYPEINFO_HelpStringContextArg and TYPEINFO_HelpStringDllArg // bit flags are set in refPtrFlags, pbstrHelpString MUST be set to an implementation-specific // BSTR<60> . Otherwise, MUST be set to a NULL BSTR. HelpString *oaut.String `idl:"name:pbstrHelpString" json:"help_string"` // pdwHelpStringContext: MUST be set to the value that was associated with the specified // type or type library using the [helpstringcontext] attribute (see section 2.2.49.2) // if the TYPELIB_HelpContextArg bit flag is set in refPtrFlags. MUST be set to 0 otherwise. // // pdwHelpStringContext: MUST be set to the value that was associated with the specified // type or type member using the [helpstringcontext] attribute (see IDL Automation Scope) // if the TYPEINFO_HelpStringContextArg bit flag is set in refPtrFlags. MUST be set // to 0 otherwise. HelpStringContext uint32 `idl:"name:pdwHelpStringContext" json:"help_string_context"` // pbstrHelpStringDll: MUST be set to the documentation string that was associated with // the specified type or type library using the [helpstringdll] 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. // // pbstrHelpStringDll: MUST be set to the documentation string that was associated with // the specified type or type member using the [helpstringdll] attribute (see IDL Automation // Scope) if the TYPEINFO_HelpStringDllArg bit flag is set in refPtrFlags. MUST be set // to a NULL BSTR otherwise. HelpStringDLL *oaut.String `idl:"name:pbstrHelpStringDll" json:"help_string_dll"` // Return: The GetDocumentation2 return value. Return int32 `idl:"name:Return" json:"return"` }
GetDocumentation2Response structure represents the GetDocumentation2 operation response
func (*GetDocumentation2Response) MarshalNDR ¶
func (*GetDocumentation2Response) UnmarshalNDR ¶
type GetLibStatisticsRequest ¶
type GetLibStatisticsRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
GetLibStatisticsRequest structure represents the GetLibStatistics operation request
func (*GetLibStatisticsRequest) MarshalNDR ¶
func (*GetLibStatisticsRequest) UnmarshalNDR ¶
type GetLibStatisticsResponse ¶
type GetLibStatisticsResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // pcUniqueNames: MUST be set to the number of unique names in the Type library. UniqueNamesCount uint32 `idl:"name:pcUniqueNames" json:"unique_names_count"` // pcchUniqueNames: MUST be set to the total length, in characters, of the unique names // in the library. UniqueNamesLength uint32 `idl:"name:pcchUniqueNames" json:"unique_names_length"` // Return: The GetLibStatistics return value. Return int32 `idl:"name:Return" json:"return"` }
GetLibStatisticsResponse structure represents the GetLibStatistics operation response
func (*GetLibStatisticsResponse) MarshalNDR ¶
func (*GetLibStatisticsResponse) UnmarshalNDR ¶
type TypeLib2Client ¶
type TypeLib2Client interface { // ITypeLib retrieval method. TypeLib() itypelib.TypeLibClient // The GetCustData method retrieves the value of a custom data item associated with // the automation type library. // // The GetCustData method retrieves the value of a custom data item associated with // the type. // // 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. GetCustomData(context.Context, *GetCustomDataRequest, ...dcerpc.CallOption) (*GetCustomDataResponse, error) // The GetLibStatistics method returns statistics about the unique names in 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. GetLibStatistics(context.Context, *GetLibStatisticsRequest, ...dcerpc.CallOption) (*GetLibStatisticsResponse, error) // The GetDocumentation2 method retrieves values associated with the automation type // library. // // The GetDocumentation2 method retrieves values associated with a type member. // // 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. GetDocumentation2(context.Context, *GetDocumentation2Request, ...dcerpc.CallOption) (*GetDocumentation2Response, error) // The GetAllCustData method retrieves the values of all custom data items associated // with the automation type library. // // The GetAllCustData method retrieves all the custom data items associated with the // 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, the method failed and encountered a fatal error. GetAllCustomData(context.Context, *GetAllCustomDataRequest, ...dcerpc.CallOption) (*GetAllCustomDataResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // Conn returns the client connection (unsafe) Conn() dcerpc.Conn // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) TypeLib2Client }
ITypeLib2 interface.
func NewTypeLib2Client ¶
type TypeLib2Server ¶
type TypeLib2Server interface { // ITypeLib base class. itypelib.TypeLibServer // The GetCustData method retrieves the value of a custom data item associated with // the automation type library. // // The GetCustData method retrieves the value of a custom data item associated with // the type. // // 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. GetCustomData(context.Context, *GetCustomDataRequest) (*GetCustomDataResponse, error) // The GetLibStatistics method returns statistics about the unique names in 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. GetLibStatistics(context.Context, *GetLibStatisticsRequest) (*GetLibStatisticsResponse, error) // The GetDocumentation2 method retrieves values associated with the automation type // library. // // The GetDocumentation2 method retrieves values associated with a type member. // // 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. GetDocumentation2(context.Context, *GetDocumentation2Request) (*GetDocumentation2Response, error) // The GetAllCustData method retrieves the values of all custom data items associated // with the automation type library. // // The GetAllCustData method retrieves all the custom data items associated with the // 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, the method failed and encountered a fatal error. GetAllCustomData(context.Context, *GetAllCustomDataRequest) (*GetAllCustomDataResponse, error) }
ITypeLib2 server interface.