Lines Matching refs:fp
928 static WCHAR *get_lineA(FILE *fp) in get_lineA() argument
937 if (!fp) goto cleanup; in get_lineA()
961 if (!(count = fread(buf + len, 1, size - len - 1, fp))) in get_lineA()
986 static WCHAR *get_lineW(FILE *fp) in get_lineW() argument
992 if (!fp) goto cleanup; in get_lineW()
1016 if (!(count = fread(buf + len, sizeof(WCHAR), size - len - 1, fp))) in get_lineW()
1125 static void REGPROC_write_line(FILE *fp, const WCHAR *str, BOOL unicode) in REGPROC_write_line() argument
1128 fwrite(str, sizeof(WCHAR), lstrlenW(str), fp); in REGPROC_write_line()
1132 fputs(strA, fp); in REGPROC_write_line()
1188 static size_t export_value_name(FILE *fp, WCHAR *name, size_t len, BOOL unicode) in export_value_name() argument
1203 REGPROC_write_line(fp, buf, unicode); in export_value_name()
1210 REGPROC_write_line(fp, default_name, unicode); in export_value_name()
1243 static size_t export_hex_data_type(FILE *fp, DWORD type, BOOL unicode) in export_hex_data_type() argument
1251 REGPROC_write_line(fp, hex, unicode); in export_hex_data_type()
1262 REGPROC_write_line(fp, buf, unicode); in export_hex_data_type()
1271 static void export_hex_data(FILE *fp, WCHAR **buf, DWORD type, DWORD line_len, in export_hex_data() argument
1276 line_len += export_hex_data_type(fp, type, unicode); in export_hex_data()
1301 REGPROC_write_line(fp, *buf, unicode); in export_hex_data()
1302 REGPROC_write_line(fp, L"\\\r\n ", unicode); in export_hex_data()
1309 static void export_newline(FILE *fp, BOOL unicode) in export_newline() argument
1311 REGPROC_write_line(fp, L"\r\n", unicode); in export_newline()
1314 static void export_data(FILE *fp, WCHAR *value_name, DWORD value_len, DWORD type, in export_data() argument
1318 size_t line_len = export_value_name(fp, value_name, value_len, unicode); in export_data()
1337 export_hex_data(fp, &buf, type, line_len, data, size, unicode); in export_data()
1343 REGPROC_write_line(fp, buf, unicode); in export_data()
1347 export_newline(fp, unicode); in export_data()
1364 static void export_key_name(FILE *fp, WCHAR *name, BOOL unicode) in export_key_name() argument
1374 REGPROC_write_line(fp, buf, unicode); in export_key_name()
1380 static void export_registry_data(FILE *fp, HKEY key, WCHAR *path, BOOL unicode) in export_registry_data() argument
1391 export_key_name(fp, path, unicode); in export_registry_data()
1404 export_data(fp, value_name, value_len, type, data, data_size, unicode); in export_registry_data()
1440 export_registry_data(fp, subkey, subkey_path, unicode); in export_registry_data()
1505 FILE *fp; in export_key() local
1517 fp = REGPROC_open_export_file(file_name, unicode); in export_key()
1519 if (!fp) in export_key()
1522 export_registry_data(fp, key, path, unicode); in export_key()
1523 export_newline(fp, unicode); in export_key()
1524 fclose(fp); in export_key()
1532 FILE *fp; in export_all() local
1537 fp = REGPROC_open_export_file(file_name, unicode); in export_all()
1539 if (!fp) in export_all()
1547 fclose(fp); in export_all()
1554 export_registry_data(fp, classes[i], class_name, unicode); in export_all()
1560 export_newline(fp, unicode); in export_all()
1561 fclose(fp); in export_all()