Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Easiest way to display colored text in a textbox? Pin
Nish Nishant8-May-02 4:05
sitebuilderNish Nishant8-May-02 4:05 
AnswerRe: Easiest way to display colored text in a textbox? Pin
Chris Losinger8-May-02 4:19
professionalChris Losinger8-May-02 4:19 
AnswerRe: Easiest way to display colored text in a textbox? Pin
Marc Richarme8-May-02 8:33
Marc Richarme8-May-02 8:33 
GeneralRe: Easiest way to display colored text in a textbox? Pin
generic_user_id8-May-02 23:19
generic_user_id8-May-02 23:19 
GeneralKill exe's... ( processes) Pin
Braulio Dez8-May-02 0:12
Braulio Dez8-May-02 0:12 
GeneralRe: Kill exe's... ( processes) Pin
adara8-May-02 1:43
adara8-May-02 1:43 
GeneralRe: Kill exe's... ( processes) Pin
Braulio Dez8-May-02 2:47
Braulio Dez8-May-02 2:47 
GeneralRe: Kill exe's... ( processes) Pin
adara8-May-02 4:24
adara8-May-02 4:24 
HANDLE hToken;
if (OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &hToken))
{
if (EnablePrivilege(hToken, SE_DEBUG_NAME, TRUE))
{
.....
}


BOOL EnablePrivilege(HANDLE hToken, LPCTSTR szPrivName, BOOL fEnable)
{
TOKEN_PRIVILEGES tp;
tp.PrivilegeCount = 1;
LookupPrivilegeValue(NULL, szPrivName, &tp.Privileges[0].Luid);
tp.Privileges[0].Attributes = fEnable ? SE_PRIVILEGE_ENABLED : 0;
AdjustTokenPrivileges(hToken, FALSE, &tp, sizeof(tp), NULL, NULL);
return((GetLastError() == ERROR_SUCCESS));
}


GeneralRe: Kill exe's... ( processes) Pin
Nish Nishant8-May-02 4:08
sitebuilderNish Nishant8-May-02 4:08 
GeneralRe: Kill exe's... ( processes) Pin
Braulio Dez8-May-02 4:19
Braulio Dez8-May-02 4:19 
GeneralRe: Kill exe's... ( processes) Pin
Chris Losinger8-May-02 4:20
professionalChris Losinger8-May-02 4:20 
GeneralRe: Kill exe's... ( processes) Pin
Braulio Dez8-May-02 4:25
Braulio Dez8-May-02 4:25 
GeneralRe: Kill exe's... ( processes) Pin
Mike Nordell9-May-02 21:20
Mike Nordell9-May-02 21:20 
GeneralRe: Kill exe's... ( processes) Pin
Braulio Dez10-May-02 3:08
Braulio Dez10-May-02 3:08 
Generalslightly puzzled... Pin
l a u r e n7-May-02 23:42
l a u r e n7-May-02 23:42 
GeneralRe: slightly puzzled... Pin
Henk Groenewoud8-May-02 0:59
Henk Groenewoud8-May-02 0:59 
GeneralRe: slightly puzzled... Pin
Roger Allen8-May-02 1:15
Roger Allen8-May-02 1:15 
GeneralRe: slightly puzzled... Pin
Jonathan Craig8-May-02 4:58
Jonathan Craig8-May-02 4:58 
GeneralRe: slightly puzzled... Pin
l a u r e n8-May-02 5:07
l a u r e n8-May-02 5:07 
GeneralWTL 7.0 COM Server Pin
7-May-02 23:40
suss7-May-02 23:40 
GeneralChange size of Dialog of CFormView Pin
sanskypotov7-May-02 23:31
sanskypotov7-May-02 23:31 
GeneralRe: Change size of Dialog of CFormView Pin
l a u r e n7-May-02 23:50
l a u r e n7-May-02 23:50 
GeneralRe: Change size of Dialog of CFormView Pin
sanskypotov8-May-02 0:01
sanskypotov8-May-02 0:01 
GeneralRe: Change size of Dialog of CFormView Pin
l a u r e n8-May-02 0:20
l a u r e n8-May-02 0:20 
GeneralRunning MFC program on Chinese Win NT Pin
Einar7-May-02 22:43
Einar7-May-02 22:43 

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.