20 static INT s_index = 0;
24 s_index = (s_index + 1) %
_countof(s_asz);
176 pszType =
L"REG_BINARY";
178 pszType =
L"REG_QWORD";
180 pszType =
L"REG_NONE";
198 subkey_path =
malloc(cb_subkey_path);
212 FILETIME ftLastWrite, ftLocal, ftNull = { 0 };
214 WCHAR sz1[64], sz2[64];
222 ftLastWrite = ftNull;
227 if (cchClassName > 0)
232 if (
memcmp(&ftLastWrite, &ftNull,
sizeof(ftNull)) == 0)
249 DWORD max_data_bytes = 2048, data_size;
252 WCHAR *value_name, *subkey_name, *subkey_path;
259 value_name =
malloc(max_value_len *
sizeof(
WCHAR));
265 value_len = max_value_len;
266 data_size = max_data_bytes;
275 if (data_size > max_data_bytes)
277 max_data_bytes = data_size;
283 value_name =
realloc(value_name, max_value_len *
sizeof(
WCHAR));
348 if (subkey) *(subkey - 1) = 0;
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
const WCHAR * reg_class_namesW[]
#define IDS_NULL_TIMESTAMP
#define IDS_FIELD_KEY_NAME
#define IDS_FIELD_LASTWRITE
#define IDS_FIELD_CLASS_NAME
#define IDS_NO_CLASS_NAME
#define RegCloseKey(hKey)
static const WCHAR szClassName[]
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegEnumKeyExW(_In_ HKEY hKey, _In_ DWORD dwIndex, _Out_ LPWSTR lpName, _Inout_ LPDWORD lpcbName, _Reserved_ LPDWORD lpReserved, _Out_opt_ LPWSTR lpClass, _Inout_opt_ LPDWORD lpcbClass, _Out_opt_ PFILETIME lpftLastWriteTime)
LONG WINAPI RegEnumValueW(_In_ HKEY hKey, _In_ DWORD index, _Out_ LPWSTR value, _Inout_ PDWORD val_count, _Reserved_ PDWORD reserved, _Out_opt_ PDWORD type, _Out_opt_ LPBYTE data, _Inout_opt_ PDWORD count)
LONG WINAPI RegQueryInfoKeyW(HKEY hKey, LPWSTR lpClass, LPDWORD lpcClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcMaxSubKeyLen, LPDWORD lpcMaxClassLen, LPDWORD lpcValues, LPDWORD lpcMaxValueNameLen, LPDWORD lpcMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime)
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
BOOL WINAPI FileTimeToLocalFileTime(IN CONST FILETIME *lpFileTime, OUT LPFILETIME lpLocalFileTime)
GLuint GLuint GLsizei GLenum type
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLboolean GLboolean GLboolean b
GLenum const GLvoid * addr
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ _CRTIMP FILE *__cdecl _wfopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP size_t __cdecl fwrite(_In_reads_bytes_(_Size *_Count) const void *_Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
static const WCHAR label[]
#define LOCALE_USER_DEFAULT
_Check_return_ _CRTIMP int __cdecl _wcsnicmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
STRSAFEAPI StringCchVPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat, va_list argList)
STRSAFEAPI StringCbPrintfW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszFormat,...)
static void txt_export_binary(FILE *fp, const void *data, size_t size)
static BOOL txt_export_key(LPCWSTR file_name, LPCWSTR path)
static void txt_newline(FILE *fp)
static void txt_export_name(FILE *fp, LPCWSTR name)
static void txt_export_multi_sz(FILE *fp, const void *data, size_t size)
static void txt_fputs(FILE *fp, LPCWSTR str)
static void txt_fprintf(FILE *fp, LPCWSTR format,...)
static void txt_export_registry_data(FILE *fp, HKEY key, LPCWSTR path)
static void txt_export_field(FILE *fp, LPCWSTR label, LPCWSTR value)
static WCHAR * txt_build_subkey_path(LPCWSTR path, DWORD path_len, LPCWSTR subkey_name, DWORD subkey_len)
static HKEY reg_class_keys[]
static void txt_export_type(FILE *fp, LPCWSTR type)
static HKEY txt_parse_key_name(LPCWSTR key_name, WCHAR **key_path)
static void txt_export_class_and_last_write(FILE *fp, HKEY key)
static void txt_export_data(FILE *fp, INT i, LPCWSTR value_name, DWORD value_len, DWORD type, const void *data, size_t size)
static HKEY txt_open_export_key(HKEY key_class, LPCWSTR subkey, LPCWSTR path)
static void txt_export_key_name(FILE *fp, LPCWSTR name)
static BOOL txt_export_all(LPCWSTR file_name, LPCWSTR path)
static FILE * txt_open_export_file(LPCWSTR file_name)
static LPWSTR load_str(INT id)
BOOL txt_export_registry_key(LPCWSTR file_name, LPCWSTR path)
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_CONFIG
#define HKEY_CURRENT_USER
#define HKEY_CLASSES_ROOT
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
BOOL WINAPI IsCharAlphaNumericW(_In_ WCHAR)