14#define FAVORITES_MENU_POSITION 3
54 DWORD dwIndex, cbValueName, cbValueData, dwType;
55 WCHAR szValueName[256];
56 BYTE abValueData[256];
57 static int s_nFavoriteMenuSubPos = -1;
67 if (s_nFavoriteMenuSubPos < 0)
89 cbValueData =
sizeof(abValueData);
90 lResult =
RegEnumValueW(
hKey, dwIndex, szValueName, &cbValueName,
NULL, &dwType, abValueData, &cbValueData);
138 if (nItemID == 2) nItemID = 5;
239 for(
i = 0;
i < PairCount;
i++)
294#define LOADHIVE_KEYNAMELENGTH 128
331 tp.PrivilegeCount = 1;
336 &
tp.Privileges[0].Luid))
412 LONG regUnloadResult;
534 HWND hwndExportBranch;
535 HWND hwndExportBranchText;
554 if (hwndExportBranch)
558 if (hwndExportBranchText)
570 if (hwndExportBranch && hwndExportBranchText
575 else if (pszSelectedKey)
577 pszSelectedKey[0] =
L'\0';
734 hResult = PrintDlgEx(&pd);
737 switch (pd.dwResultAction)
783 WCHAR szFavoritePath[512];
784 DWORD cbData, dwType;
789 cbData =
sizeof(szFavoritePath);
790 memset(szFavoritePath, 0,
sizeof(szFavoritePath));
806 SIZE_T rootlen, subkeylen;
808 if (!subkey || !
hRoot)
818 buffer[rootlen - 1] =
'\\';
896 bClipboardOpened =
TRUE;
917 if (bClipboardOpened)
924 WCHAR szNewValueFormat[128];
925 WCHAR szNewValue[128];
928 DWORD dwExistingType, cbData;
941 wsprintf(szNewValue, szNewValueFormat, iIndex++);
942 cbData =
sizeof(
data);
950 cbData =
sizeof(
DWORD);
954 cbData =
sizeof(
WCHAR);
966 cbData =
sizeof(
WCHAR);
986 memset(&lvfi, 0,
sizeof(lvfi));
988 lvfi.psz = szNewValue;
1006 *pDsObjectPicker =
NULL;
1010 CLSCTX_INPROC_SERVER,
1011 &IID_IDsObjectPicker,
1012 (
LPVOID*)pDsObjectPicker);
1039 InitInfo.
cbSize =
sizeof(InitInfo);
1047 hRet = (*pDsObjectPicker)->lpVtbl->Initialize(*pDsObjectPicker,
1053 (*pDsObjectPicker)->lpVtbl->
Release(*pDsObjectPicker);
1069 hRet = pDsObjectPicker->lpVtbl->InvokeDialog(pDsObjectPicker,
1079 fe.dwAspect = DVASPECT_CONTENT;
1081 fe.tymed = TYMED_HGLOBAL;
1083 hRet = pdo->lpVtbl->
GetData(pdo,
1089 if (SelectionList !=
NULL)
1091 if (SelectionList->
cItems == 1)
1101 nlen *
sizeof(
WCHAR));
1121 pDsObjectPicker->lpVtbl->
Release(pDsObjectPicker);
1155 IDsObjectPicker *ObjectPicker;
1364 if (keyPath == 0 || *keyPath == 0)
1394 WCHAR szFavorite[512];
1398 memset(&mii, 0,
sizeof(mii));
1399 mii.
cbSize =
sizeof(mii);
static __inline VOID DeleteNode(NODE *node)
void ShowAboutBox(HWND hWnd)
BOOL ModifyValue(HWND hwnd, HKEY hKey, LPCWSTR valueName, BOOL EditBin)
BOOL DeleteKey(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath)
BOOL GetKeyName(LPWSTR pszDest, size_t iDestLength, HKEY hRootKey, LPCWSTR lpSubKey)
int InfoMessageBox(HWND hWnd, UINT uType, LPCWSTR lpTitle, LPCWSTR lpMessage,...)
int ErrorMessageBox(HWND hWnd, LPCWSTR lpTitle, DWORD dwErrorCode,...)
void FindNextMessageBox(HWND hWnd)
void FindDialog(HWND hWnd)
static HRESULT InvokeRemoteRegistryPickerDialog(IN IDsObjectPicker *pDsObjectPicker, IN HWND hwndParent OPTIONAL, OUT LPWSTR lpBuffer, IN UINT uSize)
BOOL CopyKeyName(HWND hWnd, HKEY hRootKey, LPCWSTR keyName)
struct FILTERPAIR * PFILTERPAIR
void SetupStatusBar(HWND hWnd, BOOL bResize)
static BOOL CheckCommDlgError(HWND hWnd)
static void resize_frame_client(HWND hWnd)
static BOOL UnloadHive(HWND hWnd)
static void OnEnterMenuLoop(HWND hWnd)
static BOOL InitOpenFileName(HWND hWnd, OPENFILENAME *pofn, BOOL bSave)
BOOL PrintRegistryHive(HWND hWnd, LPWSTR path)
static HRESULT InitializeRemoteRegistryPicker(OUT IDsObjectPicker **pDsObjectPicker)
static INT_PTR CALLBACK LoadHive_KeyNameInHookProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define LOADHIVE_KEYNAMELENGTH
static BOOL EnablePrivilege(LPCWSTR lpszPrivilegeName, LPCWSTR lpszSystemName, BOOL bEnablePrivilege)
static INT_PTR CALLBACK AddToFavoritesDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define FAVORITES_MENU_POSITION
static void ChooseFavorite(LPCWSTR pszFavorite)
static void OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu)
static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
static void toggle_child(HWND hWnd, UINT cmd, HWND hchild)
BOOL ExportRegistryFile(HWND hWnd)
void UpdateStatusBar(void)
static VOID FreeObjectPicker(IN IDsObjectPicker *pDsObjectPicker)
static BOOL LoadHive(HWND hWnd)
void BuildFilterStrings(WCHAR *Filter, PFILTERPAIR Pairs, int PairCount)
static BOOL CreateNewValue(HKEY hRootKey, LPCWSTR pszKeyPath, DWORD dwType)
static WCHAR s_szFavoritesRegKey[]
static void OnExitMenuLoop(HWND hWnd)
static UINT ErrorBox(HWND hWnd, UINT Error)
static BOOL ImportRegistryFile(HWND hWnd)
static UINT_PTR CALLBACK ExportRegistryFile_OFNHookProc(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static LPWSTR GetItemFullPath(HTREEITEM hTI)
WCHAR FileNameBuffer[MAX_PATH]
static void OnInitMenu(HWND hWnd)
static void resize_frame_rect(HWND hWnd, PRECT prect)
LRESULT CALLBACK FrameWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
BOOL RefreshListView(HWND hwndLV, HKEY hKey, LPCWSTR keyPath, BOOL bSelectNone)
WCHAR * GetValueName(HWND hwndLV, int iStartAt)
WCHAR szChildClass[MAX_LOADSTRING]
BOOL import_registry_file(FILE *reg_file)
BOOL SelectNode(HWND hwndTV, LPCWSTR keyPath)
LPCWSTR GetItemPath(HWND hwndTV, HTREEITEM hItem, HKEY *phRootKey)
BOOL RegKeyEditPermissions(HWND hWndOwner, HKEY hKey, LPCWSTR lpMachine, LPCWSTR lpKeyName)
BOOL RefreshTreeView(HWND hWndTV)
BOOL export_registry_key(WCHAR *file_name, WCHAR *path, DWORD format)
BOOL CreateNewKey(HWND hwndTV, HTREEITEM hItem)
BOOL txt_export_registry_key(LPCWSTR file_name, LPCWSTR path)
#define ID_TREE_SUGGESTION_MIN
#define ID_REGISTRY_EXPORTREGISTRYFILE
#define IDS_QUERY_IMPORT_HIVE_MSG
#define ID_EDIT_COPYKEYNAME
#define IDS_EXPORT_REG_FILE
#define IDS_FLT_ALLFILES_FLT
#define IDS_ERR_DELETEVALUE
#define IDS_FLT_REGEDIT4_FLT
#define IDS_FLT_HIVFILES_FLT
#define ID_VIEW_STATUSBAR
#define ID_REGISTRY_UNLOADHIVE
#define IDS_IMPORT_REG_FILE
#define ID_FAVOURITES_ADDTOFAVOURITES
#define ID_REGISTRY_PRINT
#define ID_TREE_PERMISSIONS
#define IDS_QUERY_DELETE_CONFIRM
#define IDS_QUERY_IMPORT_HIVE_CAPTION
#define ID_TREE_EXPANDBRANCH
#define IDC_EXPORT_BRANCH
#define ID_TREE_COLLAPSEBRANCH
#define IDC_EXPORT_BRANCH_TEXT
#define ID_EDIT_NEW_MULTISTRINGVALUE
#define ID_REGISTRY_CONNECTNETWORKREGISTRY
#define ID_EDIT_NEW_STRINGVALUE
#define IDS_ERR_DELVAL_CAPTION
#define ID_REGISTRY_DISCONNECTNETWORKREGISTRY
#define IDS_FLT_REGFILES_FLT
#define IDS_QUERY_DELETE_ONE
#define ID_HELP_HELPTOPICS
#define ID_EDIT_MODIFY_BIN
#define ID_EDIT_NEW_EXPANDABLESTRINGVALUE
#define ID_TREE_SUGGESTION_MAX
#define ID_EDIT_NEW_DWORDVALUE
#define ID_REGISTRY_LOADHIVE
#define ID_EDIT_PERMISSIONS
#define IDS_FLT_TXTFILES_FLT
#define IDS_QUERY_DELETE_MORE
#define ID_EDIT_NEW_BINARYVALUE
#define ID_REGISTRY_IMPORTREGISTRYFILE
#define RegCloseKey(hKey)
#define CDERR_MEMLOCKFAILURE
#define FNERR_SUBCLASSFAILURE
#define CDERR_MEMALLOCFAILURE
#define FNERR_BUFFERTOOSMALL
#define CDERR_NOHINSTANCE
#define CDERR_LOADSTRFAILURE
#define FNERR_INVALIDFILENAME
#define CDERR_INITIALIZATION
#define CDERR_LOADRESFAILURE
#define CDERR_FINDRESFAILURE
#define CDERR_LOCKRESFAILURE
#define CDERR_DIALOGFAILURE
DWORD WINAPI CommDlgExtendedError(void)
#define OFN_OVERWRITEPROMPT
#define PD_USEDEVMODECOPIESANDCOLLATE
#define OFN_FILEMUSTEXIST
#define OFN_ENABLETEMPLATE
#define OFN_PATHMUSTEXIST
OPENFILENAMEA OPENFILENAME
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
#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 RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegUnLoadKeyW(HKEY hKey, LPCWSTR lpSubKey)
LONG WINAPI RegFlushKey(HKEY hKey)
LONG WINAPI RegLoadKeyW(HKEY hKey, LPCWSTR lpSubKey, LPCWSTR lpFile)
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 RegDeleteValueW(HKEY hKey, LPCWSTR lpValueName)
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 RegSaveKeyW(HKEY hKey, LPCWSTR lpFile, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
BOOL WINAPI LookupPrivilegeValueW(LPCWSTR lpSystemName, LPCWSTR lpPrivilegeName, PLUID lpLuid)
BOOL WINAPI AdjustTokenPrivileges(HANDLE TokenHandle, BOOL DisableAllPrivileges, PTOKEN_PRIVILEGES NewState, DWORD BufferLength, PTOKEN_PRIVILEGES PreviousState, PDWORD ReturnLength)
BOOL WINAPI OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle)
#define GetCurrentProcess()
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
void WINAPI ReleaseStgMedium(STGMEDIUM *pmedium)
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
static struct netconfig_info ni
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
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
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
_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)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
HRESULT GetData([in, unique] FORMATETC *pformatetcIn, [out] STGMEDIUM *pmedium)
unsigned long long DWORDLONG
TCHAR szTitle[MAX_LOADSTRING]
#define memcpy(s1, s2, n)
#define ERROR_ALREADY_EXISTS
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
unsigned __int3264 UINT_PTR
#define UNREFERENCED_PARAMETER(P)
#define DSOP_SCOPE_TYPE_EXTERNAL_DOWNLEVEL_DOMAIN
#define DSOP_SCOPE_TYPE_DOWNLEVEL_JOINED_DOMAIN
#define DSOP_SCOPE_TYPE_USER_ENTERED_DOWNLEVEL_SCOPE
struct _DS_SELECTION_LIST * PDS_SELECTION_LIST
#define DSOP_SCOPE_TYPE_GLOBAL_CATALOG
#define DSOP_DOWNLEVEL_FILTER_COMPUTERS
#define DSOP_SCOPE_TYPE_USER_ENTERED_UPLEVEL_SCOPE
#define DSOP_SCOPE_TYPE_WORKGROUP
#define DSOP_SCOPE_TYPE_EXTERNAL_UPLEVEL_DOMAIN
#define DSOP_FILTER_COMPUTERS
#define DSOP_SCOPE_TYPE_UPLEVEL_JOINED_DOMAIN
struct _DSOP_SCOPE_INIT_INFO DSOP_SCOPE_INIT_INFO
#define CFSTR_DSOP_DS_SELECTION_LIST
#define ListView_SetItemState(hwndLV, i, data, mask)
#define TreeView_Expand(hwnd, hitem, code)
#define ListView_EditLabel(hwndLV, i)
#define TreeView_GetParent(hwnd, hitem)
#define ListView_GetNextItem(hwnd, i, flags)
#define TreeView_GetSelection(hwnd)
#define TreeView_GetItem(hwnd, pitem)
#define ListView_GetSelectedCount(hwndLV)
#define TreeView_EditLabel(hwnd, hitem)
#define ListView_FindItem(hwnd, iStart, plvfi)
#define ListView_EnsureVisible(hwndLV, i, fPartialOK)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
PULONG MinorVersion OPTIONAL
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
PCWSTR * apwzAttributeNames
PDSOP_SCOPE_INIT_INFO aDsScopeInfos
DS_SELECTION aDsSelection[ANYSIZE_ARRAY]
UINT WINAPI GetDlgItemTextW(HWND hDlg, int nIDDlgItem, LPWSTR lpString, int nMaxCount)
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
DWORD WINAPI GetLastError(void)
#define FORMAT_MESSAGE_IGNORE_INSERTS
#define FORMAT_MESSAGE_FROM_SYSTEM
#define MAX_COMPUTERNAME_LENGTH
#define ERROR_NOT_ALL_ASSIGNED
BOOL WINAPI DeleteDC(_In_ HDC)
#define HKEY_CURRENT_USER
HWND WINAPI GetFocus(void)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
int WINAPI GetMenuItemCount(_In_opt_ HMENU)
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define DialogBoxW(i, t, p, f)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
HANDLE WINAPI SetClipboardData(_In_ UINT, _In_opt_ HANDLE)
BOOL WINAPI CloseClipboard(void)
BOOL WINAPI WinHelpW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_ UINT, _In_ ULONG_PTR)
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
BOOL WINAPI OpenClipboard(_In_opt_ HWND)
BOOL WINAPI MessageBeep(_In_ UINT uType)
#define WM_SYSCOLORCHANGE
BOOL WINAPI SetCursorPos(_In_ int, _In_ int)
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
HWND WINAPI GetNextDlgTabItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
HWND WINAPI SetFocus(_In_opt_ HWND)
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
BOOL WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
BOOL WINAPI EmptyClipboard(void)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
int WINAPI GetWindowTextLengthW(_In_ HWND)
#define MB_ICONINFORMATION
#define MAKEINTRESOURCEW(i)
BOOL WINAPI IsWindowVisible(_In_ HWND)
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HMENU WINAPI GetMenu(_In_ HWND)
SHORT WINAPI GetKeyState(_In_ int)
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
#define REG_FORCE_RESTORE
#define TOKEN_ADJUST_PRIVILEGES
#define SE_PRIVILEGE_ENABLED