Click here to Skip to main content
16,004,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: having problem terminating a thread Pin
alberthyc2-Aug-07 11:09
alberthyc2-Aug-07 11:09 
GeneralRe: having problem terminating a thread Pin
Tony Hill2-Aug-07 10:56
professionalTony Hill2-Aug-07 10:56 
GeneralRe: having problem terminating a thread Pin
alberthyc2-Aug-07 11:07
alberthyc2-Aug-07 11:07 
GeneralRe: having problem terminating a thread Pin
Randor 2-Aug-07 11:07
professional Randor 2-Aug-07 11:07 
GeneralRe: having problem terminating a thread Pin
alberthyc2-Aug-07 11:13
alberthyc2-Aug-07 11:13 
AnswerRe: having problem terminating a thread Pin
David Crow2-Aug-07 10:46
David Crow2-Aug-07 10:46 
QuestionDiffrenece between executing a program within IDE and Windows Explorer Pin
Joseph Marzbani2-Aug-07 8:41
Joseph Marzbani2-Aug-07 8:41 
AnswerRe: Diffrenece between executing a program within IDE and Windows Explorer Pin
Randor 2-Aug-07 10:44
professional Randor 2-Aug-07 10:44 
try enabling debug privileges.

Something like:

<br />
    HANDLE hToken=INVALID_HANDLE_VALUE;<br />
<br />
    if (hToken || OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &hToken))<br />
    {<br />
       TOKEN_PRIVILEGES tp;<br />
       tp.PrivilegeCount = 1;<br />
       SetLastError(0);<br />
       LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &tp.Privileges[0].Luid);<br />
//check for error<br />
       tp.Privileges[0].Attributes = E_PRIVILEGE_ENABLED;<br />
       SetLastError(0);<br />
       AdjustTokenPrivileges(hToken, FALSE, &tp, sizeof(tp), NULL, NULL);<br />
//check for error again<br />
    }<br />


-Randor (David Delaune)
QuestionRe: Diffrenece between executing a program within IDE and Windows Explorer Pin
David Crow2-Aug-07 10:47
David Crow2-Aug-07 10:47 
QuestionReport view list control drawing difference when manifest file used Pin
Keith Worden2-Aug-07 6:29
Keith Worden2-Aug-07 6:29 
QuestionMFC: CListCtrl derived class, &amp;quot;creportctrl&amp;quot; tutorial problem Pin
Sternocera2-Aug-07 5:15
Sternocera2-Aug-07 5:15 
QuestionRe: MFC: CListCtrl derived class, &amp;quot;creportctrl&amp;quot; tutorial problem Pin
David Crow2-Aug-07 5:17
David Crow2-Aug-07 5:17 
AnswerRe: MFC: CListCtrl derived class, &amp;quot;creportctrl&amp;quot; tutorial problem Pin
Sternocera2-Aug-07 5:19
Sternocera2-Aug-07 5:19 
QuestionRe: MFC: CListCtrl derived class, &amp;quot;creportctrl&amp;quot; tutorial problem Pin
David Crow2-Aug-07 5:27
David Crow2-Aug-07 5:27 
AnswerRe: MFC: CListCtrl derived class, &amp;quot;creportctrl&amp;quot; tutorial problem Pin
Sternocera2-Aug-07 5:29
Sternocera2-Aug-07 5:29 
AnswerRe: MFC: CListCtrl derived class, &quot;creportctrl&quot; tutorial problem Pin
led mike2-Aug-07 7:15
led mike2-Aug-07 7:15 
GeneralRe: MFC: CListCtrl derived class, &quot;creportctrl&quot; tutorial problem Pin
Sternocera2-Aug-07 7:21
Sternocera2-Aug-07 7:21 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
led mike2-Aug-07 7:31
led mike2-Aug-07 7:31 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
Sternocera2-Aug-07 7:35
Sternocera2-Aug-07 7:35 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
David Crow2-Aug-07 8:05
David Crow2-Aug-07 8:05 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
Sternocera2-Aug-07 10:08
Sternocera2-Aug-07 10:08 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
David Crow2-Aug-07 10:44
David Crow2-Aug-07 10:44 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
Sternocera2-Aug-07 22:13
Sternocera2-Aug-07 22:13 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
David Crow3-Aug-07 2:43
David Crow3-Aug-07 2:43 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
Sternocera2-Aug-07 22:24
Sternocera2-Aug-07 22:24 

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.