I would like to know how works RegQueryValueEx. I know how works RegOpen and RegSet but I don't succeed with this one. A simple example with: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Version --> How I must do please ?
Posted on 2000-12-15 17:30:00 by Divon
Here is the code... ;RegQueryValueEx (LONG) ;- ;HKEY hKey, //handle of key to query ;LPTSTR lpszValueName, // address of name of value to query ;LPDWORD lpdwReserved, // reserved ;LPDWORD lpdwType, // address of buffer for value type ;LPBYTE lpbData, // address of data buffer ;LPDWORD lpcbData // address of data buffer size ;- .DATA rpath db "\SOFTWARE\Microsoft\Windows\CurrentVersion\Version",0 buff dd 0 .CODE invoke GlobalAlloc,GMEM_FIXED,50000 mov buff,eax invoke RegQueryValueEx,HKEY_LOCAL_MACHINE,rpath,NULL,REG_DWORD,addr buff,50000 invoke GlobalFree,buff
Posted on 2000-12-15 20:54:00 by dork