Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use VirtualAlloc!

Status
Not open for further replies.

shanlon

Technical User
Dec 4, 2000
24
IE
I've recently being trying to use various functions from Platform SDK in my application.. such as CreateFile, ReadFile etc.
MSDN warns that any input and output buffers must be aligned on addresses in memory that are integer multiples of the volume's sector size. It recommends using VirtualAlloc for this... ok then.. where do i start.
I need space for a structure that contains other nested structures as well multiple other structures for different functions.

Can anyone give me a code example to do this??
I'm using VisualC++ on Win2000.

Without it things are really messed up.
Thanks.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top