|
-
Sep 27th, 2000, 01:28 PM
#1
I have a couple of questions:
- I'm using GlobalMemoryStatus to display a resource meter. It returns the status of three types of memory: Virtual Memory, Physical Memory, and Paging File.
I know that the Physical Memory is actually the RAM, but how do I convert the other two to something more user-friendly? - What should I send to a mail server in order to check if there are any new messages? I don't need the actual messages, just the number of new messages.
Thanks!
-
Sep 27th, 2000, 01:51 PM
#2
Monday Morning Lunatic
I only know a definite answer to your second question:
This is for a POP3 mail server. First, try on Telnet using port "pop3" (110). It will return something like:
Code:
+OK hello from popgate
At this point, send "user parksie" or something. It will then return:
Code:
+OK password required
Then send "pass xxxx". If you're lucky, you'll get something like:
Code:
+OK maildrop ready, 0 messages (0 octets)
(octets = bytes, since a byte is 8 bits)
So basically, just check after sending that it returned "+OK" anything. You can just extract the first numerical value.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 27th, 2000, 02:08 PM
#3
Thanks parksie.
So how do I convert this stuff to code if I'm using winsock?
-
Sep 27th, 2000, 02:16 PM
#4
And shouldn't it be encrypted somehow?
I mean, I'm sending usernames and passwords just like that?
I don't want to risk any information etc...
-
Sep 27th, 2000, 03:15 PM
#5
-
Sep 27th, 2000, 03:19 PM
#6
Thanks guys.
For some reason dwAvailPhys always equals 0. 
[Edited by Sc0rp on 09-27-2000 at 04:22 PM]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|