[comp.windows.ms] segment and offset values in windows

reilly@bnlux0.bnl.gov (kevin reilly) (07/13/90)

 have been using the following routine for dma transfers through an
IOTECH 488 board.
ieeeprtf( "ENTER device# #ofbytes BUFFER %d:%d(buffer address) DMA
CONTINUE", segment(buffer), offset(buffer) );
The problem is: How do I obtain the segment and offset values for a
location in memory under windows where I want to store the data. The
driver needs the address split up into two portions segment and offset.
f there are any ACTOR programmers out there I would appreciate it if you
would tell me how using Actor messages. In Actor the lP message returns
the address of a string as a long. How do I separate the segment and
offset portions?
Thank you all.
reilly@bnlux0.bnl.gov