71 ATLASSERT(
FALSE &&
TEXT(
"statically linked in CRegObject is not a com object. Do not call this function"));
77 ATLASSERT(
FALSE &&
TEXT(
"statically linked in CRegObject is not a com object. Do not call this function"));
83 ATLASSERT(
FALSE &&
TEXT(
"statically linked in CRegObject is not a com object. Do not call this function"));
199 wchar_t szBuffer[256];
210 dwSize =
sizeof(szBuffer) /
sizeof(szBuffer[0]);
216 dwSize =
sizeof(szBuffer) /
sizeof(szBuffer[0]);
248 buf->str[
buf->len] =
'\0';
281 regstrw[
len - 1] =
'\0';
327 regstrw[
len - 1] =
'\0';
358 if (
FAILED(hResult) && do_register)
384 iter =
wcschr(iter2,
'%');
396 for (rep_iter =
m_rep; rep_iter; rep_iter = rep_iter->
next)
439 if (*iter ==
'}' || *iter ==
'=')
445 else if (*iter ==
'\'')
448 iter =
wcschr(iter,
'\'');
476 if (
a >=
'0' &&
a <=
'9')
478 if (
a >=
'A' &&
a <=
'F')
480 if (
a >=
'a' &&
a <=
'f')
502 static const wchar_t *wstrNoRemove =
L"NoRemove";
503 static const wchar_t *wstrForceRemove =
L"ForceRemove";
504 static const wchar_t *wstrDelete =
L"Delete";
505 static const wchar_t *wstrval =
L"val";
516 while(
buf->str[1] ||
buf->str[0] !=
'}')
522 key_type = FORCE_REMOVE;
526 key_type = DO_DELETE;
537 if (key_type == IS_VAL)
544 else if (key_type == DO_DELETE)
550 if (key_type == FORCE_REMOVE)
560 else if (key_type != IS_VAL && key_type != DO_DELETE)
571 if (key_type != DO_DELETE && *iter ==
'=')
611 if ((
buf->str[0] ==
'0' &&
buf->str[1] ==
'x') || (
buf->str[0] ==
'&' &&
buf->str[1] ==
'H'))
629 if ((
count & 1) != 0)
632 for (curIndex = 0; curIndex <
count; curIndex++)
654 else if(key_type == IS_VAL)
660 if (key_type != IS_VAL && key_type != DO_DELETE && *iter ==
'{' &&
iswspace(iter[1]))
670 if (!do_register && (key_type ==
NORMAL || key_type == FORCE_REMOVE))
675 if (hkey && key_type != IS_VAL)
686 if (hkey && key_type != IS_VAL)
698 static const struct {
747 if (
buf.str[1] ||
buf.str[0] !=
'{')
#define STDMETHODCALLTYPE
#define RegCloseKey(hKey)
HRESULT STDMETHODCALLTYPE ResourceUnregisterSz(LPCOLESTR resFileName, LPCOLESTR szID, LPCOLESTR szType)
HRESULT STDMETHODCALLTYPE FileUnregister(LPCOLESTR fileName)
unsigned int HexToBin(OLECHAR a)
ULONG STDMETHODCALLTYPE AddRef()
HRESULT STDMETHODCALLTYPE ResourceRegisterSz(LPCOLESTR resFileName, LPCOLESTR szID, LPCOLESTR szType)
HRESULT STDMETHODCALLTYPE QueryInterface(const IID &, void **)
HRESULT get_word(LPCOLESTR *str, strbuf *buf)
HRESULT strbuf_init(strbuf *buf)
ULONG STDMETHODCALLTYPE Release()
HRESULT file_register(LPCOLESTR fileName, BOOL do_register)
struct ATL::CRegObject::rep_list_str rep_list
HRESULT STDMETHODCALLTYPE FileRegister(LPCOLESTR fileName)
HRESULT STDMETHODCALLTYPE ResourceUnregister(LPCOLESTR resFileName, UINT nID, LPCOLESTR szType)
HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOOL do_register)
HRESULT STDMETHODCALLTYPE StringRegister(LPCOLESTR data)
HRESULT resource_register(LPCOLESTR resFileName, LPCOLESTR szID, LPCOLESTR szType, BOOL do_register)
HRESULT do_process_root_key(LPCOLESTR data, BOOL do_register)
HRESULT STDMETHODCALLTYPE RegisterWithFile(LPCOLESTR fileName, BOOL doRegister)
LONG RegDeleteTreeX(HKEY parentKey, LPCWSTR subKeyName)
HRESULT STDMETHODCALLTYPE ClearReplacements()
HRESULT STDMETHODCALLTYPE RegisterWithResource(LPCOLESTR resFileName, LPCOLESTR szID, LPCOLESTR szType, BOOL doRegister)
HRESULT STDMETHODCALLTYPE AddReplacement(LPCOLESTR key, LPCOLESTR item)
HRESULT STDMETHODCALLTYPE StringUnregister(LPCOLESTR data)
HRESULT string_register(LPCOLESTR data, BOOL do_register)
HRESULT do_preprocess(LPCOLESTR data, strbuf *buf)
HRESULT STDMETHODCALLTYPE ResourceRegister(LPCOLESTR resFileName, UINT nID, LPCOLESTR szType)
HRESULT STDMETHODCALLTYPE RegisterWithString(LPCOLESTR data, BOOL doRegister)
HRESULT strbuf_write(LPCOLESTR str, strbuf *buf, int len)
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 RegOpenKeyW(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegDeleteKeyW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey)
LONG WINAPI RegCreateKeyW(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult)
static const struct @325 root_keys[]
#define ReadFile(a, b, c, d, e)
#define INVALID_HANDLE_VALUE
#define HeapFree(x, y, z)
#define MultiByteToWideChar
DWORD WINAPI GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
DWORD WINAPI SizeofResource(HINSTANCE hModule, HRSRC hRsrc)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
GLboolean GLboolean GLboolean GLboolean a
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_ long __cdecl wcstol(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
_Check_return_ unsigned long __cdecl wcstoul(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
virtual HRESULT STDMETHODCALLTYPE ClearReplacements()=0
virtual HRESULT STDMETHODCALLTYPE AddReplacement(LPCOLESTR key, LPCOLESTR item)=0
#define memcpy(s1, s2, n)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static DWORD LPDWORD reslen
REFIID LPVOID DWORD_PTR dw
#define FILE_ATTRIBUTE_READONLY
_Check_return_ _CRTIMP int __cdecl _memicmp(_In_reads_bytes_opt_(_Size) const void *_Buf1, _In_reads_bytes_opt_(_Size) const void *_Buf2, _In_ size_t _Size)
struct rep_list_str * next
DWORD WINAPI GetLastError(void)
#define LOAD_LIBRARY_AS_DATAFILE
#define HRESULT_FROM_WIN32(x)
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_CONFIG
#define HKEY_CURRENT_USER
#define HKEY_PERFORMANCE_DATA
#define HKEY_CLASSES_ROOT
#define MAKEINTRESOURCEW(i)