Mobile SDK for Windows Apps2.0
Transforming Windows apps into Mobile apps
Session.h
Go to the documentation of this file.
00001 
00011 #pragma once
00012 
00013 #include <cmp.h>
00014 
00015 [
00016     object,
00017     oleautomation,
00018     pointer_default(unique),
00019     nonextensible,
00020     uuid("78014CEF-5775-4B77-8E03-0352BA8D2F35"),
00021     helpstring("Citrix Mobility Session Interface")
00022 ]
00023 __interface ISession: IUnknown
00024 {
00025     STDMETHODIMP IsSessionActive([out, retval]VARIANT_BOOL *sessionActive);
00026     STDMETHODIMP GetSessionState([out, retval]CMP_SESSION_STATE* sessionState);
00027     STDMETHODIMP OpenSession([out, retval]CMPRESULT* result);
00028     STDMETHODIMP CloseSession([out, retval]CMPRESULT* result);
00029 
00030     STDMETHODIMP SetSessionOptionBool([in]CMP_SESSION_OPTION option, [in]VARIANT_BOOL value, [out,retval]CMPRESULT* result);
00031     STDMETHODIMP GetSessionOptionBool([in]CMP_SESSION_OPTION option, [out]VARIANT_BOOL *value, [out,retval]CMPRESULT* result);
00032 
00033     //GetErrorText is not implemented in V1.0
00034     STDMETHODIMP GetErrorText([in]CMP_ERROR_ID ErrorId, [out]BSTR *ErrorText, [out,retval]CMPRESULT* result);
00035 
00036     STDMETHODIMP RegisterCMPProcess([in]DWORD processId, [out,retval]CMPRESULT* result);
00037     STDMETHODIMP UnregisterCMPProcess([in]DWORD processId, [out, retval]CMPRESULT* result);
00038     STDMETHODIMP DetectCMPProcess([in]DWORD processId, [out]VARIANT_BOOL* detectFlag, [out,retval]CMPRESULT *result);
00039 };
00040 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Events Defines