简体   繁体   English

在WinApi中如何将变量发送到属于另一个进程/线程的对话框

[英]In WinApi How can i send variable to dialog that belongs to another process/thread

I am in situation where I have tchar variable(with some info in it) and I need to pass it to dialog that belongs to another thread. 我处于tchar变量(其中包含一些信息)的情况下,需要将其传递给属于另一个线程的对话框。

I tried by sending a message and TCHAR as LPARAM but dialog still doesn't see anything when accessing that variable, I guess because the data I send belongs to another process? 我尝试通过发送消息和TCHAR作为LPARAM尝试,但是访问该变量时对话框仍然看不到任何内容,我想这是因为我发送的数据属于另一个进程吗?

What are my options here? 我在这里有什么选择? Thank you. 谢谢。

Read via HWND - GetWindowText - SetWindowText. 通过HWND-GetWindowText-SetWindowText读取。 Your process must have appropriate privileges... ACL Assume, test-run the code when you are logged in the Windows as Administrators 您的进程必须具有适当的特权... ACL假定当您以管理员身份登录Windows时,请测试运行代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM