Go to the source code of this file.
◆ NtGetVersionResource()
Definition at line 26 of file ntverrsrc.c.
30{
31
32#define VS_VERSION_INFO 1
33#define VS_FILE_INFO RT_VERSION
34
40
41
42 ResourceInfo.
Type = 16;
45
47 &ResourceInfo,
49 &ResourceDataEntry);
51 {
52 DPRINT1(
"NtGetVersionResource: Version resource not found, Status 0x%08lx\n",
Status);
54 }
55
56
58 ResourceDataEntry,
62 {
63 DPRINT1(
"NtGetVersionResource: Cannot access Version resource, Status 0x%08lx\n",
Status);
65 }
66
68 if (ResourceSize) *ResourceSize =
Size;
69
71}
_Acquires_exclusive_lock_ Resource _Acquires_shared_lock_ Resource _Inout_ PERESOURCE Resource
#define NT_SUCCESS(StatCode)
NTSTATUS NTAPI LdrAccessResource(_In_ PVOID BaseAddress, _In_ PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry, _Out_opt_ PVOID *Resource, _Out_opt_ PULONG Size)
NTSTATUS NTAPI LdrFindResource_U(_In_ PVOID BaseAddress, _In_ PLDR_RESOURCE_INFO ResourceInfo, _In_ ULONG Level, _Out_ PIMAGE_RESOURCE_DATA_ENTRY *ResourceDataEntry)
#define RESOURCE_DATA_LEVEL
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Referenced by CheckForValidPEAndVendor().
◆ NtVerQueryValue()
Definition at line 174 of file ntverrsrc.c.
179{
181
183
184 if (!pBlock)
186
187 if (!lpSubBlock || !*lpSubBlock)
189
191}
static NTSTATUS VersionInfo32_QueryValue(IN PCVS_VERSION_INFO_STRUCT32 info, IN PCWSTR lpSubBlock, OUT PVOID *lplpBuffer, OUT PUINT puLen OPTIONAL, OUT BOOL *pbText OPTIONAL)
Referenced by CheckForValidPEAndVendor().