; CopyMemory ByVal MemPointer, VarPtr(DataToWrite), SizeInBytes End Sub
------------end cut here---------------------------------------------------------------
Usage:
To assign to a variable using memory:
Dim ptrVariable As Long Dim xCounter As Long
ptrVariable = VarPtr(ptrVariable) WriteMem ptrVariable, DefineWord, &HFFFF '''' Same as ptrVariable = &HFFFF
To read from a Memory, use:
ptrVariable = ReadMem(ptrVariable, DefineWord)
Wow, we got a Pointer and we can access them now, but if you time instructions, you may be amazed that a raw Visual Basic Assignment Operations is much faster that of the Direct Memory Assignment Operation, but what i am pointing out here is that Memory can now be Accessed Using Visual Basic, and the global Idea of this is to Read and Analyse not only the Variable, from this Downward, you can simply run through running DLL by acquiring their memory addresses, equiped with modMemory.bas with knowledge of Portable Executable format, Bingo, you can play with the DLL Body, See how they process and best of all, Get a List of all of its Exported Functions; and before i forgot, why not spy em out or even get a copy of their function body to Disassembly purpose, all of which and more are accessible on Low Level Languages, thats why C was declared as Industry Standard; Now you can write Visual Basic Application that can performs like C, goodluck
- Chris Vega [gwapo@models.com]
上一页 [1] [2] [3] [4] [VB.NET程序]通过短信猫发送短信 [C语言系列]使用C#实现ADSL自动拨号 [Web开发]狂人采集器规则使用详解 [电脑技术]windows7快捷键使用大全 [办公软件]PowerPoint模板使用经验之谈 [办公软件]如何在PowerPoint中使用(插入)Media Player控件播… [办公软件]如何在PowerPoint中使用(插入、创建)书签及书签的… [办公软件]如何在PowerPoint中插入(使用)条形码 [办公软件]PowerPoint通过对象播放视频电影 [办公软件]如何通过网页打开PPT
|