Click here to Skip to main content
15,896,730 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: completely restrict mouse movement (including raw data) Pin
elchupathingy19-Jul-10 3:37
elchupathingy19-Jul-10 3:37 
QuestionRe: completely restrict mouse movement (including raw data) Pin
3Dizard20-Jul-10 5:45
3Dizard20-Jul-10 5:45 
AnswerRe: completely restrict mouse movement (including raw data) Pin
elchupathingy20-Jul-10 9:44
elchupathingy20-Jul-10 9:44 
AnswerRe: completely restrict mouse movement (including raw data) Pin
Code-o-mat19-Jul-10 4:02
Code-o-mat19-Jul-10 4:02 
GeneralRe: completely restrict mouse movement (including raw data) Pin
elchupathingy19-Jul-10 4:35
elchupathingy19-Jul-10 4:35 
GeneralRe: completely restrict mouse movement (including raw data) Pin
Code-o-mat19-Jul-10 4:42
Code-o-mat19-Jul-10 4:42 
GeneralRe: completely restrict mouse movement (including raw data) Pin
elchupathingy19-Jul-10 4:55
elchupathingy19-Jul-10 4:55 
Questiontry-catch exception Pin
Pryabu18-Jul-10 22:59
Pryabu18-Jul-10 22:59 
AnswerRe: try-catch exception Pin
ShilpiP18-Jul-10 23:07
ShilpiP18-Jul-10 23:07 
GeneralRe: try-catch exception Pin
Pryabu18-Jul-10 23:21
Pryabu18-Jul-10 23:21 
GeneralRe: try-catch exception Pin
ShilpiP18-Jul-10 23:49
ShilpiP18-Jul-10 23:49 
AnswerRe: try-catch exception Pin
Niklas L18-Jul-10 23:21
Niklas L18-Jul-10 23:21 
GeneralRe: try-catch exception Pin
Aescleal19-Jul-10 0:01
Aescleal19-Jul-10 0:01 
QuestionImage GDI+ Pin
john563218-Jul-10 22:52
john563218-Jul-10 22:52 
AnswerRe: Image GDI+ Pin
E.F. Nijboer19-Jul-10 4:51
E.F. Nijboer19-Jul-10 4:51 
QuestionReading Windows Registry data in 64 bit operating system Pin
msr_codeproject18-Jul-10 21:26
msr_codeproject18-Jul-10 21:26 
AnswerRe: Reading Windows Registry data in 64 bit operating system Pin
Richard MacCutchan18-Jul-10 22:28
mveRichard MacCutchan18-Jul-10 22:28 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Mattias G19-Jul-10 2:11
Mattias G19-Jul-10 2:11 
GeneralRe: Reading Windows Registry data in 64 bit operating system [modified] Pin
Richard MacCutchan19-Jul-10 3:29
mveRichard MacCutchan19-Jul-10 3:29 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Mattias G19-Jul-10 3:55
Mattias G19-Jul-10 3:55 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Richard MacCutchan19-Jul-10 4:06
mveRichard MacCutchan19-Jul-10 4:06 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
msr_codeproject19-Jul-10 6:33
msr_codeproject19-Jul-10 6:33 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
David Crow19-Jul-10 10:18
David Crow19-Jul-10 10:18 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Richard MacCutchan19-Jul-10 23:02
mveRichard MacCutchan19-Jul-10 23:02 
Try the following:
static PWSTR pszKeyName = L"Software\\ABCD\\ABCD UD PCL6_00-00-00-00-00-00\\printer_ui\\icc_profile";
	
LONG	lResult;
HKEY	hkMyKey;
DWORD	dwDisposition;
DWORD	dwType;
DWORD	dwData;
DWORD	dwSize;

lResult = RegCreateKeyEx(HKEY_CURRENT_USER,
	pszKeyName,
	0,
	NULL,
	0,
	KEY_READ,
	NULL,
	&hkMyKey,
	&dwDisposition
	);
if (ERROR_SUCCESS == lResult)
{
	dwSize = sizeof dwData;
	lResult = RegGetValue(hkMyKey,
			L"0",
			L"szResId",
			RRF_RT_ANY,
			&dwType,
			&dwData,
			&dwSize
			);
}

Note: this is a Win32 solution, I don't have access to a 64-bit system.
It's time for a new signature.

GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
MicroVirus20-Jul-10 2:20
MicroVirus20-Jul-10 2:20 

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.