This is done without using Microsoft's internal APIs. MAP_PRIVATE mappings are copied to the subprocess via a pipe, since Microsoft doesn't want us to have proper COW pages. MAP_SHARED mappings are remapped without needing to do any copying. Global variables need copying along with the stack and the whole heap of anonymous mem. This actually improves the reliability of the redbean http server although one shouldn't expect 10k+ connections on a home computer that isn't running software built to serve like Linux or FreeBSD.
36 lines
1.4 KiB
C
36 lines
1.4 KiB
C
#ifndef COSMOPOLITAN_LIBC_NT_ENUM_COLOR_H_
|
|
#define COSMOPOLITAN_LIBC_NT_ENUM_COLOR_H_
|
|
|
|
#define kNtColorScrollbar 0
|
|
#define kNtColorBackground 1
|
|
#define kNtColorActivecaption 2
|
|
#define kNtColorInactivecaption 3
|
|
#define kNtColorMenu 4
|
|
#define kNtColorWindow 5
|
|
#define kNtColorWindowframe 6
|
|
#define kNtColorMenutext 7
|
|
#define kNtColorWindowtext 8
|
|
#define kNtColorCaptiontext 9
|
|
#define kNtColorActiveborder 10
|
|
#define kNtColorInactiveborder 11
|
|
#define kNtColorAppworkspace 12
|
|
#define kNtColorHighlight 13
|
|
#define kNtColorHighlighttext 14
|
|
#define kNtColorBtnface 15
|
|
#define kNtColorBtnshadow 16
|
|
#define kNtColorGraytext 17
|
|
#define kNtColorBtntext 18
|
|
#define kNtColorInactivecaptiontext 19
|
|
#define kNtColorBtnhighlight 20
|
|
#define kNtColor3ddkshadow 21
|
|
#define kNtColor3dlight 22
|
|
#define kNtColorInfotext 23
|
|
#define kNtColorInfobk 24
|
|
#define kNtColorHotlight 26
|
|
#define kNtColorGradientactivecaption 27
|
|
#define kNtColorGradientinactivecaption 28
|
|
#define kNtColorMenuhilight 29
|
|
#define kNtColorMenubar 30
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_NT_ENUM_COLOR_H_ */
|