#include <apitest.h>
#include <strsafe.h>
Go to the source code of this file.
◆ IFX
Value:
{\
}
GLint GLint GLint GLint GLint x
GLenum GLuint GLenum GLsizei const GLchar * buf
STRSAFEAPI StringCchCatA(STRSAFE_LPSTR pszDest, size_t cchDest, STRSAFE_LPCSTR pszSrc)
◆ KnownSections
◆ Chr2Str()
Definition at line 52 of file ntoskrnl.c.
53{
56#define IFX(x) if( value & IMAGE_SCN_##x )\
57 {\
58 if(buf[0]) { StringCchCatA(buf, _countof(buf), "|" ); }\
59 StringCchCatA(buf, _countof(buf), #x );\
60 value &= ~(IMAGE_SCN_##x);\
61 }
64 IFX(CNT_INITIALIZED_DATA);
65 IFX(CNT_UNINITIALIZED_DATA);
70
71
84
85
86
87
88
89
90
100 {
102 }
104}
ACPI_SIZE strlen(const char *String)
STRSAFEAPI StringCchPrintfA(STRSAFE_LPSTR pszDest, size_t cchDest, STRSAFE_LPCSTR pszFormat,...)
Referenced by START_TEST().
◆ START_TEST()
START_TEST |
( |
ntoskrnl_SectionFlags |
| ) |
|
Definition at line 107 of file ntoskrnl.c.
108{
113
116 {
117
122
124 {
125 skip(
"Couldn't find ntoskrnl.exe dos header\n");
127 return;
128 }
131 {
132 skip(
"Couldn't find ntoskrnl.exe nt header\n");
134 return;
135 }
138 for(
n = 0;
n < numSections; ++
n )
139 {
144
146 {
148 {
150 {
153 "Missing required Characteristics on %s: %s\n",
155 }
157 {
159 ok(!
Flags,
"Disallowed section Characteristics on %s: %s\n",
161 }
162 break;
163 }
164 }
165 }
167 }
168 else
169 {
170 skip(
"Couldn't load ntoskrnl.exe as datafile\n");
171 }
172}
std::map< E_MODULE, HMODULE > mod
#define _strnicmp(_String1, _String2, _MaxCount)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryExA(LPCSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
UINT WINAPI GetSystemDirectoryA(OUT LPSTR lpBuffer, IN UINT uSize)
PIMAGE_NT_HEADERS32 PIMAGE_NT_HEADERS
struct _IMAGE_DOS_HEADER * PIMAGE_DOS_HEADER
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static struct KnownSections g_Sections[]
static char * Chr2Str(DWORD value)
_In_ PMEMORY_AREA _In_ PVOID _In_ BOOLEAN _Inout_ PMM_REQUIRED_RESOURCES Required
#define IMAGE_FIRST_SECTION(NtHeader)
#define IMAGE_NT_SIGNATURE
#define IMAGE_DOS_SIGNATURE
#define LOAD_LIBRARY_AS_DATAFILE
_Must_inspect_result_ _In_ ULONG Flags
◆ g_Sections