我想用CreateRemoteThread调用MessageBox方法
使用CreateRemoteThread 调用MessageBox方法,
我建立一个struct存这4个参数,使用CreateRemoteThread调用,无效,不能弹出对话框,请问怎么改?
int WINAPI MessageBox(
_In_opt_ HWND hWnd,
_In_opt_ LPCTSTR lpText,
_In_opt_ LPCTSTR lpCaption,
_In_ UINT uType
);我建立一个struct存这4个参数,使用CreateRemoteThread调用,无效,不能弹出对话框,请问怎么改?
[DllImport("kernel32")]
public static extern IntPtr CreateRemoteThread(
IntPtr hProcess,
IntPtr lpThreadAttributes,
uint dwStackSize,
IntPtr lpStartAddress,
IntPtr lpParameter,
uint dwCreationFlags,
out uint lpThreadId
);
...全文


