Does anyone know where the positions of desktop shortuts are stored? Let's say I have a desktop shortcut and I move its icon to another position on the desktop. It's position is stored somewhere because the icon is obviously restored when you reboot. I tried searching the registry for a uniquely named shortcut I added but I can't find it listed. Perhaps they're stored in a file somewhere?
Right now, this isn't a coding question as such but it may become so if the positions are strored in some arcane place that might need some equally arcane assembly to be used to get them. I figure this kind of information might need a dll import to be added? If it's easy to find I should be ok reading what I need but if it's a tricky bitch to find then, of course, a heads-up will be appreciated.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
The data is binary and stored in HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop. The position data is in the "ItemPos..." values. A binary stream is saved for each screen resolution and monitor seperately. The format of this data is not documented anywhere publicly.
The desktop icons positioning data in the running instance of Windows is managed by a ListView. No, don't even think of trying get the .NET ListView control to parse the data for you as it won't work.
The process of pulling this off is quite complicated and not well understood. You can read more about an unfinished attempt to do this here[^].
It's been a long time since I last looked for that stuff. My definition of "documented" is a bit different than yours. I'm saying it's not "officially" documented by MS. What you linked to is a research project that attempts to reverse engineer the data.
Of course you do, in c# 100% isn't valid. 100%3 returns 1 because % is the modulus operator and 100 MOD 3 = 1. The compiler is reading 100% "100 MOD", then it is missing the second operand, so it throws the invalid expression.
SetWindowSizetakes two arguments anyway[^], the number of [character] columns and the number of [character] rows, so there is no way this line could work.
Nevermind, I did a little bit of looking around online… I guess, ever since XP… You can't create a fullscreen console window anymore without using Pinvoke…
That's a little too much trouble to go through, I'm a newbie/hobbyist C# programmer… I'll just use a Windows form for my project, thanks for the input…
You have all the mouse events available to you, you would need to have a way of defining the location and size of the PDF, then you do it with a couple of clicks, top/left and bottom/right. That would define the area withing the already defined document area.
Never underestimate the power of human stupidity
I have an windows application. On button click, I call a service called ServiceA (ServiceA is in my local machine). From ServiceA's method, I hit database and retrieve some records. After retrieved, I call another WCF service called ServiceB (ServiceB is availabled in another machine within network). I have added ServiceB's proxy files in my ServiceA's project. endpoints and bindings are added in wwwroot\web.config. When I try to consume ServiceB's method, I am getting the following error.
Could not connect to http://tde017:8080/AdapterService/AdapterService.svc. TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions 18.104.22.168:8080
Previously, it throws with the port number 80. I configured the another port 8080. Now error is throwing with 8080.
But, If I consume the serviceB directly from my windows application, I am getting response. If I go through another service, I am getting error.
I tried many scenarios. But, still I could not get solution. Any one help me on this....