GetFileResourceSize

3.1

  #include <ver.h>    

  DWORD GetFileResourceSize(lpszFileName, lpszResType, lpszResID, lpdwFileOffset)    
  LPCSTR lpszFileName; /* address of buffer for filename */
  LPCSTR lpszResType; /* address of buffer for resource type */
  LPCSTR lpszResID; /* address of buffer for resource ID */
  DWORD FAR *lpdwFileOffset; /* address of resource offset in file */

The GetFileResourceSize function searches the specified file for the resource of the specified type and identifier.

Parameters

lpszFileName

Points to the buffer that contains the name of the file in which to search for the resource.

lpszResType

Points to a value that is created by using the MAKEINTRESOURCE macro with the numbered resource type. This value is typically VS_FILE_INFO.

lpszResID

Points to a value that is created by using the MAKEINTRESOURCE macro with the numbered resource identifier. This value is typically VS_VERSION_INFO.

lpdwFileOffset

Points to a 16-bit value that the GetFileResourceSize function fills with the offset to the resource within the file.

Return Value

The return value is the size of the resource, in bytes. The return value is NULL if the function could not find the file, the file does not have any resources attached, or the function produced an MS-DOS error. The GetFileResourceSize function returns no information about the type of error that occurred.

See Also

GetFileResource