reactos/dll/win32/iprtprio/iprtprio.c
Amine Khaldi c424146e2c Create a branch for cmake bringup.
svn path=/branches/cmake-bringup/; revision=48236
2010-07-24 18:52:44 +00:00

119 lines
2.2 KiB
C

/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS IP Route Priority API DLL
* FILE: iprtprio.c
* PURPOSE: DLL entry
* PROGRAMMERS: Robert Dickenson (robd@reactos.org)
* REVISIONS:
* RDD August 27, 2002 Created
*/
#include <stdio.h>
#include <windows.h>
#include <tchar.h>
#include <time.h>
#include <iptypes.h>
#include <ipexport.h>
//#include <mprapi.h>
//#include <iprtprio.h>
//#include "iprtprio.h"
#include "debug.h"
#ifdef __GNUC__
#define EXPORT WINAPI
#else
#define EXPORT CALLBACK
#endif
#if DBG
/* See debug.h for debug/trace constants */
DWORD DebugTraceLevel = MAX_TRACE;
#endif /* DBG */
typedef struct tag_somestruct {
int size;
TCHAR szData[2345];
} somestruct;
BOOL Initialised = FALSE;
CRITICAL_SECTION CriticalSection;
/* To make the linker happy */
//VOID WINAPI KeBugCheck (ULONG BugCheckCode) {}
BOOL
EXPORT
DllMain(HANDLE hInstDll,
ULONG dwReason,
PVOID Reserved)
{
//WSH_DbgPrint(MIN_TRACE, ("DllMain of iprtprio.dll\n"));
if (!Initialised) {
InitializeCriticalSection(&CriticalSection);
}
switch (dwReason) {
case DLL_PROCESS_ATTACH:
/* Don't need thread attach notifications so disable them to improve performance */
DisableThreadLibraryCalls(hInstDll);
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
DWORD
WINAPI
ComputeRouteMetric(IPAddr unknown1, IPMask unknown2, DWORD unknown3, DWORD unknown4)
{
BYTE* buf = NULL;
buf = HeapAlloc(GetProcessHeap(), 0, sizeof(somestruct));
if (buf != NULL) {
HeapFree(GetProcessHeap(), 0, buf);
}
EnterCriticalSection(&CriticalSection);
LeaveCriticalSection(&CriticalSection);
UNIMPLEMENTED
return 0L;
}
DWORD
WINAPI
GetPriorityInfo(DWORD unknown)
{
DWORD result = NO_ERROR;
EnterCriticalSection(&CriticalSection);
LeaveCriticalSection(&CriticalSection);
UNIMPLEMENTED
return result;
}
DWORD
WINAPI
SetPriorityInfo(DWORD unknown)
{
DWORD result = NO_ERROR;
EnterCriticalSection(&CriticalSection);
LeaveCriticalSection(&CriticalSection);
UNIMPLEMENTED
return result;
}
/* EOF */