MAKEINTRESOURCE

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This macro converts an integer value to a resource type compatible with Windows resource-management functions. This macro is used in place of a string containing the name of the resource.


LPTSTR MAKEINTRESOURCE( 
  WORD wInteger; 
);

wInteger

Specifies the integer value to be converted.

The return value is the specified value in the low-order word and zero in the high-order word.

The return value should be passed only to the Microsoft® Win32® resource-management functions, as the lpType parameter.

The MAKEINTRESOURCE macro is defined as follows.

#define MAKEINTRESOURCE(i)  (LPTSTR) ((DWORD) ((WORD) (i))) 

Headerwinuser.h
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show: