Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 16 of file dialog.c.
Referenced by LoadDialog().
{ HRSRC hSrc; HGLOBAL hRes; PVOID Result; /* find resource */ hSrc = FindResourceW(hModule, ResourceName, (LPCWSTR)RT_DIALOG); if (!hSrc) { /* failed to find resource */ return NULL; } /* now load the resource */ hRes = LoadResource(hAppInstance, hSrc); if (!hRes) { /* failed to load resource */ return NULL; } /* now lock the resource */ Result = LockResource(hRes); if (!Result) { /* failed to lock resource */ return NULL; } if (ResourceLength) { /* store output length */ *ResourceLength = SizeofResource(hAppInstance, hSrc); } /* done */ return Result; }