Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygeniprtprio.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS IP Route Priority API DLL 00004 * FILE: iprtprio.c 00005 * PURPOSE: DLL entry 00006 * PROGRAMMERS: Robert Dickenson (robd@reactos.org) 00007 * REVISIONS: 00008 * RDD August 27, 2002 Created 00009 */ 00010 00011 #include <stdio.h> 00012 #include <windows.h> 00013 #include <tchar.h> 00014 #include <time.h> 00015 00016 #include <iptypes.h> 00017 #include <ipexport.h> 00018 //#include <mprapi.h> 00019 //#include <iprtprio.h> 00020 //#include "iprtprio.h" 00021 #include "debug.h" 00022 00023 #ifdef __GNUC__ 00024 #define EXPORT WINAPI 00025 #else 00026 #define EXPORT CALLBACK 00027 #endif 00028 00029 #if DBG 00030 /* See debug.h for debug/trace constants */ 00031 DWORD DebugTraceLevel = MAX_TRACE; 00032 #endif /* DBG */ 00033 00034 typedef struct tag_somestruct { 00035 int size; 00036 TCHAR szData[2345]; 00037 } somestruct; 00038 00039 BOOL Initialised = FALSE; 00040 CRITICAL_SECTION CriticalSection; 00041 00042 /* To make the linker happy */ 00043 //VOID WINAPI KeBugCheck (ULONG BugCheckCode) {} 00044 00045 BOOL 00046 EXPORT 00047 DllMain(HANDLE hInstDll, 00048 ULONG dwReason, 00049 PVOID Reserved) 00050 { 00051 //WSH_DbgPrint(MIN_TRACE, ("DllMain of iprtprio.dll\n")); 00052 if (!Initialised) { 00053 InitializeCriticalSection(&CriticalSection); 00054 } 00055 00056 switch (dwReason) { 00057 case DLL_PROCESS_ATTACH: 00058 /* Don't need thread attach notifications so disable them to improve performance */ 00059 DisableThreadLibraryCalls(hInstDll); 00060 break; 00061 00062 case DLL_THREAD_ATTACH: 00063 break; 00064 00065 case DLL_THREAD_DETACH: 00066 break; 00067 00068 case DLL_PROCESS_DETACH: 00069 break; 00070 } 00071 return TRUE; 00072 } 00073 00074 DWORD 00075 WINAPI 00076 ComputeRouteMetric(IPAddr unknown1, IPMask unknown2, DWORD unknown3, DWORD unknown4) 00077 { 00078 BYTE* buf = NULL; 00079 00080 buf = HeapAlloc(GetProcessHeap(), 0, sizeof(somestruct)); 00081 if (buf != NULL) { 00082 HeapFree(GetProcessHeap(), 0, buf); 00083 } 00084 00085 EnterCriticalSection(&CriticalSection); 00086 LeaveCriticalSection(&CriticalSection); 00087 00088 UNIMPLEMENTED 00089 return 0L; 00090 } 00091 00092 00093 DWORD 00094 WINAPI 00095 GetPriorityInfo(DWORD unknown) 00096 { 00097 DWORD result = NO_ERROR; 00098 00099 EnterCriticalSection(&CriticalSection); 00100 LeaveCriticalSection(&CriticalSection); 00101 00102 UNIMPLEMENTED 00103 return result; 00104 } 00105 00106 DWORD 00107 WINAPI 00108 SetPriorityInfo(DWORD unknown) 00109 { 00110 DWORD result = NO_ERROR; 00111 00112 EnterCriticalSection(&CriticalSection); 00113 LeaveCriticalSection(&CriticalSection); 00114 00115 UNIMPLEMENTED 00116 return result; 00117 } 00118 00119 /* EOF */ Generated on Sun May 27 2012 04:24:13 for ReactOS by
1.7.6.1
|