Setting System Clock in licensing [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have developed a c# application that I wish to sell.You'll must be knowing that many people just reverse their system clock and keep using the software.How to prevent that
any ideas?

The easiest and most safe way would be to require access to the net to validate the time.
But access to the net is a strict requirement, especially for some scenarios of usage.
In alternative you could try to keep an encrypted file in which you store the last time your application was launched. If the system clock on the next launch of your application is earlier than your stored last launch something must be fishy.

Related

Automatically parallelize a .net application [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I would like to know if there is a way to automatically parallelize a .Net application in order to use multi core CPU.
I know if it's possible to do it with some coding, but, is there a tools or a "runtime?" that is able to run an application in parallel (multi threading) without do manually ?
Thanks a lot :)
No - there is no way to parallelize a .net application. The programmer must build for multi-threaded/parallel from the ground up, and certain application areas will not be suited to parallelization.

How to get power usage programmatically in Windows [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am working on a windows application(C#) to monitor computers. Are there any way to get current power usage in windows ?
This is simply not supported under Windows. MS documents their PowerManagement API
I walked through every subheading, and nowhere can such detail be monitored. If the system is on battery and you poll the %battery remaining (which is not terrible accurate), you would know about as much as is possible through the API

What is the best way to track a users usage time in Windows 7 with C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'd like to write an app in C# (Winforms) that tracks a users time spent on their PC and if they are on it for an hour then tell them to go and have a break.
If they lock the machine then the counter is to be reset, I've seen examples of uptime for the machine and for idle time but nothing for actual time spent working at their PC.
If I can get some pointers as to the best way to accomplish this it would be appreciated. i.e .dll to use or reference etc
You could try using GetLastInputInfo for the idle time and a SessionSwitchEventHandler for the workstation lock/unlock.

How to set time expiry to windows application in c#? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am a novice software developer and I am building desktop applications using C#. I want to make my applications expire and generate a license file to activate the application after it expires. Meaning I want to include a time bomb to all my applications and detonate it by using the generated license file.
There are many ways to achieve this - the .NET-Way is described here in this MSDN-Article:
How to: License Components and Controls
If you are developing a windows 8 app and you want to find out a way to create a trial version of your app then I think the following article does a pretty good job of explaining how to do it.
http://msdn.microsoft.com/en-us/library/windows/apps/hh694065.aspx

IPC Between SYSTEM Account and Current User [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to write a C# program that executes operations requiring elevated privileges, but also has a UI that a limited-rights user can interact with (to initiate the privileged operations and see the results of those operations). How can I achieve this?
You have a zillion alternatives. I'd consider:
1) use a Windows service to handle the "operations requiring elevated privileges",
2) write a small, simple WinForms app for your UI, and
3) Use Windows "named pipes" to communicate between your client and service
Here's a tutorial:
http://tech.pro/tutorial/855/wcf-tutorial-basic-interprocess-communication

Categories

Resources