Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to retrieve another cookies from InternetGetCookie() when the website sets multiple cookies. Pin
Avinash Pachar27-Dec-11 21:22
Avinash Pachar27-Dec-11 21:22 
QuestionRe: How to retrieve another cookies from InternetGetCookie() when the website sets multiple cookies. Pin
David Crow28-Dec-11 4:20
David Crow28-Dec-11 4:20 
AnswerRe: How to retrieve another cookies from InternetGetCookie() when the website sets multiple cookies. Pin
Chuck O'Toole28-Dec-11 5:16
Chuck O'Toole28-Dec-11 5:16 
QuestionRe: How to retrieve another cookies from InternetGetCookie() when the website sets multiple cookies. Pin
Avinash Pachar3-Jan-12 21:21
Avinash Pachar3-Jan-12 21:21 
QuestionRe: How to retrieve another cookies from InternetGetCookie() when the website sets multiple cookies. Pin
Avinash Pachar9-Jan-12 22:28
Avinash Pachar9-Jan-12 22:28 
QuestionWriting data on exif Pin
eduardocardoso27-Dec-11 6:09
eduardocardoso27-Dec-11 6:09 
QuestionSystem Query Pin
john563227-Dec-11 0:16
john563227-Dec-11 0:16 
AnswerRe: System Query Pin
Randor 27-Dec-11 11:46
professional Randor 27-Dec-11 11:46 
Hi,

john5632 wrote:
Is there anything like "register for events/notifications from the OS or system" to get values of RAM & Disk usage?


In the old days you could use the WM_COMPACTING message[^] to be notified when system memory was low. However for some reason... some might consider this window message obsolete... as its only sent to top level windows.

It may be better to utilize the CreateMemoryResourceNotification function[^] for being notified of a low memory condition.

Hmmm... I can't really think of any callbacks for being notified about disk space. I know that the Performance Data Helper can be used to setup a disk space counter... but that would be pretty much the same as periodically using GetDiskFreeSpace... you would just be allowing PDH to do the work for you. There is also the Win32_PerfFormattedData_PerfDisk_LogicalDisk[^] but again... all this does is read performance monitoring data.

It might be possible to use the EvtSubscribe function[^] to subscribe[^] to a low memory or low disk space event[^]. But why make it so complicated?


None of the 'low disk space' options look very appealing to me personally... I would therefore recommend that you continue to use GetDiskFreeSpaceEx[^] along with a CreateMemoryResourceNotification [^] object.

Best Wishes,
-David Delaune
GeneralRe: System Query Pin
john563227-Dec-11 19:36
john563227-Dec-11 19:36 
SuggestionRe: System Query Pin
David Crow28-Dec-11 4:18
David Crow28-Dec-11 4:18 
GeneralRe: System Query Pin
Randor 28-Dec-11 11:11
professional Randor 28-Dec-11 11:11 
GeneralRe: System Query Pin
john563227-Dec-11 20:27
john563227-Dec-11 20:27 
GeneralRe: System Query Pin
Randor 28-Dec-11 11:08
professional Randor 28-Dec-11 11:08 
GeneralRe: System Query Pin
john563229-Dec-11 18:23
john563229-Dec-11 18:23 
GeneralRe: System Query Pin
Randor 29-Dec-11 18:47
professional Randor 29-Dec-11 18:47 
GeneralRe: System Query Pin
john563229-Dec-11 20:29
john563229-Dec-11 20:29 
GeneralRe: System Query Pin
Randor 29-Dec-11 21:57
professional Randor 29-Dec-11 21:57 
QuestionJoining 2 values with wcsncat_s Pin
jkirkerx26-Dec-11 10:52
professionaljkirkerx26-Dec-11 10:52 
AnswerRe: Joining 2 values with wcsncat_s Pin
Chris Losinger26-Dec-11 10:59
professionalChris Losinger26-Dec-11 10:59 
GeneralRe: Joining 2 values with wcsncat_s Pin
jkirkerx26-Dec-11 11:13
professionaljkirkerx26-Dec-11 11:13 
QuestionNetwork Utilization Pin
john563225-Dec-11 22:13
john563225-Dec-11 22:13 
AnswerRe: Network Utilization Pin
Richard MacCutchan26-Dec-11 6:57
mveRichard MacCutchan26-Dec-11 6:57 
AnswerRe: Network Utilization Pin
Randor 26-Dec-11 12:17
professional Randor 26-Dec-11 12:17 
QuestionDetect keypress count Pin
juver escolta23-Dec-11 6:04
juver escolta23-Dec-11 6:04 
AnswerRe: Detect keypress count Pin
CPallini23-Dec-11 7:34
mveCPallini23-Dec-11 7:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.