Returns the size of the specified resource object.

#define INCL_DOSMODULEMGR
#include <os2.h>

HMODULE    hmod;     /*  The handle of the module that has the required resource. */
ULONG      idt;      /*  The type identifier of the resource. */
ULONG      idn;      /*  The name identifier of the resource. */
PULONG     pulsize;  /*  A pointer to a ULONG in which the size, in bytes, of the resource is returned. */
APIRET     ulrc;     /*  Return Code. */

ulrc = DosQueryResourceSize(hmod, idt, idn,
         pulsize);


[Back] [Next]