ReactOS 0.4.15-dev-5667-ged97270
iprtprio.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS IP Route Priority API DLL
4 * FILE: iprtprio.c
5 * PURPOSE: DLL entry
6 * PROGRAMMERS: Robert Dickenson (robd@reactos.org)
7 * REVISIONS:
8 * RDD August 27, 2002 Created
9 */
10
11#include <stdio.h>
12#include <windows.h>
13#include <tchar.h>
14#include <time.h>
15
16#include <iptypes.h>
17#include <ipexport.h>
18//#include <mprapi.h>
19//#include <iprtprio.h>
20//#include "iprtprio.h"
21#include "debug.h"
22
23#ifdef __GNUC__
24#define EXPORT WINAPI
25#else
26#define EXPORT CALLBACK
27#endif
28
29#if DBG
30/* See debug.h for debug/trace constants */
32#endif /* DBG */
33
34typedef struct tag_somestruct {
35 int size;
38
41
42/* To make the linker happy */
43//VOID WINAPI KeBugCheck (ULONG BugCheckCode) {}
44
45BOOL
47DllMain(HANDLE hInstDll,
50{
51 //WSH_DbgPrint(MIN_TRACE, ("DllMain of iprtprio.dll\n"));
52 if (!Initialised) {
54 }
55
56 switch (dwReason) {
58 /* Don't need thread attach notifications so disable them to improve performance */
60 break;
61
63 break;
64
66 break;
67
69 break;
70 }
71 return TRUE;
72}
73
76ComputeRouteMetric(IPAddr unknown1, IPMask unknown2, DWORD unknown3, DWORD unknown4)
77{
78 BYTE* buf = NULL;
79
80 buf = HeapAlloc(GetProcessHeap(), 0, sizeof(somestruct));
81 if (buf != NULL) {
83 }
84
87
89 return 0L;
90}
91
92
96{
98
101
103 return result;
104}
105
106DWORD
107WINAPI
109{
111
114
116 return result;
117}
118
119/* EOF */
#define MAX_TRACE
Definition: debug.h:16
DWORD dwReason
Definition: misc.cpp:154
#define UNIMPLEMENTED
Definition: debug.h:115
#define NO_ERROR
Definition: dderror.h:5
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1605
#define GetProcessHeap()
Definition: compat.h:736
#define DLL_THREAD_DETACH
Definition: compat.h:133
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
#define HeapAlloc
Definition: compat.h:733
#define HeapFree(x, y, z)
Definition: compat.h:735
#define DLL_THREAD_ATTACH
Definition: compat.h:132
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
ULONG DebugTraceLevel
Definition: ndis.c:13
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLuint64EXT * result
Definition: glext.h:11304
ULONG IPMask
Definition: ipexport.h:28
BOOL EXPORT DllMain(HANDLE hInstDll, ULONG dwReason, PVOID Reserved)
Definition: iprtprio.c:47
DWORD WINAPI GetPriorityInfo(DWORD unknown)
Definition: iprtprio.c:95
DWORD WINAPI ComputeRouteMetric(IPAddr unknown1, IPMask unknown2, DWORD unknown3, DWORD unknown4)
Definition: iprtprio.c:76
CRITICAL_SECTION CriticalSection
Definition: iprtprio.c:40
struct tag_somestruct somestruct
DWORD WINAPI SetPriorityInfo(DWORD unknown)
Definition: iprtprio.c:108
BOOL Initialised
Definition: iprtprio.c:39
#define L(x)
Definition: ntvdm.h:50
ULONG IPAddr
Definition: pfhook.h:35
TCHAR szData[2345]
Definition: iprtprio.c:36
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:751
uint32_t ULONG
Definition: typedefs.h:59
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
#define WINAPI
Definition: msvc.h:6
char TCHAR
Definition: xmlstorage.h:189
unsigned char BYTE
Definition: xxhash.c:193