|
I am neither creating a virus nor any malware . I am working in a company whose product is kiosk .For its security purpose I need to implement this functunality so please help .
|
|
|
|
|
Kiosks dont use traditional keyboards, so why would you need to deactivate keyboard input?
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
For some reasons my company is using traditional keyboards with all the keys.
|
|
|
|
|
Well, you wil finds solution anything what it needs for.
Watch this code project article: Low-level Windows API hooks from C# to stop unwanted keystrokes
[^]
Goodluck with virus or whatevar. Worry is not needed Im sure, to be infected at my pc. I use McAfee.
Be sure to use .Net 1.1... or your virus won't run on as many Windows installations...
|
|
|
|
|
I am unaware of the users intentions, however there can be legit reasons for wanting to do so.
For example, an internet cafe owner may wish to disallow the paying customer from doing anythign else other than IE.
A school's public computer might want to restrict the 'children' from installing stuff and/or fiddling around with the windows registry.
An internet kiosk (like the one at airports ... and they usually have normal keyboards embedded in metal) where public can't be trusted enough from installing stuff and/or gaining access rights on the Pc ...
etc ...
Use your imagination ...
Jedi
|
|
|
|
|
nueer wrote: Goodluck with virus or whatevar. Worry is not needed Im sure, to be infected at my pc. I use McAfee.
Maybe. I've recently written a keyboard/mouse hook app and Symantec AV didn't bat an eye at it.
|
|
|
|
|
Yes... But why in heaven's name would one create a virus that runs on the .Net framework?
I'm very naive when it comes to viruses and such, possibly because I've never been seriously affected by one... Does it ever make sense to write your virus using C# .Net? Unless it exploits the .Net Framework specifically...
Sorry, thats off-topic. Hooking key-strokes is a handy little thingy. Can't see why someone would immediately assume it's a virus.
Sorry for my poor grammar... boredom at work... it's a curse and a blessing.
|
|
|
|
|
nueer wrote: Sorry, thats off-topic. Hooking key-strokes is a handy little thingy. Can't see why someone would immediately assume it's a virus.
Mainly I think it's a case of better safe than sorry. On anything viruslike the working rule here seems to be guilty until proven innocent. A legit sounding reason for wanting something is treated as proof of innocence, when combined and the assumption that a kidiot won't be able to come up with a legit sounding reason if cornered. I'm not sure it's the best solution but can't think of anything better myself.
|
|
|
|
|
I have one Web application where I have used window basic authentication, so every time when user access application popup window will come for userid/password.
Till now there is no problem. Now within same application I have some new page which needs no authentication means Anonymous user can access.
i do not want to use 'Anonymous Access'.
is it possible we can pass authentication credential by page .
Plz advice me what code I have to write in new page so any one can access these page
Raghvendra Raghuwanshi
|
|
|
|
|
I have the following C function declaration
void Test(INT16 hA, UINT8* pB, UINT8 pTagType[4], UINT8 pC[4], UINT8 pD[4][10]);
I read in an article that I need to use MarshalAs. The problem is i don't know how to do it, especially with 2D array.
Thanks in Advance,
Tony
|
|
|
|
|
Hi,
I am having problems writing a com interface in c#. The problem I am having is to do with mapping properties on the com interface to the c# interface.
For example if I have the following IDL for a com interface.
[
uuid(56a868b4-0ad4-11ce-b03a-0020af0ba770),
helpstring("IVideoWindow interface"),
odl,
oleautomation,
dual
]
interface IVideoWindow : IDispatch
{
// properties
...
[propput]
HRESULT Height([in] long Height);
[propget]
HRESULT Height([out, retval] long *pHeight);
...
}
and run tlbimp I get a c# interface that has the following meta data. That is it has get and set accessors.
[TypeLibType(4160)]
[Guid("56A868B4-0AD4-11CE-B03A-0020AF0BA770")]
public interface IVideoWindow
{
...
[DispId(1610743828)]
int Height { get; set; }
...
}
This works perfectly!
but If I want to bypass all the IDL approach and have a pure C# solution the only way I can get correct access to the com interface is to write it as follows. That is with get_ and put_ methods.
[Guid("56a868b4-0ad4-11ce-b03a-0020af0ba770"),
InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IVideoWindow
{
...
[PreserveSig]
int put_Height([In] int height);
[PreserveSig]
int get_Height([Out] out int height);
...
}
Although this works I would prefer to write with get and set accessors.
The question is short is how do I rewrite a com interface in c# that using get and set and not put_XXXX and get_XXXX so as I can write code as follows.
vidWin.Height = 87;
and not
vidWin.put_Height(87);
btw using the meta data from the IDL approach does not work!
Thanks in advance for any help.
pdm
|
|
|
|
|
Hi,
I have created a class object and populated it with the data. Now i want to export the data into a XML format. Is there any direct way of exporting the object data to XML? if yes, can you provide me with the code snippet??
Thanks in advance for any suggestions and help
Regards,
Kais
|
|
|
|
|
|
Hi Tamimi,
Well the topic helped me. Now if i have an array of class object, will the same logic work? Say for example i have a Cat Class. I create an array of the cat class and populate with data. Now i want to export that cat class array to xml
Regards
Kais
|
|
|
|
|
i think it will work !!
you will create several xml files according to your array
Tamimi - Code
|
|
|
|
|
|
sathish s wrote: There is no inbuilt way to do this..
Yes there is, the article you linked to uses an XmlSerializer, which is "built-in" or at least comes with the framework!
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
J4amieC wrote: at least comes with the framework!
I agree with that, But
I suppose something like dataSet.ReadXml(), DataSet.WriteXml were Inbuilt Methods.
|
|
|
|
|
Yes satish, Dataset has this kind of build in methods. Am looking at similar methods for custom classes.
Well one alternative is using of XMLSerialization as disussed before
Regards
Kais
|
|
|
|
|
Hi,
I am using float datatypes for calculating ratios. Say the result is 3.33333334, i want result only with two decimal points. How to do that?
kumar
|
|
|
|
|
|
|
If you only want to display 2 d.p. use the ToString("f2"). If you want to actually round the result and store the rounded value as a float you can use Math.Round
|
|
|
|
|
Another way to do this when you're converting to a string(if you're displaying it), is you use .ToString(##FORMAT##);, You might want to use "#,##0.##" or "#,##0.00" That displays commas every 3, and (with the first) optionally or forces 2 decimal precision. The optional 2 decimal places removes trailing zeroes(so a ratio of 2.00, will show as 2).
|
|
|
|
|
my question is about IE scripting.
I have 100 notebook client. In Company i have 131.107.2.0 domain.
my proxy server is 131.107.2.7
when employees at work, they can connect to internet using proxy.
But When thay at home, there is no proxy, they have direct internet connection generally.
They cannot connect to net unless they uncheck "use proxy server" at ie properties,connection tab, lan settings part.
So i wantto write a script to prevent this.
I wrote a script but it is not working.
Any idea or where i find any script to do this.
function FindProxyForURL(url, host) {
if ( isInNet(host, "131.107.2.0", "255.255.255.0")
{
return "PROXY 131.107.2.7:8080";
}
else {
return "DIRECT";
}
}
|
|
|
|