Click here to Skip to main content
16,006,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to parse the string Pin
Sandeep Saini SRE21-Sep-08 20:31
Sandeep Saini SRE21-Sep-08 20:31 
Questionhow to change systemtime with c++ Pin
tarunkakkar199119-Sep-08 2:43
tarunkakkar199119-Sep-08 2:43 
QuestionRe: how to change systemtime with c++ Pin
CPallini19-Sep-08 2:54
mveCPallini19-Sep-08 2:54 
AnswerRe: how to change systemtime with c++ Pin
David Crow19-Sep-08 3:15
David Crow19-Sep-08 3:15 
QuestionHow to Disable Tree View Selection? Pin
Stuck At Zero19-Sep-08 2:42
Stuck At Zero19-Sep-08 2:42 
QuestionHow to Identify Which Control send the Message in mfc?? Pin
Vikas_12319-Sep-08 2:25
Vikas_12319-Sep-08 2:25 
AnswerRe: How to Identify Which Control send the Message in mfc?? Pin
CPallini19-Sep-08 2:41
mveCPallini19-Sep-08 2:41 
Questionerror LNK2001: unresolved external symbol _CheckTokenMembership Pin
V K 219-Sep-08 2:24
V K 219-Sep-08 2:24 
Hi,
I am getting a linking error while using the following code from MSDN.


BOOL IsUserAdmin(VOID)
/*++
Routine Description: This routine returns TRUE if the caller's
process is a member of the Administrators local group. Caller is NOT
expected to be impersonating anyone and is expected to be able to
open its own process and process token.
Arguments: None.
Return Value:
TRUE - Caller has Administrators local group.
FALSE - Caller does not have Administrators local group. --
*/
{
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);
}
AnswerRe: error LNK2001: unresolved external symbol _CheckTokenMembership Pin
Cedric Moonen19-Sep-08 2:31
Cedric Moonen19-Sep-08 2:31 
GeneralRe: error LNK2001: unresolved external symbol _CheckTokenMembership Pin
V K 219-Sep-08 2:39
V K 219-Sep-08 2:39 
GeneralRe: error LNK2001: unresolved external symbol _CheckTokenMembership Pin
Malli_S19-Sep-08 3:07
Malli_S19-Sep-08 3:07 
GeneralRe: error LNK2001: unresolved external symbol _CheckTokenMembership Pin
V K 219-Sep-08 3:18
V K 219-Sep-08 3:18 
GeneralRe: error LNK2001: unresolved external symbol _CheckTokenMembership Pin
Malli_S19-Sep-08 4:06
Malli_S19-Sep-08 4:06 
GeneralRe: error LNK2001: unresolved external symbol _CheckTokenMembership Pin
Mark Salsbery19-Sep-08 6:14
Mark Salsbery19-Sep-08 6:14 
Questionchange background color Pin
Dhiraj kumar Saini19-Sep-08 1:35
Dhiraj kumar Saini19-Sep-08 1:35 
AnswerRe: change background color Pin
Alan Balkany19-Sep-08 3:56
Alan Balkany19-Sep-08 3:56 
AnswerRe: change background color Pin
Hamid_RT19-Sep-08 18:56
Hamid_RT19-Sep-08 18:56 
QuestionUsing the tab control in VS 2003 Pin
__DanC__19-Sep-08 1:07
__DanC__19-Sep-08 1:07 
AnswerRe: Using the tab control in VS 2003 Pin
Mark Salsbery19-Sep-08 6:18
Mark Salsbery19-Sep-08 6:18 
QuestionByte alignment Pin
Stan the man19-Sep-08 0:07
Stan the man19-Sep-08 0:07 
AnswerRe: Byte alignment Pin
Cedric Moonen19-Sep-08 0:16
Cedric Moonen19-Sep-08 0:16 
GeneralRe: Byte alignment Pin
Stan the man19-Sep-08 0:44
Stan the man19-Sep-08 0:44 
GeneralRe: Byte alignment Pin
Cedric Moonen19-Sep-08 0:56
Cedric Moonen19-Sep-08 0:56 
GeneralRe: Byte alignment Pin
Stan the man19-Sep-08 1:46
Stan the man19-Sep-08 1:46 
AnswerRe: Byte alignment Pin
James R. Twine19-Sep-08 1:27
James R. Twine19-Sep-08 1:27 

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.