ReactOS 0.4.16-dev-981-g80eb313
|
#include "precomp.h"
#include <ndk/ldrtypes.h>
#include <ndk/ldrfuncs.h>
#include "ntverrsrc.h"
#include <debug.h>
Go to the source code of this file.
Classes | |
struct | _VS_VERSION_INFO_STRUCT32 |
Macros | |
#define | NDEBUG |
#define | MAKEINTRESOURCE(i) ((ULONG_PTR)(USHORT)(i)) |
#define | RT_VERSION MAKEINTRESOURCE(16) |
#define | VS_VERSION_INFO 1 |
#define | VS_FILE_INFO RT_VERSION |
#define | DWORD_ALIGN(base, ptr) ( (ULONG_PTR)(base) + ((((ULONG_PTR)(ptr) - (ULONG_PTR)(base)) + 3) & ~3) ) |
#define | VersionInfo32_Value(ver) DWORD_ALIGN( (ver), (ver)->szKey + wcslen((ver)->szKey) + 1 ) |
#define | VersionInfo32_Children(ver) |
#define | VersionInfo32_Next(ver) (PVS_VERSION_INFO_STRUCT32)( (ULONG_PTR)ver + (((ver)->wLength + 3) & ~3) ) |
Typedefs | |
typedef struct _VS_VERSION_INFO_STRUCT32 | VS_VERSION_INFO_STRUCT32 |
typedef struct _VS_VERSION_INFO_STRUCT32 * | PVS_VERSION_INFO_STRUCT32 |
typedef const VS_VERSION_INFO_STRUCT32 * | PCVS_VERSION_INFO_STRUCT32 |
Functions | |
NTSTATUS | NtGetVersionResource (IN PVOID BaseAddress, OUT PVOID *Resource, OUT PULONG ResourceSize OPTIONAL) |
static PCVS_VERSION_INFO_STRUCT32 | VersionInfo32_FindChild (IN PCVS_VERSION_INFO_STRUCT32 info, IN PCWSTR szKey, IN UINT cchKey) |
static NTSTATUS | VersionInfo32_QueryValue (IN PCVS_VERSION_INFO_STRUCT32 info, IN PCWSTR lpSubBlock, OUT PVOID *lplpBuffer, OUT PUINT puLen OPTIONAL, OUT BOOL *pbText OPTIONAL) |
NTSTATUS | NtVerQueryValue (IN const VOID *pBlock, IN PCWSTR lpSubBlock, OUT PVOID *lplpBuffer, OUT PUINT puLen) |
#define DWORD_ALIGN | ( | base, | |
ptr | |||
) | ( (ULONG_PTR)(base) + ((((ULONG_PTR)(ptr) - (ULONG_PTR)(base)) + 3) & ~3) ) |
Definition at line 90 of file ntverrsrc.c.
#define NDEBUG |
Definition at line 19 of file ntverrsrc.c.
#define RT_VERSION MAKEINTRESOURCE(16) |
Definition at line 26 of file ntverrsrc.c.
#define VersionInfo32_Children | ( | ver | ) |
Definition at line 96 of file ntverrsrc.c.
#define VersionInfo32_Next | ( | ver | ) | (PVS_VERSION_INFO_STRUCT32)( (ULONG_PTR)ver + (((ver)->wLength + 3) & ~3) ) |
Definition at line 101 of file ntverrsrc.c.
#define VersionInfo32_Value | ( | ver | ) | DWORD_ALIGN( (ver), (ver)->szKey + wcslen((ver)->szKey) + 1 ) |
Definition at line 93 of file ntverrsrc.c.
#define VS_FILE_INFO RT_VERSION |
Definition at line 28 of file ntverrsrc.c.
#define VS_VERSION_INFO 1 |
Definition at line 27 of file ntverrsrc.c.
Definition at line 88 of file ntverrsrc.c.
NTSTATUS NtGetVersionResource | ( | IN PVOID | BaseAddress, |
OUT PVOID * | Resource, | ||
OUT PULONG ResourceSize | OPTIONAL | ||
) |
Definition at line 31 of file ntverrsrc.c.
Referenced by CheckForValidPEAndVendor().
NTSTATUS NtVerQueryValue | ( | IN const VOID * | pBlock, |
IN PCWSTR | lpSubBlock, | ||
OUT PVOID * | lplpBuffer, | ||
OUT PUINT | puLen | ||
) |
Definition at line 175 of file ntverrsrc.c.
Referenced by CheckForValidPEAndVendor().
|
static |
Definition at line 105 of file ntverrsrc.c.
Referenced by VersionInfo32_QueryValue().
|
static |
Definition at line 125 of file ntverrsrc.c.
Referenced by NtVerQueryValue().