Click here to Skip to main content
16,011,744 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why Can't I download the source code Pin
toxcct30-Aug-07 23:35
toxcct30-Aug-07 23:35 
QuestionRe: Why Can't I download the source code Pin
David Crow31-Aug-07 3:45
David Crow31-Aug-07 3:45 
QuestionSlider Control, Force Ticks Pin
TheShihan30-Aug-07 22:01
TheShihan30-Aug-07 22:01 
AnswerRe: Slider Control, Force Ticks Pin
Iain Clarke, Warrior Programmer30-Aug-07 23:32
Iain Clarke, Warrior Programmer30-Aug-07 23:32 
GeneralRe: Slider Control, Force Ticks Pin
chandu00431-Aug-07 0:27
chandu00431-Aug-07 0:27 
QuestionProcess memory access Pin
Waldermort30-Aug-07 21:55
Waldermort30-Aug-07 21:55 
AnswerRe: Process memory access Pin
jhwurmbach30-Aug-07 22:16
jhwurmbach30-Aug-07 22:16 
AnswerRe: Process memory access Pin
Randor 31-Aug-07 1:25
professional Randor 31-Aug-07 1:25 
You may need to enable debug privledges.

Something like this:

LUID luid;
HANDLE hToken;
TOKEN_PRIVILEGES tp, otp;
DWORD dwSize = sizeof(TOKEN_PRIVILEGES);
if(OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY,&hToken))
{
	if(LookupPrivilegeValue(NULL,SE_SYSTEMTIME_NAME,&luid))
	{
		SecureZeroMemory(&tp,sizeof(tp));
		tp.PrivilegeCount = 1;
		tp.Privileges[0].Luid = luid;
		tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
		if (AdjustTokenPrivileges(hToken, FALSE, &tp, sizeof(TOKEN_PRIVILEGES),&otp, &dwSize))
		{

//TRY YOUR MEMORY WRITING HERE
//NO GUARANTEES, -DAVE
		}
	}
	CloseHandle(hToken);
}

Best regards,
-David Delaune
GeneralRe: Process memory access Pin
Waldermort31-Aug-07 1:35
Waldermort31-Aug-07 1:35 
QuestionUnique ID of a computer. Pin
chandu00430-Aug-07 21:27
chandu00430-Aug-07 21:27 
AnswerRe: Unique ID of a computer. Pin
Nishad S30-Aug-07 21:31
Nishad S30-Aug-07 21:31 
GeneralRe: Unique ID of a computer. Pin
chandu00430-Aug-07 21:35
chandu00430-Aug-07 21:35 
GeneralRe: Unique ID of a computer. Pin
Nishad S30-Aug-07 21:37
Nishad S30-Aug-07 21:37 
GeneralRe: Unique ID of a computer. Pin
Russell'30-Aug-07 21:56
Russell'30-Aug-07 21:56 
GeneralRe: Unique ID of a computer. Pin
Nishad S30-Aug-07 22:15
Nishad S30-Aug-07 22:15 
GeneralRe: Unique ID of a computer. Pin
Waldermort30-Aug-07 22:24
Waldermort30-Aug-07 22:24 
GeneralRe: Unique ID of a computer. Pin
Nishad S30-Aug-07 22:55
Nishad S30-Aug-07 22:55 
GeneralRe: Unique ID of a computer. Pin
Russell'30-Aug-07 22:28
Russell'30-Aug-07 22:28 
GeneralRe: Unique ID of a computer. Pin
Nishad S30-Aug-07 22:57
Nishad S30-Aug-07 22:57 
GeneralRe: Unique ID of a computer. Pin
Russell'30-Aug-07 23:31
Russell'30-Aug-07 23:31 
GeneralRe: Unique ID of a computer. Pin
Nishad S31-Aug-07 0:47
Nishad S31-Aug-07 0:47 
GeneralRe: Unique ID of a computer. Pin
Russell'31-Aug-07 1:00
Russell'31-Aug-07 1:00 
GeneralRe: Unique ID of a computer. Pin
Nishad S31-Aug-07 1:12
Nishad S31-Aug-07 1:12 
GeneralRe: Unique ID of a computer. Pin
Russell'31-Aug-07 1:22
Russell'31-Aug-07 1:22 
GeneralRe: Unique ID of a computer. Pin
Nishad S31-Aug-07 1:30
Nishad S31-Aug-07 1:30 

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.