Esempio n. 1
0
LIST * builtin_system_registry_names( FRAME * frame, int flags )
{
    char const* path        = object_str( list_front( lol_get(frame->args, 0) ) );
    char const* result_type = object_str( list_front( lol_get(frame->args, 1) ) );

    HKEY key = get_key(&path);

    if ( !strcmp(result_type, "subkeys") )
        return get_subkey_names(key, path);
    if ( !strcmp(result_type, "values") )
        return get_value_names(key, path);
    return 0;
}
Esempio n. 2
0
LIST*
builtin_system_registry_names(
    PARSE    *parse,
    FRAME    *frame )
{
    char const* path        = lol_get(frame->args, 0)->string;
    char const* result_type = lol_get(frame->args, 1)->string;

    HKEY key = get_key(&path);

    if ( !strcmp(result_type, "subkeys") )
        return get_subkey_names(key, path);
    if ( !strcmp(result_type, "values") )
        return get_value_names(key, path);
    return 0;
}