Skip to content

Windows API

Discussions on the APIs of the various versions of Windows

This category can be followed from the open social web via the handle windows-api@forum.codeproject.com

811 Topics 2.7k Posts
  • File paths

    question
    2
    0 Votes
    2 Posts
    7 Views
    M
    You shouldn't be hard-coding any of those paths, use SHGetSpecialFolderPath() to get a path. And use GetVersionEx() to get the OS version. In Vista, MS shortened many pre-defined paths. Eg \Documents and Settings is now \Users. As for why this was done, I assume it was to avoid the MAX_PATH limit. With virtualization, some files can get put in paths that are pretty long and many levels deep. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?
  • Where is 3D program switching?

    question
    3
    0 Votes
    3 Posts
    7 Views
    R
    Btw: with (Alt / Windows) + Ctrl + Tab the 3d or the normal screen stays until you click
  • 0 Votes
    1 Posts
    4 Views
    No one has replied
  • Question

    tutorial question
    2
    0 Votes
    2 Posts
    4 Views
    D
    The rules are the same as with previous versions of Windows: - Install to different drives/partitions - Install the oldest OS first - Obviously do a new install, not an upgrade After installing Vista you will get a new boot menu that gives you the option to choose a 'Previous version of Windows'. Select that and you will boot straight into XP, or if you have multiple XP/2000/etc installs you will get to choose which one to boot. Ðavid Wulff What kind of music to programmers listen to? Join the Code Project Last.fm group | dwulff I'm so gangsta I eat cereal without the milk
  • Hard disk space

    question
    8
    0 Votes
    8 Posts
    17 Views
    M
    I don't know where they are stored, it might be part of System Restore, but that's just a guess. You could try clearing out all the SR backups (turn SR off and back on) and see if that gives you any space back. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?
  • Vista IE7.0 does not respond to WM_COMMAND

    help
    4
    0 Votes
    4 Posts
    10 Views
    M
    What are you trying to do with IE? Using WM_COMMAND values has never been reliable, the command IDs are an internal detail and subject to change (or breakage ;)). --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?
  • Optimizing memory usage in Windows Vista

    performance help question
    6
    0 Votes
    6 Posts
    17 Views
    W
    Appearantly it doesn't work that way, it works pretty good on my notebook if I disable superfetch. WM. What about weapons of mass-construction? "You can always try to smash it with a wrench to fix that. It might actually work" - WillemM
  • Activation and Visual Studio 2005

    help csharp visual-studio sysadmin
    4
    0 Votes
    4 Posts
    8 Views
    K
    WalderMort wrote: Quite a few legit users have experienced problems with this update much similar to what you have described. That's the trouble with all this anti-piracy stuff. It just at best inconveniences and at worst screws up legitimate users while the pirates get around it anyway. Kevin
  • Getting ahold of Vista Beta

    beta-testing question
    3
    0 Votes
    3 Posts
    9 Views
    W
    As Michael stated the betas are finished. Unless you have a friend with a DVD burner and a postage stamp, the only way to get a copy is to download one. Try searching the torrent sites. Since MS was handing out free beta keys, most of the downloads are unmodified. But Gawd knows why you want a beta version?
  • The Vista Explorer layout

    linux help tutorial question
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Installation Woes

    visual-studio tools help announcement workspace
    4
    0 Votes
    4 Posts
    14 Views
    W
    MrBoombastic wrote: funny thing, Vista setup still shows the partitions even if they're disabled in the BIOS Thats probably a problem with your BIOS, when I disable mine they cannot be found. Strange thing is though, vista will always see my usb HD. Now that you have it installed, I would seriously recomend making a ghost image of the partition, that way you don't need to go through the hassle again. And it's faster!
  • DEP

    help algorithms tutorial question announcement
    8
    0 Votes
    8 Posts
    19 Views
    V
    tnx ;) V. Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive
  • Config IIS on Window Vista

    help windows-admin question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • UAC - Elevated COM object

    com sysadmin question
    4
    0 Votes
    4 Posts
    11 Views
    M
    Hmm, now there is a thought. The current documentation for Microsoft doesn't say anything about such a manifest being required. But it is, after all, pre-release doc, so it's certainly possible that there's an unfortunate assumption being included there. Of course, if that manifest is required, that does beg the quesiton of *exactly* what configuration is supposed to be in it to support this. But I can certainly try experimenting with values that would seem likely. I'm out of the office right now, but when I get back in, I'll go ahead and play with that a little. Thanks for the idea! - Michael
  • DirectX9 SDK with DirectX10 on Vista

    com question code-review
    4
    0 Votes
    4 Posts
    12 Views
    L
    Since these postings, apparently Microsoft have launched their December 2006 version.
  • booting problems

    c++ com architecture help question
    5
    0 Votes
    5 Posts
    13 Views
    M
    Boot from the Vista DVD, do a repair? It's probably the best option. XP's Setup will have overwritten the Master Boot Record, which contains the new boot manager for Vista. Vista doesn't use boot.ini. Stability. What an interesting concept. -- Chris Maunder
  • Vista BSOD and others

    4
    0 Votes
    4 Posts
    10 Views
    J
    My modem drivers caused many BSOD's, had to go into safemode and remove them, then buy a router/modem instead.... oh well, I like vista though. Darka [Xanya] "I am not a slave to a god that doesn't exist."
  • desktop build number

    question windows-admin announcement
    4
    0 Votes
    4 Posts
    9 Views
    W
    Unless of course it's not a legit copy X|
  • Codecs that actually work in Vista?

    com graphics game-dev question code-review
    5
    0 Votes
    5 Posts
    15 Views
    M
    I've only ever used it as a media player, never tried watching a stream. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
  • 0 Votes
    5 Posts
    14 Views
    D
    Thanks for that Mike, it makes perfect sense with hindsight. I will leave my Internet zone alone though - there's no need me for me to change that. Ðavid Wulff What kind of music to programmers listen to? Join the Code Project Last.fm group | dwulff I'm so gangsta I eat cereal without the milk