Click here to Skip to main content
15,881,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: WSA Events Pin
Mark Salsbery19-Jun-11 9:38
Mark Salsbery19-Jun-11 9:38 
GeneralRe: WSA Events Pin
csrss19-Jun-11 13:13
csrss19-Jun-11 13:13 
GeneralRe: WSA Events Pin
Mark Salsbery19-Jun-11 14:10
Mark Salsbery19-Jun-11 14:10 
GeneralRe: WSA Events Pin
csrss20-Jun-11 5:46
csrss20-Jun-11 5:46 
GeneralRe: WSA Events Pin
Mark Salsbery20-Jun-11 9:29
Mark Salsbery20-Jun-11 9:29 
GeneralRe: WSA Events Pin
csrss20-Jun-11 10:17
csrss20-Jun-11 10:17 
QuestionHow can I read all files from 'Recent File List' ? Pin
_Flaviu18-Jun-11 8:56
_Flaviu18-Jun-11 8:56 
AnswerRe: How can I read all files from 'Recent File List' ? Pin
Richard MacCutchan18-Jun-11 21:42
mveRichard MacCutchan18-Jun-11 21:42 
Using the RegEnumValue()[^] function returns you the name of the value (File1 etc) and the content as a byte array. It also returns you a value item in lpType which tells you what type of data the value has. Assuming you check that this is a REG_SZ (null terminated string) then you can merely cast the pointer to the appropriate type and thence handle it as required, something like:
HKEY hKey // set by previous function
DWORD dwIndex = 0;
char szValueName[256];
DWORD cchValueName = 256;
DWORD dwType;
BYTE bData[4096];
DWORD cbData = 4096;
RegEnumValue(hKey, dwIndex, szValueName, &cchValueName, NULL, &dwType, bData, &cbData)
// check status etc
LPSTR pszValue = reinterpret_cast<LPSTR>(bData);

The best things in life are not things.

GeneralRe: How can I read all files from 'Recent File List' ? [modified] Pin
_Flaviu18-Jun-11 21:45
_Flaviu18-Jun-11 21:45 
GeneralRe: How can I read all files from 'Recent File List' ? Pin
Richard MacCutchan19-Jun-11 21:45
mveRichard MacCutchan19-Jun-11 21:45 
GeneralRe: How can I read all files from 'Recent File List' ? Pin
_Flaviu20-Jun-11 21:28
_Flaviu20-Jun-11 21:28 
GeneralRe: How can I read all files from 'Recent File List' ? Pin
_Flaviu22-Jun-11 20:24
_Flaviu22-Jun-11 20:24 
GeneralRe: How can I read all files from 'Recent File List' ? Pin
Richard MacCutchan22-Jun-11 21:56
mveRichard MacCutchan22-Jun-11 21:56 
QuestionBest Sound API for Game Development? Pin
AutoBot122518-Jun-11 5:04
AutoBot122518-Jun-11 5:04 
QuestionI had this interview question Pin
Software200718-Jun-11 4:26
Software200718-Jun-11 4:26 
AnswerRe: I had this interview question Pin
Philippe Mori18-Jun-11 5:14
Philippe Mori18-Jun-11 5:14 
GeneralRe: I had this interview question Pin
Software200718-Jun-11 15:17
Software200718-Jun-11 15:17 
AnswerRe: I had this interview question Pin
Chuck O'Toole18-Jun-11 15:59
Chuck O'Toole18-Jun-11 15:59 
GeneralRe: I had this interview question Pin
Software200719-Jun-11 13:53
Software200719-Jun-11 13:53 
AnswerRe: I had this interview question Pin
Stefan_Lang19-Jun-11 23:23
Stefan_Lang19-Jun-11 23:23 
GeneralRe: I had this interview question Pin
Software200720-Jun-11 3:17
Software200720-Jun-11 3:17 
Question__debugbreak(); [modified] Pin
Mohibur Rashid17-Jun-11 18:07
professionalMohibur Rashid17-Jun-11 18:07 
AnswerRe: __debugbreak(); Pin
Richard MacCutchan17-Jun-11 22:48
mveRichard MacCutchan17-Jun-11 22:48 
AnswerRe: __debugbreak(); Pin
Mohibur Rashid17-Jun-11 23:04
professionalMohibur Rashid17-Jun-11 23:04 
GeneralRe: __debugbreak(); Pin
Philippe Mori18-Jun-11 5:17
Philippe Mori18-Jun-11 5:17 

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.