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
  • 0 Votes
    4 Posts
    0 Views
    M
    "Elevate the process" is not a solution. Code correctly is the solution. The rule now is do not write files to protected locations, only user locations or shared locations. Program Files directory is not a user or shared location, nor is Windows directory, System32 directory, or C:\ root folder.
  • vista security

    security
    3
    0 Votes
    3 Posts
    0 Views
    S
    Search for UAC compatibility for Vista. There is a document present on microsoft site, which tell about compatibility of application with User Access control. This will give you good knowledge. http://www.microsoft.com/downloads/details.aspx?FamilyID=BA73B169-A648-49AF-BC5E-A2EEBB74C16B&displaylang=en[^] SNI jhghjghj modified on Thursday, October 23, 2008 2:14 AM
  • Explorer question for Vista

    question com announcement
    3
    0 Votes
    3 Posts
    0 Views
    M
    Starts in my user's Documents folder if opened from Start Menu, Accessories, Windows Explorer. If you right-click the Start button and select Explore from the menu, then yes, it does open at Start Menu, because that's what you asked it to Explore. Select 'Computer' from the right-hand column of the Start Menu if you want to start at the top level. The only difference between this and an 'Explorer' view is now that the Folders pane is open by default when you select Explore. "Multithreading is just one damn thing after, before, or simultaneous with another." - Andrei Alexandrescu
  • generic serial port driver

    hardware help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Error- HTTP Error 500.19 on Win Server 2008

    help csharp asp-net com sysadmin
    3
    0 Votes
    3 Posts
    0 Views
    A
    When I Delete That section then Error comes on next line after this Amit Battan Ror battan20@gmail.com
  • Permission to do something

    hardware question
    3
    0 Votes
    3 Posts
    0 Views
    T
    right click and select run as administrator.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Creating directory with full access permissions in Vista using VC++

    c++
    5
    0 Votes
    5 Posts
    0 Views
    H
    It seems Mark's code must be work on the vista. :)
  • 0 Votes
    3 Posts
    0 Views
    G
    I found another way to approach it. It's a bit of a hack, but for now to get the Interface ID using C# from my application, I can modify the DirectSoundEnumerator C++ application to remove the GUI and get rid of the dialog. Once that is done, I can run the C++ application as a process in C# and have it write the Description and Interface ID data to a file. I can then read the data from the file to get the Interface ID associated with the device and map that to the unique devices I access in my application. Like I said, it's kind of a hack, but until I find a better way to do it with C#, it will get the job done. I'm going to call this a general message type and not the answer yet because it is a hack and maybe there is a better way to do this. GrizMan
  • [Message Deleted]

    4
    0 Votes
    4 Posts
    0 Views
    P
    The reason the function times out is because the window(s) receiving the message take longer to process the message than you specify in the sixth argument for SendMessageTimeOut() - the uTimeout argument (which is in milliseconds). To overcome the problem really depends on what you're doing; you could try increasing the time-out period, or do less message processing in the window procedures that the message is being sent to, however this is not failsafe if the system is running slowly. I assume that you're sending this message to multiple windows, but if you're only sending the message to one window, then it may be better to use the SendMessage() function if you want to avoid a time-out. Regards, --Perspx Don't trust a computer you can't throw out a window -- Steve Wozniak
  • Run button problem in IE 7.0 and asp.net

    csharp asp-net help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    P
    Santhosh_Jits wrote: I want hide or remove "Run" button while installation. how to do this programatically using asp.net? ASP.NET can't control how downloaded EXEs are handled by IE - 1) it is a server-side language, and 2) IE decides how it wants to handle downloaded files, especially with EXEs as they can compromise security on the user's machine. Regards, --Perspx Don't trust a computer you can't throw out a window -- Steve Wozniak
  • Installing an application with UAC mode on in Vista

    2
    0 Votes
    2 Posts
    0 Views
    M
    Either: - Install to a per-user location; - Run the installation package elevated (right-click, select Run As Administrator) - If you wrote the package, use a technology that automatically elevates (e.g. Windows Installer). If it is a Windows Installer package, note that any impersonated custom actions will now run non-elevated, i.e. as a standard user. If this is causing the problem, run the installer from an Administrator command prompt - and report the bug to the developer. DoEvents: Generating unexpected recursion since 1991
  • Account types in Vista

    question
    2
    0 Votes
    2 Posts
    0 Views
    P
    You have to have at least one administrator account in Vista, so if you want a standard account you will need to create a new account along with the admin one. Regards, --Perspx "The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia Introduction to Object-Oriented JavaScript
  • Menu Apparantly Broken

    help question
    12
    0 Votes
    12 Posts
    0 Views
    T
    Perspx wrote: most web developers are fairly computer literate But coding literate? ;) Chuck Norris has the greatest Poker-Face of all time. He won the 1983 World Series of Poker, despite holding only a Joker, a Get out of Jail Free Monopoloy card, a 2 of clubs, 7 of spades and a green #4 card from the game UNO. In the movie "The Matrix", Chuck Norris is the Matrix. If you pay close attention in the green "falling code" scenes, you can make out the faint texture of his beard. Chuck Norris actually owns IBM. It was an extremely hostile takeover.
  • Glass heading in application

    csharp help question
    9
    0 Votes
    9 Posts
    0 Views
    M
    Bookmarked that one. Thanks Mike! Mark Salsbery Microsoft MVP - Visual C++ :java:
  • Vista Sync center problem

    question help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Problem about emal sending

    csharp windows-admin help
    2
    0 Votes
    2 Posts
    0 Views
    P
    xibeifeijian wrote: (I'm sure I've install the smtp component) Perhaps you should check and be certain first? :) Regards, --Perspx "The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia Introduction to Object-Oriented JavaScript
  • 0 Votes
    3 Posts
    0 Views
    L
    That doesn't seem to be the case. I'm looking at a Vista machine that has not had WinHelp installed, and its WinHlp32.exe weighs in at about 277 kB. I'm afraid I'm going to need a different solution. Rob Holstein (BSc) Software Developer Delta Controls, Inc.
  • Turn DEP off for Windows Mail

    c++ help announcement
    3
    0 Votes
    3 Posts
    0 Views
    D
    If I run Windows Mail as admin, it simple runs but does not show my plugin, i.e. the toolbars i have added through the plugin is not shown at all. dolly, N,IN
  • calling webservices?

    csharp xml wcf help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied