From e3e5a218e16e376c4ef18b5f5aba649e5e5063c0 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 6 Jan 2017 12:38:12 -0500 Subject: subsystem infrastructure: distinguish between port and session type/subtype. --- src/tty/ntapi_tty_create_session.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/tty') diff --git a/src/tty/ntapi_tty_create_session.c b/src/tty/ntapi_tty_create_session.c index 6c57d39..687d182 100644 --- a/src/tty/ntapi_tty_create_session.c +++ b/src/tty/ntapi_tty_create_session.c @@ -29,6 +29,7 @@ int32_t __stdcall __ntapi_tty_create_session( __out void ** hport, __out nt_port_name * port_name, __in nt_tty_session_type type, + __in nt_tty_session_subtype subtype, __in const nt_guid * guid __optional, __in wchar16_t * image_name __optional, __in void * htty __optional) @@ -148,8 +149,16 @@ int32_t __stdcall __ntapi_tty_create_session( } /* subsystem attributes */ - ssattr.srv_type = port_attr.type; - ssattr.srv_subtype = port_attr.subtype; + ssattr.port_type = port_attr.type; + ssattr.port_subtype = port_attr.subtype; + + __ntapi->tt_guid_copy( + &ssattr.port_guid, + &port_attr.guid); + + ssattr.srv_type = type; + ssattr.srv_subtype = subtype; + ssattr.srv_keys[0] = port_attr.keys.key[0]; ssattr.srv_keys[1] = port_attr.keys.key[1]; ssattr.srv_keys[2] = port_attr.keys.key[2]; -- cgit v1.2.3