// Actproxy.cpp : Defines the exported functions for the DLL application.
//

//#include "stdafx.h"

#include "Shlwapi.h"
#include "Actproxy.h"


HRESULT WINAPI DllCanUnloadNow(void)
{
//#ifdef _DEBUG
//	if (hLog != NULL)
//	{
//		DWORD dwOut;
//		WriteFile(hLog, L"DllCanUnloadNow\n", 25, &dwOut, NULL);
//	}
//#endif

	return trampoline.pDllCanUnloadNow();
}

HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
//#ifdef _DEBUG
//	if (hLog != NULL)
//	{
//		DWORD dwOut;
//		WriteFile(hLog, L"DllGetClassObject\n", 25, &dwOut, NULL);
//	}
//#endif

	return trampoline.pDllGetClassObject(rclsid, riid, ppv);
}


HRESULT WINAPI DllRegisterServer()
{
//#ifdef _DEBUG
//	if (hLog != NULL)
//	{
//		DWORD dwOut;
//		WriteFile(hLog, L"DllRegisterServer\n", 25, &dwOut, NULL);
//	}
//#endif

	return trampoline.pDllRegisterServer();
}


HRESULT WINAPI DllUnregisterServer()
{

//#ifdef _DEBUG
//	if (hLog != NULL)
//	{
//		DWORD dwOut;
//		WriteFile(hLog, L"DllUnregisterServer\n", 25, &dwOut, NULL);
//	}
//#endif

	return trampoline.pDllUnregisterServer();
}

void RPC_ENTRY GetProxyDllInfo(const ProxyFileInfo ***pInfo, const CLSID **pId)
{

//#ifdef _DEBUG
//	if (hLog != NULL)
//	{
//		DWORD dwOut;
//		WriteFile(hLog, L"GetProxyDllInfo\n", 2, &dwOut, NULL);
//	}
//#endif

	trampoline.pGetProxyDllInfo(pInfo, pId);

}

