- Timestamp:
- Mar 15, 2012 2:20:01 PM (13 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleImpl.h
r40084 r40482 677 677 bool guestPropertiesVRDPEnabled(void); 678 678 void guestPropertiesVRDPUpdateLogon(uint32_t u32ClientId, const char *pszUser, const char *pszDomain); 679 void Console::guestPropertiesVRDPUpdateActiveClient(uint32_t u32ClientId); 679 680 void guestPropertiesVRDPUpdateClientAttach(uint32_t u32ClientId, bool fAttached); 680 681 void guestPropertiesVRDPUpdateNameChange(uint32_t u32ClientId, const char *pszName); -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r40465 r40482 764 764 return; 765 765 766 LogFlowFunc(("\n")); 767 766 768 char szPropNm[256]; 767 769 Bstr bstrReadOnlyGuest(L"RDONLYGUEST"); … … 786 788 787 789 char szClientId[64]; 788 RTStrPrintf(szClientId, sizeof(szClientId), "% d", u32ClientId);790 RTStrPrintf(szClientId, sizeof(szClientId), "%u", u32ClientId); 789 791 mMachine->SetGuestProperty(Bstr("/VirtualBox/HostInfo/VRDP/LastConnectedClient").raw(), 790 792 Bstr(szClientId).raw(), … … 794 796 } 795 797 796 void Console::guestPropertiesVRDPUpdate NameChange(uint32_t u32ClientId, const char *pszName)798 void Console::guestPropertiesVRDPUpdateActiveClient(uint32_t u32ClientId) 797 799 { 798 800 if (!guestPropertiesVRDPEnabled()) 799 801 return; 802 803 LogFlowFunc(("%d\n", u32ClientId)); 804 805 Bstr bstrFlags(L"RDONLYGUEST,TRANSIENT"); 806 807 char szClientId[64]; 808 RTStrPrintf(szClientId, sizeof(szClientId), "%u", u32ClientId); 809 810 mMachine->SetGuestProperty(Bstr("/VirtualBox/HostInfo/VRDP/ActiveClient").raw(), 811 Bstr(szClientId).raw(), 812 bstrFlags.raw()); 813 814 return; 815 } 816 817 void Console::guestPropertiesVRDPUpdateNameChange(uint32_t u32ClientId, const char *pszName) 818 { 819 if (!guestPropertiesVRDPEnabled()) 820 return; 821 822 LogFlowFunc(("\n")); 800 823 801 824 char szPropNm[256]; … … 816 839 return; 817 840 841 LogFlowFunc(("\n")); 842 818 843 Bstr bstrReadOnlyGuest(L"RDONLYGUEST"); 819 844 … … 832 857 if (!guestPropertiesVRDPEnabled()) 833 858 return; 859 860 LogFlowFunc(("\n")); 834 861 835 862 Bstr bstrReadOnlyGuest(L"RDONLYGUEST"); … … 1118 1145 AssertComRCReturnVoid(autoCaller.rc()); 1119 1146 1147 LogFlowFunc(("%s\n", pszStatus)); 1148 1120 1149 /* Parse the status string. */ 1121 1150 if (RTStrICmp(pszStatus, "ATTACH") == 0) … … 1157 1186 NOREF(u32ClientId); 1158 1187 mDisplay->VideoAccelVRDP(true); 1188 1189 #ifdef VBOX_WITH_GUEST_PROPS 1190 guestPropertiesVRDPUpdateActiveClient(u32ClientId); 1191 #endif /* VBOX_WITH_GUEST_PROPS */ 1159 1192 1160 1193 LogFlowFuncLeave(); … … 1228 1261 #ifdef VBOX_WITH_GUEST_PROPS 1229 1262 guestPropertiesVRDPUpdateDisconnect(u32ClientId); 1263 if (u32Clients == 0) 1264 guestPropertiesVRDPUpdateActiveClient(0); 1230 1265 #endif /* VBOX_WITH_GUEST_PROPS */ 1231 1266
Note:
See TracChangeset
for help on using the changeset viewer.