Go to the source code of this file.
◆ NtGetVersionResource()
Definition at line 31 of file ntverrsrc.c.
35{
41
42
46
48 &ResourceInfo,
50 &ResourceDataEntry);
52 {
53 DPRINT1(
"NtGetVersionResource: Version resource not found, Status 0x%08lx\n",
Status);
55 }
56
57
59 ResourceDataEntry,
63 {
64 DPRINT1(
"NtGetVersionResource: Cannot access Version resource, Status 0x%08lx\n",
Status);
66 }
67
69 if (ResourceSize) *ResourceSize =
Size;
70
72}
_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 175 of file ntverrsrc.c.
180{
182
184
185 if (!pBlock)
187
188 if (!lpSubBlock || !*lpSubBlock)
190
192}
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().