執行身分 – RunAsEx
有一些程式在登入Guest不能執行,我試著用windows explorer的"執行身分"去執行,結果可以!
在codeproject找到RunAsEx
不過編譯環境很麻煩。
花了一整天,建立環境….
重新整理:
將外部的.h檔放到include路徑,將外部的.lib檔放到lib路徑下。
終於可以在單純VC6.0環境下編譯。
哎呀呀,可以測試了,不過似乎本身還要什麼privileges才能呼叫,在Guest下直接disable不能設定privileges!
不是很好用….
另外找到RunAs Class不過他使用C#,執行他的demo在Guest下可以用!他使用CreateProcessWithLogonW。
建立一個相似的程式使用VC6.0
1. 參數列有任何文字為設定模式,可以指定執行身分,密碼,命令列。
2.不給參數,直接讀取設定,執行命令後結束程式。
Categories: vc60
Good website! I truly love how it is simple on my eyes and the data are well written. I’m wondering how I could be notified whenever a new post has been made. I have subscribed to your feed which must do the trick! Have a great day!
thank you for this.. by the way, your website layout is wonderful.
What you said made a lot of sense. But, think about this, what if you added a little content? I mean, I dont want to tell you how to run your blog, but what if you added something to maybe get peoples attention? Just like a video or a picture or two to get people excited about what youve got to say. In my opinion, it would make your blog come to life a little bit.
ah,…
Why to make peoples attention?
This is not a blog selling anything.