35 DWORD dwMaxSubKeyNameLength;
36 DWORD dwSubKeyNameLength;
37 DWORD dwMaxValueNameLength;
38 DWORD dwValueNameLength;
39 DWORD dwMaxValueLength;
56 &dwMaxSubKeyNameLength,
59 &dwMaxValueNameLength,
65 DPRINT1(
"RegQueryInfoKey() failed (Error %lu)\n", dwError);
69 dwMaxSubKeyNameLength++;
70 dwMaxValueNameLength++;
72 DPRINT(
"dwSubKeys %lu\n", dwSubKeys);
73 DPRINT(
"dwMaxSubKeyNameLength %lu\n", dwMaxSubKeyNameLength);
74 DPRINT(
"dwValues %lu\n", dwValues);
75 DPRINT(
"dwMaxValueNameLength %lu\n", dwMaxValueNameLength);
76 DPRINT(
"dwMaxValueLength %lu\n", dwMaxValueLength);
83 dwMaxSubKeyNameLength *
sizeof(
WCHAR));
86 DPRINT1(
"Buffer allocation failed\n");
90 for (
i = 0;
i < dwSubKeys;
i++)
92 dwSubKeyNameLength = dwMaxSubKeyNameLength;
103 DPRINT1(
"Subkey enumeration failed (Error %lu)\n", dwError);
121 DPRINT1(
"Subkey creation failed (Error %lu)\n", dwError);
135 DPRINT1(
"Error: %lu\n", dwError);
147 DPRINT1(
"Error: %lu\n", dwError);
170 dwMaxValueNameLength *
sizeof(
WCHAR));
173 DPRINT1(
"Buffer allocation failed\n");
180 dwMaxValueLength +
sizeof(
WCHAR));
181 if (lpDataBuffer ==
NULL)
183 DPRINT1(
"Buffer allocation failed\n");
190 for (
i = 0;
i < dwValues;
i++)
192 dwValueNameLength = dwMaxValueNameLength;
193 dwValueLength = dwMaxValueLength;
204 DPRINT1(
"Error: %lu\n", dwError);
222 DPRINT1(
"Error: %lu\n", dwError);
242 DPRINT(
"ScmCopyTree() done\n");
static DWORD ScmCopyTree(HKEY hSrcKey, HKEY hDstKey)
#define ERROR_NOT_ENOUGH_MEMORY
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
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)
static LPSTR lpNameBuffer
#define REG_OPTION_NON_VOLATILE
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
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
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)
#define HeapFree(x, y, z)
#define RegCloseKey(hKey)