2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS IP Route Priority API DLL
6 * PROGRAMMERS: Robert Dickenson (robd@reactos.org)
8 * RDD August 27, 2002 Created
19 //#include <iprtprio.h>
20 //#include "iprtprio.h"
24 #define EXPORT STDCALL
26 #define EXPORT CALLBACK
30 /* See debug.h for debug/trace constants */
31 DWORD DebugTraceLevel
= MAX_TRACE
;
34 typedef struct tag_somestruct
{
39 BOOL Initialised
= FALSE
;
40 CRITICAL_SECTION CriticalSection
;
42 /* To make the linker happy */
43 //VOID STDCALL KeBugCheck (ULONG BugCheckCode) {}
47 DllMain(HANDLE hInstDll
,
51 //WSH_DbgPrint(MIN_TRACE, ("DllMain of iprtprio.dll\n"));
53 InitializeCriticalSection(&CriticalSection
);
57 case DLL_PROCESS_ATTACH
:
58 /* Don't need thread attach notifications so disable them to improve performance */
59 DisableThreadLibraryCalls(hInstDll
);
62 case DLL_THREAD_ATTACH
:
65 case DLL_THREAD_DETACH
:
68 case DLL_PROCESS_DETACH
:
76 ComputeRouteMetric(IPAddr unknown1
, IPMask unknown2
, DWORD unknown3
, DWORD unknown4
)
80 buf
= HeapAlloc(GetProcessHeap(), 0, sizeof(somestruct
));
82 HeapFree(GetProcessHeap(), 0, buf
);
85 EnterCriticalSection(&CriticalSection
);
86 LeaveCriticalSection(&CriticalSection
);
95 GetPriorityInfo(DWORD unknown
)
97 DWORD result
= NO_ERROR
;
99 EnterCriticalSection(&CriticalSection
);
100 LeaveCriticalSection(&CriticalSection
);
108 SetPriorityInfo(DWORD unknown
)
110 DWORD result
= NO_ERROR
;
112 EnterCriticalSection(&CriticalSection
);
113 LeaveCriticalSection(&CriticalSection
);