|
I would suggest buying a 3rd party product that already does it.
Or, if you really want to build it all I suggest you start by looking here, WMI Tasks: Computer Hardware (Windows)[^].
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I want to configure all access point in the building to send the received 802.11 management frames to my server.
and then I am able to save them on my server in order to use them for my location application to track the moving object.
Note:Syslog doesn't include all the received frames
I am asking:
Is it possible to synchronise the access point with a server to get all the received frames?
Is it possible to read this information periodically by SNMP or Telnet?
Can you tell me which MIP OID should I requests & get to retrieve a list of management frames(such as probe request) from Access points?
modified 3-May-16 6:20am.
|
|
|
|
|
Do you need frames or packets? I'm not sure what the use case for just frames would be, but a capture utility for that would most likely need to be bound to a custom NIC driver, since frames are outside of the scope of the OS and generally you won't be able to really track on anything lower than layer 3 with a COTS application.
If packets are fine, you'll need either a separate machine or a separate promiscuous NIC on the same subnet as the WAPs (you could VLANthe management network to ease the hardware burden for this) and run a packet sniffer. From there you could either dump all to syslog or use a utility like Snort in order to define rules for log-able behavior.
That would be my approach, anyway.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Thank you very much for your reply. I need only frames because I want to build position system which means I want to know RSSI for all wifi-clients(mobiles and laptops which are associated or unassociated). and this information. it is only can be in 802.11 frames. I cannot figure out how to access all Access points and get frames(such as probe request).
|
|
|
|
|
That makes much more sense, okay.
The WAP manufacturer likely exposes this information either across SNMP or via an API. I doubt that you'll be able to track it by individual frames (although a specific firmware may provide that functionality). It's worth a deep dive into their documentation to check.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Thank you again Nathan Minier
|
|
|
|
|
I want to create a c# program to make windows forms not full-screen. When you click maximize button it won't full-screen, program should specify the maximum size.
|
|
|
|
|
AFAIK, there is a setting for the default size, but not for the maximum. It doesn't need a setting, as it is defined as the size of the screen (depending on settings, minus the taskbar).
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
What is stopping you from editing the 'MaximumSize Property of your Form in the Property Browser at design-time ? Or, setting that Property at run-time ?
The one side-effect you may not expect ... if you have set the Form 'StartPosition to 'CenterScreen ... is that when you then 'Maximize, the Form may appear with its upper-left corner at screen upper-left.
You can deal with that by writing a Form 'ReSize event handler that does the "right thing" to center the Form in the screen area
private void Form1_Resize(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Maximized)
{
this.WindowState = FormWindowState.Normal;
this.Size = MaximumSize;
Rectangle scrn = Screen.PrimaryScreen.WorkingArea;
this.Left = scrn.Width / 2 - this.Width / 2;
this.Top = scrn.Height / 2 - this.Height / 2;
this.Refresh();
}
} And, of course, you could modify this to do something when the WindowState was 'Minimized. You can also do weird stuff like setting a Form Size larger than Screen Size.
However, I suggest you think long and hard about modifying the behavior of the Maximize, or Minimize, buttons on a WinForm. People often expect those to behave in a "standard" way. I have yet to see an actual case where having a WinForm sized larger than screen size was "good design."
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
I'm opening Windows Photo Viewer like this:
var process = new Process();
process.StartInfo.FileName = "rundll32.exe";
process.StartInfo.Arguments = @"C:\WINDOWS\System32\shimgvw.dll, ImageView_Fullscreen " + filename;
process.Start();
If it's already running, I want to close it.
1) How can I check if it's running. Task Manager shows multiple instances of RunDll32.Exe, but no info on what app their hosting.
2) Assuming I can tell if it's running, how can I close it?
Thanks
If it's not broken, fix it until it is
|
|
|
|
|
You could use its window title?
Process[] processes = Process.GetProcesses();
foreach (Process p in processes)
{
if (!String.IsNullOrEmpty(p.MainWindowTitle))
{
Console.WriteLine("Process: {0}\n ID: {1}\n Window title: {2}", p.ProcessName, p.Id, p.MainWindowTitle);
}
}
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I forgot - you want to kill it as well.
If the Title works, you can just kill the process:
if (p.MainWindowTitle == "Untitled - Paint")
{
p.Kill();
}
(Windows Photo Viewer is hidden on WIn10, and I don't want to faff with the registry to re-enable it, So I used Paint as an example)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Ok, that did it. Thanks
Any way to determine if my app opened that instance of Windows Photo Viewer?
If it's not broken, fix it until it is
|
|
|
|
|
Only if you keep a list of the process instances you open - AFAIK windows doesn't keep a record of who opened processes.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Surely it would be simpler to hang on to the Process instance you've created? Then you can check its HasExited property, and call CloseMainWindow / Kill as necessary.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi,
I have a server having an ODBC connection for Pervasive database.
I would like from my laptop to connect to that ODBC?
Is it possible? How can I do this using C#?
Thanks,
Jassim[^]
Technology News @ www.JassimRahma.com
|
|
|
|
|
|
Create a web service on the server and communicate with that to get database access.
|
|
|
|
|
I am developing a software to read some data from a text and plot the data in the c# chart using windows forms。However,I can't zoom the chart in Yaxis if i don't select a region and zoom it first.Who can tell me how to zoom a chart using up key automatically without zoom a region first?
|
|
|
|
|
That sounds suspiciously like functionality specific to whatever charting library you're using.
Without knowing that, it's pretty much impossible to tell you anything useful.
|
|
|
|
|
Can you select a region by code? If so, select some region in the middle of the currently visible part of the chart first, the apply the zoom.
|
|
|
|
|
hi
Quote: What are feature extraction methods in image quality assessment?
|
|
|
|
|
Combined with your other question below, this is sounding a lot like your homework.
And we do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!
If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
hi
Quote: How can i extract image structural information based on SSIM index (IQA)?
|
|
|
|
|
By reading the documentation and writing some code.
|
|
|
|