AudRecordLib
Typedefs | Functions | Variables
rtlresource.cpp File Reference

Implements the thin wrapper class around the fat read/write lock functions that are exported by ntdll.dll. More...

#include "stdafx.h"
#include "rtlresource.h"

Typedefs

typedef void(NTAPI * pfnRtlInitializeResource )(PRTL_RESOURCE)
typedef void(NTAPI * pfnRtlDeleteResource )(PRTL_RESOURCE)
typedef void(NTAPI * pfnRtlDumpResource )(const RTL_RESOURCE *)
typedef void(NTAPI * pfnRtlReleaseResource )(PRTL_RESOURCE)
typedef BOOLEAN(NTAPI * pfnRtlAcquireResourceExclusive )(PRTL_RESOURCE, BOOLEAN wait)
typedef BOOLEAN(NTAPI * pfnRtlAcquireResourceShared )(PRTL_RESOURCE, BOOLEAN wait)

Functions

template<class Fn >
void GPA (HMODULE hMod, Fn &fn, LPCSTR name)

Variables

pfnRtlInitializeResource rtlInitializeResource = NULL
pfnRtlDeleteResource rtlDeleteResource = NULL
pfnRtlDumpResource rtlDumpResource = NULL
pfnRtlReleaseResource rtlReleaseResource = NULL
pfnRtlAcquireResourceExclusive rtlAcquireResourceExclusive = NULL
pfnRtlAcquireResourceShared rtlAcquireResourceShared = NULL

Detailed Description

Implements the thin wrapper class around the fat read/write lock functions that are exported by ntdll.dll.


Function Documentation

template<class Fn >
void GPA ( HMODULE  hMod,
Fn &  fn,
LPCSTR  name 
)

Gets the address of a procedure in a module

Template Parameters:
FnImplied type of the function pointer to retrieved
Parameters:
hModModule to lookup the function in
[out]fnAddress of the function
nameFunction to lookup
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Defines