View Single Post
Old 11-28-2003, 06:47 AM  
ADDiCT
Senior Member
 
Join Date: Aug 2003
Posts: 517
Default [Visual Basic] Memory Mapping sample

Sample code that allows u to communicate with ioFTPD from your VB5/6 program, through memory mapping.

Currently implemented:
  • list online users
  • getting info from userfiles
  • kicking users on UID/CID
  • id2name & name2id (both groups & users)
Not yet implemented:
  • Groupfiles
  • User&GroupIdTables
  • owner of a file (DC_VFS)

Remarks:
1. Get http://home.no.net/addict99/files/win3207.tlb.rar if u don't have it already. It's a reference file with alot of win32 api functions in declared. I have been using this one for years, it's very helpful.
Add it to any of your projects like this: Menu 'Project' -> 'References' -> (select the file)
2. Only usable on 5.2.11 and later.
3. Edit & use at own risk. Functions are all used in my sitewho.exe and i've never seen it crashing.
This thing is all about working with pointers & CopyMemory, if you don't know what u are doing, either your program or ioFTPD WILL crash at some point.
4. I'm not here to hold your hand, or teach you how to program in VB. I'm assuming u have advanced or expert knowledge/experience.

attachment removed, see below for updated samplecode.
ADDiCT is offline