我创建了一个函数,允许我用当前打开的进程从内存中的指针返回一个泛型类型。 public static T ReadValue<T>(this IntPtr ptr, int length = 0)
{
Type valT = typeof(T);
byte[] buffer = length > 0 ? new byte[length] : new byte[Ma
所以,我有一个类使用WM_COPYDATA来允许应用程序进行通信。 type
TMyRec = record
Name: string[255];
Age: integer;
Birthday: TDateTime;
end;
function TAppCommunication.SendRecord(const ARecordToSend: