>>559
下のソースでたのんます。
ウチだと2500ms程度ですた。

#include <windows.h>
#include <stdio.h>
#include <mmsystem.h>

#pragma comment(lib, "winmm.lib")

int main()
{
  char key[256], buf[256];
  DWORD t = timeGetTime();
  for (int i = 0; i < 1000; i++) {
    sprintf(key, "%d", i);
    sprintf(buf, "%020d", i);
    WritePrivateProfileString("0", key, buf, "c:\\test.ini");
  }
  printf("%dms\n", timeGetTime() - t);
}