Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Reading Registry values

New Here ,
Jan 06, 2010 Jan 06, 2010

Hi All,

I have store the following data in registry.

Name                         Type               Data

ClassFlowPath            RES_SZ        C:\Program Files\Adobe\Adobe InDesign CS4\Plug-ins\ClassFlow.exe

When I try to read the above "Data" in program by using following function it returns the only first character that is "C"  but the actual value is whole path of exe.

It returns the bytes value as 1 (i.e  lszValue).

lRes =RegQueryValueEx(hKeyResult,lpValueName,NULL,&dwType,(LPBYTE)&lszValue,&dwBufferSize))==ERROR_SUCCESS

So please help me to resolve this problem.

Thanks & Regards,

Santosh Kadam.

TOPICS
SDK
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 07, 2010 Jan 07, 2010

Think it's not a InDesign SDK issue. Btw . Have you allocate enough memory for data?

Regards

Bartek

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 07, 2010 Jan 07, 2010

Hi Cropas,

Thanks for your quick reply.

But we have alloacted 255 characters array for data.

Thanks,

Santosh Kadam.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jan 07, 2010 Jan 07, 2010

How do you preset that dwBufferSize variable?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 07, 2010 Jan 07, 2010
LATEST

HI Dirk,

I set the dwBufferSize variable as

DWORD dwBufferSize = 255;

Thanks,

Santosh Kadam.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines