Where is CreateWindowEx()?

414 views Asked by At

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?

2

There are 2 answers

0
Luchian Grigore On

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.

0
Remy Lebeau On

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.