[2008 ] Read/WriteProcessMemory In Minesweeper?

Jan 31, 2009

I'm trying to Read Minesweeper's Process Memory, At a certain Address and i want to write to that address then read it again and check to see if the writing is successful.

I've been trying to use WriteProcessMemory and ReadProcessMemory, But it seems that I don't know how to make WriteProcess write properly, and I have almost know clue as to how Readprocessmemory works. I just tried reading the exact same things as i was writing.

What I decided on designing was too make a Program that will Hook the program in Textbox1.text (winmine) and then write the NOP's from textbox2.text (Whatever that is) to the ADDRESS specifiyed in the Textbox3.text. Then textbox4.text is just byte's written(I still have yet to figure out what that is in WriteProcess).

So far, It successfully hooks the Application, But it does not write it, and Yes, I d have the proper address, and I'm writing the proper NOP's.

This is my

Public Class Form1
Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Object, ByVal lpBuffer As Object, ByVal nSize As Long, ByVal lpNumberOfBytesWritten As Long) As Long

[code]....

View 5 Replies


ADVERTISEMENT

VS 2008 - WriteProcessMemory Does Not Work?

Jan 17, 2010

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ScoreAddie As IntPtr = &H7FF8E4
Dim ScoreAddie2 As IntPtr = &H7FCE22
Dim NewScore As Byte() = BitConverter.GetBytes(999999)
Dim p As Process
[Code] .....

The addresses are
007FCE22
007FF8E4
When I put a &H it auto converted to that. When I press the button, nothing happens to the score in pinball.

View 9 Replies

VS 2008 WriteProcessMemory Error

Jan 18, 2010

Dim TargetProcess As Process() = Process.GetProcessesByName("pinball")
Dim hProcess As Integer
Dim Addie As Integer = &HB90C62

[code]....

When it changed Pinball's score, it doesn't change it to 10000, but something like "808xxxxxx" (x = any number)Why is that?

View 16 Replies

WriteProcessMemory Failed?

Aug 15, 2010

I have a code that gets the console text by memory. ut I can't seem to get it to work. the code is suspost to remove the last console text within the game I do know the code is correct but maybe I need something else besides (Int(? here is my code

Public Sub RemoveLastJAHistory()
If Me.PrepareMem Then
Dim lpBuffer As Integer = 0

[code]......

View 1 Replies

Howt To Use WriteProcessMemory And ReadProcessMemory

Jun 24, 2009

This is again something work in VBA while VB2008 not working..I was about to use them to read lines from a listview of an external application...I define them as:

Private Declare Function WriteProcessMemory Lib "kernel32 " (ByVal hProcess As Int32, ByVal lpBaseAddress As Int32, ByRef lpBuffer As IntPtr, ByVal nSize As Int32, ByVal lpNumberOfBytesWritten As Int32) As Int32
Private Declare Function ReadProcessMemory Lib "kernel32 " (ByVal hProcess As Int32, ByVal lpBaseAddress As Int32, ByRef lpBuffer As IntPtr, ByVal nSize As Int32, ByVal lpNumberOfBytesWritten As Int32) As Int32

Originally, lpBuffer was defined as Any, while VB2008 not supporting it, so I make them IntPtr, then I got trouble when I use them..I declare a structure LV_ITEMA then dim myItem as new LV_ITEMA, so when I write:

WriteProcessMemory(pHandle, pMyItemMemory, myItem, Len(myItem), 0)

The program will give an error saying .. Error 1 Value of type 'WindowsApplication1.Module1.LV_ITEMA' cannot be converted to 'System.IntPtr'.

View 7 Replies

WriteProcessMemory - Make NOP All Those Adresses At Once And Take At Once 7 Bytes

Apr 16, 2009

Well this works and that how i got it now:

Module:

CODE:

Well what i wanted to do is ask how could i write those alle 7 Bytes with 1 Line of code cause i dont really understand it. Cause it boring to write Byte by byte isnt there a way like in C++ it was : byte offsets() = {byte1, byte2, byte3} and so on something like that then i could do it but in Visual Basic.Net i dont really understand it.

Or if i want to NOP

Module:

CODE:

How could i make it NOP all those Adresses at once and take at once 7 Bytes and not that i have to do it in more lines

View 3 Replies

Vb 2005 Code For Minesweeper?

Mar 8, 2009

This is the code i have and what i put !): around the parts and no this is not homework, i found this on the internet and i'm having some trouble with is.

[Code]...

View 2 Replies

Minesweeper :: Make Verify Position?

Apr 30, 2012

So I'm developing a minesweeper game and im assigning the mines, but i'm unable to create a algorithm to stop a mine to go to a place where there's already a mine, here's what i have so far:

Public Sub initflags()
Dim line, column As Integer
For line = 0 To 9

[code].....

View 2 Replies

Send For Minesweeper Game Program In C++?

Jan 10, 2010

i want you to send for me minesweeper game program in c++ please explain it step by step that how you made it.my e-mail is fof_gof@yahoo.com.please please please send me.ok?i am not very familiar with programming in c++.

View 2 Replies

Winforms - Minesweeper Clicking Events

Dec 8, 2011

I've started making a Minesweeper game in vb.net using a dynamically created grid of buttons, which are stored in a 2D array. I have another 2D array (Boolean), that keeps track of whether a certain position is covered or uncovered. And I have an 'update grid' method that can be ran whenever, to update the grid, so that all that should be uncovered is uncovered on the screen.

[Code]...

View 1 Replies

Developing A Minesweeper Flags Game And The Multiplayer Version Is All Setup?

May 17, 2012

So I'm developing a minesweeper flags game and the multiplayer version is all set up, but the single player version is still under developement. It's important to refer that I'm using a DataGridView, and I'm applying r = tab1.CurrentCell.RowIndex + 1 and c = tab1.CurrentCell.ColumnIndex + 1 to see where the player clicks. What I want to do is to make the AI click any random cell when it's turn comes, but how do I do this.

View 1 Replies

Get The Same Result As In The Original Minesweeper For When A User Clicks And Moves The Mouse Around

Jan 10, 2010

I have fully programmed my Minesweeper; however, I was having difficulty trying to get the same result as in the original minesweeper for when a user clicks and moves the mouse around while still right clicking. You may notice that in the original Minesweeper, when a user does as explained, the tiles that the user goes to will then look blank. If the user releases the mouse, the current tile they hovered to will become the clicked tile. In my Minesweeper, the tile I click on is the only one that will look blank, and when I hover over to the next tiles, they do not get blank like the first one I clicked on. Then when I release my mouse button when over to another tile, the very first tile I clicked on is the one that gets uncovered.

Here is what I already have used. I have the MouseDown event which checks to see if the game has been started to begin the game timer. It also has some color properties for tiles when I click on them and I set a boolean to true or false depending on the user left or right click. I have the MouseUp event which looks at the boolean to determin what the user had clicked on the mouse so I know if I flag or simply click to uncover. Then I have the MouseEnter and MouseLeave which are needed to yield the proper glow I want for the tiles. What should I do to get the same results as in the original Minesweeper with the MouseDown and MouseEnter into other tiles? I tried many other things such as MouseEnter, MouseMove and MouseHover, but all seem to yield the same crummy result as what I already have.

[Code]....

View 1 Replies

Interface And Graphics :: Minesweeper UI - Digitized Timer And Mine Counter

Oct 17, 2011

I'm beginning the process of trying to recreate minesweeper. See the attached picture of the version on my computer. My guess would be all the click-able locations are images. But notice the beveled borders around all the components, and how they separate the different section of the game. How would I go about created that? And what about the digitized timer and mine counter. Are those images too? I'm fairly new to VB programming (windows programming in general).

View 4 Replies

Process.MainModule.FileName: "Only Part Of A ReadProcessMemory Or WriteProcessMemory Request Was Completed"

Jun 1, 2008

I have searched google with this error in relation to Process.MainModule.FileName however none link with the error message, "Only part of a ReadProcessMemory or WriteProcessMemory request was completed".There however was one thread on these forums suggest a 64 bit issue however that was soon excluded as it was reported also in a 32 bit enviroment. The marked answer to that thread suggested it is a security problem however I don't think anything has been changed in relation to that comapred to a 'clean' project.

"If it is a security problem, you may try to run your application under the debugger" Process.MainModule failure I am in-fact debugging this application through Visual Studio so I am not quite sure what to do next in the process of diagnosing this problem. I am debugging using 32 bit in a 64 bit enviroment because of DirectX compatability issues?

View 20 Replies

Read Ini In .net 2008?

Feb 6, 2010

e.g Just only example

[Version]
Ver = Beta
[School Application]
MyProject1 = windows

[code].....

i can't read the value of version and section of the Version and Key of the Version.

View 2 Replies

VS 2008 How To Read This Xml

Jan 19, 2010

i can read a "simple" xml with 2 tables. but now I am trying to work with this xml structure and I can't seem to read it with readxml. well i can read it but i'm not able to find the right way to call up all the items.

Here's the xml.

<?xml version="1.0" standalone="yes"?>
<keywords>
<keyword id="soccer">
<group>

[code]....

View 3 Replies

VB 2008 - How To Read INI File

Feb 2, 2009

We are working with vb 2008 and we made script for reading a INI file. Is there a more simple way for reading a INI file? In vb60 we used a dll for reading.

View 7 Replies

VS 2008 - How To Read Memory With VB

Dec 18, 2009

how to read memory with VB. I want to start with Basic Mind Sweeper game. In mind sweeper if you set default greed/field (9 by 9) you can find all mines location of in memory from Address 01005360 to 01005468. Hex dumb 8F represents a mine. write a program in VB.Net 2008 that will display Hex Dumb of address 01005360 and 01005368 for mind Sweepers . So Basicly I need put all hex dumbs in string from hex dumb "10" in adress 01005360 to the next hex dumb "10"

View 5 Replies

VS 2008 : Can Read From The Db But Can't Write

Apr 11, 2009

i had an old oledb connector from a .net 2003 application i tried to follow the same steps i used for that but it wont allow me to edit the access database.i was trying to avoid using sql strings because my database is rather large and the primary use of this db is for data entrys.

View 3 Replies

VS 2008 How To Read Xml Information

May 12, 2011

We got from our customer a xml file with the next information:

<World>
<Countries>
<Country CODE="A">1</Country>
<Country CODE="B">2</Country>
<Country CODE="BG">3</Country>
<Country CODE="CY">4</Country>

[Code]...

View 3 Replies

VS 2008 Read .dat File?

Sep 26, 2009

VS 2008 Read .dat file

View 9 Replies

VS 2008 Read An Adobe Pdf With Vb App

May 17, 2011

I want to read an adobe pdf with my vb app. I have an example how to so but I don't know what is: AxAcroPDF1, how can I get this tool in my form , it looks like a picturebox with white backgroud and an icon of pdf in center . does anyone know how to get the AxAcroPDF1 tool?

View 5 Replies

VS 2008 Read Contents Of A .ISO Using Zip/rar/7z/?

Mar 29, 2010

Im working with .ISO and .Bin files, and 7z, winrar and winzip are all able to open a .ISO or .Bin like there a zip file and you can see the contents like so:

7z
UltraISO

What im trying to do is detect the SLUS_215.57 file name, to then pass on to my if statements, like so:

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim selit As String = CStr(ListBox2.SelectedValue)

[Code]....

View 9 Replies

VS 2008 Read CSV To Array And Use It?

Feb 2, 2011

I would like to be able to use any of the .csv lines and collum.my csv file has 6 collums (Name,LastName,Street,City,Zip,Phone)d about 100 lineso I want to be able to call in my project something like Array(10,2) and it will be line 10 collum 2 and it will give me the data (Hilton) or what ever in there

View 2 Replies

VS 2008 Read CVS And Get Data?

Nov 15, 2011

Im having problems with reading CVS file and getting data from it.

Im trying to make IP to country code which checks all from CVS file, its like this.

1.0.0.0,"1.0.0.255","16777216","16777471","AU","Australia"
1.0.1.0,"1.0.3.255","16777472","16778239","CN","China"
1.0.4.0,"1.0.7.255","16778240","16779263","AU","Australia"

[Code]....

Lets say that I have ip 1.0.2.114 to check, which is found beetween first line values of CVS, and its Australian IP, so is there way to read CVS file and if u put there ip 1.0.2.114 then msgbox shows "Australia"?

View 4 Replies

VS 2008 Read End Of File?

May 26, 2009

I want to read 4 lines OR 400 chars from the end of a log file.The log file will be huge so im seaching a way to not read the whole file into the memory.

vb.net
Dim filel As Long = My.Computer.FileSystem.GetFileInfo(logfile).Length
Dim buf(400) As Char
Dim fs As New IO.StreamReader(logfile)
fs.Read(buf, filel - 400, 400)

I've also tried with FileStream but i keep getting this error:"Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection."But why doesn't it work with filel - 400 as index? It works if i just switch it with 0?

View 8 Replies

VS 2008 Read Xml Elements?

Jan 24, 2012

I have an xml document and I want to read the elements from it.Here is what I have:

<my:assetTracking xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-10-21T21:12:27" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003">
<my:employee>
<my:employeeName></my:employeeName>

[Code]...

View 1 Replies

VS 2008 Read XML File?

Sep 4, 2010

I am looking to read the xml file according to the block i have in the file.for the example i have 2 Support and Operator, i need some code where i can only read the support or operator nodes.Here is my xml file.

<?xml version="1.0" encoding="iso-8859-1"?>
<main>
<Support>

[code]....

View 5 Replies

VS 2008 What's The Best Way To Read XML Files

Jun 22, 2011

I have xml files with nodes like this:

[Code]...

Now inside the shipment node there are a bunch of other nodes. I need to loop through each Shipment in the Shipments Node. Get the relevant information, and write it to a database. What's the best method. I've seen XMLReader, XMLDoc etc but I don't know which is the most flexible.

View 11 Replies

VS 2008 Xml: Can't Read These Nodes?

Jul 11, 2010

We have a problem to read a simple xml.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<info>
<info_id Id="123456" information="Last task" />
<action actionid="1234" action_operation="ALL" action_type="1">
<place place_type="ZZV" Encoding="HexString">FTRE1423</place>
</action>
</info>

Can someone give us script for reading the information?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved