Re: Cache the login information

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I use code like this:

AfxGetApp()->WriteProfileString(_T("Host History"), _T("MessageServer
Host"), m_csMessageServerHost);
AfxGetApp()->WriteProfileString(_T("Host History"), _T("MessageServer
Port"), m_csMessageServerPort);

And to get back...

m_csMessageServerHost = GetProfileStringRimage(_T("Host History"),
_T("MessageServer Host"),_T("Messaging
Host"),GRS(IDS_THIS_COMPUTER),false);
m_csMessageServerPort = GetProfileStringRimage(_T("Host History"),
_T("MessageServer Port"),_T("Messaging Port"),DEFAULT_PORT,false);

You can fill in the variables for the edit controls directionly and use
UpdateData(false) to update the window.

Tom

<anup.kataria@xxxxxxxxx> wrote in message
news:1155191332.208418.208970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi

I am writting a chat client. I need to add such feature that Last login
user name should automatically appear in the input box.

I need to know should I use a file or there is any other method for
this.



.



Relevant Pages

  • Re: /etc/hosts.equiv & .rhosts
    ... want to login at another host, that host needs the first host's name ... best to allow key-only login so hackers can't ... on the port 22 as it WILL be messed with all day long. ... # Protocol 2 only ...
    (comp.os.linux.security)
  • Re: SSH Port forwarding
    ... I don't want the user to login into my host instead I want the user to ... port forwarding command, the user was able to login to my host. ... But what happens is it directly logged into the remotehost which I ...
    (comp.security.ssh)
  • Re: Reported Kazaa and Morpheus vulnerabilities
    ... I.E. being able to browse port 1214 is a FEATURE NOT A BUG. ... And in regards to security, to my knowledge no audit or major testing has ... Multiple long Host: headers ...
    (Vuln-Dev)
  • Re: GSoC: registration of optional kernel features via sysctl: a question to the community
    ... presence on the build host. ... we have to make a change to the port anyway. ... And IMO it does not matter much if we change it to detect it at run-time (then we do not need the spoofing feature), or if we change it to look for the sysctl at build time. ...
    (freebsd-hackers)
  • Re: VGER does gradual SPF activation (FAQ matter)
    ... all of which offer that same "feature" along with port 80 blocking and a host of other invasive features (not to mention the hundred ARP "Who has 1.2.3.4?" ... My college does the same SMTP blocking and there is no "alternate ISP" there. ...
    (Linux-Kernel)