#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
FILE *fich1,fich2;
char *ligne,*res;
system("reg export HKEY_CURRENT_USER\\Identitites c:\\regbase.txt" );
fich1=fopen("c:\\regbase.txt","r" );
fich2=fopen("c:\\regnew.txt","w" );
while(fgets(ligne,sizeof(ligne),fich1))
{
if((res=strstr("[HKEY_CURRENT_USER\\Identities\\{" ))&& strlen(res)==67)fputs(res,fich2);
}
fclose(fich1);
fclose(fich2);
return 0;
}