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
  • Fix to The error code 0xc000007b in windows 8

    help
    2
    0 Votes
    2 Posts
    8 Views
    L
    So, do you have the source-code to Windows 8? This is a developers' forum - if you have code, we can help :) FWIW, it's a generic error-code in Windows. The code might be thrown by different games for different reasons. I'd recommend reinstalling that game and then to run in it "compatibility mode" (right click the icon, properties, go to "Compatibility" tab, set to Windows XP. Also tick the checkbox saying "Run as administrator". Then try again. Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
  • scroll popup menu via Page Up/Down

    question
    2
    0 Votes
    2 Posts
    7 Views
    L
    ckorda wrote: the behavior likely to differ in Windows 8, and/or in later versions of Common Controls? Yes. The common controls are changed with almost every windows-version. ckorda wrote: This is counter-intuitive, particularly on small screens. It's not. The navigation-part is not provided by the application, but by the OS whose controls you are using. Context-menu's in Windows can be navigated using the cursor-controls. That's also what the user expects. It's counter-intuitive to hunt for which key you think would be nice. There's also an accelarator-key, it's the one character that's underlines when you hit Alt-F10 which can be used for quick-navigation. It also allows for sub-menu's, allowing one to build a hierarchy. If it doesn't fit the screen, then you have too many items. Divide them in groups and use submenu's, or move them somewhere else. Are they REALLY ALL of them depending on the context? If not, then move them to a toolbar. If it really is a list, then don't use a menu - use a popup with a listbox. Don't abuse the system, and don't program against it - your hack may work fine in one version, and mess things up in another. Keep it simple and standard. Alternatively, if you really want this, then implement your own menu. It's just a Window with some buttons. Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
  • 0 Votes
    8 Posts
    24 Views
    B
    Just cruising through posts to see what I might pick up and saw your siggie. Cool. So true. Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com
  • Office hooks

    question tutorial
    2
    0 Votes
    2 Posts
    7 Views
    L
    Member 10710970 wrote: I've worked out how to do this for generic Windows hooks like for keyboard entries A keyboard/mouse hook does not work based on events - it works by hooking a API call. Member 10710970 wrote: but can't work out how to do it for Office events (e.g., saving or printing a document). Correct. Member 10710970 wrote: Can anyone point me to a reference of hooks available in Office? API Hooking with MS Detours[^] Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
  • [solved]winsock keep encounter 10053 error

    help com sysadmin linux question
    8
    0 Votes
    8 Posts
    25 Views
    J
    Fine to here that you resolved the issue and posted the reason. It may be helpful for others.
  • WaveForm API

    debugging json help question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Archive file hook

    question
    2
    0 Votes
    2 Posts
    6 Views
    D
    No. First, Windows didn't support password protected archives. Second, questions on how to break security like that will get you banned. We don't condone hacking. A guide to posting questions on CodeProject How to debug small programs Dave Kreskowiak
  • GetWindowRgn API is failed.

    help json question
    2
    0 Votes
    2 Posts
    8 Views
    L
    You already posted this in the C++ forum; please do not crosspost, it wastes everyone's time.
  • Scrolling the screen

    c++ question
    5
    0 Votes
    5 Posts
    15 Views
    A
    Thanks.
  • USB Monitoring

    question
    2
    0 Votes
    2 Posts
    7 Views
    J
    I guess you are looking for an USB sniffer that is monitoring and logging data. With Linux, you can use usbmon which is part of the kernel and Wireshark[^]. With Windows there are multiple commercial tools and some free (e.g. usbsnoop[^]). Just google for 'windows usb sniffer'. The Windows Wireshark version can also sniff USB traffic when installing an additional tool like USBPcap (see the above link).
  • Problems redrawing after minimize/restore

    graphics help question announcement
    4
    0 Votes
    4 Posts
    13 Views
    J
    To call the default handler, call DefWindowProc() when using the Windows API. When using MFC, override OnPaint() or OnEraseBkgnd() and call the base class function first (e.g. CDialog::OnEraseBkgnd()). Note that there is an error in my previous post (I will edit it): WM_ERASEBKGND handlers must return nonzero when the background has been erased. You may also just get the return value of the default function and return that.
  • sort click colomn title

    css question
    4
    0 Votes
    4 Posts
    12 Views
    M
    It seems that you're missing 'break' for case LVN_GETDISPINFO: switch block. [Delegates]      [Virtual Desktop]      [Tray Me !] -Malli...! :rose:****
  • getopenfilename

    help sysadmin json question
    4
    0 Votes
    4 Posts
    13 Views
    L
    I'm sorry but that really does not give us any useful information. Also, I have tried both old and new versions of this and cannot see any listbox marked "Look-in". Veni, vidi, abiit domum
  • 0 Votes
    3 Posts
    12 Views
    L
    How do you expect anyone outside the Microsoft Translator team to help you with this? You need to reach out to the team through their forums, discussion boards, ticket, etc. It could be a bug with the translator or it could be the way the translation works. Each translator has its own shortcomings and no translator is perfect. I find Google Translator to be far more superior than Bing Translator (which I suppose is the same as Microsoft Translator), especially with Indian languages.
  • Multiple Thread programming with Win API

    help json question career learning
    5
    0 Votes
    5 Posts
    16 Views
    U
    handle1 = CreateThread(NULL, 0, Thread1, (void *)handle2, 0, &threadid1); handle2 = CreateThread(NULL, 0, Thread2, (void *)handle1, 0, &threadid2); 创建Thread1的时候你调用了thread2
  • 0 Votes
    5 Posts
    16 Views
    M
    Hello, I am trying to open a device over serial port using windows bluetooth api's. Following is the code snippet : BluetoothFindFirstRadio(&m_bt_find_radio,&m_radio); . . . BluetoothAuthenticateDevice( NULL, m_radio, &m_device_info, L"PASSKEY", SEVEN ); . . //m_device_info.Address contains the bluetooth address in the format "AA:BB:CC:DD:EE:FF" . . BluetoothSetServiceState( NULL, &m_device_info, &SerialPortServiceClass_UUID, BLUETOOTH_SERVICE_ENABLE ); If authentication fails then tried retry for 3 times. . . /* Logic has been implemented to find the com port created by BluetoothSetServiceState(. .. ) api. * / . . CreateFileA ( (LPCSTR)szComPortStr, GENERIC_READ | GENERIC_WRITE, NULL, NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL ); szComPortStr is having the format : " \\\\.\\%s" where %s specifies the port number. If CreateFileA() fails then tried retry for 3 times. The CreateFileA() api fails for several times and works sometimes with same implementation. Thus the api shows unexpected behavior, resulting into application performance issue.
  • Problem related to Process and Files.

    help tutorial question
    3
    0 Votes
    3 Posts
    10 Views
    L
    thnks a lott ravi sir.! i will work on it..
  • 0 Votes
    2 Posts
    9 Views
    L
    You might get a better response at http://www.codeproject.com/Forums/1651/Collaboration-Beta-Testing.aspx[^]. Veni, vidi, abiit domum
  • Reading from a Pipe

    help c++ security question
    2
    0 Votes
    2 Posts
    7 Views
    W
    Well, I've compiled your code and invoke it. Whenever I invoke it, it didn't stop but I find that your code work well when during debug. About your problem, I think there is no answer. Because c++ stopped reading when It meets zero during read char arrays. So your code is right, I think. In my opinion, you could control your reading bytes which is set 70. :)
  • 0 Votes
    1 Posts
    4 Views
    No one has replied