I have the winapi32 text version from my VB6.0, along with mapi32 and another text file available for viewing/downloading..
Would it be legal to reveal it

thnx
Posted on 2001-09-05 07:30:33 by drarem
My Win32api.txt for VB6 has this in uts header.

' You have a royalty-free right to use, modify, reproduce and distribute
' this file (and/or any modified version) in any way you find useful,
' provided that you agree that Microsoft has no warranty, obligation or
' liability for its contents. Refer to the Microsoft Windows Programmer's
' Reference for further information.

This shoud mean you can do whatever you want with it.

KetilO
Posted on 2001-09-05 08:30:28 by KetilO
so much for me readin the small print... here goes two links if anyone is interested:

http://home.dencity.com/drarem/win32api.txt equiv 650Kb
http://home.dencity.com/drarem/mapi32.txt small


and a quick question:


PANEL_CONTROL struct DWORD
PcPb DWORD ?
PcPq db ?
PcPt DWORD ?
PcX1 db ?
PcY1 db ?
PcX2 db ?
PcY2 db ?
PANEL_CONTROL ends

I think it is possible and may have seen it done somewhere, how would I prefill that structure and in what part of the code.. after the .data or inside the .code ?

my vision is something like this:

PC PANEL_CONTROL (array somehow, haven't made it that far yet)

PC < PB, "EXIT", 0201, 16, 0, 25, 25> into array 0
PC < CB, "Check Here", 0301, 150, 100, 16, 16 > into array 1
...

then have a sort of interpreter to decode the structure and draw the various controls on the screen for WM_CREATE...

or would it be better to learn how to use the RC.exe?

Thanks.. I am lost in this at the moment any little bits of wisdom will help light the way :)
Posted on 2001-09-05 09:22:02 by drarem
Something db "?????",0 ;I don't know what this structure is?
x_Exit db "EXIT",0

PC PANEL_CONTROL <offset Something, 2, offset x_Exit, 16, 0, 25, 25>
Posted on 2001-09-05 09:35:36 by bitRAKE
welll umm after playing around I figured out how to initialize the structure.. now to array it..
Posted on 2001-09-05 10:32:12 by drarem
Maybe there should be a page that conatains links to stuff like these things?
Posted on 2001-09-05 11:48:00 by ChimpFace9000
ok now i'm at my wit's ends... here's what I got.. how would I initialize it from above the .code ie, or is it possible?

PANEL_CONTROL struct DWORD
PcPb DWORD ?
PcPq DWORD ?
PcPt DWORD ?
PcX1 DWORD ?
PcY1 DWORD ?
PcX2 DWORD ?
PcY2 DWORD ?
PANEL_CONTROL ends

PC_PB equ 0015
QuitDBC equ 500
LaunchDBC equ 600
TestDBC equ 650

How do I do the following below:

PC < PB, "EXIT", 0201, 16, 0, 25, 25> into array 0
PC < CB, "Check Here", 0301, 150, 100, 16, 16 > into array 1
PC < PB, "RUN", 0401, 150, 160, 16, 16 > into array 2

etc... pre-loading the array
thanx
Posted on 2001-09-05 12:06:27 by drarem
hope this helps, if you need more explanation on the code
let me know. i'd be glad to help

prs


.486

.model flat, stdcall

include windows.inc
include user32.inc
include kernel32.inc


includelib user32.lib
includelib kernel32.lib


PANEL_CONTROL struct DWORD
PcPb DWORD ?
PcPq DWORD ?
PcPt DWORD ?
PcX1 DWORD ?
PcY1 DWORD ?
PcX2 DWORD ?
PcY2 DWORD ?
PANEL_CONTROL ends

PC_PB equ 0015
QuitDBC equ 500
LaunchDBC equ 600
TestDBC equ 650


.data
szArrayZ db "array index Zero",0
szArray1 db "array index one",0
szArray2 db "array index two",0
szArray3 db "array index three",0

arrayOfPanelControls PANEL_CONTROL < offset szArrayZ,0,0,0,0,0,0 >,
< offset szArray1,1,1,1,1,1,1 >,
< offset szArray2,2,2,2,2,2,2 >,
< offset szArray3,3,3,3,3,3,3 >

sizeOfPanelControls dd ( $ - arrayOfPanelControls ) / sizeof PANEL_CONTROL
.code

start:




;set up index
xor ecx, ecx

.repeat
;Get our size of our structure
mov eax,

;multipy our size by current index to get to next index
mul ecx

;update our index
inc ecx

;now access element in our array
lea edi,

;----Play with array here or get/set values here
;save all registers msgbox trashes em;
pushad

invoke MessageBox, NULL, ( PANEL_CONTROL PTR ).PcPb, ( PANEL_CONTROL PTR ).PcPb, MB_OK

;restore em
popad

;;-------------------------------------------------------

;while we still have valid elements
.until ecx >= sizeOfPanelControls


invoke ExitProcess, eax


end start
Posted on 2001-09-05 15:31:43 by prs
Thank you thank you!

I spent half the day fiddling with initializing an array and creating a macro, but what you have looks much better to me, with ur premission I will strip and adapt for my uses :)


I will work on it tomorrow and show my progress. Thanks again.
Posted on 2001-09-05 16:45:13 by drarem