Like Tree12Likes
  • 6 Post By iMalc
  • 1 Post By jimblumberg
  • 4 Post By ledow
  • 1 Post By rags_to_riches

I need to use process.h

This is a discussion on I need to use process.h within the C Programming forums, part of the General Programming Boards category; i am programming under windows with the intel c++ compiler, but i don't found any *** reference guide, and i ...

  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    3

    Question I need to use process.h

    i am programming under windows with the intel c++ compiler, but i don't found any *** reference guide, and i need to know how to use the libraries <process.h> and <windows.h>, i need a complete reference guide, not a short explanation showing few examples, i am an advanced programmer, i want complete information, can some body please help me with some good references?

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    395
    The windows API is fully described on MSDN, what's wrong with that?
    Concerning process.h, according to this process.h - Wikipedia, the free encyclopedia, it looks like a non-standard outdated header.

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,269
    Quote Originally Posted by droid15 View Post
    i am an advanced programmer
    Sorry to burst your bubble, but you are a beginner programmer.
    An "advanced programmer" (if anyone ever actually fitted such an odd label) would not ask such a question.
    One of the most important software development skills is knowing how to find information. This seems to be a skill that you have definitely not mastered.

    You can find out how to use any Windows API function by searching msdn.microsoft.com, and using a search engine to find other examples as needed.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  4. #4
    Registered User
    Join Date
    Aug 2012
    Posts
    3
    thanks for your replies, i found it very useful, i am just searching for what i want in the msdn page, but i would find very useful if one could search information about a specific header.h, but it seems it gives information by function, i mean that, i would like to obtain information making queries by typing header.h, or even better if someone could bring me the url of a reference in pdf format, tanks in advance

  5. #5
    Registered User
    Join Date
    Mar 2011
    Posts
    546
    I got a lot of hits with 'google process.h'

  6. #6
    Registered User
    Join Date
    Aug 2012
    Posts
    3
    I found quite useful information, but what i need is a complete reference, that describes every header, every library, i mean, a complete reference manual, applicable to windows, not gcc, not ansi c, not objective c, maybe turbo c, maybe visual c, or lattice c, i am programming on windows not linux, i don't use linux(don't talk me about the goods of linux, if i could chose, i would be programming on linux, but not, i need windows)

  7. #7
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,641
    How about MSDN Library

    /Advanced programmer indeed

  8. #8
    Registered User
    Join Date
    May 2010
    Posts
    2,564
    You might want to start here: MSDN Windows API List. That is the complete list of the documentation for the Windows API. Now this API documentation won't do you any good if you continue to stick your head in the ground and ignore the ANSI/ISO C standards.

    If you want a complete printed reference manual then I suggest the Petzold book: Programming Windows, 5th Edition. Note if you are interested in C don't get the 6th edition.

    As for the complete API documentation in print, I haven't seen an edition in years. The one I have was printed in 1992, and is only useful as a bookcase stuffer because it predates even Windows 95.

    Jim
    rags_to_riches likes this.

  9. #9
    Registered User ledow's Avatar
    Join Date
    Dec 2011
    Posts
    435
    Yeah, I believe that since about Windows 95, the documentation has basically been "use MSDN" because it's just too much to document in any other way. And it's not useful to just have a list of millions of functions and their parameters because, for the most part, most programmers will never touch them in their lives. Seriously, how often do you think with the Volume Shadow Copy functionality programmatically? Not often. You won't get examples that show you everything because, for the most part, if you're tinkering with this stuff you shouldn't NEED an example of how to put data into a structure and pass it to a function.

    Hell, I spent three hours reading the documentation on how to make a Windows resource file and all I wanted was a handful of lines out of it. It was just easier to find examples elsewhere and then tweak as necessary (how many people put an English (UK) set of resource statements into their Windows executable? Next-to-zero, but a few examples and I had it done).

    Complete references aren't going to exist offline. I doubt you *could* publish them, at any sensible price. And they would just be exactly what was linked to - an API description of each function that probably doesn't describe 1% of the usage or known-bugs concerning that particular function (or even 80% of the functions Windows actually uses). Just what would be the point in publishing that if, as linked, it's all online and you'll never use 1% of it?

    The last thing I ever used that was documented even as far as publishing an API like that in a book were probably the early Java's. Literally 50% of the O'Reilly book was a copy of the Java API. It didn't even try to do documentation of the Java VM or anything else, and is so out of date now as to be useless. But the fact was I never used it, I just learned Java and then the occasional "odd" function that I needed to use, I looked up online (which was always more up-to-date and relevant and had more examples and, most importantly, could be copy-pasted so I didn't have to type it out perfectly).

    Similarly, there's no "complete" published reference of the Linux userspace API, or the glibc API, or any of the other things you mentioned. If you're lucky a small library might post some Javadoc pages which are automatically generated from the code and comments. That's about as good as you get, because delving into individual files could take forever to describe loosely, let alone document properly. My latest project is some 20,000+ lines of C code that use everything from SDL to OpenGL to OpenSSL to SQLite (and a dozen other libraries besides), works on Linux, MacOS and Windows and compiles natively to their executables. How many textbooks did I reference? Zero. How many of those libraries do I know "off by heart"? Zero. How many of those libraries and API's had I used before? Less than half (e.g. the Windows resource file thing). You find an example of what you want to do, that gives you a hint at what functions do it, you read the latest API description of those functions and their associated structures and you join-the-dots to get a working program.

    Hell, if you think the Windows API is a mess, go find OpenSSL documentation that you can use. I dare you.

    - Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
    - A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
    - The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.

  10. #10
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,641
    Hell, if you think the Windows API is a mess, go find OpenSSL documentation that you can use. I dare you.
    It's old, but back in the day I found this to be helpful in that regard. Probably still is, given that the API itself hasn't changed all that much.

    But everything you said is spot on. There is so much information out there and available; if a programmer is above a beginner's level, he/she should be able to sort the wheat from the chaff and figure out what to do with the multitude of various libraries.
    jimblumberg likes this.

  11. #11
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    611
    Quote Originally Posted by ledow View Post
    (how many people put an English (UK) set of resource statements into their Windows executable?
    Me, yesterday, only to be met by this:
    messagestrings.mc(12) : warning : Redefining value of English
    Cotton picking Americans, why I ought to... *shakes fist*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [C] Process pid by name
    By Dedalus in forum C Programming
    Replies: 2
    Last Post: 07-16-2009, 08:21 AM
  2. how to get process info ( to extract process thread id )
    By umen242 in forum C++ Programming
    Replies: 4
    Last Post: 02-12-2009, 12:08 PM
  3. create a child process that creates a child process
    By cus in forum Linux Programming
    Replies: 9
    Last Post: 01-13-2009, 01:14 PM
  4. Process sending file descriptors to another process
    By Yasir_Malik in forum C Programming
    Replies: 4
    Last Post: 04-07-2005, 07:36 PM
  5. Child Process & Parent Process Data :: Win32
    By kuphryn in forum Windows Programming
    Replies: 5
    Last Post: 09-11-2002, 12:19 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21