Saturday, December 15, 2012

Bad Piggies, When Pigs Fly: solution for level 12

It was not so obvious that it is possible to stack those ballons (If you are wondering how did I take a screenshot on Android, you can find answer in one of previous posts).



Friday, November 23, 2012

How to run non-elevated process from existing elevated process?


The following set of articles shed light and provide sample source code for the topic.


Sample source code how to use CreateRestrictedToken to drop admin can be found here (http://www.autohotkey.com/board/topic/72812-run-as-standard-limited-user/), but it is not in C/C++.

Basically, you have to use the following call to drop admin rights (Vista+):


result = CreateRestrictedToken (hExistingToken, LUA_TOKEN, 0, NULL, NULL, NULL, NULL, NULL, &hNewToken);

If you have any questions, feel free to leave them as comments - I will provide you with answer.

Wednesday, September 19, 2012

How to take screenshot on Android 4.0 without app?

Just press "Power" button and "Home" button. Screenshot will be saved in the Camera gallery.

Works perfectly on HTC One.


Thursday, August 9, 2012

Error retrieving address of IopRootDeviceNode

!devnode 0 1 produces "Error retrieving address of IopRootDeviceNode"

This basically means that you have no symbols for your OS version. If you have set to download symbols from msdl.microsoft.com/download/symbols, but still getting error, then most probably you are using non-released version of OS and you have to download package with PDBs manually.

Tuesday, August 7, 2012

Manual crash dumps on Windows

Microsoft KB http://support.microsoft.com/kb/244139 about generating a memory dump file by using the keyboard was not clear for me in terms of how to generate crash dump using custom key sequence instead of ctrl-scrollock. 

After some googling, I have created these reg-files to generate manual crash dump on Windows by pressing "Ctrl-D" twice:

For PS/2 (notebook keyboards works too):
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\i8042prt\crashdump]
"Dump1Keys"=dword:00000020
"Dump2Key"=dword:00000021
For USB keyboards:
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\kbdhid\crashdump]
"Dump1Keys"=dword:00000020
"Dump2Key"=dword:00000021
Just copy-paste one from above to file with crash.reg, run it, restart the system and you will be able to generate crash dump manually with custom key sequence by pressing Ctrl-D twice.



Follow me on social networks:

Monday, April 2, 2012

How to convert RGB to CMYK?

My current solution for free RGB to CMYK conversion on Windows.

What you will need:


Steps:
  1. Download and install ICC profiles
    1. Extract archive with Adobe ICC profiles. Dig into it and find files with "ICC" extension. Copy them to Windows\System32\Spool\Drivers\Color
  2. Download and install GIMP
    1. Follow standard instructions, remember the installation folder. It will be referred as "GIMP-INST" below
  3. Download and install Separate+ plugin
    1. Extract archive with Separate+ plugin
    2. Go to folder bin\win32 or bin\win32+lcms2
    3. Copy all executables from that folder to  GIMP-INST\lib\gimp\2.0\plug-ins\
  4. Close GIMP if it was started after installation
  5. Start GIMP
  6. Open image you want to convert to CMYK 
  7. Follow steps from section "----- How to use" from Separate+ readme file

I was able to convert and save JPEG with embedded ICC profile without any problem.

Feel free to post questions if you have any.