diff options
author | midipix <writeonce@midipix.org> | 2018-03-21 20:08:27 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-03-21 20:24:01 -0400 |
commit | 138984ab5a1a916ee27e87c90bc8f4839787373c (patch) | |
tree | 46104c620ae6540fc82256fc3c3619f27e287616 | |
parent | 60ddd3f92f51e3b0bf1379ded0daed101dc30410 (diff) | |
download | ntapi-138984ab5a1a916ee27e87c90bc8f4839787373c.tar.bz2 ntapi-138984ab5a1a916ee27e87c90bc8f4839787373c.tar.xz |
daemon interfaces: ntapi_dsr_create_port(): allow passing a security desc.
-rw-r--r-- | include/ntapi/nt_daemon.h | 1 | ||||
-rw-r--r-- | src/daemon/ntapi_dsr_init.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/ntapi/nt_daemon.h b/include/ntapi/nt_daemon.h index c3734c6..0b44e86 100644 --- a/include/ntapi/nt_daemon.h +++ b/include/ntapi/nt_daemon.h @@ -54,6 +54,7 @@ typedef struct _nt_daemon_params { wchar16_t * port_name; nt_port_keys * port_keys; nt_port_name_keys * port_name_keys; + nt_sd * port_sd; uintptr_t port_msg_size; nt_daemon_routine * daemon_once_routine; nt_daemon_routine * daemon_loop_routine; diff --git a/src/daemon/ntapi_dsr_init.c b/src/daemon/ntapi_dsr_init.c index 6e3951f..8f29eec 100644 --- a/src/daemon/ntapi_dsr_init.c +++ b/src/daemon/ntapi_dsr_init.c @@ -234,7 +234,7 @@ int32_t __stdcall __ntapi_dsr_create_port(nt_daemon_params * params) oa.root_dir = (void *)0; oa.obj_name = &server_name; oa.obj_attr = 0; - oa.sec_desc = (nt_security_descriptor *)0; + oa.sec_desc = params->port_sd; oa.sec_qos = &sqos; /* create the port */ |