diff options
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 |