Hi again, i wrote some code but i have a problem when i try to load dynamically some apis. The apis that i have the problem are: FindResoource, LockResource, SizeofResource, LoadResource. The code i use is as the following sample:
Code:
typedef HRSRC (pFindResource)(
	HMODULE hModule,
    LPCTSTR lpName,
    LPCTSTR lpType
);

pFindResource fFindResource = NULL;
fFindResource = (pFindResource) GetProcAddress( GetModuleHandle( "kernel32.dll" ), "FindResource");
...
i tried the program with: FindResource, FindResourceA, FindResourceW (the same with the other apis seperetaly) but it crashes.Although when using the same technique with other apis like CreateThread it works fine. So i obligaged to load the above apis normally in order the program to work.
Any advice/help?