ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

res.c File Reference
#include <stdarg.h>
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
#include "wine/debug.h"
#include "wine/exception.h"
#include "wine/unicode.h"
#include "wine/list.h"

Go to the source code of this file.

Data Structures

struct  QUEUEDUPDATES
struct  resource_dir_entry
struct  resource_data
struct  resource_size_info
struct  mapping_info

Defines

#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#define WIN32_NO_STATUS
#define HeapAlloc   RtlAllocateHeap
#define HeapReAlloc   RtlReAllocateHeap
#define HeapFree   RtlFreeHeap
#define IS_INTRESOURCE(x)   (((ULONG_PTR)(x) >> 16) == 0)

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (resource)
static NTSTATUS get_res_nameA (LPCSTR name, UNICODE_STRING *str)
static NTSTATUS get_res_nameW (LPCWSTR name, UNICODE_STRING *str)
static HRSRC find_resourceA (HMODULE hModule, LPCSTR type, LPCSTR name, WORD lang)
static HRSRC find_resourceW (HMODULE hModule, LPCWSTR type, LPCWSTR name, WORD lang)
HRSRC WINAPI FindResourceExA (HMODULE hModule, LPCSTR type, LPCSTR name, WORD lang)
HRSRC WINAPI FindResourceA (HMODULE hModule, LPCSTR name, LPCSTR type)
HRSRC WINAPI FindResourceExW (HMODULE hModule, LPCWSTR type, LPCWSTR name, WORD lang)
HRSRC WINAPI FindResourceW (HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
BOOL WINAPI EnumResourceTypesA (HMODULE hmod, ENUMRESTYPEPROCA lpfun, LONG_PTR lparam)
BOOL WINAPI EnumResourceTypesW (HMODULE hmod, ENUMRESTYPEPROCW lpfun, LONG_PTR lparam)
BOOL WINAPI EnumResourceNamesA (HMODULE hmod, LPCSTR type, ENUMRESNAMEPROCA lpfun, LONG_PTR lparam)
BOOL WINAPI EnumResourceNamesW (HMODULE hmod, LPCWSTR type, ENUMRESNAMEPROCW lpfun, LONG_PTR lparam)
BOOL WINAPI EnumResourceLanguagesA (HMODULE hmod, LPCSTR type, LPCSTR name, ENUMRESLANGPROCA lpfun, LONG_PTR lparam)
BOOL WINAPI EnumResourceLanguagesW (HMODULE hmod, LPCWSTR type, LPCWSTR name, ENUMRESLANGPROCW lpfun, LONG_PTR lparam)
HGLOBAL WINAPI LoadResource (HINSTANCE hModule, HRSRC hRsrc)
LPVOID WINAPI LockResource (HGLOBAL handle)
BOOL WINAPI FreeResource (HGLOBAL handle)
DWORD WINAPI SizeofResource (HINSTANCE hModule, HRSRC hRsrc)
static int resource_strcmp (LPCWSTR a, LPCWSTR b)
static struct resource_dir_entryfind_resource_dir_entry (struct list *dir, LPCWSTR id)
static struct resource_datafind_resource_data (struct list *dir, LANGID lang)
static void add_resource_dir_entry (struct list *dir, struct resource_dir_entry *resdir)
static void add_resource_data_entry (struct list *dir, struct resource_data *resdata)
static LPWSTR res_strdupW (LPCWSTR str)
static void res_free_str (LPWSTR str)
static BOOL update_add_resource (QUEUEDUPDATES *updates, LPCWSTR Type, LPCWSTR Name, LANGID Lang, struct resource_data *resdata, BOOL overwrite_existing)
static struct resource_dataallocate_resource_data (WORD Language, DWORD codepage, LPVOID lpData, DWORD cbData, BOOL copy_data)
static void free_resource_directory (struct list *head, int level)
static IMAGE_NT_HEADERSget_nt_header (void *base, DWORD mapping_size)
static IMAGE_SECTION_HEADERget_section_header (void *base, DWORD mapping_size, DWORD *num_sections)
static BOOL check_pe_exe (HANDLE file, QUEUEDUPDATES *updates)
static const IMAGE_SECTION_HEADERsection_from_rva (void *base, DWORD mapping_size, DWORD rva)
static voidaddress_from_rva (void *base, DWORD mapping_size, DWORD rva, DWORD len)
static LPWSTR resource_dup_string (const IMAGE_RESOURCE_DIRECTORY *root, const IMAGE_RESOURCE_DIRECTORY_ENTRY *entry)
static BOOL enumerate_mapped_resources (QUEUEDUPDATES *updates, void *base, DWORD mapping_size, const IMAGE_RESOURCE_DIRECTORY *root)
static BOOL read_mapped_resources (QUEUEDUPDATES *updates, void *base, DWORD mapping_size)
static BOOL map_file_into_memory (struct mapping_info *mi)
static BOOL unmap_file_from_memory (struct mapping_info *mi)
static void destroy_mapping (struct mapping_info *mi)
static struct mapping_infocreate_mapping (LPCWSTR name, BOOL rw)
static BOOL resize_mapping (struct mapping_info *mi, DWORD new_size)
static void get_resource_sizes (QUEUEDUPDATES *updates, struct resource_size_info *si)
static void res_write_padding (BYTE *res_base, DWORD size)
static BOOL write_resources (QUEUEDUPDATES *updates, LPBYTE base, struct resource_size_info *si, DWORD rva)
static IMAGE_SECTION_HEADERget_resource_section (void *base, DWORD mapping_size)
static DWORD get_init_data_size (void *base, DWORD mapping_size)
static BOOL write_raw_resources (QUEUEDUPDATES *updates)
HANDLE WINAPI BeginUpdateResourceW (LPCWSTR pFileName, BOOL bDeleteExistingResources)
HANDLE WINAPI BeginUpdateResourceA (LPCSTR pFileName, BOOL bDeleteExistingResources)
BOOL WINAPI EndUpdateResourceW (HANDLE hUpdate, BOOL fDiscard)
BOOL WINAPI EndUpdateResourceA (HANDLE hUpdate, BOOL fDiscard)
BOOL WINAPI UpdateResourceW (HANDLE hUpdate, LPCWSTR lpType, LPCWSTR lpName, WORD wLanguage, LPVOID lpData, DWORD cbData)
BOOL WINAPI UpdateResourceA (HANDLE hUpdate, LPCSTR lpType, LPCSTR lpName, WORD wLanguage, LPVOID lpData, DWORD cbData)

Generated on Thu May 24 2012 05:11:45 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.