ReactOS  0.4.14-dev-554-g2f8d847
iprtprio.c File Reference
#include <stdio.h>
#include <windows.h>
#include <tchar.h>
#include <time.h>
#include <iptypes.h>
#include <ipexport.h>
#include "debug.h"
Include dependency graph for iprtprio.c:

Go to the source code of this file.

Classes

struct  tag_somestruct
 

Macros

#define EXPORT   CALLBACK
 

Typedefs

typedef struct tag_somestruct somestruct
 

Functions

BOOL EXPORT DllMain (HANDLE hInstDll, ULONG dwReason, PVOID Reserved)
 
DWORD WINAPI ComputeRouteMetric (IPAddr unknown1, IPMask unknown2, DWORD unknown3, DWORD unknown4)
 
DWORD WINAPI GetPriorityInfo (DWORD unknown)
 
DWORD WINAPI SetPriorityInfo (DWORD unknown)
 

Variables

BOOL Initialised = FALSE
 
CRITICAL_SECTION CriticalSection
 

Macro Definition Documentation

◆ EXPORT

Definition at line 26 of file iprtprio.c.

Typedef Documentation

◆ somestruct

Function Documentation

◆ ComputeRouteMetric()

DWORD WINAPI ComputeRouteMetric ( IPAddr  unknown1,
IPMask  unknown2,
DWORD  unknown3,
DWORD  unknown4 
)

Definition at line 76 of file iprtprio.c.

77 {
78  BYTE* buf = NULL;
79 
80  buf = HeapAlloc(GetProcessHeap(), 0, sizeof(somestruct));
81  if (buf != NULL) {
83  }
84 
87 
89  return 0L;
90 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
CRITICAL_SECTION CriticalSection
Definition: iprtprio.c:40
smooth NULL
Definition: ftsmooth.c:416
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
static const WCHAR L[]
Definition: oid.c:1250
unsigned char BYTE
Definition: mem.h:68
#define UNIMPLEMENTED
Definition: debug.h:114
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
#define HeapFree(x, y, z)
Definition: compat.h:402

◆ DllMain()

BOOL EXPORT DllMain ( HANDLE  hInstDll,
ULONG  dwReason,
PVOID  Reserved 
)

Definition at line 47 of file iprtprio.c.

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 }
#define TRUE
Definition: types.h:120
#define DLL_THREAD_ATTACH
Definition: compat.h:121
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
BOOL Initialised
Definition: iprtprio.c:39
#define DLL_THREAD_DETACH
Definition: compat.h:122
DWORD dwReason
Definition: misc.cpp:154
CRITICAL_SECTION CriticalSection
Definition: iprtprio.c:40
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
Definition: synch.c:751
#define DLL_PROCESS_DETACH
Definition: compat.h:119

◆ GetPriorityInfo()

DWORD WINAPI GetPriorityInfo ( DWORD  unknown)

Definition at line 95 of file iprtprio.c.

96 {
98 
101 
103  return result;
104 }
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
#define NO_ERROR
Definition: dderror.h:5
CRITICAL_SECTION CriticalSection
Definition: iprtprio.c:40
unsigned long DWORD
Definition: ntddk_ex.h:95
#define UNIMPLEMENTED
Definition: debug.h:114
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
GLuint64EXT * result
Definition: glext.h:11304

◆ SetPriorityInfo()

DWORD WINAPI SetPriorityInfo ( DWORD  unknown)

Definition at line 108 of file iprtprio.c.

109 {
111 
114 
116  return result;
117 }
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
#define NO_ERROR
Definition: dderror.h:5
CRITICAL_SECTION CriticalSection
Definition: iprtprio.c:40
unsigned long DWORD
Definition: ntddk_ex.h:95
#define UNIMPLEMENTED
Definition: debug.h:114
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
GLuint64EXT * result
Definition: glext.h:11304

Variable Documentation

◆ CriticalSection

◆ Initialised

BOOL Initialised = FALSE

Definition at line 39 of file iprtprio.c.

Referenced by DllMain().