DC_Regquery on W10 64bit

This forum is for eXpress++ general support.
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DC_Regquery on W10 64bit

#11 Post by rdonnay »

Code: Select all

#define KEY_WOW64_64KEY 0x0100 
#define KEY_WOW64_32KEY 0x0200 

a:=DC_Regquery(HKEY_LOCAL_MACHINE,"SOFTWARE\pdfforge\PDFCreator\Program","ApplicationVersion",KEY_WOW64_64KEY)
b:=DC_Regquery(HKEY_LOCAL_MACHINE,"SOFTWARE\pdfforge\PDFCreator\Program","ApplicationVersion",KEY_WOW64_32KEY)
The eXpress train is coming - and it has more cars.

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DC_Regquery on W10 64bit

#12 Post by Victorio »

I put this constants , but on my W10 64bit not work !.
With DC_RegQuery do not read any key from HKLC

I can read registry key only manually from cmd with reg query... , or with nircmdc utility but with his 64bit version !

Now I do not know, how test which version OS is installed 64 or 32bit, because I need swith between 2 version nircmdc modules.

Jimmy has on one post some Is64bit() function, but I cannot find some source, maybe this is from some old library.(Fivewin ?)

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: DC_Regquery on W10 64bit

#13 Post by Auge_Ohr »

Victorio wrote:Jimmy has on one post some Is64bit() function, but I cannot find some source, maybe this is from some old library.(Fivewin ?)
here is the Code i use

Code: Select all

FUNCTION Is64bit()
LOCAL lRetval
   lRetval := FExists(Getenv("SystemRoot")+"\SysWOW64","D")
RETURN lRetval
greetings by OHR
Jimmy

Victorio
Posts: 633
Joined: Sun Jan 18, 2015 11:43 am
Location: Slovakia

Re: DC_Regquery on W10 64bit

#14 Post by Victorio »

Jimmy, thank you very much,
It is very simple , one row but big help :clap:

Victorio

Post Reply