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
  • CreateMetaFile on Win7 64bit

    graphics performance help question
    3
    0 Votes
    3 Posts
    10 Views
    C
    Hi Dave, but why would "CreateCompatibleDC" return "File already exists"? The method "CreateMetaFile", that actually creates the file, completes successfully. I understand that CreateEnhMetaFile exists, but need to be able to create WMF file legacy reasons. Regards Carsten
  • Calling an API function from Bios

    help hardware json tutorial question
    2
    0 Votes
    2 Posts
    7 Views
    C
    The BIOS (Basic Input Output System), is the code that runs before Windows does. It is also available for certain functions. In the past that included some hardware support and power management. Starting with NT versions of Windows, the BIOS role has greatly diminished. The BIOS cannot call into Windows. The BIOS has no knowledge of what operating system is installed. Can you explain the hardware/software set up in better detail. How were you able to "upgrade" to Windows 2000? /* Charles Oppermann */ http://weblogs.asp.net/chuckop
  • 0 Votes
    1 Posts
    3 Views
    No one has replied
  • 0 Votes
    2 Posts
    5 Views
    P
    The Split Button is a new control that requires Vista or newer: http://msdn.microsoft.com/en-us/library/bb775951(VS.85).aspx[^] BS_SPLITBUTTON Windows Vista and Version 6.00. Creates a split button. A split button has a drop down arrow.
  • REG_BINARY

    question windows-admin announcement
    3
    0 Votes
    3 Posts
    8 Views
    J
    Yes, if have looked in MSDN, but i haven't found your link. Thanks for your answer:thumbsup:
  • Hosting an application inside a custom window?

    help com hosting debugging performance
    3
    0 Votes
    3 Posts
    9 Views
    C
    Just a conceptual (and very late) idea: how about hooking the GetDC, GetWindowDC and BeginPaint (...) calls, returning some kind of memory DC with a bitmap selected into it (size equivalent to the window that would be drawn onto normally), letting the process draw its things into this memory DC, then when ReleaseDC or EndPaint (you would need to hook those too) is called, transfer the content of the DC over to your process trough a socket or named pipe or somesuch along with size and position information and then blitting it into your own window. Of course there's also the problem that this method would still leave the original application's window hanging around the desktop undrawn and you would also need to direct input (clicks, mouse move events...) back to the original application for processing which might also pose problems, but maybe this could be a starting point towards something useful... > The problem with computers is that they do what you tell them to do and not what you want them to do. < > //TODO: Implement signature here<
  • PNPDeviceId

    question
    2
    0 Votes
    2 Posts
    6 Views
    T
    This link[^] will help you. thatraja **My Tip/Tricks My Dad had a Heart Attack on this day so don't... **
  • windows explorer on c++ using functions winapi

    c++
    3
    0 Votes
    3 Posts
    9 Views
    L
    You already asked this question below here, and in the C++ forum; please post in one place only. Also try doing some research for yourself into the articles and samples that are publicly available as recommended. The best things in life are not things.
  • windows explorer source on winapi

    5
    0 Votes
    5 Posts
    15 Views
    L
    Try the articles section, you should find lots of good samples. d@nish[^] has the answer.
  • Thread Message Queue

    design linux data-structures question
    2
    0 Votes
    2 Posts
    6 Views
    W
    I didn't get much farther by myself, but I recently ran across a snippet from someone who seems to know what they're doing. The quote is from Jason Schroeder. In case you're wondering how this fits into my original question, I found a stack trace in a dump file that shows that SendMessageW calls NtUserMessageCall. Here is the quote: user32!NtUserMessageCall is just a stub that calls into win32k.sys, so if you want to see what your thread is "really" doing, hook up a kernel debugger... Reference: http://ask.metafilter.com/75491/Why-is-SendMessage-blocking-on-NtUserMessageCall[^]
  • 0 Votes
    2 Posts
    5 Views
    W
    Try to subclass the window, and ignore WM_PAINT messages until column resizing is done. Good luck -Waldemar
  • 0 Votes
    4 Posts
    9 Views
    A
    how about having the location of the dll be user configurable via (choose one): 1) environment variable (such as path or something similar) 2) text-based configuration file for your application 3) registry entry all of these methods would allow the user to change the configuration without having to reinstall, just need to make sure you tell the user about how to use this in a manual or readme file p.s. making a local copy of someone else's dll is considered bad practice, why not just use it from the location (maybe you have your reasons, but something to think about)?
  • Problem about RegConnectRegistry [modified]

    help csharp windows-admin json
    8
    0 Votes
    8 Posts
    21 Views
    L
    Error code 87 is ERROR_INVALID_PARAMETER 87 (0x57) : The parameter is incorrect. which suggests that your computer name is not valid for this function. d@nish[^] has the answer.
  • Current window font ?

    question
    3
    0 Votes
    3 Posts
    10 Views
    L
    You need to be sure that the alternate font is currently selected into the device context; I just tried this code and it works correctly. It may well be that when you capture the window it is not currently in 'painting' mode, and thus does not have an active device context with a selected font. d@nish[^] has the answer.
  • 0 Votes
    2 Posts
    6 Views
    L
    As far as I am aware, a modal dialog disables the owner window but does not affect other independent windows of the application. I must get a clever new signature for 2011.
  • 0 Votes
    4 Posts
    11 Views
    T
    it seems i am getting old day by day :-) .. anyways go this link RSA encryption/decryption[^] "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
  • 0 Votes
    3 Posts
    10 Views
    D
    Your best hope might be "Windows Firewall with Advanced Security" which is new to Windows Vista, 7 and Server 2008. ---------------- Derek Read
  • Intellisense

    visual-studio help question hardware tutorial
    5
    0 Votes
    5 Posts
    10 Views
    _
    yeah you are right. i should better forget about it. hardware programming always has its pains :) I'm going to use MS visual studio. its the best IDE I've ever used. thanks for reply.:thumbsup:
  • Creative Prodikeys MIDI-USB Keyboard 64 bit Windows 7 Driver

    com hardware help
    4
    0 Votes
    4 Posts
    11 Views
    J
    yeah I could buy it from their site for a day or two either, but its back up and running, and does indeed work, http://www.proaudiosoft.com/page4.html
  • What is it with HBITMAPs?

    performance question graphics announcement
    3
    0 Votes
    3 Posts
    8 Views
    E
    I might be simpler to Restore the state of the DC using SaveDC/RestoreDC Just a thought Espen Harlinn