You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.4 KiB
107 lines
3.4 KiB
/*
|
|
* shared.h
|
|
*
|
|
* History:
|
|
* Feb '98: Created.
|
|
*
|
|
* Copyright (C) Microsoft Corp. 1998
|
|
*
|
|
* Describes functions in staticRT/shared.cpp
|
|
*/
|
|
|
|
#ifndef _SHARED_H
|
|
#define _SHARED_H
|
|
|
|
#ifdef __cplusplus
|
|
#define _EXTERN_ extern "C"
|
|
#else
|
|
#define _EXTERN_ extern
|
|
#endif
|
|
|
|
#define STR_PATH_MAIN_EXE "msimn.exe"
|
|
|
|
#ifdef DEFINE_SHARED_STRINGS
|
|
#define SHARED_GLOBAL(x,y) _EXTERN_ CDECL const TCHAR x[] = TEXT(y)
|
|
#else
|
|
#define SHARED_GLOBAL(x,y) _EXTERN_ CDECL const TCHAR x[]
|
|
#endif
|
|
|
|
// Files
|
|
SHARED_GLOBAL(c_szAdvPackDll, "ADVPACK.DLL");
|
|
SHARED_GLOBAL(c_szOEResDll, "msoeres.dll");
|
|
SHARED_GLOBAL(c_szInetResDll, "inetres.dll");
|
|
SHARED_GLOBAL(c_szAcctResDll, "acctres.dll");
|
|
SHARED_GLOBAL(c_szOutlAcctManDll, "outlacct.dll");
|
|
SHARED_GLOBAL(c_szOEExe, STR_PATH_MAIN_EXE);
|
|
|
|
// Reg Keys
|
|
SHARED_GLOBAL(c_szRegWinCurrVer, "Software\\Microsoft\\Windows\\CurrentVersion");
|
|
SHARED_GLOBAL(c_szRegInetCommDll, "Software\\Microsoft\\Outlook Express\\Inetcomm");
|
|
SHARED_GLOBAL(c_szRegOEAppPath, "Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\" STR_PATH_MAIN_EXE);
|
|
SHARED_GLOBAL(c_szRegMsoeAcctDll, "Software\\Microsoft\\Internet Account Manager");
|
|
|
|
// Reg Value Names
|
|
SHARED_GLOBAL(c_szDllPath, "DllPath");
|
|
SHARED_GLOBAL(c_szProgFilesDir, "ProgramFilesDir");
|
|
|
|
// Misc
|
|
SHARED_GLOBAL(c_szReg, "Reg");
|
|
SHARED_GLOBAL(c_szUnReg, "UnReg");
|
|
SHARED_GLOBAL(c_szPath, "Path");
|
|
|
|
|
|
// Some codepage mapping data structures and functions
|
|
struct _tagOENonStdCP
|
|
{
|
|
UINT Codepage;
|
|
UINT cpRead; // Read note CP
|
|
UINT cpReadMenu; // Read Note menu
|
|
UINT cpReadTitle; // Note Title CP
|
|
UINT cpSendMenu; // Compose note menu CP
|
|
UINT cpSend; // Send CP
|
|
UINT UseSIO; // Use SIO
|
|
|
|
// UINT cpSend; // Default compose note CP
|
|
};
|
|
|
|
typedef struct _tagOENonStdCP OENONSTDCP;
|
|
|
|
extern const OENONSTDCP OENonStdCPs[];
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
HRESULT CallRegInstall(HINSTANCE hInstCaller, HINSTANCE hInstRes, LPCSTR szSection, LPSTR pszExtra);
|
|
BOOL AddEnvInPath (LPCSTR pszOldPath, LPSTR pszNew, DWORD cchSize);
|
|
HRESULT MakeFilePath(LPCSTR pszDirectory, LPCSTR pszFileName, LPCSTR pszExtension, LPSTR pszFilePath, ULONG cchMaxFilePath);
|
|
|
|
//PlugUI functions
|
|
#ifndef NT5B2
|
|
HINSTANCE LoadLangDll(HINSTANCE hInstCaller, LPCSTR szDllName, BOOL fNT);
|
|
#else
|
|
HINSTANCE LoadLangDll(HINSTANCE hInstCaller, LPCSTR szDllName);
|
|
#endif
|
|
BOOL OEWinHelp(HWND hWndCaller, LPCSTR lpszHelp, UINT uCommand, DWORD_PTR dwData);
|
|
HWND OEHtmlHelp(HWND hWndCaller, LPCSTR pszFile, UINT uCommand, DWORD_PTR dwData);
|
|
BOOL GetPCAndOSTypes(SYSTEM_INFO * pSysInf, OSVERSIONINFO * pOsInf);
|
|
|
|
// --------------------------------------------------------------------------------
|
|
// MEMORYFILE
|
|
// --------------------------------------------------------------------------------
|
|
typedef struct tagMEMORYFILE {
|
|
HANDLE hFile;
|
|
HANDLE hMemoryMap;
|
|
DWORD cbSize;
|
|
LPVOID pView;
|
|
} MEMORYFILE, *LPMEMORYFILE;
|
|
|
|
HRESULT CloseMemoryFile(LPMEMORYFILE pFile);
|
|
HRESULT OpenMemoryFile(LPCSTR pszFile, LPMEMORYFILE pFile);
|
|
|
|
#define S_RESTART_OE _HRESULT_TYPEDEF_(0x00000714L)
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|