MAKEINTRESOURCE function

Pointer<Utf16> MAKEINTRESOURCE(
  1. int i
)

Converts an integer value to a resource type compatible with the resource-management functions.

Although this creates a pointer, it doesn't allocate any memory, so there's no need to worry about calling calloc.free() on the Pointer when it's no longer in use.

Implementation

//
// #define MAKEINTRESOURCEW(i) ((LPWSTR)((ULONG_PTR)((WORD)(i))))
Pointer<Utf16> MAKEINTRESOURCE(int i) => Pointer.fromAddress(i);