2008-10-29 14:05:10 +03:00
#include "idl_types.h"
/*
miscellaneous IDL structures
*/
2011-02-09 06:22:16 +03:00
import "netlogon.idl", "security.idl", "auth.idl";
2008-10-29 14:05:10 +03:00
[
pointer_default(unique)
]
interface named_pipe_auth
{
const char *NAMED_PIPE_AUTH_MAGIC = "NPAM";
2021-01-18 19:30:42 +03:00
typedef [public] struct {
2021-11-27 18:38:38 +03:00
uint8 transport;
2017-03-10 01:37:56 +03:00
[charset(UTF8),string] uint8 *remote_client_name;
[charset(DOS),string] uint8 *remote_client_addr;
uint16 remote_client_port;
[charset(UTF8),string] uint8 *local_server_name;
[charset(DOS),string] uint8 *local_server_addr;
uint16 local_server_port;
2011-02-09 06:22:16 +03:00
auth_session_info_transport *session_info;
2023-09-08 00:35:51 +03:00
} named_pipe_auth_req_info8;
2009-09-17 20:26:57 +04:00
2008-10-29 14:05:10 +03:00
typedef [switch_type(uint32)] union {
2023-09-08 00:35:51 +03:00
[case(8)] named_pipe_auth_req_info8 info8;
2008-10-29 14:05:10 +03:00
} named_pipe_auth_req_info;
typedef [public,gensize] struct {
[flag(NDR_BIG_ENDIAN),
2010-05-09 19:20:01 +04:00
value(ndr_size_named_pipe_auth_req(r,ndr->flags)-4)]
2008-10-29 14:05:10 +03:00
uint32 length;
[charset(DOS),value(NAMED_PIPE_AUTH_MAGIC)] uint8 magic[4];
uint32 level;
[switch_is(level)] named_pipe_auth_req_info info;
} named_pipe_auth_req;
2009-09-17 20:26:57 +04:00
typedef struct {
uint16 file_type;
uint16 device_state;
hyper allocation_size;
2023-09-08 00:35:51 +03:00
} named_pipe_auth_rep_info8;
2009-09-17 20:26:57 +04:00
2008-10-29 14:05:10 +03:00
typedef [switch_type(uint32)] union {
2023-09-08 00:35:51 +03:00
[case(8)] named_pipe_auth_rep_info8 info8;
2008-10-29 14:05:10 +03:00
} named_pipe_auth_rep_info;
typedef [public,gensize] struct {
[flag(NDR_BIG_ENDIAN),
2010-05-09 19:20:01 +04:00
value(ndr_size_named_pipe_auth_rep(r,ndr->flags)-4)]
2008-10-29 14:05:10 +03:00
uint32 length;
[charset(DOS),value(NAMED_PIPE_AUTH_MAGIC)] uint8 magic[4];
uint32 level;
[switch_is(level)] named_pipe_auth_rep_info info;
NTSTATUS status;
} named_pipe_auth_rep;
}