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
  • virtual view list

    tutorial
    5
    0 Votes
    5 Posts
    16 Views
    M
    ok, will try.
  • 0 Votes
    2 Posts
    8 Views
    L
    I don't know Delphi, but I think your third parameter is incorrect, it should be the address of a pointer, and I think you have the address of a variable. In C/C++ it would be: IStillImageW* pStill_Image; hRes = StiCreateInstance(GetModuleHandle(NULL), STI_VERSION, &pStill_Image, NULL); which would be something like this in Delphi: pStill_Image: PIStillImageW; // no idea if this is correct syntax H_Res := StiCreateInstanceW(GetModuleHandle(nil), STI_VERSION, @pStill_Image, nil); NB there is also a Delphi forum just above this one; see the Treeview at left. Veni, vidi, abiit domum
  • PE Resource Update

    announcement learning
    3
    0 Votes
    3 Posts
    11 Views
    M
    Thanks for your favor, But I think you didn't get what I mean. I aim to change the Icon of an EXE as what is shown in windows explorer, Not the Icon of Window of the program. This Icon is one of program resources but when I work with UpdateResource function for changing it, the process fails. thanks.
  • Nonblocking connect

    question sysadmin help
    4
    0 Votes
    4 Posts
    18 Views
    L
    MrDooDoo wrote: Do I have to close the socket? I'm not sure, although that is what is suggested in that link I provided. I guess you need to try it and see what happens. Veni, vidi, abiit domum
  • 0 Votes
    3 Posts
    10 Views
    L
    sumith sudesan wrote: But sending failed when closing OUTLOOK GUI . ..sounds like you're interopping to Outlook. If you close the application (the COM-server), then the client won't be able to use it. Send your mail without using a reference to Outlook; then you won't be dependent on having it running. Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
  • Winsock - Connect to Internet through specified adapter

    question com sysadmin help
    11
    0 Votes
    11 Posts
    32 Views
    M
    :laugh: thanks
  • file compression

    question csharp
    3
    0 Votes
    3 Posts
    12 Views
    B
    Actually you can use the Bitmap.Save() or Image.Save() method, there you can specify the format you want to use (e.g. png or jpeg). See http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.save.aspx[^] and http://msdn.microsoft.com/en-us/library/System.Drawing.Image.Save.aspx[^],resp.
  • GetPrivateProfileString

    visual-studio com question announcement
    8
    0 Votes
    8 Posts
    23 Views
    E
    I too agree with Eddy Vlugen on not relying on deprecated functions from API although name value pairs are something that I too prefer over XML. For novice users, getting them to edit XML files is a challenge and for skilled one, I am more worried about how to prevent them from hacking my app. I have written a very simple text parser and use Dictionary with a Pre-defined Enum which effectively acts a parser. public void ParseStartupFile(String fileName) { String singleLine; _appStartupParameters.Clear(); using (StreamReader txtReader = new StreamReader(fileName)) { while (!txtReader.EndOfStream) { singleLine = txtReader.ReadLine(); String[] split = singleLine.Split(new Char[] { '\"', '=', ';' }); EnumOfAllAllowedKeywords keyword; if (split.Length >= 3) { // Convert string to enum'keyword.... // If keyword is not valid, it will throw exception keyword = GetEnumeratedValue (split[0]); for (int j = 1; j < split.Length; j++) if (!String.IsNullOrEmpty(split\[j\])) break; //\_appStartupParameters is generic dictionary // Dictionary \_appStartupParameters.Add(keyword, split\[j\]); } } } }
  • IPC$ share

    sysadmin help question
    7
    0 Votes
    7 Posts
    21 Views
    G
    You are right. Enabling IPC$ itself may be an admin thing. Why I want to use IPC$ enabling? For sharing named pipes across remote hosts and named pipe communication between two remote processes need IPC$ to be enabled. Thanks for your help again!
  • adrms error: broken certificate chain

    help cryptography tutorial workspace
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • facebook wall programatically

    2
    0 Votes
    2 Posts
    9 Views
    L
    Does this have anything to do with the Windows API? You should read http://www.codeproject.com/Messages/1278601/How-to-get-an-answer-to-your-question.aspx[^] before posting questions. Use the best guess
  • Multithread Chat-Server in c

    sysadmin help tutorial question announcement
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Secure Storage

    question security json
    2
    0 Votes
    2 Posts
    8 Views
    G
    does this help ? http://msdn.microsoft.com/en-us/library/windows/desktop/aa380252(v=vs.85).aspx[^] [Certificate and Certificate Store Functions] 'g'
  • 0 Votes
    2 Posts
    7 Views
    L
    Please stop spamming the forums, or you are likely to get your account closed. Use the best guess
  • vbscript processes for current user

    question csharp sysadmin
    5
    0 Votes
    5 Posts
    15 Views
    M
    In addition to what Dave said: see http://msdn.microsoft.com/en-us/library/windows/desktop/aa390460(v=vs.85).aspx[^]
  • SetSecurityInfo() broken on Windows8?

    help question
    2
    0 Votes
    2 Posts
    10 Views
    D
    SORRY! I just re-read the subject line... :doh: The only thing I can think of is that the security options you've OR'd together may need to be modified to include something else. I'd try the call to SetSecurityInfo with THREAD_ALL_ACCESS to see if that works first. A guide to posting questions on CodeProject[^] Dave Kreskowiak
  • win32

    question
    8
    0 Votes
    8 Posts
    17 Views
    S
    May as well be asking how to skin a cat. Steve
  • Turn off my Wifi adaptor

    2
    0 Votes
    2 Posts
    10 Views
    L
    Some suggestions[^]. Use the best guess
  • Interaction with a dialog box

    csharp c++ testing tools help
    3
    0 Votes
    3 Posts
    12 Views
    L
    Assuming that it is your dialog in case 2 then you should already know the dialog item id. Perhaps you could give some more detail on exactly what it is you are trying to do.
  • Windows RT Bluetooth

    iot data-structures question
    5
    0 Votes
    5 Posts
    16 Views
    L
    Ahhhh.. I see. Good point. That is quite unfortunate, and a failure IMO. Oh well. Guess the iPads will continue to dominate. :sigh: Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.