iwamadmin2

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IWamAdmin2 interface identifier 29822ab8-f302-11d0-9953-00c04fd919c1
	WAMAdmin2IID = &dcom.IID{Data1: 0x29822ab8, Data2: 0xf302, Data3: 0x11d0, Data4: []byte{0x99, 0x53, 0x00, 0xc0, 0x4f, 0xd9, 0x19, 0xc1}}
	// Syntax UUID
	WAMAdmin2SyntaxUUID = &uuid.UUID{TimeLow: 0x29822ab8, TimeMid: 0xf302, TimeHiAndVersion: 0x11d0, ClockSeqHiAndReserved: 0x99, ClockSeqLow: 0x53, Node: [6]uint8{0x0, 0xc0, 0x4f, 0xd9, 0x19, 0xc1}}
	// Syntax ID
	WAMAdmin2SyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: WAMAdmin2SyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/imsa"
)

Functions

func NewWAMAdmin2ServerHandle

func NewWAMAdmin2ServerHandle(o WAMAdmin2Server) dcerpc.ServerHandle

func RegisterWAMAdmin2Server

func RegisterWAMAdmin2Server(conn dcerpc.Conn, o WAMAdmin2Server, opts ...dcerpc.Option)

func WAMAdmin2ServerHandle

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

Types

type AppCreate2Request

type AppCreate2Request struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// szMDPath:  A pointer to a Unicode string that contains the metabase path of the
	// application.
	Path string `idl:"name:szMDPath;string;pointer:unique" json:"path"`
	// dwAppMode:  An unsigned 32-bit integer value indicating the process where the application
	// will run. This parameter MUST be set to one of the following values.
	//
	//	+----------------------------------------+----------------------------------------------------------------------------------+
	//	|                                        |                                                                                  |
	//	|                 VALUE                  |                                     MEANING                                      |
	//	|                                        |                                                                                  |
	//	+----------------------------------------+----------------------------------------------------------------------------------+
	//	+----------------------------------------+----------------------------------------------------------------------------------+
	//	| eAppRunInProc 0x00000000               | The application runs in the IIS parent process.                                  |
	//	+----------------------------------------+----------------------------------------------------------------------------------+
	//	| eAppRunOutProcIsolated 0x00000001      | The application runs in its own process.                                         |
	//	+----------------------------------------+----------------------------------------------------------------------------------+
	//	| eAppRunOutProcInDefaultPool 0x00000002 | The application runs in a shared process with other applications outside of the  |
	//	|                                        | IIS parent process.                                                              |
	//	+----------------------------------------+----------------------------------------------------------------------------------+
	AppMode uint32 `idl:"name:dwAppMode" json:"app_mode"`
}

AppCreate2Request structure represents the AppCreate2 operation request

func (*AppCreate2Request) MarshalNDR

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

func (*AppCreate2Request) UnmarshalNDR

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

type AppCreate2Response

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

AppCreate2Response structure represents the AppCreate2 operation response

func (*AppCreate2Response) MarshalNDR

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

func (*AppCreate2Response) UnmarshalNDR

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

type WAMAdmin2Client

type WAMAdmin2Client interface {

	// IWamAdmin retrieval method.
	WAMAdmin() iwamadmin.WAMAdminClient

	// The AppCreate2 method creates a new application at the specified metabase path.
	//
	// 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. |
	//	+-------------------+--------------------------+
	//
	// The opnum field value for this method is 9.
	AppCreate2(context.Context, *AppCreate2Request, ...dcerpc.CallOption) (*AppCreate2Response, error)

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

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

IWamAdmin2 interface.

func NewWAMAdmin2Client

func NewWAMAdmin2Client(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (WAMAdmin2Client, error)

type WAMAdmin2Server

type WAMAdmin2Server interface {

	// IWamAdmin base class.
	iwamadmin.WAMAdminServer

	// The AppCreate2 method creates a new application at the specified metabase path.
	//
	// 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. |
	//	+-------------------+--------------------------+
	//
	// The opnum field value for this method is 9.
	AppCreate2(context.Context, *AppCreate2Request) (*AppCreate2Response, error)
}

IWamAdmin2 server interface.

Jump to

Keyboard shortcuts

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