Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDisplaying Chinese Characters Pin
pix_programmer20-Mar-11 19:06
pix_programmer20-Mar-11 19:06 
AnswerRe: Displaying Chinese Characters Pin
Richard MacCutchan20-Mar-11 23:09
mveRichard MacCutchan20-Mar-11 23:09 
QuestionRe: Displaying Chinese Characters [modified] Pin
pix_programmer20-Mar-11 23:28
pix_programmer20-Mar-11 23:28 
AnswerRe: Displaying Chinese Characters Pin
Richard MacCutchan21-Mar-11 2:24
mveRichard MacCutchan21-Mar-11 2:24 
AnswerRe: Displaying Chinese Characters Pin
yu-jian21-Mar-11 3:44
yu-jian21-Mar-11 3:44 
AnswerRe: Displaying Chinese Characters Pin
malaugh31-Mar-11 13:15
malaugh31-Mar-11 13:15 
QuestionHelp Get handles of process Pin
so0_lanhlung219-Mar-11 23:29
so0_lanhlung219-Mar-11 23:29 
AnswerRe: Help Get handles of process Pin
Hans Dietrich20-Mar-11 3:09
mentorHans Dietrich20-Mar-11 3:09 
After this statement
status = NtQuerySystemInformation(SystemHandleInformation,handleInfo,size,&needed);
the count is
handleInfo->HandleCount=39337
Your code then goes on to examine each of the handles to check if it belongs to the PID. After finding 26 handles, your code crashes in malloc with ENOMEM. As far as I can tell, up until then the buffer objectTypeInfo->Name.Buffer contains valid strings. So the good news is, your code seems to be working.

Maybe you could search for the specific APIs you're using, and check if you're calling them correctly? It looks like you're not freeing some memory buffer.
Best wishes,
Hans


[Hans Dietrich Software]

GeneralRe: Help Get handles of process Pin
so0_lanhlung220-Mar-11 6:22
so0_lanhlung220-Mar-11 6:22 
GeneralRe: Help Get handles of process Pin
Hans Dietrich20-Mar-11 7:12
mentorHans Dietrich20-Mar-11 7:12 
GeneralRe: Help Get handles of process Pin
so0_lanhlung220-Mar-11 15:54
so0_lanhlung220-Mar-11 15:54 
Questioncan anyone convert this MFC code to WIN32 code please help Pin
goldenrose919-Mar-11 19:39
goldenrose919-Mar-11 19:39 
AnswerRe: can anyone convert this MFC code to WIN32 code please help Pin
Stephen Hewitt19-Mar-11 20:54
Stephen Hewitt19-Mar-11 20:54 
AnswerRe: can anyone convert this MFC code to WIN32 code please help Pin
Richard MacCutchan19-Mar-11 22:19
mveRichard MacCutchan19-Mar-11 22:19 
GeneralMessage Removed Pin
19-Mar-11 22:37
goldenrose919-Mar-11 22:37 
GeneralRe: can anyone convert this MFC code to WIN32 code please help Pin
Richard MacCutchan19-Mar-11 22:44
mveRichard MacCutchan19-Mar-11 22:44 
AnswerRe: can anyone convert this MFC code to WIN32 code please help Pin
User 742933820-Mar-11 0:37
professionalUser 742933820-Mar-11 0:37 
AnswerRe: can anyone convert this MFC code to WIN32 code please help Pin
Hans Dietrich20-Mar-11 1:40
mentorHans Dietrich20-Mar-11 1:40 
GeneralMessage Removed Pin
20-Mar-11 1:56
goldenrose920-Mar-11 1:56 
GeneralRe: can anyone convert this MFC code to WIN32 code please help Pin
Hans Dietrich20-Mar-11 2:43
mentorHans Dietrich20-Mar-11 2:43 
JokeMessage Removed Pin
20-Mar-11 2:52
goldenrose920-Mar-11 2:52 
GeneralRe: can anyone convert this MFC code to WIN32 code please help PinPopular
Hans Dietrich20-Mar-11 3:14
mentorHans Dietrich20-Mar-11 3:14 
GeneralMessage Removed Pin
20-Mar-11 6:02
goldenrose920-Mar-11 6:02 
GeneralRe: can anyone convert this MFC code to WIN32 code please help PinPopular
Richard MacCutchan20-Mar-11 7:16
mveRichard MacCutchan20-Mar-11 7:16 
GeneralRe: can anyone convert this MFC code to WIN32 code please help Pin
tagopi21-Mar-11 0:29
tagopi21-Mar-11 0:29 

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.