|
how can i prevent my system in case of any theft also i want to block os installation?
|
|
|
|
|
You cannot protect any system completely.
|
|
|
|
|
Is that really a C# question?
Try a BIOS password. But since the thieves have physical access, they can always get around whatever you throw at them.
The first hit you get when you google BIOS password is a site with methods to reset it. Even if all of them fail, they could just replace the motherboard.
|
|
|
|
|
You can't. Well, not entirely true, but it would take a LOT more money and effort than it's worth. It'd be cheaper to buy a new laptop.
|
|
|
|
|
You could look into this Lojack for Laptops[^]. After one of my laptops was lifted I have used this with good effect. I haven't had any others stolen but I test occasionally, you can locate the laptop online. I have reinstalled the OS and still it works.
No comment
|
|
|
|
|
Lojack for Laptops can protect you to some extent, but it can do nothing if the hard drive is pulled out. If you are more concerned about the safety of the data, you'd better use encryption on the hard drive. Use something like TrueCrypt. It's free. Use encryption on all your removable media, too. These tend to vanish when you need them. Lojack will not be able to protect them.
|
|
|
|
|
loyal ginger wrote: but it can do nothing if the hard drive is pulled out.
Not entirely true. According to their website Lojack will still function if the drive is replaced and some laptops come with it preinstalled in the bios. I've used Lojack, but can't remember if I've replaced a drive while it was installed.
No comment
|
|
|
|
|
Mark Nischalke wrote: According to their website Lojack will still function if the drive is replaced
and some laptops come with it preinstalled in the bios.
Pretty sure that the first is completely dependent on the second.
|
|
|
|
|
With Windows 8 and a new mainboards with UEFI 2.3.1 firmware, "Secure Boot" (or "Secure Startup") will be available, which is intended for such cases.
For the UEFI spec see http://www.uefi.org/specs/[^].
|
|
|
|
|
I need to capture whats happening on the screen for a streaming application. I have this method for "making a screenshot":
private void CaptureScreen()
{
Bitmap bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
Graphics gfxScreenshot = gfxScreenshot = Graphics.FromImage(bmpScreenshot);
gfxScreenshot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
string fileName = ConstructFileName();
bmpScreenshot.Save(fileName, ImageFormat.Png);
}
But using GDI+, seems not "serious" and "professional" enough for the purposes of my application. I think that it may potentially add some unneeded overhead to the screen capture.
Can you suggest alternatives which are "better" and "more optimized" for screen capturing, please?
I'm taking a shot in the dark and actually thinking of something with DirectX?
Regards!
|
|
|
|
|
The problem of such application is not the screen capture part. Look at the bandwidth an application streaming the whole screen every time would need! The more important thing is to detect the differences between two subsequent screen shots, send only these differences to the other computer, which will then "integrate" them into the current picture.
|
|
|
|
|
Thank you for the response and the additional information, sir.
However back to my question - do you think thats a good way to capture the screen or is there a better one?
|
|
|
|
|
What makes you think what you've done here is not 'professional'?
The resource usage here is going to be in allocating a new bitmap and writing it to file. What you probably want to do is have two Bitmaps which are allocated once, one for last frame and one for this frame (or one for even and one for odd, if you want to avoid switching the references each frame), so you can diff them.
|
|
|
|
|
Yes, sir. This is only a test project and it is planned to be done as you said.
What looks to me not "professional" enough is the easy way that i'm actually capturing the screen.
<pre lang="cs">private Bitmap CaptureScreen()
{
_gfxScreenshot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
return _bmpScreenshot;
}
This is what actually bothers me. It looks way too easy to use the
Graphics.CopyFromScreen(....)
method for optimized purposes. Usually the easiest ways are not the most optimized ones and i'm just searching if there is anything better than this.
|
|
|
|
|
Don't prematurely optimise. If you find that this is a performance bottleneck (which I really, really doubt) then you can look for clever tricks.
Often the simplest way is the best. How would you optimise '2+2'?
|
|
|
|
|
BobJanova wrote: Don't prematurely optimise.
Hear hear!
BobJanova wrote: Often the simplest way is the best
Often (at least with computers), what at first appears to be simplest is not.
|
|
|
|
|
Hi
I'm woundering if there is a way to detect a mouse click in a Word document that I have opened in my Form.
Many thanks
Fia
|
|
|
|
|
AFAIK if you call Mouse.Capture()[^] the control specified will get the mouse events, no matter where the mouse is going, or what window has focus. But then, if you hover a Word document, you won't be able to select words, set the caret, or do anything to it.
|
|
|
|
|
Hi
Thank you for the answer. Can you give me a code example. The only thing I want to know if the users click on the word document.
I'm using these objects
ap = new Word.Application();
doc = ap.Documents.Open(path, ReadOnly: false, Visible: true);
Many Thanks
Fia
|
|
|
|
|
fiaolle wrote: Can you give me a code example
I don't have any. I suggest you read MSDN, and use Google. It has nothing to do with Word, Mouse.Capture is a general-purpose tool.
|
|
|
|
|
Hi
I'm sorry I haven't found anything that helps me or I'm not understanding the examples. Is there anybody who can help with some code how to do this.
Please
Thanks
Fia
|
|
|
|
|
Hi
Thanks for all the replies. I have found a solution.
Microsoft.Office.Interop.Word.Application ap;
Microsoft.Office.Interop.Word.Document doc;
ap = new Word.Application();
ap.WindowSelectionChange +=new ApplicationEvents4_WindowSelectionChangeEventHandler(ap_WindowSelectionChange);
doc = ap.Documents.Open(path, ReadOnly: false, Visible: true);
private void ap_WindowSelectionChange(Microsoft.Office.Interop.Word.Selection Sel)
{
}
When I click in the doc I have opened the event ap_WindowSelectionChange runs.
Fia
|
|
|
|
|
Hello working on this software is I got the idea for a feature that let me configure the types of data that can to copy flash memory, someone has any idea of how to solve this. Use Visual Studio 2008 c#.NET 3.5
modified 11-Oct-11 10:59am.
|
|
|
|
|
This is an English orientated site please edit your question translate your question.
This is what Bing Translator makes of it:
Hello working on this software is I got the idea for a feature that let me configure the types of data that can to copy flash memory, someone has any idea of how to solve this. Use Visual Studio 2008 c#.NET 3.5
0100000101101110011001000111001011101001
|
|
|
|
|
I'm doing a software for the security of USB devices, that its main properties are placed in in XML file, and need to do that this file can not be deleted by the user to maintain the operation of the aircraft. Please if someone could help me in this. The language in which development is C# Visual Studio 2008.NET 3.5
modified 11-Oct-11 10:55am.
|
|
|
|