diff options
author | Jan Kotas <jkotas@microsoft.com> | 2019-05-24 23:10:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-24 23:10:21 -0700 |
commit | 5b283a18625f7a8009c18221592ec81c3cd32375 (patch) | |
tree | 8e03c62911673b16b6e7382123fcf42b9d6bbe72 /src/dlls | |
parent | b676246c1dd880b7290a1313cdac309fe020aa6f (diff) | |
download | coreclr-5b283a18625f7a8009c18221592ec81c3cd32375.tar.gz coreclr-5b283a18625f7a8009c18221592ec81c3cd32375.tar.bz2 coreclr-5b283a18625f7a8009c18221592ec81c3cd32375.zip |
Delete FEATURE_USE_LCID (#24767)
Never defined and obsolete
Diffstat (limited to 'src/dlls')
-rw-r--r-- | src/dlls/mscoree/mscoree.cpp | 135 |
1 files changed, 0 insertions, 135 deletions
diff --git a/src/dlls/mscoree/mscoree.cpp b/src/dlls/mscoree/mscoree.cpp index 0d587e2fd8..28a3ebe390 100644 --- a/src/dlls/mscoree/mscoree.cpp +++ b/src/dlls/mscoree/mscoree.cpp @@ -386,141 +386,6 @@ STDAPI ReOpenMetaDataWithMemoryEx( return hr; } - -#ifndef CROSSGEN_COMPILE -// --------------------------------------------------------------------------- -// %%Function: CoInitializeCor -// -// Parameters: -// fFlags - Initialization flags for the engine. See the -// COINITICOR enumerator for valid values. -// -// Returns: -// S_OK - On success -// -// Description: -// Reserved to initialize the Cor runtime engine explicitly. This currently -// does nothing. -// --------------------------------------------------------------------------- -STDAPI CoInitializeCor(DWORD fFlags) -{ - WRAPPER_NO_CONTRACT; - - BEGIN_ENTRYPOINT_NOTHROW; - - // Since the CLR doesn't currently support being unloaded, we don't hold a ref - // count and don't even pretend to try to unload. - END_ENTRYPOINT_NOTHROW; - - return (S_OK); -} - -// --------------------------------------------------------------------------- -// %%Function: CoUninitializeCor -// -// Parameters: -// none -// -// Returns: -// Nothing -// -// Description: -// Function to indicate the client is done with the CLR. This currently does -// nothing. -// --------------------------------------------------------------------------- -STDAPI_(void) CoUninitializeCor(void) -{ - WRAPPER_NO_CONTRACT; - - BEGIN_ENTRYPOINT_VOIDRET; - - // Since the CLR doesn't currently support being unloaded, we don't hold a ref - // count and don't even pretend to try to unload. - END_ENTRYPOINT_VOIDRET; - -} - -// Undef LoadStringRC & LoadStringRCEx so we can export these functions. -#undef LoadStringRC -#undef LoadStringRCEx - -// --------------------------------------------------------------------------- -// %%Function: LoadStringRC -// -// Parameters: -// none -// -// Returns: -// Nothing -// -// Description: -// Function to load a resource based on it's ID. -// --------------------------------------------------------------------------- -STDAPI LoadStringRC( - UINT iResourceID, - __out_ecount(iMax) __out_z LPWSTR szBuffer, - int iMax, - int bQuiet -) -{ - WRAPPER_NO_CONTRACT; - - HRESULT hr = S_OK; - - if (NULL == szBuffer) - return E_INVALIDARG; - if (0 == iMax) - return E_INVALIDARG; - - BEGIN_ENTRYPOINT_NOTHROW; - hr = UtilLoadStringRC(iResourceID, szBuffer, iMax, bQuiet); - END_ENTRYPOINT_NOTHROW; - return hr; -} - -// --------------------------------------------------------------------------- -// %%Function: LoadStringRCEx -// -// Parameters: -// none -// -// Returns: -// Nothing -// -// Description: -// Ex version of the function to load a resource based on it's ID. -// --------------------------------------------------------------------------- -#ifdef FEATURE_USE_LCID -STDAPI LoadStringRCEx( - LCID lcid, - UINT iResourceID, - __out_ecount(iMax) __out_z LPWSTR szBuffer, - int iMax, - int bQuiet, - int *pcwchUsed -) -{ - WRAPPER_NO_CONTRACT; - HRESULT hr = S_OK; - - if (NULL == szBuffer) - return E_INVALIDARG; - if (0 == iMax) - return E_INVALIDARG; - - BEGIN_ENTRYPOINT_NOTHROW; - hr = UtilLoadStringRCEx(lcid, iResourceID, szBuffer, iMax, bQuiet, pcwchUsed); - END_ENTRYPOINT_NOTHROW; - return hr; -} -#endif -// Redefine them as errors to prevent people from using these from inside the rest of the compilation unit. -#define LoadStringRC __error("From inside the CLR, use UtilLoadStringRC; LoadStringRC is only meant to be exported.") -#define LoadStringRCEx __error("From inside the CLR, use UtilLoadStringRCEx; LoadStringRC is only meant to be exported.") - -#endif // CROSSGEN_COMPILE - - // Replacement for legacy shim API GetCORRequiredVersion(...) used in linked libraries. // Used in code:TiggerStorage::GetDefaultVersion#CallTo_CLRRuntimeHostInternal_GetImageVersionString. HRESULT |