1024{
1025 static const WCHAR regkey_mail[] = {
1026 'S','o','f','t','w','a','r','e','\\','C','l','i','e','n','t','s','\\',
1027 'M','a','i','l',0 };
1028
1029 static const WCHAR regkey_dllpath[] = {
'D',
'L',
'L',
'P',
'a',
't',
'h',0 };
1030 static const WCHAR regkey_dllpath_ex[] = {
'D',
'L',
'L',
'P',
'a',
't',
'h',
'E',
'x',0 };
1031 static const WCHAR regkey_backslash[] = {
'\\', 0 };
1032
1034 DWORD dwType, dwLen = 0;
1036
1038
1039
1041 return;
1042
1043
1047
1049
1052
1053
1055
1057
1060
1061 if (!appKey)
1063
1065 lstrcatW(appKey, regkey_backslash);
1067
1069
1071
1072
1075
1076
1079
1080
1082
1083
1085 {
1098 }
1099
1100
1102 {
1106
1122 }
1123
1128}
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
#define GetProcAddress(x, y)
#define HeapFree(x, y, z)
MAPI_FUNCTIONS mapiFunctions
static void load_mapi_provider(HKEY hkeyMail, LPCWSTR valueName, HMODULE *mapi_provider)
static HMODULE mapi_provider
static HMODULE mapi_ex_provider
const char * appName(const char *argv0)
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
LPMAPISENDMAIL MAPISendMail
LPMAPILOGONEX MAPILogonEx
LPMAPIDELETEMAIL MAPIDeleteMail
LPMAPISENDDOCUMENTS MAPISendDocuments
LPMAPIINITIALIZE MAPIInitialize
LPMAPISAVEMAIL MAPISaveMail
LPMAPIFINDNEXT MAPIFindNext
LPMAPIRESOLVENAME MAPIResolveName
LPMAPIREADMAIL MAPIReadMail
LPMAPIADDRESS MAPIAddress
LPMAPIUNINITIALIZE MAPIUninitialize
LPMAPISENDMAILW MAPISendMailW
LPMAPIDETAILS MAPIDetails
#define HKEY_LOCAL_MACHINE