|
I'm not sure what you want, but isn't memory from other processes always read only unless the process using it explicitly shares it? The problem isn't other apps snooping at your 2nd processes memory, it's that unless #2 cooperates you can't snoop either.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
dan neely wrote: I'm not sure what you want, but isn't memory from other processes always read only unless the process using it explicitly shares it? The problem isn't other apps snooping at your 2nd processes memory, it's that unless #2 cooperates you can't snoop either.
What I was hoping to do is create a process and then disallow any other process from modifying the memory allocated to the process I generate aside from the process itself, and the app that generated the process.
I don't think that process memory is protected like you say, as game trainers and the like wouldn't be nearly as abundant if the memory was write protected.
|
|
|
|
|
Fyrecrypts wrote: What I was hoping to do is create a process and then disallow any other process from modifying the memory allocated to the process I generate aside from the process itself, and the app that generated the process.
Could it be an option to spawn a remote process? I cannot snoop memory that's on a computer that I have no access to
I are troll
|
|
|
|
|
Eddy Vluggen wrote: Could it be an option to spawn a remote process? I cannot snoop memory that's on a computer that I have no access to Smile
Unfortunately, no, that is not an option. Although, a great idea if it was an option.
|
|
|
|
|
Can I determine CPU/RAM useage percent when use Thread in Windows Service?
For example I want to allow max %10 CPU usuge for this thread?
|
|
|
|
|
Hi,
there are no provisions for limiting a thread's CPU usage.
You could throttle it yourself by adding some Thread.Sleep() calls.
On a multi-core CPU with N cores each thread cannot take more than 1/N of the available cycles, so on a dual-core a thread's maximum would be 50% anyway.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
off topic...I always wondering that how do you always remember to put smiley at the end of every message ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
you prefer it like this then?
Hi
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
nay, default setting is better
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi all,
Please explain How to create InstallShield in vs2008(C#.net 3.5 windows application)
itz very urgent to me
Thanks In Advance
--Naren
|
|
|
|
|
Dont ask all those ridiculous question out here.... If you have problem in executing any code or program, then you can post it here for rectification, but please dont ask for steps or How to..... Got it?
However, go to Google or MSDN and search for 'creating InstallShield in VS.NET 2008'. Hope this helps,
Happy Programming,
Rajdeep.NET
|
|
|
|
|
I tried there also but i did not get any articles thats why i posted here.
I hope you also dont know...
|
|
|
|
|
Lsn you idiot dont say orders... u want to answer then answer... you dont want to answer then keep your mouth shut...
NO need to be rude... u r a joke
|
|
|
|
|
SAPI 4 has a sample in Visual C++ 6.0, a demo program called multivce (tts to direct sound) that enable the speech output to be in 3d, so that the speech output can be sent to different speakers. Can this be done using C# ? If it can please tell me how.
Thanks
ETEDS
|
|
|
|
|
Hi all,
How can i create shortcut of my application on client desctop while installing time.
it is c#.net3.5 windows application.
Thanks In Advance
--Naren
|
|
|
|
|
If you are using a Visual Studio Setup Project, open the File System Editor. Right-clicking on the root node, you can select Add Special Folder->User's Desktop. Then, right-clicking on the folder content, you can select Create New Shortcut to add a shortcut to your application execurable file.
|
|
|
|
|
|
|
Hi
I need to transfer big file from PC to PPC - but I can't use RAPI.
My work is:
1. convert .sdf (big) file to binary file
2. transfer to PPC (through Webservice)
3. In PPC I convert from binary to .sdf file
the problem is, that in PPC I got an exception "out of memory" (in big file)
in small file - it work excellent.
what can I do ? maybe I can send in slices ?
thank's for any help
I work on C#
|
|
|
|
|
Hi all.
How can we use AutoCompleteCustomSource for a TextBox ?
I've searched Google , but I couldn't find anything special !
Could you guide me ?
Thanks in advance.
|
|
|
|
|
This will return an autoComplete TextBox with the Greek leters as custom source.
private TextBox CreateAutoCompleteTextBox()
{
TextBox result = new TextBox();
AutoCompleteStringCollection autoCompleteStrings = new AutoCompleteStringCollection();
autoCompleteStrings.AddRange(new string[]{
"Alpha",
"Beta",
"Gamma",
"Delta",
"Epsilon",
"Zeta",
"Eta",
"Theta",
"Iota",
"Kappa",
"Lambda",
"Mu",
"Nu",
"Xi",
"Omicron",
"Pi",
"Rho",
"Sigma",
"Tau",
"Upsilon",
"Phi",
"Chi",
"Psi",
"Omega"
});
result.AutoCompleteCustomSource = autoCompleteStrings;
result.AutoCompleteSource = AutoCompleteSource.CustomSource;
result.AutoCompleteMode = AutoCompleteMode.Suggest;
return result;
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Thanks you very much DaveyM69.
But I have a MultiLine Textbox and it doesn't work on it.
|
|
|
|
|
Yeah - the built in autocomplete doesn't work with multiline. You'll need to 'roll your own' control to do this I think.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Thanks anyway
|
|
|
|
|
I'm trying to get an output array from a function in an unmanaged DLL into my C# application. I've already done some googling on this topic and while I've found some articles, none of the suggestions seem to work.
The DLL has a function prototype of
int GetData(int ID, float* Results)
The int that is returned is the length of the array
Internally to send the results back it does
Results=new float[length];
In my C# application I use a delegate to get the function results:
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
private delegate int delGetData(int TagID, ref IntPtr Results);
I then try and retrieve the results and copy to a managed array doing this:
IntPtr data=IntPtr.Zero;
int Len=GetData(ID, ref data);
if(Len==0)
float[] results=new float[Len];
Marshal.Copy(data, results, 0, Len);
I always get an exception on the Marshal.Copy because the source (data) is null.
I have some control over the unmanaged DLL, any suggestions on how to get these to interface?
Thanks
modified 12-Jul-20 21:01pm.
|
|
|
|