0

I'm trying to understand how winapi works. I just started on writing my first few apps. Now I am curious about the function "CreateWindowEx()" I wish to know what is written inside this function, but all I can find are the arguments for calling it and the parameters for it. So I decided to look for this function within the h files, but I can't find it. Can someone please help?

sirkyuubi
  • 1
  • 1
  • 4
    You can't see the implementation for CreateWindowEx(). It's buried in the implementation of the operating system. – John Dibling Oct 10 '12 at 22:41

2 Answers2

4

It's declared in:

Winuser.h (include Windows.h)

but Windows isn't open-source, so I doubt you'll find the implementation (unless you work for MS and have access to the code). You can step in the dissasembly, but I doubt you'll find something useful.

Luchian Grigore
  • 253,575
  • 64
  • 457
  • 625
0

Read the documentation:

Header Winuser.h (include Windows.h)

Library User32.lib

DLL User32.dll

That means the function is declared in winuser.h, linked to by user32.lib, and implemented in user32.dll.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770