|
When a user logins into a windows box using remote desktop or any other terminal services, is it possible to do following,
a. capture login time of the user
b. capture logoff time of the user
c. capture the hostname from where he got connected
d. capture details like what he tried to install/deinstall
e. capture details like what programs he accessed?
Is this possible by means of any programming languages or scripting languages.
|
|
|
|
|
Yes, provided you have the Big Brother Toolbox.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Link?
|
|
|
|
|
www.cpallini.free-spying-products.com
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I should have guessed....
|
|
|
|
|
Hence you don't need the Toolbox.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I am getting a string from map that can be either true or false. Is there any function or some alternative to convert this string into bool. So that I can store it in a bool variable.
string temp;
temp=MyMap.find("Check")->second;
I want to convert temp to bool.
THANKS.
|
|
|
|
|
bool bChecked = false;
if (temp == "true")
bChecked = true;
. You have to check for the case also but you got the idea.
|
|
|
|
|
Thanks for the reply.
This can be done. But instead I am looking for some function that does this like atoi() or itoa() for string to int and vice versa.
Is there any function for strings to bool.
|
|
|
|
|
please reply to this question[^] first before we can reply to you efficiently
|
|
|
|
|
pl_kode wrote: But instead I am looking for some function that does this like atoi() or itoa() for string to int and vice versa
Why ? That's quite simple, why do you want to use an existing function for that ?
pl_kode wrote: Is there any function for strings to bool.
Not as far as I know.
|
|
|
|
|
Good news: it exists, is atob . The bad news is that you have to code it (anyway you got so many hints about).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
what kind of strings are supposed to be stored in MyMap.find("Check")->second ?
I mean, you'll have to test programmatically the string to assign another boolean variable to true or false...
|
|
|
|
|
toxcct wrote: what kind of strings are supposed to be stored in MyMap.find("Check")->second ?
From his snippet of code, I would say std::string.
|
|
|
|
|
you misunderstood me. I meant what is contained within that string ?
1/0 ?
true/false ?
checked/unchecked ?
white/black ?
|
|
|
|
|
true/false (well, that what he said in his post)
|
|
|
|
|
I prefer to be sure...
|
|
|
|
|
true/ false is stored in that
|
|
|
|
|
what about
bool f = temp == "true";
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
You still remember it.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Well I forgot for a while, but then suddenly I spotted you vulture ready for hitting me!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
hehehhehe!!!
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
bool bVal = (temp == "true"?true:false);
-@SuDhIrKuMaR@-
|
|
|
|
|
why do you need the ?: operator ? the std::string::operator==() already returns a bool.
in the same direction, why wouldn't you write this then :
bool bVal = ((temp == "true") == true ? true : false)
or
bool bVal = (((temp == "true") == true) == true ? true : false)
or just
bool bVal = (temp == "true")
|
|
|
|
|
Hi,
I have a class CMyPropertySheet derived from CPropertySheet . I have added a CButton control and a CToolbar on this propertysheet. I have also added command handlers for the button and toolbar buttons. I have created property sheet as modeless propertysheet with WS_CHILD style set.
Handler for button gets called, however, the toolbar is never gets enabled. I see that the toolbar is in disabled state.
If I remove the WS_CHILD style from CMyPropertySheet creation, everything works fine, as expected.
Any help would be highly appreciated.
Regards,
Paresh.
|
|
|
|