list of exec (related) Windows API calls
 

hi, I try to create a big (let's not call it complete :) list of all exec-"able" api functions on windows. please help to extend it.

ShellExecute(), ShellExecuteA(), ShellExecuteW()

CreateProcess(), CreateProcessA(), CreateProcessW()

WinExec(), WinExecA(), WinExecW()

CreateProcessAsUser(), CreateProcessAsUserA(), CreateProcessAsUserW()

CreateProcessWithLogonW()

CreateProcessWithTokenW()

CreateProcessInternal(), CreateProcessInternalA(), CreateProcessInternalW()

CreateProcessInternalWSecure()

ZwCreateProcessEx()

NtCreateProcess(), NtCreateProcessEx()

RtlCreateUserProcess()

RtlCreateProcessParameters()

-

_spawn()

_exec()

system()

thanks!

http://www.stackoverflow.com/questions/2116888/

        

There are 1 answer(s) to this question.


Add _popen to that list.

Related Questions

.NET or WinAPI
.NET or WinAPI Hi guys, I am trying to build a desktop app. The biggest requirement is that it should be as miniscule as possible. For Windows users, is it better to build it in .NET or WinAPI? I am not from software background so pardon me if this is a non-sensical question, but I have heard that with .NET, there is a chance that some Windows users may not have it on their computers, in which case they will be required to download a large piece of software, whereas that will never be the case with winAPI. Is that right? What percentage of Windows may not have .NET 2.0 on their computers? Also, I have heard that developing this little app in WinAPI will take more effort. Is it worth it to do that or does .NET get you to almost as many users? Thanks PS. I am new to this forum (and as I mentioned above, from a non-software background) but I have to say this forum is the best I have found
WINAPI main function
WINAPI main function hi guys, could you please explain to me the WINAPI word in winmain header ? in the simpliest way.. #include <windows.h> int -->WINAPI<-- WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK); return 0; } is it just some windows funky mode? what does it do? or rather what is this C++ feature i haven't encountered yet.. WINAPI is a macro that evaluates to __stdcall, a Microsoft-specific keyword that specifies a calling convention where the callee cleans the stack. The function's caller and callee need to agree on a calling convention to avoid corrupting the stack. WINAPI just means __stdcall This is a macro definition intended to denote the Windows calling convention. From MSDN: The way the name is decorated depends on the language
WINAPI to get device status
WINAPI to get device status Hi, Is there any WINAPI call available to get the status of a particular device. I am able to get a handle to the device using the calls, SetupDiGetClassDevs SetupDiEnumDeviceInfo and SetupDiSetSelectedDevice But I want to uninstall the device only if the status shows error code 28. (Please refer http://support.microsoft.com/kb/125174 for error codes). From my previous post here, i got to know how to uninstall a device and that is working perfectly fine for me. I just need to know how to get the device status using a WINAPI call. Please guide. Thanks & Regards Ananth
tr1::function WINAPI
tr1::function WINAPI How can I use tr1::function with WINAPI calling convention ? (at least in windows). I can use visual c++ 9 SP1 TR1 or BOOST's one... typedef void (WINAPI *GetNativeSystemInfoPtr)(LPSYSTEM_INFO); HMODULE h = LoadLibrary (_T("Kernel32.dll")); GetNativeSystemInfoPtr fp = (GetNativeSystemInfoPtr) GetProcAddress (h,"GetNativeSystemInfo"); SYSTEM_INFO info; fp(&info); //works! // This doesn't compile function< void WINAPI (LPSYSTEM_INFO) > fb = (GetNativeSystemInfoPtr) GetProcAddress (h,"GetNativeSystemInfo"); This compiles: #include <boost/function.hpp> #include <windows.h> int main(void) { typedef void (WINAPI *GetNativeSystemInfoPtr)(LPSYSTEM_INFO); HMODULE h = LoadLibrary (("Kernel32.dll")); GetNativeSystemInfoPtr fp = (GetNativeSystemInfoPtr) GetProcAddress (h,"GetNativeSystemInfo"); SYSTEM_INFO info; fp(&info
WinAPI replacement for reg.exe
WinAPI replacement for reg.exe Are there WinAPI functions that do the same what can do standard Windows utility reg.exe with import/export flags? I'm know that there are RegSaveKey and RegRestoreKey functions, but the calling process must have additional privileges SE_RESTORE_NAME and SE_BACKUP_NAME. This means that it is necessary to ask user to elevate process (show UAC dialog). Seems to be that reg.exe does not require such privileges for HKCU keys. But starting reg.exe with some arguments is not good idea if there are appropriate WinAPI. UPD: Brief reverse engineering has shown that reg.exe use internal parse functions. Still may be are there .NET functions that does not require additional privileges? Unfortunately there is not. The RegSaveKey/RegRestoreKey functions also use a binary format, not the text format used by reg.exe.
WinAPI for Game Controllers
WinAPI for Game Controllers Hi there! I know that all windows platforms automatically detect when a game controller is connected. I also know there is a WinAPI for polling these controllers. I can't seem to find the functions I am looking for anywhere. Any help is greatly appreciated! Brendan You can use either DirectInput or XInput from the DirectX SDK. Or use the XNA toolkit available from Microsoft, this includes the DirectX runtime and makes it easy to develop a game and would be certain that there is an API by XNA to interact with game controllers. Hope this helps, Best regards, Tom. If you want to keep it simple, you can use the joystick APIs
Drag and drop in winapi
Drag and drop in winapi I have a pure Winapi application that needs a few new features. One of them would best be implemented as two lists where you can drag-and-drop (multiple) elements between the lists. The new feature can be limited to a single dialog. What would be the quickest way to implement this? A few ideas: Pure Winapi (is it DetectDrag) A separate MFC or .NET DLL that provides this one dialog Embed the Microsoft WebBrowser Control and use JQuery Any of these options that should be avoided? Any better ideas? What is quickest to implement? Any pointers on how to get started... be that if the application is in pure winapi, keep it that way. Starting a .NET framework runtime just for one dialog with draggable items is as bad as hosting a WebBrowser control and using JQuery for that one functionality - it's at least thedailywtf.com-worthy if you ask me (but then again, you're
Normalize file path with WinAPI
Normalize file path with WinAPI Given two file path strings with potentially different casing and slashes ('\' vs '/'), is there a quick way (that does not involve writing my own function) to normalize both paths to the same form, or at least to test them for equivalence? I'm restricted to WinAPI and standard C++. All files are local. To write the least amount of code, you could write a binary predicate that compares to chars as equal if they differ only in case or are both one of the slashes. Then use the stl algorithm equal to do the comparison, and pass in the predicate. There are odd cases. For example, "c:\windows..\data\myfile.txt" is the same as "c:\data.\myfile.txt" and "c:\data\myfile.txt". You can have any number of "\.\" and "\..\" in there. You might look into the Windows API function GetFullPathName. It might do canonicalization for you. Depending on whether the paths
WinApi equivalent of .NET KeyPreview
WinApi equivalent of .NET KeyPreview In .Net there is a feature called KeyPreview. How can I do this in WinApi. Maybe I don't necessarily need this but my hWnd has WM_KEYDOWN, but it does not receive it when my Text Box has focus. How can I achieve this? Thanks *Using pure Win32API... is there an alternative, how could I handle the Text Box's WM_KEYDOWN? If you use MFC you can look at PreTranslateMessage (I am not sure regarding to PreTranslateMessage, but you can easily to verify whether to enough to override the function). You can set keyboard hook. You can try subclassing the edit control. Either "instance subclassing", to trap messages for only one window, or "global subclassing" to trap messages for all windows of that class (in your application, not system-wide). The example here (http://msdn.microsoft.com/en-us/library/ms997565.aspx) shows how to subclass an edit control
C library vs WinApi
C library vs WinApi Hi, Many of the standard c library (fwrite, memset, malloc) functions have direct equivalents in the windows API (WriteFile, FillMemory/ ZeroMemory, GlobalAlloc). Apart from portability issues, what should be used, the CLIB or windows API functions? Will the C functions call the winapi functions or is it the other way around? thanks for the help There's nothing magical about the C library. It's just a standardized API for accessing common services from the OS. That means it's implemented on top of the OS, using the API's provided by the OS. Use whichever makes sense... directly using system calls or drivers. If you have a commercial version of Visual C++, it used to provide the CRT source code, this is interesting reading. Will the C functions call the winapi functions or is it the other way around? The C functions (which are implemented in a user-mode
tutorials about WinAPI unicode?
tutorials about WinAPI unicode? Hi, I'm wondering if you guys are aware of any article of some sort that shows how to make code fully unicode? Reason I ask is because I'm dealing with winapi right now and it seems that everything's supposed to be unicode like L"blabla" .. Functions that I've...). In your code always use std::string for your class and function interfaces. When you need to use a WinAPI call that takes a string parameter you can use the conversion functions to fill a local std::wstring, on which you can call the c_str() method to pass to the API function. If you need to obtain textual data from a WinAPI function, then usually need to create local TCHAR array on the stack, pass it to the function, construct a std::wstring from the result, and then convert it back to a std::string using your UTF16 to UTF8 conversion function. Examples: Getting text using stack-allocated
C#/WINAPI: SetWindowPos()
C#/WINAPI: SetWindowPos() Hi, I am using SetWindowPos() to try and send Windows to back/front of the z-order. It seems to work for the most part however I am noticing for certain windows it just won't work although the function will return success. For example Window Task Manager seems to work perfectly fine but the other windows aren't responding properly to the function call. Any insights into what may be happening? I know the information is sparse however I am not sure what to include. Pretty much seems to work using SetForegroundWindow. From what I could discern it seems that using SetWindowPos and setting a window to HWND_TOP will make it top of the z-order following the foreground window. Meaning that once the foreground window is removed (minimized/closed) it will then be the next one at the TOP. I too have hod problems with this across processes. This from the MS
winapi with 64bit number in masm32
winapi with 64bit number in masm32 Hi! I need determind size of a logical volume and print it. GetDiskFreeSpaceEx is returning size as 64bit number(?). What can i do with it? You can do whatever you want with it, however it's a bit awkward to do calculations with in masm32. You should be able to fill any other data structure which uses 64 bit integers. It is also possible to do some arithmetic operations on 64 bits such as division, by loading the value into EDX:EAX (so load the first 4 bytes into EAX, and the next 4 into EDX). However, beware that overflow is possible here, which needs to be handled or avoided. If you just want to print out the size of the volume using this function you can just invoke the C run-time library printf function: invoke crt_printf,chr$("GetDiskFreeSpaceEx, total bytes: %I64d%c"), dqTotalBytes,10 However, as the manual says
Load jpg file in winapi
Load jpg file in winapi Hi all, I want to load a jpg file. I tried to use the LoadImage function but it returns NULL if my image is not bmp. What can I do? Here is my code: hBitmap =(HBITMAP)LoadImage(0, L"D:\\1.jpg", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE). You can have a look at WIC. Windows Imaging Component (WIC) API enables applications to work with all common image formats. It allows developers to not have to understand intricate details of the image formats they work with. WIC has built-in support for popular formats such as JPEG, PNG, TIFF, and GIF as well as an extensibility model so that developers can create their own WIC decoder and encoder (CODEC) and get platform level support for their image format. WIC is available on Windows XP (SP2 and greater), Windows Vista, Windows Server, and Windows 7. Use GDI+, it has a JPEG decoder. Start that ball rolling with #include
WinAPI function to start help file
WinAPI function to start help file when you open help in e.g. Windows Notepad (Help->Help Topics) no child process is started (such as hh.exe), which IMO means there is a WinAPI function called to do the job. I searched MSDN for a while but came up with nothing. what is this function? Would this help? http://stackoverflow.com/questions/1226876/how-can-i-open-a-help-file-chm-or-so-from-my-gui-developed-in-vc-2008 There are several useful solutions in that discussion. Use the function HtmlHelp

Related winapi Video tutorials from Youtube.


Windows API Tutorial: Create a
Visual Studio 2010 www.microsoft.com VC++ Express 2010 www.microsoft.com ---------------------------
Windows API Tutorial: Create a Simple Window [C++]
Visual Studio 2010 www.microsoft.com VC++ Express 2010 www.microsoft.com -------------------------------------------------------------------------- Recorded with Camtasia Studio 7 -------------------------------------------------------------------------- Here are the codes + additional notes + solution: thedarkjoker94.cer33.com -------------------------------------------------------------------------- Organic Meditations Two Kevin MacLeod www.incompetech.com Licensed under Creative Commons "Attribution 3.0" creativecommons.org -------------------------------------------------------------------------- More about WINAPI: msdn.microsoft.com -------------------------------------------------------------------------- Thanks for watching! Subscribe for more tutorials!

AlbumDesktopX
The X comes from the framework(XNA) It lets you control your music from ITunes, right on the desktop
AlbumDesktopX
The X comes from the framework(XNA) It lets you control your music from ITunes, right on the desktop. Made using the .Net framework,Xna Framework, my own built WinAPI wrapper, and the ItunesLib dll. Programmed in Visual C# 2008 (C# 3.0) and my WinAPI wrapper uses unmanaged win32 C++ code. I needed a break from programming my team's game, so I made this! Not much I know, but its cool imo. Credit to all those artist shown. ALSO major credit to microsoft and Apple for making such a incredibly good framework(s) and products! Enjoy. PSI clicked randomly on the album art to get the point across.!

Gradient Transparency Windows
Windows with gradient transparency made with WinApi and GDI+. Working from Win2000. As you can see,
Gradient Transparency Windows
Windows with gradient transparency made with WinApi and GDI+. Working from Win2000. As you can see, transparency is not constant and can be as gradient in one place and opaque in another one

My new overlapping program in
Hi everyone! I am trying to learn C++. I have created my first WinAPI program including some my own
My new overlapping program in C++
Hi everyone! I am trying to learn C++. I have created my first WinAPI program including some my own stuff and not only that from tutorials. It is a window with default brush with a lot of text on random positions. When I overlap the window, text get redrawn on another random position, but just in place where was the overlaping window. Don't look for some deeper sence, I am just testing WM_PAINT message, srand() and rand() function and for cycle. :) PS: Vista doesn't redraw that when it is overlapped. But it is still redrawing when changing size of the window and gettiong from and to the taskbar. :D This kind of optimalization isn't needed in Vista. In times of first Win NT, computers were far more lazy than today. :D

Sokoban Map Editor
map editor of sokoban game
Sokoban Map Editor
map editor of sokoban game

MD5-SHA1 Antivirus in VB (WORK
I made this anti virus with help of SHA1 and MD5 signature of files infected with virus. These signa
MD5-SHA1 Antivirus in VB (WORKING!!!!!)
I made this anti virus with help of SHA1 and MD5 signature of files infected with virus. These signatures can be found on the net :D The top right textbox contains the MD5 sigs and the bottom left one contains the SHA1 sigs. The textbox in the right shows the MD5 and SHA1 sigs of the current file being scanned (This done with the help of a background worker to keep the program active) . So if the sigs of this textbox is present in any of the above two textbox it is a virus. I will improve the GUI once i am done with the coding part.... Comments and suggestions are welcome.. :D IF YOU LIKE IT --- SUBSCRIBE!!!! :DDD (The textboxs will be hidden to the actual user :P) Software used : Visual Basic 2010 Add me on game ranger!!! Name: Battle|X| if you have any queries regarding this video or vb email me at battlex2010@yahoo.com *******UPDATE UPDATE UPDATE******* I have uploaded the source: www.mediafire.com It is a bit different from the one shown in the video!!! Any queries contact me battlex2010@yahoo.com

Tibia Lazy Login
An open source piece of code that I wrote in C# Source: tpforums.org creds to TibiaAPI for addresses
Tibia Lazy Login
An open source piece of code that I wrote in C# Source: tpforums.org creds to TibiaAPI for addresses and WinApi.cs

Disable Close (X button)Visual
Feel Free to donate wathever you want for me to make new cool programs and tutorials at www.paypal.c
Disable Close (X button)Visual Basic 2008 (Simplest way NO Win32 api)
Feel Free to donate wathever you want for me to make new cool programs and tutorials at www.paypal.com This video shows you how to disable close (X button) from your aplication and put a message box as a exit confirm withowt using win32 api . instead of put msg box u can let the code clear and the (X) will be disabled. The FormClosing and FormClosed Events a large explination: The FormClosing event is fired when the user closes the form by clicking its Close button. If the application must terminate because Windows is shutting down, the same event will be fired as well. Users dont always quit applications in an orderly manner, and a professional application should behave gracefully under all circumstances. The same code you execute in the applications Exit command must also be executed from within the closing event. For example, you might display a warning if the user has unsaved data, you might have to update a database, and so on. Place the code that performs these tasks in a subroutine and call it from within your menus Exit command, as well as from within the FormClosing events handler. You can cancel the closing of a form by setting the e.Cancel property to True. The event handler in the example below displays a message box informing the user that the data hasnt been saved and gives him a chance to cancel the action and return to the application. Cancelling the Closing of a Form: Public Sub Form1 FormClosing(...) Handles Me.FormClosing Dim reply As MsgBoxResult reply ...

Squibbles! Preview #3
Squibbles?!? What happened to Nibbles?!? Well, I decided to change the name of the game for copyrigh
Squibbles! Preview #3
Squibbles?!? What happened to Nibbles?!? Well, I decided to change the name of the game for copyright reasons! I don't want to get in trouble with Microsoft, lol. So here in this version, I have an almost completed working menu, I have implemented game difficulty levels and some of them are pretty funny. This is a still a work in progress and yes I will make levels for it when I think it is time, still lots of work! Comment, like do what ever you want, thanks for watching guys! :)

Sokoban
my sokoban game
Sokoban
my sokoban game

C++ Win32 Lesson 9: Loading an
More at xoax.net This Win32 C++ video tutorial demonstrates how to load and display an image in a si
C++ Win32 Lesson 9: Loading and Displaying Bitmaps
More at xoax.net This Win32 C++ video tutorial demonstrates how to load and display an image in a simple application window. Download the project and code at http Please submit all questions to our forum: xoax.net

My Risk Clone
A Risk clone I wrote with a friend.
My Risk Clone
A Risk clone I wrote with a friend.

How to make a downloader in Vi
A tutorial on how to make a program that downloads files from the internet in Visual Basic. This wor
How to make a downloader in Visual Basic
A tutorial on how to make a program that downloads files from the internet in Visual Basic. This works in Visual Basic 2008 too Download button: WebClient1.DownloadFileAsync(TextBox1.Text, TextBox2.Text) Browse button: Dim s As New SaveFileDialog If s.ShowDialog = Windows.Forms.DialogResult.OK Then 'If the ok button is pressed TextBox2.Text = s.FileName End If Webclient_DownloadProgressChanged: ProgressBar1.Value = e.ProgressPercentage Label1.Text = e.ProgressPercentage.ToString + "%" Webclient_DownloadFileCompleted: MsgBox("Download Completed", MsgBoxStyle.Information, "Downloader")

Introduction to Visual Basic
A nice introduction to Visual Basic for beginners, enjoy =D Visual Basic download: www.microsoft.com
Introduction to Visual Basic
A nice introduction to Visual Basic for beginners, enjoy =D Visual Basic download: www.microsoft.com And remember, a new video every week to don't forget to subscribe!

C++ Win32 Lesson 5: Adding Men
xoax.net This C++ Win32 video tutorial shows how to add menus to a window and respond to menu click
C++ Win32 Lesson 5: Adding Menu Items
xoax.net This C++ Win32 video tutorial shows how to add menus to a window and respond to menu click events. Added code available at http Please submit all questions to our forum: xoax.net

pepipad
PepiPAD Editor for programming
pepipad
PepiPAD Editor for programming

2Days and a Half to make a mul
We've taken a course about multitouch programming using windows 7 lib. The course was given by the M
2Days and a Half to make a multitouch game from scratch
We've taken a course about multitouch programming using windows 7 lib. The course was given by the Microsoft Inovation Center here in BH. For our prototype we choose to use the windows multitouch lib raw data to make our own character controller. The programming phase was 3 days. 2 and a half to develop the application and the rest for the coffee-break. We've downloaded, learned and used some libs. We think the final result was very cool. It has a HUD, two stages, stages names, music, effect sound, physics and 9 items to collect. If the player get all the 9 items, the game changes to the next stage. xD.

Memory Hacking in C++: Writing
Learn to create a trainer (a program that writes to remote process memory) in C++ using a Calculator
Memory Hacking in C++: Writing to Process Memory
Learn to create a trainer (a program that writes to remote process memory) in C++ using a Calculator as an example. There are also references to cheat engine. More tutorials at www.zerozaku.com

Basic Syntax in Visual Basic
Here is some basic syntax in visual basic. Remember to subscribe for more videos weekly =D
Basic Syntax in Visual Basic
Here is some basic syntax in visual basic. Remember to subscribe for more videos weekly =D

MessageBox C++ Win32 API
This tutorial shows how to do a messagebox in C++ using Win32 API ! PS if you're using Visual Studio
MessageBox C++ Win32 API
This tutorial shows how to do a messagebox in C++ using Win32 API ! PS if you're using Visual Studio or Visual C++ and it says something like "cannot convert from const char[] to LPWSTR" just look at the comments !

Platform Test
my 2d platform game
Platform Test
my 2d platform game

Post you comment here

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

There are 0 comment(s) to this page.



The questions and answers taken from stackoverflow.com's public data dump which is licensed under the cc-wiki license.
Logo, website design and layout ©2011 CodingTiger.com