Keyloggers are considered malicious , but it actually isn't quite clear whether you mean the same thing as we do with that term.
If you are wondering how to store something, anything, then consider these points:
1) What type of data is it? Keys can actually be bytes, integers, or characters. Bytes are smallest, and might make most sense, but integers might make more sense in some cases.
2) Will the amount of data change? If yes, then a List (of T) would make most sense...probably.
3) Do you need to persist the data over time? In that case, you will want to save the data in memory, then push it out to a file, which could be either binary serialization, text files, XML, or even a database. Which one is best depends largely on what you want to do with the data.
So those are the considerations.
i am using the follwing code to make the keylogger:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer Private Declare Function RegisterServiceProcess Lib "Kernel32.dll" (ByVal dwProcessId As Integer, ByVal dwType As Integer) As Integer Private Declare Function GetForegroundWindow Lib "user32.dll" () As Int32 Private Declare Function GetWindowText Lib "user32.dll" Alias "GetWindowTextA" (ByVal hwnd As Int32, ByVal lpString As String, ByVal cch As Int32) As Int32 Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Shift = GetAsyncKeyState(System.Windows.Forms.Keys.ShiftKey) keystate = GetAsyncKeyState(System.Windows.Forms.Keys.A)
while debugging keylogger project in vb2010 it show the following error::
A call to PInvoke function 'WindowsApplication1!WindowsApplication1.Form1::GetAsyncKeyState' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
Edited 1 Year Ago by pritaeas: Fixed markdown.
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Hi. so this is actually a continuation from another question of mineHere but i was advised to start a new thread as the original question was already answered.
This is the result of previous question answered :
code for the listbox - datagridview interaction
At the top of the code ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
Private Sub btn_addline_Click(ByVal ...