Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Think it's not a InDesign SDK issue. Btw . Have you allocate enough memory for data?
Regards
Bartek
Copy link to clipboard
Copied
Hi Cropas,
Thanks for your quick reply.
But we have alloacted 255 characters array for data.
Thanks,
Santosh Kadam.
Copy link to clipboard
Copied
How do you preset that dwBufferSize variable?
Copy link to clipboard
Copied
HI Dirk,
I set the dwBufferSize variable as
DWORD dwBufferSize = 255;
Thanks,
Santosh Kadam.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now