MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / GetResource

Method GetResource

source/Windows/Win32Frame.cpp:676–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676BYTE* Win32Frame::GetResource(WORD id, LPCSTR lpType, uint32_t dwExpectedSize)
677{
678 HRSRC hResInfo = FindResource(NULL, MAKEINTRESOURCE(id), lpType);
679 if (hResInfo == NULL)
680 return NULL;
681
682 uint32_t dwResSize = SizeofResource(NULL, hResInfo);
683 if (dwResSize != dwExpectedSize)
684 return NULL;
685
686 HGLOBAL hResData = LoadResource(NULL, hResInfo);
687 if (hResData == NULL)
688 return NULL;
689
690 BYTE* pResource = (BYTE*)LockResource(hResData); // NB. Don't need to unlock resource
691
692 return pResource;
693}
694
695std::string Win32Frame::Video_GetScreenShotFolder() const
696{

Callers 15

VideoRomForIIandIIPlusFunction · 0.80
VideoRomForIIJPlusFunction · 0.80
VideoRomForBase64AFunction · 0.80
VideoRomForIIeEnhancedFunction · 0.80
MemInitializeROMFunction · 0.80
MemInitializeCustomF8ROMFunction · 0.80
InitializeROMMethod · 0.80
InitializeIOMethod · 0.80
Util_ProDOS_CopyBASICFunction · 0.80
Util_ProDOS_CopyBitsyByeFunction · 0.80
Util_ProDOS_CopyDOSFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected