Location of shortcuts pinned to Win8/8.1 Start Screen - winapi

I was trying to change the icon of a pinned icons. On the taskbar I found the icon shortcuts to be in either of two locations:
C:\Users\Vayeate\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\myapp.exe
C:\Users\Vayeate\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\ImplicitAppShortcuts\RANDOM_DIRNAME\myapp.exe
Where RANDOM_DIRNAME is in my case 2290c79480996b2e
So I update the icon on the shortcut in here and it updates in the taskbar. However it is not updating to the one pinned on start screen of Windows 8 and 8.1 does anyone know in which folder these shortcuts are located?
Thanks

Related

Is there a Windows API for getting the positions of the icons on the Desktop?

Is there an API or a database/settings file/registry for getting the positions of icons on the Desktop?
If you wonder why I want that, basically I want to create a replica of Desktop in my app for my personal use, so that I could access those icons, when multiple windows are open, without using the "Show Desktop" feature which minimises all windows. The problem of Window's "Show Desktop" is that if I opened a new window by clicking an icon on the desktop, performing "Show Desktop" again does not restore all minimised windows at once.
On macOS, I did not have this problem, because pinching-out with 4 fingers showed the desktop without minimising opened windows. It just temporarily moved them out of the screen, and pinching-in restored windows to their original states, even if I had opened a new window by clicking an icon on the desktop.
There are other ways to access those icons, without using "Show Desktop", like opening the Desktop location in File Explore, but then the icon locations are not the same as the Desktop, so it is difficult to find the item I want. Enabling multiple virtual Desktops, and switching to an empty Desktop to click the item is one way, but then it gets opened on that Desktop and I would have to move it to the other Desktop.

Detecting Application Pin State

In Windows 7 and up. You can right click and select "Pin icon to taskbar". If pinned I call thate "pinned" state. If it is not I call that "unpinned" state.
I was wondering if there was a way through WinAPI to detect if my application is pinned to the taskbar or not. Is this possible?
There is no programmatic access to pinned shortcuts because people would just abuse them.
For your specific case the least hacky way is probably to look for yourself in
%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

jumplist not showing up on the pinned icon (c++/cli - windows 7)

When i pin my app to the taskbar, I don't see the jumplist when the app is to running.
Jumplist: recently opened files that show up when you right click on a taskbar icon in windows 7.
When I run the app, a new taskbar icon opens, instead of the same icon. The jumplist shows up on the running icon, but not on the pinned icon.
Here are the things I have done..
SetCurrentProcessExplicitAppUserModelID
added the registry items for the file type.
Jumplist works fine when the app is running. Except that jumplist does not show up on the pinned icon.
My questions are:
how do I show the jumplist when the app is not running? or why is it not working? Is it a different registry entry?
Why is windows creating a new taskbar icon, instead of opening on the same pinned icon. (I don't change the AppUserModelID)?

get location of tray icon from windows registry

How do I get the coordinates of a particular tray icon from the windows registry?
For instance, dropbox has a tray icon, how would I get the position of that icon?

Windows 8 - Disable Charms Bar

I'm currently working to disable and lockdown tablets, and am having a hell of a time getting this part disabled. On a touch screen tablet, running windows 8, swiping from the right side of the screen will bring up a charms bar. I want this disabled.
I know this is controlled by a registry value (or multiple values) somewhere, but can't locate them. And I've researched this for hours and hours.
Just a heads up, this has nothing to do with CharmBarHints or the Metro Switcher. This also has nothing to do with my mouse's hardware options. Please, don't give me a fix for a PC running windows 8 that is using a touchpad, it's not the same.
I'm just trying to disable the charms bar for a tablet. Also, I know that windows 8.1 will contain a Kiosk Mode, however that will not be officially released until Oct 17th, and I will be shipping this fix out before then.
Thanks for your help.
You should definitely try going to
1. "COntrol Panel"-> "Mouse" -> "Device Settings" tab-> "Settings" options ->
Uncheck the "Enable Edge Swipes" option
Windows charms bar is operated by explorer.exe. So if your app can run without it then you can hack around it by first disabling the autorestart of explorer.exe via (run as administrator):
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoRestartShell" /t REG_DWORD /d 0
Then the lines below represent my launch.bat - which works in the end as expected:
;; kill explorer (this disables all windows functionalities
taskkill /f /im explorer.exe
;; start your kiosk app - should block the batch execution (so explorer.exe doesn't get executed at the end)
"\path\to\your\app.exe"
;; after you close both the app window and the opened chrome window relaunch explorer.exe to give back the functionality to windows
explorer.exe
I use the approach outlined above to let a keyboardless kiosk app run. Because with a keyboard you can still close the app with alt+f4.
Have you tried this method?
Navigate to the following registry key in Registry Editor:
HKEY_CURRENT_USER>Software>Microsoft>Windows>CurrentVersion>ImmersiveShell
Now go to
ImmersiveShell > New > Key from the context menu, and then name the new Key as EdgeUI.
Right-click the EdgeUI key, point to New, DWORD (32-bit) Value and then name the new DWORD as DisableCharmsHint.
Now double-click the newly created DWORD value, type 1 and click OK. You may also need to reboot Windows for the changes to come into effect.
Once done, it will disable both the top-right and bottom-right hot corners that reveal the Charms Bar.
Source: http://www.techattend.com/disable-charms-bar-in-windows-8-1/

Resources