Jump to content

  • Log In with Google      Sign In   
  • Create Account


Eliad Moshe

Member Since 01 Jan 2010
Offline Last Active Jul 15 2014 06:44 AM
-----

Topics I've Started

The "Drawings -Figures" section in a patent

03 June 2014 - 02:06 AM

"Figs 1A to 1D show various aspects of a closure supplied with...with paper in accordance with one embodiment"

 

"Fig 2 shows a ...on one side only in accordance with another embodiment"

 

"Fig 3 shows a ...in accordance with another embodiment"

 

Why not to be more specific regarding which particular embodiment the figure relates to?

 

How to use this phrase correctly?


Accessing STDOUT of a child process

16 February 2014 - 06:39 PM

Hi guys,

I am trying to access the STDOUT of a child console application,
At first I tried to use Anonymous Pipes with Info from:

http://msdn.microsoft.com/en-us/library/ms682499%28VS.85%29.aspx
http://www.codeproject.com/Articles/5531/Redirecting-an-arbitrary-Console-s-Input-Output

then, I found this page at Microsoft Support : http://support.microsoft.com/kb/190351 that states:

"Note Child processes that use such C run-time functions as printf() and fprintf() can behave poorly when redirected. The C run-time functions maintain separate IO buffers. When redirected, these buffers might not be flushed immediately after each IO call. As a result, the output to the redirection pipe of a printf() call or the input from a getch() call is not flushed immediately and delays, sometimes-infinite delays occur. This problem is avoided if the child process flushes the IO buffers after each call to a C run-time IO function. Only the child process can flush its C run-time IO buffers. A process can flush its C run-time IO buffers by calling the fflush() function."

Any Idea what can I do in order to  solve this besides modifying the source?
 


Getting the CPU temperature

09 February 2014 - 07:15 PM

Hi Guys,

SOME BACKGROUNG

- I am writing a software for Windows (WinXP and above, in C++), that requires measuring the CPU temperature.

- There are two WMI interfaces for this : MSAcpi_ThermalZoneTemperature and Win32_TemperatureProbe.

Although not all hardware manufactures implement their part in the interface within their drivers.

(http://social.technet.microsoft.com/Forums/de-DE/eecc509c-481d-44d2-b5e5-57cb7174e0d7/ms-windows-should-implement-working-cpu-temperature-monitoring-in-wmi-service?forum=perfmon)

 

- There are hardware monitors that bypass the user space using a kernel mode driver in order to inject
assembly instructions directly to the processor.

- The Open Hardware Monitor software for example which is open source (written in C#) uses WinRing0.sys.
I modified it into a simple console app that returns the temperature.

- OHM implement the temperature retrieval interface in the following files: 
(https://code.google.com/p/open-hardware-monitor/source/browse/trunk/Hardware/?r=366#Hardware%2FCPU)

- (Each model of each hardware manufacture has it's own assembly interface to access the temperature sensors) ~

- There is also a propriety  SDK by CPUID, and an extension mechanism by CoreTemp.


MY QUESTION

All of these solutions require a quite restrictive security token - there is a bumping UAC (User Account Control) dialog (Vista and above).
OHM requires system admin privileges for example.

Is there a way to eliminate this?

Some useful links:
http://www.codeproject.com/KB/vista-security/VistaSessions.aspx?msg=3198293
http://www.codeproject.com/Articles/35773/Subverting-Vista-UAC-in-Both-32-and-64-bit-Archite

I tried those techniques without success so far (I am using Win8.0).

Any ideas?

 


Pricing a freelance project

20 November 2013 - 03:50 AM

Hi Guys,

I received an offer from a startup company to develop a Dock (C++, win32 API) like this one -> http://app.etizer.org/ to be integrated eventually as a component in a bigger software.

It should take me something like two months to accomplish.

I am not sure how to properly tag it's price.

 

Qt WebView stretching

11 November 2013 - 07:32 AM

Hi Guys,

I managed to use the Qt/MFC migration framework in order to embed a browser control in my win32 based GUI library.

I encapsulated the QtWinWidget inside a win32 custom control, and I want to change the browser size when the control receives a WM_SIZE message, although I am not sure how.


PARTNERS