Click here to Skip to main content
15,926,703 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Smart Pointers Pin
Richard Andrew x6430-Mar-08 14:58
professionalRichard Andrew x6430-Mar-08 14:58 
GeneralRe: Smart Pointers Pin
Rajkumar R30-Mar-08 19:40
Rajkumar R30-Mar-08 19:40 
GeneralRe: Smart Pointers Pin
cmk30-Mar-08 18:27
cmk30-Mar-08 18:27 
GeneralRe: Smart Pointers Pin
Chris Losinger31-Mar-08 1:42
professionalChris Losinger31-Mar-08 1:42 
Questionunique ID for each computer Pin
Joseph Marzbani30-Mar-08 9:54
Joseph Marzbani30-Mar-08 9:54 
GeneralRe: unique ID for each computer Pin
Richard Andrew x6430-Mar-08 14:08
professionalRichard Andrew x6430-Mar-08 14:08 
QuestionGetting the information, if a softwrare is "running as administartor" (C++ / Windows Vista) Pin
Simon130-Mar-08 4:40
Simon130-Mar-08 4:40 
GeneralRe: Getting the information, if a softwrare is "running as administartor" (C++ / Windows Vista) Pin
Randor 30-Mar-08 7:46
professional Randor 30-Mar-08 7:46 
BOOL IsUserAdmin(VOID)
{
BOOL b;
SID_IDENTIFIER_AUTHORITY NtAuthority = SECURITY_NT_AUTHORITY;
PSID AdministratorsGroup; 
b = AllocateAndInitializeSid(
    &NtAuthority,
    2,
    SECURITY_BUILTIN_DOMAIN_RID,
    DOMAIN_ALIAS_RID_ADMINS,
    0, 0, 0, 0, 0, 0,
    &AdministratorsGroup); 
if(b) 
{
    if (!CheckTokenMembership( NULL, AdministratorsGroup, &b)) 
    {
         b = FALSE;
    } 
    FreeSid(AdministratorsGroup); 
}
return(b);
}


Best Wishes,
-Randor
GeneralRe: Getting the information, if a softwrare is "running as administartor" (C++ / Windows Vista) Pin
Simon130-Mar-08 11:40
Simon130-Mar-08 11:40 
GeneralRe: Getting the information, if a softwrare is "running as administartor" (C++ / Windows Vista) [modified] Pin
Rajkumar R30-Mar-08 19:27
Rajkumar R30-Mar-08 19:27 
GeneralRe: Getting the information, if a softwrare is "running as administartor" (C++ / Windows Vista) Pin
JudyL_MD31-Mar-08 4:38
JudyL_MD31-Mar-08 4:38 
GeneralRe: Getting the information, if a softwrare is "running as administartor" (C++ / Windows Vista) Pin
Randor 31-Mar-08 4:53
professional Randor 31-Mar-08 4:53 
GeneralRe: Getting the information, if a softwrare is "running as administartor" (C++ / Windows Vista) Pin
JudyL_MD31-Mar-08 5:00
JudyL_MD31-Mar-08 5:00 
AnswerRe: Getting the information, if a softwrare is "running as administartor" (C++ / Windows Vista) Pin
graypx24-Jun-08 6:12
graypx24-Jun-08 6:12 
GeneralSTA component call MTA component Pin
George_George30-Mar-08 3:38
George_George30-Mar-08 3:38 
Generalgetting pixel(s) directly from the screen Pin
shja8830-Mar-08 3:26
shja8830-Mar-08 3:26 
GeneralRe: getting pixel(s) directly from the screen Pin
CPallini30-Mar-08 3:53
mveCPallini30-Mar-08 3:53 
GeneralRe: getting pixel(s) directly from the screen Pin
shja8830-Mar-08 4:13
shja8830-Mar-08 4:13 
QuestionRe: getting pixel(s) directly from the screen Pin
Hamid_RT7-Apr-08 2:31
Hamid_RT7-Apr-08 2:31 
Generalauto_ptr assignment compile error Pin
George_George30-Mar-08 0:51
George_George30-Mar-08 0:51 
GeneralRe: auto_ptr assignment compile error Pin
CPallini30-Mar-08 1:33
mveCPallini30-Mar-08 1:33 
GeneralRe: auto_ptr assignment compile error Pin
George_George30-Mar-08 2:38
George_George30-Mar-08 2:38 
GeneralRe: auto_ptr assignment compile error Pin
CPallini30-Mar-08 2:43
mveCPallini30-Mar-08 2:43 
GeneralRe: auto_ptr assignment compile error Pin
George_George30-Mar-08 2:49
George_George30-Mar-08 2:49 
Generalthe debug problem in VC++ Pin
wendyyue29-Mar-08 23:19
wendyyue29-Mar-08 23:19 

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.