windows::Win32::System::RemoteDesktop

Trait IWTSProtocolConnection_Impl

pub trait IWTSProtocolConnection_Impl: IUnknownImpl {
Show 23 methods // Required methods fn GetLogonErrorRedirector( &self, ) -> Result<IWTSProtocolLogonErrorRedirector>; fn SendPolicyData(&self, ppolicydata: *const WTS_POLICY_DATA) -> Result<()>; fn AcceptConnection(&self) -> Result<()>; fn GetClientData(&self, pclientdata: *mut WTS_CLIENT_DATA) -> Result<()>; fn GetUserCredentials( &self, pusercreds: *mut WTS_USER_CREDENTIAL, ) -> Result<()>; fn GetLicenseConnection(&self) -> Result<IWTSProtocolLicenseConnection>; fn AuthenticateClientToSession( &self, sessionid: *mut WTS_SESSION_ID, ) -> Result<()>; fn NotifySessionId(&self, sessionid: *const WTS_SESSION_ID) -> Result<()>; fn GetProtocolHandles( &self, pkeyboardhandle: *mut HANDLE_PTR, pmousehandle: *mut HANDLE_PTR, pbeephandle: *mut HANDLE_PTR, pvideohandle: *mut HANDLE_PTR, ) -> Result<()>; fn ConnectNotify(&self, sessionid: u32) -> Result<()>; fn IsUserAllowedToLogon( &self, sessionid: u32, usertoken: HANDLE_PTR, pdomainname: &PCWSTR, pusername: &PCWSTR, ) -> Result<()>; fn SessionArbitrationEnumeration( &self, husertoken: HANDLE_PTR, bsinglesessionperuserenabled: BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32, ) -> Result<()>; fn LogonNotify( &self, hclienttoken: HANDLE_PTR, wszusername: &PCWSTR, wszdomainname: &PCWSTR, sessionid: *const WTS_SESSION_ID, ) -> Result<()>; fn GetUserData( &self, ppolicydata: *const WTS_POLICY_DATA, pclientdata: *mut WTS_USER_DATA, ) -> Result<()>; fn DisconnectNotify(&self) -> Result<()>; fn Close(&self) -> Result<()>; fn GetProtocolStatus( &self, pprotocolstatus: *mut WTS_PROTOCOL_STATUS, ) -> Result<()>; fn GetLastInputTime(&self) -> Result<u64>; fn SetErrorInfo(&self, ulerror: u32) -> Result<()>; fn SendBeep(&self, frequency: u32, duration: u32) -> Result<()>; fn CreateVirtualChannel( &self, szendpointname: &PCSTR, bstatic: BOOL, requestedpriority: u32, ) -> Result<usize>; fn QueryProperty( &self, querytype: &GUID, ulnumentriesin: u32, ulnumentriesout: u32, ppropertyentriesin: *const WTS_PROPERTY_VALUE, ppropertyentriesout: *mut WTS_PROPERTY_VALUE, ) -> Result<()>; fn GetShadowConnection(&self) -> Result<IWTSProtocolShadowConnection>;
}

Required Methods§

fn GetLogonErrorRedirector(&self) -> Result<IWTSProtocolLogonErrorRedirector>

fn SendPolicyData(&self, ppolicydata: *const WTS_POLICY_DATA) -> Result<()>

fn AcceptConnection(&self) -> Result<()>

fn GetClientData(&self, pclientdata: *mut WTS_CLIENT_DATA) -> Result<()>

fn GetUserCredentials(&self, pusercreds: *mut WTS_USER_CREDENTIAL) -> Result<()>

fn GetLicenseConnection(&self) -> Result<IWTSProtocolLicenseConnection>

fn AuthenticateClientToSession( &self, sessionid: *mut WTS_SESSION_ID, ) -> Result<()>

fn NotifySessionId(&self, sessionid: *const WTS_SESSION_ID) -> Result<()>

fn GetProtocolHandles( &self, pkeyboardhandle: *mut HANDLE_PTR, pmousehandle: *mut HANDLE_PTR, pbeephandle: *mut HANDLE_PTR, pvideohandle: *mut HANDLE_PTR, ) -> Result<()>

fn ConnectNotify(&self, sessionid: u32) -> Result<()>

fn IsUserAllowedToLogon( &self, sessionid: u32, usertoken: HANDLE_PTR, pdomainname: &PCWSTR, pusername: &PCWSTR, ) -> Result<()>

fn SessionArbitrationEnumeration( &self, husertoken: HANDLE_PTR, bsinglesessionperuserenabled: BOOL, psessionidarray: *mut u32, pdwsessionidentifiercount: *mut u32, ) -> Result<()>

fn LogonNotify( &self, hclienttoken: HANDLE_PTR, wszusername: &PCWSTR, wszdomainname: &PCWSTR, sessionid: *const WTS_SESSION_ID, ) -> Result<()>

fn GetUserData( &self, ppolicydata: *const WTS_POLICY_DATA, pclientdata: *mut WTS_USER_DATA, ) -> Result<()>

fn DisconnectNotify(&self) -> Result<()>

fn Close(&self) -> Result<()>

fn GetProtocolStatus( &self, pprotocolstatus: *mut WTS_PROTOCOL_STATUS, ) -> Result<()>

fn GetLastInputTime(&self) -> Result<u64>

fn SetErrorInfo(&self, ulerror: u32) -> Result<()>

fn SendBeep(&self, frequency: u32, duration: u32) -> Result<()>

fn CreateVirtualChannel( &self, szendpointname: &PCSTR, bstatic: BOOL, requestedpriority: u32, ) -> Result<usize>

fn QueryProperty( &self, querytype: &GUID, ulnumentriesin: u32, ulnumentriesout: u32, ppropertyentriesin: *const WTS_PROPERTY_VALUE, ppropertyentriesout: *mut WTS_PROPERTY_VALUE, ) -> Result<()>

fn GetShadowConnection(&self) -> Result<IWTSProtocolShadowConnection>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§