Start Qt app right after initial windows startup - windows

I need to start my application before the windows login form displays, and the login process should be done within the application. How is this possible with the Qt framework?

It is not possible to customize the Windows graphical identification and authentication (GINA) using only Qt. GINA is a component of some Microsoft Windows operating systems that provides secure authentication and interactive logon services. You will have to implement a custom GINA, which involves providing implementation for a set of native API calls. More information on this topic is available at Wikipedia.

Related

Is there a way to turn on Bluetooth using winapi?

I'm looking for a way to turn on my computer's Bluetooth using the Windows API only. I didn't see any function in BluetoothApis.h for this. If you know any way (maybe using the Device API), I would love to hear it!
This is the setting I want to turn on using the Windows API:
I don't know about Win32 API, but it can be done easily via Windows Runtime API Windows.Devices.Radios. The RadioState enum can be set to On, Off or Disabled.
A UWP example is here.
For Win32 apps it is still possible to access the Windows Runtime API, for example by compiling with VC++ /ZM flag ("Consume Windows Runtime Extension") and invoking Windows::Foundation::Initialize(); on startup, as explained in the Microsoft's blog: How to access the Windows 10 APIs from C++.

win32 libraries(dll) behavior in when launched from MetroApps

We wrote a COM in-proc Server(dll)(say x.dll) which is dynamically linking to a library(say y.dll) which is using win32 API's. We have observed a different behavior of the same win32 API when launched from windows8 Desktop Apps and Metro Apps.
When the COM in-proc Server dll(x.dll) is loaded from desktop Apps, all the win32 API in library(y.dll) are working fine.But when x.dll in launched from metroApps all the win32 API in y.dll are failing.
Is this the default behaviour for Windows8 win32 API ? It would be good if some one can provide me any documentation related to using win32 API in dll's which can be launched from both desktop and MetroApps.
Thank You
Only a subset of the Windows API is available to a Windows Store app. The MSDN documentation for each API function specifies whether the function may be called from a Desktop app or from a Windows Store app. For example, the following appears at the bottom of the documentation for GetProcAddress:
Minimum supported client Windows XP [desktop apps | Windows Store apps]
This function may be called from both Desktop apps and Windows Store apps. If a function does not say that it is supported in a Windows Store app, it may not be called from a Windows Store app. For example, LoadLibrary does not say that it is callable from a Windows Store app, so it cannot be called. (Note that while there are ways to call unsupported functions, doing so necessarily yields undefined behavior.)
Also note that Windows Store apps run with low privileges and have restricted access to the system.

How to hook api in windows phone 7?

Is there something allow me to develop a software in wp7 just like API MONITOR in windows?
Windows Phone has some native API hooks (although undocumeted):
http://blog.walshie.me/2010/11/12/windows-phone-7-native-apps-the-missing-link
However, due to the restrictive nature of the OS you might have problems in tracking down API calls from other applications, since you will need to have your own app running in the background, and that is currently the privilege given to system apps only.

Simulate user input with Windows Phone 7 Emulator

I've seen examples of using the Microsoft.Smartdevice.Connectivity.dll library to deploy WP7 applications to the emulator.
Is it possible to then automate user input to the device as well to perform UI testing of the application running in the emulator?
The emulator doesn't include support for this.
However, if you were using a UI test automation tool you may be able to simulate the clicks/UI interaction from a script runnign on the host PC.
I've never used a UI automation test tool with a VM/emulator but that's currently the only option available to you.
Unless you have a very complicated application it may be quicker and easier to test the UI manually though as a tool wouldn't be able to query the state of the app running in the emulator and so would only have limited usage.

Developing power consumption aware applications

Firstly, please don't move to serverfault. It is indeed a programming question :-)
We are developing occasionally connected applications. These applications reside on laptop and handhelds. In my case, the application runs on a small servlet container (like jetty).
The requirement is that if the system is idle, the application should suspend itself.
If the lid of the laptop is closed, then the application and the servlet container are in a suspend mode.
Are such things a feature of the OS itself or can such power awareness be built into the application? If it can be built into the application, how ?
Every OS provides a set of APIs and notifications you can use and subscribe to appropriately. Windows, for example, sends a WM_POWERBROADCAST message to all windows before an power event happens. Read on it more in Power Management section at MSDN.
However you want the power-aware features in a java application, which will require you to use some sort of a JNI bridge. There's a codeproject article on detecting standby and denying the request (although denying power transitions is not possible in Windows Vista/7 any more).

Resources