|
Colin Angus Mackay wrote: hdv212 wrote:
this is algorith of "TZ Executable Protector"
I would mark that algorithm as malware. The idea that one process can inject an executable inside another (blank or not) is deeply disturbing.
Agreed. Assuming this description is correct, someone's exploiting a security hole in the OS. There's almost certainly not going to be any documentation on the (C/C++) implementation, and there's a risk of it being broken permantly if MS decides to close it up. I know they're killing the ability to patch the kernel in Vista without getting MS certification and approval first (no more rootkits). The only reason they haven't previously is that it would break too many existing drivers and low level apps. Since win64 would break these as well they no longer had a reason to keep the hole alive. This is even less likely to be kept alive.
|
|
|
|
|
Hello board,
I looking for something that is similare to the MessageFormat class from java.
String.format() does a lot ofthe stuff I need, but I´m wondering if there is anything like the ChoiceFormat, where different phrases depending on a variable can be returned.
i.e.
"There {0,choice,0#are no cars|1#is one car|1<are {0,number,integer} cars} on the street.");
Any idea? Thanks for any answer,
Fridi.
|
|
|
|
|
Fridi69 wrote: Any idea?
You would have to create your own method for that sort of thing.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
You can do simple conditions with the String.Format() method.
string format = "x is {0:greater than;less than;equal to} 0";
string message;
message = String.Format(format, 5);
message = String.Format(format, 0);
message = String.Format(format, -5);
format = "x is {0:greater than or equal to; less than} 0";
message = String.Format(format, 5);
message = String.Format(format, -5);
|
|
|
|
|
This looks great, but it is limited to comparing on negativ, positiv and zero. I miss the plural...
In addition, I am not able to insert the var into the phrase, i.e. like
<br />
string format = "There {0:are no cars;is one car;are {0} cars} on the street.";<br />
causes the FormatException .
|
|
|
|
|
Hi,
Does anyone know ALL reasons why UnauthorizedAccessException exception could be thrown? (Except security problems.)
I'm writing desktop application that reads/writes into "C:\Documents and Settings\<username>\Application Data\...\my.xml file". This application is multithreaded so concurrency situations are possible. I’ve implemented retry mechanism in case of exceptions of type "System.IO.IOException". This mechanism solved all problems like: "System.IO.IOException: The process cannot access the file … because it is being used by another process." However, now I get “System.UnauthorizedAccessException: Access to the path "C:\Documents and Settings\<user>\Application Data\...\my.xml" is denied." I understand that catching System.UnauthorizedAccessException in addition to System.IO.IOException in the retry mechanism could solve the problem, but I’d like to know if it is possible that concurrency issues could generate UnauthorizedAccessException.
|
|
|
|
|
I don't think so! Furthermore, unless your program is running with administrative priviledges, it does not have the permission to access to certain files especially located below C:\Document and Settings\.
-- modified at 19:38 Monday 13th February, 2006
|
|
|
|
|
The program is not running with administrative privileges.
It's installed for a single user, that's why "C:\Documents and Settings\username\Application Data\...\" directory is used.
The UnauthorizedAccessException exception happens only for small subset of the customers and I can't reproduce it locally. In addition, these "unlucky" customers don't see the problem instantly.
That's why I'm wondering if theoretically this exception could be thrown during reading a file that is opened for writing in the same time.
|
|
|
|
|
hi
i want to embed an exe file in my app and (to protect exe file) run it from my app ?
please give me an example of this (exe file)
thanks ...
|
|
|
|
|
hdv212 wrote: i want to embed an exe file in my app and (to protect exe file) run it from my app ?
It isn't anything I've ever tried. One way I can think of is to embed it as a resource, then when necessary extract the resource and write it to disk and run it. When the process terminates it can then be deleted from the disk.
However, I don't see how this would protect the exe. You could always run some diagnostic tools over the wrapper application and extract the resource.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
Hello...
I'm in the process of writing a network analyzer in C#
for an IT project. One of the project requirements is for the
analyzer to report some metadata concerning Exchange-based
emails that go out to the internet. Currently, I've got a simple
listening socket (RAW socket) that is intercepting the
network packets. The questions are:
1) Where in the IP packet (Ehternet, IP, or TCP header)
can I inspect to determine that it's an Exchange-related
packet and needs to be process (inspected) further.
I'm pretty sure the IP packet would be of type TCP, but
2) Where in that series of bytes does it specify Exchange, the to:/from:/subject:/ etc. Is it the TCP header, IP??
3) Is the a doable thing?
I'm assuming that Exchange is using SMTP for sending the email(s).
Any info would be extremely helpful...
Thx,
T
|
|
|
|
|
What if you used a program called Ethereal to capture the traffic you want to sniff. Figure out what trigger you are looking for and then program that into your project? Ethereal can get very detailed and can show you where the data is in the packets you are looking for. It parses out the data automatically based on what protocol it's sent and can show you the raw data if you need to see it.
|
|
|
|
|
how can i use the microsoft speech SDK to make a speech to text by c# plzzzzzzzzzzz???
Fox
-- modified at 3:47 Tuesday 14th February, 2006
|
|
|
|
|
Hi all!
I need your help.
I wrote a data connect code, with adapter and dataset, any way when i am trying to point to one of the tables i get this message:
'System.Data.DataSet'denotes a property where a 'method' was expacted.
I am writing in ASP.
I do the command myDataSet.Tables("Passwords").Rows.Count!
after i write the table name the object stops responding me, you know when pressing ".".
i know that the data base connection exists because when i am using the contain property with onw of the names of the tables that exist in the database a i get true.
what the hell is the problem??????
and another small and dumm quastion, how do i create a MessageBox in the webapplication.
Thanks
|
|
|
|
|
(1) myDataSet.Tables["Passwords"].Rows.Count
(2) java script: alert("Hello World")
-- modified at 15:58 Monday 13th February, 2006
|
|
|
|
|
I am sorry but when i am writing this line java script: alert("Hello World")
i get errors, iwrite it in the code area, where the C# code is written, else how can i "IF" it?
sorry for the trouble.
|
|
|
|
|
Hello,
I create controls dynamical by the values of the rows in my BindingSource. I do this in the event CurrentChanged.
I add a control to a panel and bind this control to the BindingSource.
the problem is: the current changes BEFORE I add the fitting control.
that means a wrong (old) control might still exist when the BindingSource changes to another row. so the content might not fit for this control. the "old" is cleared and the new (fitting) one is added afterwards.
how could I clear the old control BEFORE the "current Changed"?
thank you!
|
|
|
|
|
instead of binding it in current change event... bind it item databound of that table
VMSSanthosh
|
|
|
|
|
Hello,
thank you for your answer! The problem is, i dont find this event. I can imagine such a event in .net 1.1 webcontrol-datagrid.
I am using .NET 2 on Winforms.
can you specify your answer? thank you.
thank you
|
|
|
|
|
I noticed something weird with the DataGridView.Columns. I set up a DataGridView on my form and I wanted to set a DataTable as the DataSource. When I did this all of my columns are displayed, but I only wanted to have some of them displayed. With a DataGrid I would just use the DataGridTableStyle object, but they don't work with DataGridView. So instead I set at design time all the columns I want to see displayed and map them to the column names in the DataTable using DataPropertyName of each column. This works, in that the data from the table get displayed in the right columns, but the DataGridView rather unhelpfully decides to fill in all the missing columns too. So I add all the missing columns at design time but set them to be not visible. Now this seems to work fine.
Next I decided I'd like to be able to toggle the visibility of some of the columns. So I set up some menu options and try to toggle the visibility using the Column object I set up at design time. Some like this:
colMyColumn.Visible = !colMyColumn.Visible;
This works fine before I bind my DataTable, but not afterwards. After binding colMyColumn is no longer a member of the DataGridView's Column collection. I.e.
MyDataGridView.Columns.Contains(colMyColumn);
Returns false. However, this:
MyDataGridView.Columns["colMyColumn"];
Returns the correct column that is a member of the column collection. My question is why does colMyColumn no longer hold a reference to the same object as the one in the column collection? Why has the DataGridView appear to have cloned it when it bound to the DataTable? What is going on here?
Thanks
|
|
|
|
|
I've got a large number of values to output as text, so I want to change the behavior for my entire outwput mehtod rather than calling Double.ToString(...) every single time. THe problem is that despite intelisense claiming that the numberformat Property is both a getter and a setter, when I try and change it I can an invalidArgumentException that the instance is readonly.
<br />
System.Globalization.NumberFormatInfo normal, changed;<br />
changed = new System.Globalization.NumberFormatInfo();<br />
changed.NumberDecimalDigits = 6;<br />
System.Threading.Thread.CurrentThread.CurrentCulture.NumberFormat = changed;
|
|
|
|
|
by using a System.Globalization.CultureInfo object i can avoid a crash, but the default conversion of a double to a string completely ignores the value. nor do either of the following work:
string s = someDouble.ToString(changed.NumberFormat)<br />
string s = someDouble.ToString(changed)<br />
|
|
|
|
|
CultureInfo's properties are read-only once assigned to your app's thread. You'll need to create a new CultureInfo object with the settings you desire.
System.Globalization.CultureInfo info;<br />
info = System.Globalization.CultureInfo.CurrentCulture;<br />
info = new System.Globalization.CultureInfo(info.LCID, true);<br />
info.NumberFormat.NumberDecimalDigits = 6;<br />
System.Threading.Thread.CurrentThread.CurrentCulture = info;
Unfortunately, the Double.ToString() method (without arguments) ignores the NumberDecimalDigits property. You have to do a Double.ToString("N") for it to work, which is not what you want.
Unless of course there's a way to change the default format string for a double.
|
|
|
|
|
Is there a SQLDMO equivalent for Oracle? I am stuck in my project due to this. I have developed an application that uses SQLDMO that works great for SQL Server database. Now I need to extend that app to Oracle and am having a hard time finding a tool that does to Oracle what SQLDMO can do for SQL Server.
Thanks in advance.
|
|
|
|
|
I could be wrong but I don't think there is an exact equivalent of SQLDMO in Oracle. You should go to Oracle's developer's network and query their message boards or knowledge bases. Oracle does have some .NET tools such as ODP.NET.
|
|
|
|