Go to the source code of this file.
◆ AddAssociation()
Definition at line 171 of file assoc.c.
static VOID ErrorMessage(DWORD dwErrorCode, LPWSTR szFormat,...)
size_t __cdecl _tcslen(const _TCHAR *str)
#define REG_OPTION_NON_VOLATILE
#define KEY_CREATE_SUB_KEY
#define RegCloseKey(hKey)
#define HKEY_LOCAL_MACHINE
Referenced by CommandAssoc().
◆ CommandAssoc()
Definition at line 238 of file assoc.c.
258 if (pEqualSign !=
NULL)
260 PTSTR pszFileType = pEqualSign + 1;
267 if (*pszFileType == 0)
static LONG RemoveAssociation(IN PCTSTR pszExtension)
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
#define ConErrResPrintf(uID,...)
static LONG AddAssociation(IN PCTSTR pszExtension, IN PCTSTR pszType)
#define ERROR_FILE_NOT_FOUND
_TCHAR * _tcschr(const _TCHAR *s, _XINT c)
VOID ConErrPrintf(LPTSTR szFormat,...)
#define STRING_ASSOC_HELP
static LONG PrintAllAssociations(VOID)
static LONG PrintAssociation(IN PCTSTR pszExtension)
#define STRING_ASSOC_ERROR
int _tcsncmp(const _TCHAR *s1, const _TCHAR *s2, size_t n)
◆ PrintAllAssociations()
static LONG PrintAllAssociations |
( |
VOID |
| ) |
|
|
static |
Definition at line 108 of file assoc.c.
138 WARN(
"Cannot allocate memory for pszExtName!\n");
143 for (dwKeyCtr = 0; dwKeyCtr < dwNumKeys; ++dwKeyCtr)
145 DWORD dwBufSize = dwExtLen;
146 lRet =
RegEnumKeyEx(hKeyClasses, dwKeyCtr, pszExtName, &dwBufSize,
152 if (*pszExtName ==
_T(
'.'))
static VOID ErrorMessage(DWORD dwErrorCode, LPWSTR szFormat,...)
#define ERROR_NOT_ENOUGH_MEMORY
#define RegCloseKey(hKey)
static LONG PrintAssociationEx(IN HKEY hKeyClasses, IN PCTSTR pszExtension)
#define HKEY_LOCAL_MACHINE
#define KEY_ENUMERATE_SUB_KEYS
Referenced by CommandAssoc().
◆ PrintAssociation()
Definition at line 87 of file assoc.c.
static VOID ErrorMessage(DWORD dwErrorCode, LPWSTR szFormat,...)
#define RegCloseKey(hKey)
static LONG PrintAssociationEx(IN HKEY hKeyClasses, IN PCTSTR pszExtension)
#define HKEY_LOCAL_MACHINE
#define KEY_ENUMERATE_SUB_KEYS
Referenced by CommandAssoc().
◆ PrintAssociationEx()
Definition at line 23 of file assoc.c.
29 DWORD dwFileTypeLen = 0;
60 WARN(
"Cannot allocate memory for pszFileType!\n");
77 if (dwFileTypeLen != 0)
static VOID ErrorMessage(DWORD dwErrorCode, LPWSTR szFormat,...)
#define ERROR_NOT_ENOUGH_MEMORY
#define ConOutPrintf(szStr,...)
#define ERROR_FILE_NOT_FOUND
#define RegCloseKey(hKey)
Referenced by PrintAllAssociations(), and PrintAssociation().
◆ RemoveAssociation()
Definition at line 210 of file assoc.c.
static VOID ErrorMessage(DWORD dwErrorCode, LPWSTR szFormat,...)
#define ERROR_FILE_NOT_FOUND
#define RegCloseKey(hKey)
#define HKEY_LOCAL_MACHINE
Referenced by CommandAssoc().