|
i've hated apple ever since 1986. I learned to program on the ill fated Apple ][gs
It stunted my ability as a developer early on. Luckily i moved away from apple soon enough that i caught up.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the codewitch wrote: which building to start in?
buildingList = getBuildingList(MICROSOFT)
for (building : buildingList)
{
pmList = building.getProgramManagers()
for (pm : pmList)
{
pm->hex()
}
}
Just do them all. :evil grin:
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
honey the codewitch wrote: i should probably hex a Program Manager to make an example of someone, but which building to start in?
At Microsoft? Building 7, of course...
(curious to see how many will realize what I'm talking about...)
|
|
|
|
|
LOL I do.
I used to work in 8
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Because quick access is filtered.
|
|
|
|
|
it doesn't seem to do this with my Visual studio 2017. In fact, the only things its picking up are coming from shell opens, not from the app opening its own files.
I could hack it by making it run itself again with the new file using ShellExecuteEx but no. Just no.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
It seems to depend on the program using the list. In Explorer you can add or remove folders from the list yourself. I can imagine VS to be quite selective aswell.
|
|
|
|
|
I wish there was more documentation on it. This shouldn't be difficult. It's just hard to find anything. What I have found is scattered and sort of incomplete.
Given all that, my code works pretty well, but i want it to work *better*. i'm sure you know the feeling. =)
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the codewitch wrote: but i want it to work *better*. i'm sure you know the feeling.
Oh yes!
The classic dilemma of perfection vs actually getting paid.
|
|
|
|
|
well i have the luxury of not being paid for this.
it means i set my own goals at least. and i get to code what i want to code.
and y'all get to benefit because my favorite thing to code is stuff for other coders to use.
like code generators and parser generators, and cool dev widgets and things like that
My father was a toolmaker, which is sort of the non-digital corollary to what i like to do.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
So, let me rephrase.
The classic dilemma of perfection vs actually getting something done.
|
|
|
|
|
I force myself to make each day i work on it finish with some sort of tangible improvement, and now that it's useable it must remain useable.
So that keeps me moving in the right direction. I'm not at the point where i need to be concerned that i'm gold plating yet.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
The Microsoft issue doesn't surprise me, but what does shock me is that my granddaughter went to DEFCON in Las Vegas with her Dad and had a blast soaking up everything on cryptography. She competed in a code reaking contest and came in 4th place.
I ghuess she's well on her way to being a real hacker threat!
She's planning on goping to Rice
University and studying Electrical and Computer Engineering with a Masters in cryptography.
She's not grandpa's little girl anymore!
CQ de W5ALT
Walt Fair, Jr.PhD P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
right on. I remember when DefCon was just a bunch of savages.
I'm glad the kids are enjoying themselves these days. It sounds positively wholesome. Keep your bitcoins away from your granddaughter.
I'm pretty sure they've arrested Capn Crunch by now, and not for hacking, so the place is probably safe.
LOL. He's a creep.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
was thinking about this after switching off last night,
one possibility is usually when you pass struct/string/buffer parameters to interop you need to allocate and copy the source data into unmanaged memory. (I'm guessing at least one string/pathname in this case)
i.e. use Marshal.AllocHGlobal. otherwise the other processes (explorer) cant see the data (or only see corrupted remnants if they partially see into common space.)
are you doing that?
Message Signature
(Click to edit ->)
|
|
|
|
|
In cases where they are returning a string yes I do. Here the marshalling is correct. I've got a talent for it, probably because I come from a C++ background.
This api call doesn't return a string, but another one i call returns one, and it's a path, so to be safe I preallocate 521 chars which is MAX_PATH*2 +1 for the null sentinel just to be absolutely sure.
So yeah. I've got the marshalling squared away. this is just a dark corner of the shell api that isn't very well documented - its' relatively recent. Since win7 i think when the shell underwent a bunch of internal changes.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
I remember someone at MS at one point had put together some small C# library that wrapped a bunch of new shell functions that were introduced, I think, with Windows 7, and jumplist support (which I believe is what you're after) was part of that. If SHAddToRecentDocs doesn't work, maybe you'll have better luck with this--maybe there's some sort of initialization you have to do that this library takes care of under the covers. Unfortunately MS never really supported it, and went so far as to remove from its own site and has pretty much been in denial about whether it ever existed or not.
[After some digging]
Found it in my own archive. They called it the Windows API Code Pack, and the last version was 1.1. There's a discussion here on SO about it. Seems like it's now on GitHub--unsupported, but available. I can't vouch for that version however.
|
|
|
|
|
MY HERO!
*bats eyelashes*
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
found and unzipped. I'm just gutting it for the API calls, i don't want their codebase anyway. I'm just treating their code as documentation.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the codewitch wrote: I'm just gutting it for the API calls, i don't want their codebase anyway.
That's what I figured would be the best thing. I despise bring in additional libraries when all I'm interested is a very simple function call.
Keep me posted. I'm genuinely curious to see whether it'll do what you're after. I really need to take another look at it. I remember it's got some goodies I've been ignoring...
|
|
|
|
|
I'll be releasing a Most Recently Used File manager with jumplist support to CodeProject. I'll try to remember to let you know, but you could always follow my profile as well. =)
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Never mind then if you're going to write an article for it. I'm subscribed to some CP RSS feed - I believe I get some sort of weekly summary of all new articles. I should see it.
|
|
|
|
|
holey socks batman!
this jumplist api has like a dozen com interfaces associated with it!
=(
Edit:
Nope. There's too much infrastructure here. I'd end up recreating 3/4 of this code from the api pack.
I'd do it, except this is supported in .NET 4.8 and Core 3.0 preview.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
modified 18-Aug-19 10:50am.
|
|
|
|
|
Now it's coming back to me as to why someone had to come up with a wrapper library for what really ought to be just a few function wrappers...
|
|
|
|
|
the good news is they've added this to .NET 4.8 and Core 3.0 preview
i also *might* have found the C accessible api that should be enough to work with, but we'll see.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|