How would I set the handles to the memory as they come? like... #? CreateBitmap... hbmp# dd 0 mov hbmp#,eax ... instead of hbmp1 dd 0 hbmp2 dd 0....
i dont know if i really understand your question, but if you want to define a var in the code, you have to do : invoke CreateBitmap... jmp @@1 .data? hBmp1 dd ? .code @@1: mov hBmp1, eax (i'm not sur if the jmp is really necessary, butwith it, it works)
Your question is really about how to dynamically allocate memory for storing handles. In the case you don't know the exact number of the handles you require, you should allocate memory from the heap with HeapAlloc. You can then parcel out the memory as needed. If you want to enlarge the size of the memory block later on, you can call HeapReAlloc.
I think I get it now thanks! :)