Click here to Skip to main content
15,887,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Richard MacCutchan20-Jul-10 4:35
mveRichard MacCutchan20-Jul-10 4:35 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
MicroVirus20-Jul-10 11:01
MicroVirus20-Jul-10 11:01 
AnswerRe: Reading Windows Registry data in 64 bit operating system Pin
Electron Shepherd19-Jul-10 13:17
Electron Shepherd19-Jul-10 13:17 
QuestionOpening Sound File Using PlaySound(); Pin
AmbiguousName18-Jul-10 21:21
AmbiguousName18-Jul-10 21:21 
AnswerRe: Opening Sound File Using PlaySound(); Pin
Code-o-mat18-Jul-10 21:35
Code-o-mat18-Jul-10 21:35 
GeneralRe: Opening Sound File Using PlaySound(); Pin
AmbiguousName18-Jul-10 21:41
AmbiguousName18-Jul-10 21:41 
GeneralRe: Opening Sound File Using PlaySound(); Pin
Code-o-mat18-Jul-10 21:51
Code-o-mat18-Jul-10 21:51 
GeneralRe: Opening Sound File Using PlaySound(); Pin
AmbiguousName18-Jul-10 22:07
AmbiguousName18-Jul-10 22:07 
GeneralRe: Opening Sound File Using PlaySound(); Pin
Code-o-mat18-Jul-10 22:08
Code-o-mat18-Jul-10 22:08 
AnswerRe: Opening Sound File Using PlaySound(); Pin
Shivanand Gupta18-Jul-10 23:57
Shivanand Gupta18-Jul-10 23:57 
QuestionSometimes Print and PrintPreview Function not responding in 64 bit PC. [modified] Pin
Le@rner18-Jul-10 19:36
Le@rner18-Jul-10 19:36 
QuestionNamed Pipes 2-way commication Pin
dene9997018-Jul-10 13:23
dene9997018-Jul-10 13:23 
AnswerRe: Named Pipes 2-way commication Pin
Luc Pattyn18-Jul-10 14:12
sitebuilderLuc Pattyn18-Jul-10 14:12 
AnswerRe: Named Pipes 2-way commication Pin
Chuck O'Toole18-Jul-10 18:20
Chuck O'Toole18-Jul-10 18:20 
AnswerRe: Named Pipes 2-way commication Pin
ThatsAlok18-Jul-10 20:47
ThatsAlok18-Jul-10 20:47 
AnswerRe: Named Pipes 2-way commication Pin
Moak18-Jul-10 23:43
Moak18-Jul-10 23: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.