imsadminbase2w

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IMSAdminBase2W interface identifier 8298d101-f992-43b7-8eca-5052d885b995
	IMSAdminBase2WIID = &dcom.IID{Data1: 0x8298d101, Data2: 0xf992, Data3: 0x43b7, Data4: []byte{0x8e, 0xca, 0x50, 0x52, 0xd8, 0x85, 0xb9, 0x95}}
	// Syntax UUID
	IMSAdminBase2WSyntaxUUID = &uuid.UUID{TimeLow: 0x8298d101, TimeMid: 0xf992, TimeHiAndVersion: 0x43b7, ClockSeqHiAndReserved: 0x8e, ClockSeqLow: 0xca, Node: [6]uint8{0x50, 0x52, 0xd8, 0x85, 0xb9, 0x95}}
	// Syntax ID
	IMSAdminBase2WSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: IMSAdminBase2WSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/imsa"
)

Functions

func IMSAdminBase2WServerHandle

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

func NewIMSAdminBase2WServerHandle

func NewIMSAdminBase2WServerHandle(o IMSAdminBase2WServer) dcerpc.ServerHandle

func RegisterIMSAdminBase2WServer

func RegisterIMSAdminBase2WServer(conn dcerpc.Conn, o IMSAdminBase2WServer, opts ...dcerpc.Option)

Types

type BackupWithPasswordRequest

type BackupWithPasswordRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pszMDBackupName: The name of the backup that is being created.
	BackupName string `idl:"name:pszMDBackupName;string;pointer:unique" json:"backup_name"`
	// dwMDVersion: An integer value specifying either the specific version number to be
	// used for the backup or one of the following flag values. If the version number is
	// an explicit version number, it SHOULD be less than MD_BACKUP_MAX_VERSION (9999).
	//
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	|                                      |                                                                                  |
	//	|                VALUE                 |                                     MEANING                                      |
	//	|                                      |                                                                                  |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| MD_BACKUP_HIGHEST_VERSION 0xFFFFFFFE | Use the highest existing backup version for the backup name specified.           |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| MD_BACKUP_NEXT_VERSION 0xFFFFFFFF    | Use the highest existing backup version number plus one for the backup name      |
	//	|                                      | specified.                                                                       |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	Version uint32 `idl:"name:dwMDVersion" json:"version"`
	// dwMDFlags: An integer value containing the bit flags to alter backup functionality.
	// The flags can be zero or one or more of the following values.
	//
	//	+-------+---------+
	//	|       |         |
	//	| VALUE | MEANING |
	//	|       |         |
	//	+-------+---------+
	//	+-------+---------+
	//	|
	//	+-------+---------+
	//	| Back up even if a backup of the same name and version exists in the specified backup location, overwriting it if necessary.           |
	//	+-------+---------+
	//	| Perform a SaveData operation before the backup.           |
	//	+-------+---------+
	Flags uint32 `idl:"name:dwMDFlags" json:"flags"`
	// pszPasswd: A password string used to encrypt the secure properties in the metabase
	// backup. If a password is not supplied, this method functions exactly the same as
	// the Backup method.
	Password string `idl:"name:pszPasswd;string;pointer:unique" json:"password"`
}

BackupWithPasswordRequest structure represents the BackupWithPasswd operation request

func (*BackupWithPasswordRequest) MarshalNDR

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

func (*BackupWithPasswordRequest) UnmarshalNDR

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

type BackupWithPasswordResponse

type BackupWithPasswordResponse 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 BackupWithPasswd return value.
	Return int32 `idl:"name:Return" json:"return"`
}

BackupWithPasswordResponse structure represents the BackupWithPasswd operation response

func (*BackupWithPasswordResponse) MarshalNDR

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

func (*BackupWithPasswordResponse) UnmarshalNDR

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

type EnumHistoryRequest

type EnumHistoryRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pszMDHistoryLocation: A pointer to a Unicode string that on input contains the path
	// to the history files being enumerated. If this is an empty string, the server SHOULD
	// use a default path. If an empty string is passed in, the default history path will
	// be written to the buffer.<22>
	HistoryLocation string `idl:"name:pszMDHistoryLocation;size_is:(100)" json:"history_location"`
	// dwMDEnumIndex: An integer value containing the current index of the history entry
	// to be enumerated. This value SHOULD start at zero on the first call and SHOULD be
	// increased by one on subsequent calls until the last entry in the history is reached.
	// This indexing is controlled by the client, so the client is responsible for selecting
	// the next history file to be enumerated.
	EnumIndex uint32 `idl:"name:dwMDEnumIndex" json:"enum_index"`
}

EnumHistoryRequest structure represents the EnumHistory operation request

func (*EnumHistoryRequest) MarshalNDR

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

func (*EnumHistoryRequest) UnmarshalNDR

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

type EnumHistoryResponse

type EnumHistoryResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pszMDHistoryLocation: A pointer to a Unicode string that on input contains the path
	// to the history files being enumerated. If this is an empty string, the server SHOULD
	// use a default path. If an empty string is passed in, the default history path will
	// be written to the buffer.<22>
	HistoryLocation string         `idl:"name:pszMDHistoryLocation;size_is:(100)" json:"history_location"`
	MajorVersion    uint32         `idl:"name:pdwMDMajorVersion" json:"major_version"`
	MinorVersion    uint32         `idl:"name:pdwMDMinorVersion" json:"minor_version"`
	HistoryTime     *dtyp.Filetime `idl:"name:pftMDHistoryTime" json:"history_time"`
	// Return: The EnumHistory return value.
	Return int32 `idl:"name:Return" json:"return"`
}

EnumHistoryResponse structure represents the EnumHistory operation response

func (*EnumHistoryResponse) MarshalNDR

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

func (*EnumHistoryResponse) UnmarshalNDR

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

type ExportRequest

type ExportRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pszPasswd: A pointer to a Unicode string containing the password that will be used
	// to encrypt any secure properties being exported.
	Password string `idl:"name:pszPasswd;string;pointer:unique" json:"password"`
	// pszFileName: A pointer to a Unicode string containing the name of the file, including
	// the directory path, to which the data will be exported. The path MUST exist and be
	// local to the server.
	FileName string `idl:"name:pszFileName;string;pointer:unique" json:"file_name"`
	// pszSourcePath: A pointer to a Unicode string containing the path to the metabase
	// node to be exported.
	SourcePath string `idl:"name:pszSourcePath;string;pointer:unique" json:"source_path"`
	// dwMDFlags: A set of bit flags specifying the export operation to be performed. It
	// can be zero or one or more of the following values.
	//
	//	+--------------------------------+--------------------------------------------------------------------------+
	//	|                                |                                                                          |
	//	|             VALUE              |                                 MEANING                                  |
	//	|                                |                                                                          |
	//	+--------------------------------+--------------------------------------------------------------------------+
	//	+--------------------------------+--------------------------------------------------------------------------+
	//	| MD_EXPORT_INHERITED 0x00000001 | Settings inherited from the parent nodes will be included in the export. |
	//	+--------------------------------+--------------------------------------------------------------------------+
	//	| MD_EXPORT_NODE_ONLY 0x00000002 | Child nodes will not be exported.                                        |
	//	+--------------------------------+--------------------------------------------------------------------------+
	Flags uint32 `idl:"name:dwMDFlags" json:"flags"`
}

ExportRequest structure represents the Export operation request

func (*ExportRequest) MarshalNDR

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

func (*ExportRequest) UnmarshalNDR

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

type ExportResponse

type ExportResponse 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 Export return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ExportResponse structure represents the Export operation response

func (*ExportResponse) MarshalNDR

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

func (*ExportResponse) UnmarshalNDR

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

type IMSAdminBase2WClient

type IMSAdminBase2WClient interface {

	// IMSAdminBaseW retrieval method.
	IMSAdminBaseW() imsadminbasew.IMSAdminBaseWClient

	// The BackupWithPasswd method backs up the metabase using a supplied password to encrypt
	// all secure data.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+-------------------------+------------------------------------+
	//	|         RETURN          |                                    |
	//	|       VALUE/CODE        |            DESCRIPTION             |
	//	|                         |                                    |
	//	+-------------------------+------------------------------------+
	//	+-------------------------+------------------------------------+
	//	| 0x00000000 S_OK         | The call was successful.           |
	//	+-------------------------+------------------------------------+
	//	| 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
	//	+-------------------------+------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 34.
	BackupWithPassword(context.Context, *BackupWithPasswordRequest, ...dcerpc.CallOption) (*BackupWithPasswordResponse, error)

	// The RestoreWithPasswd method restores the metabase from a backup, using a supplied
	// password to decrypt the secure data.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	|             RETURN              |                                                                                  |
	//	|           VALUE/CODE            |                                   DESCRIPTION                                    |
	//	|                                 |                                                                                  |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 S_OK                 | The call was successful.                                                         |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG         | One or more arguments are invalid.                                               |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8007052B ERROR_WRONG_PASSWORD | Unable to update the password. The value provided as the current password is     |
	//	|                                 | incorrect.                                                                       |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 35.
	RestoreWithPassword(context.Context, *RestoreWithPasswordRequest, ...dcerpc.CallOption) (*RestoreWithPasswordResponse, error)

	// The Export method exports a section of the metabase to a file.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+---------------------------------+--------------------------------------------+
	//	|             RETURN              |                                            |
	//	|           VALUE/CODE            |                DESCRIPTION                 |
	//	|                                 |                                            |
	//	+---------------------------------+--------------------------------------------+
	//	+---------------------------------+--------------------------------------------+
	//	| 0x00000000 S_OK                 | The call was successful.                   |
	//	+---------------------------------+--------------------------------------------+
	//	| 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
	//	+---------------------------------+--------------------------------------------+
	//	| 0x80070032 ERROR_NOT_SUPPORTED  | The request is not supported.              |
	//	+---------------------------------+--------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 36.
	Export(context.Context, *ExportRequest, ...dcerpc.CallOption) (*ExportResponse, error)

	// The Import method imports metabase data from an exported file into the metabase.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+---------------------------------+--------------------------------------------+
	//	|             RETURN              |                                            |
	//	|           VALUE/CODE            |                DESCRIPTION                 |
	//	|                                 |                                            |
	//	+---------------------------------+--------------------------------------------+
	//	+---------------------------------+--------------------------------------------+
	//	| 0x00000000 S_OK                 | The call was successful.                   |
	//	+---------------------------------+--------------------------------------------+
	//	| 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the file specified. |
	//	+---------------------------------+--------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 37.
	Import(context.Context, *ImportRequest, ...dcerpc.CallOption) (*ImportResponse, error)

	// The RestoreHistory method restores a metabase history entry for a specific history
	// version.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+-------------------------------------+---------------------------------------------------------------+
	//	|               RETURN                |                                                               |
	//	|             VALUE/CODE              |                          DESCRIPTION                          |
	//	|                                     |                                                               |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x00000000 S_OK                     | The call was successful.                                      |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070002 ERROR_FILE_NOT_FOUND     | The system cannot find the file specified.                    |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070003 ERROR_PATH_NOT_FOUND     | The system cannot find the path specified.                    |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x8007000E E_OUTOFMEMORY            | Ran out of memory.                                            |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070008 ERROR_NOT_ENOUGH_MEMORY  | Not enough storage is available to process this command.      |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG             | One or more arguments are invalid.                            |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070013 ERROR_INVALID_DATA       | One or more arguments are invalid.                            |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x800703EC ERROR_INVALID_FLAGS      | Invalid flags were passed.                                    |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070005 ERROR_ACCESS_DENIED      | Access is denied.                                             |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x800CC802 MD_ERROR_INVALID_VERSION | The version specified in metadata storage was not recognized. |
	//	+-------------------------------------+---------------------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 38.
	RestoreHistory(context.Context, *RestoreHistoryRequest, ...dcerpc.CallOption) (*RestoreHistoryResponse, error)

	// The EnumHistory method returns an enumerated history entry with a supplied index.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	|                RETURN                |                                                                                  |
	//	|              VALUE/CODE              |                                   DESCRIPTION                                    |
	//	|                                      |                                                                                  |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 S_OK                      | The call was successful.                                                         |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000002 ERROR_PATH_NOT_FOUND      | The system cannot find the file specified.                                       |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY   | Not enough storage is available to process this command.                         |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000012 ERROR_NO_MORE_ITEMS       | There are no more history versions.                                              |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007A ERROR_INSUFFICIENT_BUFFER | The data area passed to a system call is too small. In this case the location    |
	//	|                                      | string does not have enough space to return the path to the history location.    |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 ERROR_ACCESS_DENIED       | Access is denied.                                                                |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG              | One or more arguments are invalid.                                               |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 39.
	EnumHistory(context.Context, *EnumHistoryRequest, ...dcerpc.CallOption) (*EnumHistoryResponse, error)

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

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

IMSAdminBase2W interface.

func NewIMSAdminBase2WClient

func NewIMSAdminBase2WClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (IMSAdminBase2WClient, error)

type IMSAdminBase2WServer

type IMSAdminBase2WServer interface {

	// IMSAdminBaseW base class.
	imsadminbasew.IMSAdminBaseWServer

	// The BackupWithPasswd method backs up the metabase using a supplied password to encrypt
	// all secure data.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+-------------------------+------------------------------------+
	//	|         RETURN          |                                    |
	//	|       VALUE/CODE        |            DESCRIPTION             |
	//	|                         |                                    |
	//	+-------------------------+------------------------------------+
	//	+-------------------------+------------------------------------+
	//	| 0x00000000 S_OK         | The call was successful.           |
	//	+-------------------------+------------------------------------+
	//	| 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
	//	+-------------------------+------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 34.
	BackupWithPassword(context.Context, *BackupWithPasswordRequest) (*BackupWithPasswordResponse, error)

	// The RestoreWithPasswd method restores the metabase from a backup, using a supplied
	// password to decrypt the secure data.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	|             RETURN              |                                                                                  |
	//	|           VALUE/CODE            |                                   DESCRIPTION                                    |
	//	|                                 |                                                                                  |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 S_OK                 | The call was successful.                                                         |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG         | One or more arguments are invalid.                                               |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//	| 0x8007052B ERROR_WRONG_PASSWORD | Unable to update the password. The value provided as the current password is     |
	//	|                                 | incorrect.                                                                       |
	//	+---------------------------------+----------------------------------------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 35.
	RestoreWithPassword(context.Context, *RestoreWithPasswordRequest) (*RestoreWithPasswordResponse, error)

	// The Export method exports a section of the metabase to a file.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+---------------------------------+--------------------------------------------+
	//	|             RETURN              |                                            |
	//	|           VALUE/CODE            |                DESCRIPTION                 |
	//	|                                 |                                            |
	//	+---------------------------------+--------------------------------------------+
	//	+---------------------------------+--------------------------------------------+
	//	| 0x00000000 S_OK                 | The call was successful.                   |
	//	+---------------------------------+--------------------------------------------+
	//	| 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
	//	+---------------------------------+--------------------------------------------+
	//	| 0x80070032 ERROR_NOT_SUPPORTED  | The request is not supported.              |
	//	+---------------------------------+--------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 36.
	Export(context.Context, *ExportRequest) (*ExportResponse, error)

	// The Import method imports metabase data from an exported file into the metabase.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+---------------------------------+--------------------------------------------+
	//	|             RETURN              |                                            |
	//	|           VALUE/CODE            |                DESCRIPTION                 |
	//	|                                 |                                            |
	//	+---------------------------------+--------------------------------------------+
	//	+---------------------------------+--------------------------------------------+
	//	| 0x00000000 S_OK                 | The call was successful.                   |
	//	+---------------------------------+--------------------------------------------+
	//	| 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the file specified. |
	//	+---------------------------------+--------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 37.
	Import(context.Context, *ImportRequest) (*ImportResponse, error)

	// The RestoreHistory method restores a metabase history entry for a specific history
	// version.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+-------------------------------------+---------------------------------------------------------------+
	//	|               RETURN                |                                                               |
	//	|             VALUE/CODE              |                          DESCRIPTION                          |
	//	|                                     |                                                               |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x00000000 S_OK                     | The call was successful.                                      |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070002 ERROR_FILE_NOT_FOUND     | The system cannot find the file specified.                    |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070003 ERROR_PATH_NOT_FOUND     | The system cannot find the path specified.                    |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x8007000E E_OUTOFMEMORY            | Ran out of memory.                                            |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070008 ERROR_NOT_ENOUGH_MEMORY  | Not enough storage is available to process this command.      |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG             | One or more arguments are invalid.                            |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070013 ERROR_INVALID_DATA       | One or more arguments are invalid.                            |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x800703EC ERROR_INVALID_FLAGS      | Invalid flags were passed.                                    |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x80070005 ERROR_ACCESS_DENIED      | Access is denied.                                             |
	//	+-------------------------------------+---------------------------------------------------------------+
	//	| 0x800CC802 MD_ERROR_INVALID_VERSION | The version specified in metadata storage was not recognized. |
	//	+-------------------------------------+---------------------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 38.
	RestoreHistory(context.Context, *RestoreHistoryRequest) (*RestoreHistoryResponse, error)

	// The EnumHistory method returns an enumerated history entry with a supplied index.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
	// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
	// positive values indicate success, with the lower 16 bits in positive nonzero values
	// containing warnings or flags defined in the method implementation. For more information
	// about Win32 error codes and HRESULT values, see [MS-ERREF].
	//
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	|                RETURN                |                                                                                  |
	//	|              VALUE/CODE              |                                   DESCRIPTION                                    |
	//	|                                      |                                                                                  |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000000 S_OK                      | The call was successful.                                                         |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000002 ERROR_PATH_NOT_FOUND      | The system cannot find the file specified.                                       |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000008 ERROR_NOT_ENOUGH_MEMORY   | Not enough storage is available to process this command.                         |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x00000012 ERROR_NO_MORE_ITEMS       | There are no more history versions.                                              |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x0000007A ERROR_INSUFFICIENT_BUFFER | The data area passed to a system call is too small. In this case the location    |
	//	|                                      | string does not have enough space to return the path to the history location.    |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070005 ERROR_ACCESS_DENIED       | Access is denied.                                                                |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG              | One or more arguments are invalid.                                               |
	//	+--------------------------------------+----------------------------------------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 39.
	EnumHistory(context.Context, *EnumHistoryRequest) (*EnumHistoryResponse, error)
}

IMSAdminBase2W server interface.

type ImportRequest

type ImportRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pszPasswd: A pointer to a Unicode string containing the password that will be used
	// to decrypt the secure properties of the metabase data being imported.
	Password string `idl:"name:pszPasswd;string;pointer:unique" json:"password"`
	// pszFileName: A pointer to a Unicode string containing the name of the file, including
	// directory path, to import settings from. This file will have been created using the
	// Export function.
	FileName string `idl:"name:pszFileName;string;pointer:unique" json:"file_name"`
	// pszSourcePath: A pointer to a Unicode string containing the path to the metabase
	// node being imported from the file specified in pszFileName.
	SourcePath string `idl:"name:pszSourcePath;string;pointer:unique" json:"source_path"`
	// pszDestPath: A pointer to a Unicode string containing the path to the metabase node
	// into which the file data will be imported.
	DestinationPath string `idl:"name:pszDestPath;string;pointer:unique" json:"destination_path"`
	// dwMDFlags: A set of bit flags specifying the import operation to be performed. It
	// can be zero or one or more of the following values.
	//
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	|                                |                                                                                  |
	//	|             VALUE              |                                     MEANING                                      |
	//	|                                |                                                                                  |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| MD_IMPORT_INHERITED 0x00000001 | Inherited settings that were exported using the MD_EXPORT_INHERITED flag will be |
	//	|                                | imported.                                                                        |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| MD_IMPORT_NODE_ONLY 0x00000002 | Child nodes will not be imported.                                                |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	//	| MD_IMPORT_MERGE 0x00000004     | Imported settings will be merged with any matching existing node settings.       |
	//	|                                | When a value for a setting is present in the data file and also in the current   |
	//	|                                | metabase, the data file setting will overwrite the existing metabase setting. If |
	//	|                                | this flag is not set and there is a current node in the metabase that conflicts  |
	//	|                                | with the node being imported, the imported node will replace the existing node.  |
	//	|                                | All settings from the existing node will be lost regardless of whether the       |
	//	|                                | imported node contains the setting or not.                                       |
	//	+--------------------------------+----------------------------------------------------------------------------------+
	Flags uint32 `idl:"name:dwMDFlags" json:"flags"`
}

ImportRequest structure represents the Import operation request

func (*ImportRequest) MarshalNDR

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

func (*ImportRequest) UnmarshalNDR

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

type ImportResponse

type ImportResponse 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 Import return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ImportResponse structure represents the Import operation response

func (*ImportResponse) MarshalNDR

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

func (*ImportResponse) UnmarshalNDR

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

type RestoreHistoryRequest

type RestoreHistoryRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pszMDHistoryLocation: A pointer to a Unicode string containing the absolute path
	// to the location of the history files for the metabase. If an empty string is passed
	// to this function, the server SHOULD use the default history path.<25>
	HistoryLocation string `idl:"name:pszMDHistoryLocation;string;pointer:unique" json:"history_location"`
	// dwMDMajorVersion: An integer value containing the predecimal version value of the
	// history entry to restore from. If the dwMDFlags parameter contains the MD_HISTORY_LATEST
	// flag, this value MUST be set to zero.
	MajorVersion uint32 `idl:"name:dwMDMajorVersion" json:"major_version"`
	// dwMDMinorVersion: An integer value containing the postdecimal version value of the
	// history entry to restore from. If the dwMDFlags parameter contains the MD_HISTORY_LATEST
	// flag, this value MUST be set to zero.
	MinorVersion uint32 `idl:"name:dwMDMinorVersion" json:"minor_version"`
	// dwMDFlags: A set of bit flags specifying the options to be executed during the RestoreHistory
	// call.
	//
	//	+------------------------------+----------------------------------------------------------------------------------+
	//	|                              |                                                                                  |
	//	|            VALUE             |                                     MEANING                                      |
	//	|                              |                                                                                  |
	//	+------------------------------+----------------------------------------------------------------------------------+
	//	+------------------------------+----------------------------------------------------------------------------------+
	//	| MD_HISTORY_LATEST 0x00000001 | Restore to the most recent history file. If this is set, the dwMDMajorVersion    |
	//	|                              | and dwMDMinorVersion parameters must be set to zero.                             |
	//	+------------------------------+----------------------------------------------------------------------------------+
	Flags uint32 `idl:"name:dwMDFlags" json:"flags"`
}

RestoreHistoryRequest structure represents the RestoreHistory operation request

func (*RestoreHistoryRequest) MarshalNDR

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

func (*RestoreHistoryRequest) UnmarshalNDR

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

type RestoreHistoryResponse

type RestoreHistoryResponse 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 RestoreHistory return value.
	Return int32 `idl:"name:Return" json:"return"`
}

RestoreHistoryResponse structure represents the RestoreHistory operation response

func (*RestoreHistoryResponse) MarshalNDR

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

func (*RestoreHistoryResponse) UnmarshalNDR

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

type RestoreWithPasswordRequest

type RestoreWithPasswordRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pszMDBackupName: A pointer to a Unicode string containing the name of the backup
	// to be restored.
	BackupName string `idl:"name:pszMDBackupName;string;pointer:unique" json:"backup_name"`
	// dwMDVersion: An integer value specifying the version number of the backup to be restored,
	// which MUST be less than or equal to MD_BACKUP_MAX_VERSION (9999) or the following
	// constant.
	//
	//	+--------------------------------------+--------------------------------------------------------------------------------+
	//	|                                      |                                                                                |
	//	|                VALUE                 |                                    MEANING                                     |
	//	|                                      |                                                                                |
	//	+--------------------------------------+--------------------------------------------------------------------------------+
	//	+--------------------------------------+--------------------------------------------------------------------------------+
	//	| MD_BACKUP_HIGHEST_VERSION 0xFFFFFFFE | Restore from the highest existing backup version in the specified backup name. |
	//	+--------------------------------------+--------------------------------------------------------------------------------+
	Version uint32 `idl:"name:dwMDVersion" json:"version"`
	// dwMDFlags: This parameter is reserved and MUST be set to zero.
	Flags uint32 `idl:"name:dwMDFlags" json:"flags"`
	// pszPasswd: A password string used to decrypt the secure properties in the metabase
	// backup. If the password is not correct, an error is returned. If a password is not
	// supplied, this method functions exactly the same as the Restore method.
	Password string `idl:"name:pszPasswd;string;pointer:unique" json:"password"`
}

RestoreWithPasswordRequest structure represents the RestoreWithPasswd operation request

func (*RestoreWithPasswordRequest) MarshalNDR

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

func (*RestoreWithPasswordRequest) UnmarshalNDR

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

type RestoreWithPasswordResponse

type RestoreWithPasswordResponse 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 RestoreWithPasswd return value.
	Return int32 `idl:"name:Return" json:"return"`
}

RestoreWithPasswordResponse structure represents the RestoreWithPasswd operation response

func (*RestoreWithPasswordResponse) MarshalNDR

func (*RestoreWithPasswordResponse) UnmarshalNDR

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

Jump to

Keyboard shortcuts

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