News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Activating menu items in an executing program

Started by Jimg, March 24, 2008, 01:16:10 PM

Previous topic - Next topic

xandaz

   I think i'm having some trouble with IS_INTRESOURCE macro. I didn't find the macro anywhere. I'd like to know if it does something like this or if it's otherwize.

EnumResTypesProc PROC   hModule:DWORD,lpszType:DWORD,lpszName:DWORD,lParam:DWORD

   mov eax,lpszName
   cmp eax,0
   je ret_FALSE
   shr eax,16
   cmp ax,0
   jne name_is_string
; ITS_INTRESOURCE
  mov eax,TRUE
  ret
ret_FALSE:
   mov eax,FALSE
   ret

is it something like this?
EnumResTypesProc endp

Twister

This thread is from 2 years back. ::)

I am guessing that the OP is trying to make a plugin for an editor, or something of that sort. He is using EnumMenu..  [ Someone please correct me if I am wrong. ]

sinsi

Quote from: MSDNThis macro checks whether all bits except the least 16 bits are zero. When true, wInteger is an integer identifier for a resource. Otherwise it is typically a pointer to a string.
So values 0-FFFFh are integers, values 10000h and up are string addresses.
Light travels faster than sound, that's why some people seem bright until you hear them.

xandaz

    thanks sinsi. That's what i thought. I was experiencing some porblems but i fixed it. I didn't have anything to do with integer lpszType.
    Thanks a lot anyway.
   Bye and best regards from X.