urgent for Antonio.
appeal to the problem in Returning the information from the Registrar
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run.
I want the information in the Registrar Run.
function REGQUERYVALUE() not ready
hathal .
#define HKEY_LOCAL_MACHINE 2147483650
#define ERROR_SUCCESS 0
function Main()
local hKey, cName, uValue, n := 0
RegOpenKey( HKEY_LOCAL_MACHINE,;
"Software\Microsoft\Windows\CurrentVersion\Run", @hKey )
while RegEnumValue( hKey, n++, @cName, @uValue ) == ERROR_SUCCESS
MsgInfo( cName )
MsgInfo( uValue )
end
RegCloseKey( hKey )
return nil
#ifdef __HARBOUR__
CLIPPER REGENUMVALUE( PARAMS ) // ( nKey, nIndex, @cKeyName, @uValue ) --> nResult
#else
CLIPPER REGENUMVAL( PARAMS ) // UE( nKey, nIndex, @cKeyName, @uValue ) --> nResult
#endif
{
BYTE name[ 256 ];
BYTE value[ 256 ];
LONG lName, lValue;
DWORD type;
_retnl( RegEnumValue( ( HKEY ) _parnl( 1 ), _parnl( 2 ), ( char * ) name, &lName,
NULL, &type, ( char * ) value, &lValue ) );
_storc( ( char * ) name, 3 );
switch( type )
{
case REG_SZ:
_storc( ( char * ) value, 4 );
break;
case REG_DWORD:
_stornl( * ( ( LPDWORD ) value ), 4 );
break;
}
}
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 62 guests