a_Burhan Posted March 10, 2009 Share Posted March 10, 2009 Hi, i have a problem, i'm write a code of service in VB 6.0 that make a Screen Capture of the desktop actions, and store actions as .avi file, and its work on XP for a long time, but these days i want to use it on vista and it doesn't work good, it makes an .avi file but with black screen. what's wrong ???? Link to comment Share on other sites More sharing options...
0 GreenMartian Posted March 10, 2009 Share Posted March 10, 2009 What method do you use to capture the screen? Link to comment Share on other sites More sharing options...
0 a_Burhan Posted March 10, 2009 Author Share Posted March 10, 2009 What method do you use to capture the screen? i have used .ocx file in camtasia studio .... if that is the answer of your question ? Link to comment Share on other sites More sharing options...
0 a_Burhan Posted March 10, 2009 Author Share Posted March 10, 2009 ok i know the problem but now i need solution :) now the problem is mention dawn If anyone is interested, I finally found the 'correct' way to handle this issue. Level 0 isolation came about because of several injectable code exploits that allowed hackers to gain full system control. It is now impossible for system services to interact with desktop users. In solving this problem, I had to call native library methods, in particular 'CreateProcessAsUser' from 'advapi32.dll'. I have a C# service that runs in the background at level 0 as SYSTEM and spawns a helper application in userspace using the CreateProcessAsUser function. The service checks to make sure that the application is running, and when it is not, it respawns the process in userspace. The helper process then uses IPC to send the screenshots back to the system service so that the screenshot can be saved in a secure location that can't be edited by a limited user. It works pretty well, the only issues I have are with Fast User Switching obviously running into issues with the service knowing who is logged in, so I just disable that service. but i used VB 6.0 so i need that dll in VB ?????? Link to comment Share on other sites More sharing options...
0 GreenMartian Posted March 10, 2009 Share Posted March 10, 2009 Edit: NVM, typing too slow, didn't see your followup :p Sorry, can't really help :( Link to comment Share on other sites More sharing options...
0 a_Burhan Posted March 10, 2009 Author Share Posted March 10, 2009 Hmm.. I don't know anything about camtasia. Are you using the latest version that supports Vista? If you've been using the .ocx since the XP days, it may have come from a much older version.Edit: NVM, typing too slow, didn't see your followup :p Sorry, can't really help :( yes man i used the latest version , but now my problem is to find fun " CreateProcessAsUser "but in VB 6.0 :) Link to comment Share on other sites More sharing options...
0 Wilhelmus Posted March 10, 2009 Share Posted March 10, 2009 How to start a process as another user from Visual Basic. Link to comment Share on other sites More sharing options...
0 a_Burhan Posted March 12, 2009 Author Share Posted March 12, 2009 ok i want to make my service to interact with desktop always... by defult in vista Link to comment Share on other sites More sharing options...
Question
a_Burhan
Hi,
i have a problem, i'm write a code of service in VB 6.0 that make a Screen Capture of the desktop actions, and store actions as .avi file,
and its work on XP for a long time,
but these days i want to use it on vista and it doesn't work good, it makes an .avi file but with black screen.
what's wrong ????
Link to comment
Share on other sites
7 answers to this question
Recommended Posts