|
Thank you very much ThePhantom, your suggestion was really helpful. Am really grateful.
|
|
|
|
|
Free courses on Coursera
Cryptography I[^]
Cryptography II[^]
It's well known that if all the cat videos and porn disappeared from the internet there would be only one site left and it would be called whereareallthecatvideosandporn.com
|
|
|
|
|
Many thanks to you Chris. I am really grateful.
|
|
|
|
|
Do you want to implement cryptographic algorithms yourself, or do you want to use cryptographic functions provided by the .Net framework?
|
|
|
|
|
Thanks alot Bernard. I would like to learn the algorithms and their implementations before learning how to use the cryptographic functions provided by .NET Any help will appreciated.
|
|
|
|
|
Hi everyone,
I created a setup package in Visual Studio 2010 (C#) to install my program into other computers.
I can install and run without error on my computers. But on other computers, I got the error:
Retrieving the COM class factory for component with CLSID {AC0E...} failed due to the following error: 80040154
Then, I tried to use Depends to check .exe file (application file) in the installation path, and discover some error dll files:
API-MS-WIN-SERCURITY-SDDL-L1-1-0.dll
CRYPTSP.dll
SSPICLI.dll
WERUI.dll ,...
PS: I tried to build my solution in both: Release and Debug configuration, but still error.
Are there anyone know how to fix this ?
Thank you very much,
Tai
|
|
|
|
|
You need to register one or more COM components when you install your application.
|
|
|
|
|
Hey guys,
Where can I find a document on how to use the Fmodce.dll APIs? Since there are so many APIs in this dll, I could not use all of them crrectly. In fact, I need to use the volume APIs but I have no idea how to call them and What varaible do they need.If someone can help me with that, I'll appreciate it very much. My e-mail address is shihui.j@gmail.com. Thank you.
|
|
|
|
|
Two things.
1. Never put your email address in an open page like this. You have just invited a load of spam.
2. If you are asking about a DLL from FMod, then they are the best placed people to answer this. Try their forums here[^].
|
|
|
|
|
Sorry. But what I want is fmodce.dll, not the FMod software. Fmodce.dll is a DLL to play audio files on WinCE. It includes a lot of functions that support the control of music playing. Is there anyone who can help me?
|
|
|
|
|
And where does fmodce come from? From what I can find out, it comes from FMOD.org, hence why I pointed you there.
|
|
|
|
|
I regret very much that I misunderstood you and loosed my lips.You are right in this question.In fact,I didn't even know where the fmodce.dll really come from until someone told me.There is too much to be learnt for me,both technically and on comment.Thank you very much for your help.
modified 22-Aug-13 21:34pm.
|
|
|
|
|
sxrenren2006 wrote: anyone who can help me
Yes there is. As already been pointed out to you, the people that can help you are the people that wrote the DLL, http://www.fmod.org/forum/[^].
|
|
|
|
|
Thank you very much.Your words are really helpful to me.I should have learn about it first,not putting questions here and there.
|
|
|
|
|
I have a WPF-client. Code in C#. I have a database with application that we want to block from starting.
We have different users. They login to the WPF-client. We want to block different application from starting for different users.
I want to prevent the application from starting.
I'm hoping for some tips on how I solve this
|
|
|
|
|
Oscar Andersson wrote: We want to block different application from starting for different users. Again, a sysadmin thingy; if the user is a local admin, then he/she decides what gets started.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
The users are not admins. It is the application (wpf-client) that shall do the blocking of the applications. It will be other people that decides what applications that is blocked. They decides which applications on the computer that shall be block. They put in this infomation in to the database from a webpage that is used for administration.
|
|
|
|
|
I am trying this solution. In this test solution i kill all application that starts. If you see anything strange or something that is wrong. Let me know. I hop this help other
// I call this method when i start my wpf-client
private bool Run()
{
bool bRun = false;
try
{
WqlEventQuery query = new WqlEventQuery("__InstanceCreationEvent", new TimeSpan(0, 0, 1), "TargetInstance isa \"Win32_Process\"");
m_Watcher = new ManagementEventWatcher(query);
m_Watcher.Options.Timeout = new TimeSpan(0, 0, 5);
m_Watcher.EventArrived += new EventArrivedEventHandler(HandleEvent);
m_Watcher.Start();
}
catch (Exception exc)
{}
return bRun;
}// End of Run
// Method that handle events from ManagementEventWatcher
private void HandleEvent(object sender,EventArrivedEventArgs e)
{
try
{
ManagementEventWatcher watch = sender as ManagementEventWatcher;
ManagementBaseObject manBasObj = null;
String strName = String.Empty;
String strPath = String.Empty;
String strPID = String.Empty;
if (watch != null)
{
Object obj;
manBasObj = e.NewEvent;
obj = ((ManagementBaseObject)manBasObj["TargetInstance"])["Name"];
if (obj is String)
strName = obj.ToString();
obj = ((ManagementBaseObject)manBasObj["TargetInstance"])["ExecutablePath"];
if (obj is String)
strPath = obj.ToString();
obj = ((ManagementBaseObject)manBasObj["TargetInstance"])["processId"];
if (obj != null)
{
try
{
strPID = obj.ToString();
}
catch (Exception exc){}
}
//str = String.Format("Process {0} has been created, path is: {1} , PID: {2}",strName,strPath,strPID);
KillProcess(strName, strPath, strPID);
}
}
catch (Exception exc)
{
}
}// End of HandleEvent
// Method that kill the process
private void KillProcess(String strName, String strPath, String strPid)
{
try
{
Process proc = null;
if (!String.IsNullOrEmpty(strPid))
{// We have PID
proc = Process.GetProcessById(int.Parse(strPid));
proc.Kill();
}
// If you want to kill process by name we can do this
/*Process[] pro;
if(!String.IsNullOrEmpty(strName))
{// We have name
pro = Process.GetProcessesByName(strName);
foreach (Process p in pro)
{
p.Kill();
}
}*/
}
catch (Exception exc)
{
}
}// End of KillProcess
|
|
|
|
|
Why do you start with "I have a WPF-client. Code in C#"? Did you decide for the technology first, before you actually looked at the problem? Look at Windows Group Policies. That might help you.
Writing an application which kills all unwanted processes is just a wrong approach.
|
|
|
|
|
We are building a new product for the market. The wpf-client is one part of this product. We have other functions to in this client. We also have a webbsajt as part of this product.
|
|
|
|
|
I have a problem at work.
I have a WPF-client. Code in C#.
I have a database with url's. We want to block the webbrowser from reaching these webpages.
We have different users. They login to the WPF-client. We want to block different url's for different users.
This shall work for different webbrowsers to.
I have looked at the host file. But i think it is one host file for every user on the computer.
Does webbrowser like IE, Firefox, Chrome, Opera have a API that i can use for this?
I would be really grateful for some advice about this
|
|
|
|
|
Please delete your duplicate of this question, posted above.
Use the best guess
|
|
|
|
|
Oscar Andersson wrote: We want to block the webbrowser from reaching these webpages. That's not a code-thing, it's something for the sysadmin.
Oscar Andersson wrote: But i think it is one host file for every user on the computer. A host file is a per-computer setting.
Oscar Andersson wrote: Does webbrowser like IE, Firefox, Chrome, Opera have a API that i can use for this? The browsers do not offer an API to block certain sites; it'd be useless since anyone could still use another app to fetcht the HTML.
Like FTP.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
The short answer is you cannot prevent a process from starting. You can kill it if it shows up.
Well, the long answers is it's possible with a ton of research work and using the Detours library to do some API hooking of the CreateProcess functions.
This is FAR better done through Group Policy. Group Policy has White and Black lists for allowing or preventing applications from running.
As for blocking web sites, this is stadandard functionality for any off-the-shelf proxy server.
...in other words... you don't need to write a single line code to do any of this stuff. This is all stuff that's better left to network administrators and their tools.
|
|
|
|
|
The first part of you answer is for my other question about blocking applications from starting from a wpf-client. I have a solution for that. Se my other question. I hope it is ok for our product.
We cant do this in the network. It will be a product that people install at their computers
|
|
|
|