mirror of
				https://github.com/jart/cosmopolitan.git
				synced 2025-10-26 03:00:57 +00:00 
			
		
		
		
	A new rollup tool now exists for flattening out the headers in a way that works better for our purposes than cpp. A lot of the API clutter has been removed. APIs that aren't a sure thing in terms of general recommendation are now marked internal. There's now a smoke test for the amalgamation archive and gigantic header file. So we can now guarantee you can use this project on the easiest difficulty setting without the gigantic repository. A website is being created, which is currently a work in progress: https://justine.storage.googleapis.com/cosmopolitan/index.html
		
			
				
	
	
		
			53 lines
		
	
	
	
		
			4.5 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
	
		
			4.5 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef COSMOPOLITAN_LIBC_NT_AUTOMATION_H_
 | |
| #define COSMOPOLITAN_LIBC_NT_AUTOMATION_H_
 | |
| #include "libc/nt/typedef/hookproc.h"
 | |
| #include "libc/nt/typedef/wndenumproc.h"
 | |
| /*                            ░░░░
 | |
|                        ▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
 | |
|                       ▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░
 | |
|                      ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓  ▒▓░
 | |
|                      ▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓   ▓▓▓▓▓▓▒        ▒▒▒▓▓█
 | |
|                     ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓  ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓
 | |
|                    ░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓   █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█
 | |
|                    ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░  ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓
 | |
|                   ▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓  ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒
 | |
|                   ▒▒▒▒▓▓      ▓▒▒▓▓▓▓   ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█
 | |
|                                    ▒▓  ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓
 | |
|                   ░░░░░░░░░░░▒▒▒▒      ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█
 | |
|                 ▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓     ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓
 | |
|                ░▒░░░░░░░░░░░▒▒▒▒▒▓▓   ▓░      ░▓███▓
 | |
|                ▒▒░░░░░░░░░░▒▒▒▒▒▓▓░  ▒▓▓▓▒▒▒         ░▒▒▒▓   ████████████
 | |
|               ▒▒░░░░░░░░░░░▒▒▒▒▒▓▓  ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░           ░███
 | |
|               ▒░░░░░░░░░░░▒▒▒▒▒▓▓   ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓            ███
 | |
|              ▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓  ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒            ▓██
 | |
|              ▒░░░░░░░░░░░▒▒▒▒▒▓▓   ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓           ▓██
 | |
|             ▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒  ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒           ███
 | |
|                             ░▒▓  ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓          ▓██
 | |
| ╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗
 | |
| │ cosmopolitan § new technology » aol hacking                              ─╬─│┼
 | |
| ╚────────────────────────────────────────────────────────────────────────────│*/
 | |
| 
 | |
| #if !(__ASSEMBLER__ + __LINKER__ + 0)
 | |
| COSMOPOLITAN_C_START_
 | |
| 
 | |
| int64_t GetShellWindow(void);
 | |
| int64_t GetDesktopWindow(void);
 | |
| int64_t GetParent(int64_t hWnd);
 | |
| int64_t SetParent(int64_t hWndChild, int64_t hWndNewParent);
 | |
| int32_t EnumChildWindows(int64_t hWndParent, NtWndEnumProc lpEnumFunc,
 | |
|                          intptr_t lParam);
 | |
| int64_t FindWindow(const char16_t *lpClassName, const char16_t *lpWindowName);
 | |
| int64_t FindWindowEx(int64_t hWndParent, int64_t hWndChildAfter,
 | |
|                      const char16_t *lpszClass, const char16_t *lpszWindow);
 | |
| int64_t GetWindow(int64_t hWnd, uint32_t uCmd);
 | |
| int64_t SetWindowsHook(int nFilterType, NtHookProc pfnFilterProc);
 | |
| int32_t UnhookWindowsHook(int nCode, NtHookProc pfnFilterProc);
 | |
| int64_t SetWindowsHookEx(int idHook, NtHookProc lpfn, int64_t hmod,
 | |
|                          uint32_t dwThreadId);
 | |
| int32_t UnhookWindowsHookEx(int64_t hhk);
 | |
| intptr_t CallNextHookEx(int64_t hhk, int nCode, uintptr_t wParam,
 | |
|                         intptr_t lParam);
 | |
| 
 | |
| COSMOPOLITAN_C_END_
 | |
| #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
 | |
| #endif /* COSMOPOLITAN_LIBC_NT_AUTOMATION_H_ */
 |