
How to detect (by EXE name) if a non-shelled process is running (32-bit)
Alex,
There are two answers to your question.
1. As per Bruce McKinney's {*filter*} Visual Basic, this is the API
declaration:
#If Win32 Then
Declare Sub CopyMemory Lib KERNEL32 Alias RtlMoveMemory ( _
lpvDest As Any, lpvSource As Any, ByVal cbCopy As Long)
#Else
Declare Sub CopyMemory Lib KERNEL Alias hmemcpy ( _
lpvDest As Any, lpvSource As Any, ByVal cbCopy As Long)
#End If
2, The other thing you can do is use the VB intrinsic statement LSet to
copy bytes directly from one structure to another. This method is portable
between VB versions.
-Andy.
Quote:
> We are in the process of upgrading a vb3 application to vb5. The old
> code used hMemcpy to copy a user defined type structure into a string
> variable. This was done so that two user defined type structures could
> be compared to see if there are differences. So the qusetion is: Is
> there a replacement in the kernel32 for hMemcopy ? if not, is there a
> way of comparing two user defined structures?
> Any help will be appreciated.
> Alex Livingston