ReactOS  0.4.14-dev-52-g6116262
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 
34 typedef struct tag_somestruct {
35  int size;
36  TCHAR szData[2345];
37 } somestruct;
38 
41 
42 /* To make the linker happy */
43 //VOID WINAPI KeBugCheck (ULONG BugCheckCode) {}
44 
45 BOOL
46 EXPORT
47 DllMain(HANDLE hInstDll,
50 {
51  //WSH_DbgPrint(MIN_TRACE, ("DllMain of iprtprio.dll\n"));
52  if (!Initialised) {
54  }
55 
56  switch (dwReason) {
57  case DLL_PROCESS_ATTACH:
58  /* Don't need thread attach notifications so disable them to improve performance */
59  DisableThreadLibraryCalls(hInstDll);
60  break;
61 
62  case DLL_THREAD_ATTACH:
63  break;
64 
65  case DLL_THREAD_DETACH:
66  break;
67 
68  case DLL_PROCESS_DETACH:
69  break;
70  }
71  return TRUE;
72 }
73 
74 DWORD
75 WINAPI
76 ComputeRouteMetric(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 
93 DWORD
94 WINAPI
96 {
98 
101 
103  return result;
104 }
105 
106 DWORD
107 WINAPI
109 {
111 
114 
116  return result;
117 }
118 
119 /* EOF */
struct tag_somestruct somestruct
#define TRUE
Definition: types.h:120
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define DLL_THREAD_ATTACH
Definition: compat.h:121
DWORD WINAPI SetPriorityInfo(DWORD unknown)
Definition: iprtprio.c:108
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
BOOL Initialised
Definition: iprtprio.c:39
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
#define NO_ERROR
Definition: dderror.h:5
#define DLL_THREAD_DETACH
Definition: compat.h:122
DWORD WINAPI GetPriorityInfo(DWORD unknown)
Definition: iprtprio.c:95
DWORD dwReason
Definition: misc.cpp:154
unsigned int BOOL
Definition: ntddk_ex.h:94
CRITICAL_SECTION CriticalSection
Definition: iprtprio.c:40
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:751
smooth NULL
Definition: ftsmooth.c:416
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
ULONG IPAddr
Definition: pfhook.h:35
#define DLL_PROCESS_DETACH
Definition: compat.h:119
ULONG DebugTraceLevel
Definition: ndis.c:13
DWORD WINAPI ComputeRouteMetric(IPAddr unknown1, IPMask unknown2, DWORD unknown3, DWORD unknown4)
Definition: iprtprio.c:76
char TCHAR
Definition: xmlstorage.h:189
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define WINAPI
Definition: msvc.h:8
TCHAR szData[2345]
Definition: iprtprio.c:36
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: id3.c:18
static const WCHAR L[]
Definition: oid.c:1250
unsigned char BYTE
Definition: mem.h:68
#define MAX_TRACE
Definition: debug.h:16
unsigned int ULONG
Definition: retypes.h:1
#define UNIMPLEMENTED
Definition: debug.h:114
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
ULONG IPMask
Definition: ipexport.h:28
GLuint64EXT * result
Definition: glext.h:11304
BOOL EXPORT DllMain(HANDLE hInstDll, ULONG dwReason, PVOID Reserved)
Definition: iprtprio.c:47
#define HeapFree(x, y, z)
Definition: compat.h:394