Files | |
file | scrsht.c |
Command line screenshot program for MS WIndows. | |
file | scrshtrc.h |
Resource constants. | |
Defines | |
#define | S_BMPFILTER 100 |
ID of the resource string for filtering files in file save dialog. | |
#define | S_SS_UNKNOWN 101 |
ID of the resource string for the error SS_UNKNOWN. | |
#define | S_SS_ERR_PARAM 102 |
ID of the resource string for the error SS_ERR_PARAM. | |
#define | S_SS_ERR_WRITE 103 |
ID of the resource string for the error SS_ERR_WRITE. | |
#define | S_SS_ERR_GETBMP 104 |
ID of the resource string for the error SS_ERR_GETBMP. | |
#define | S_SS_ERR_DC 105 |
ID of the resource string for the error SS_ERR_DC. | |
#define | S_SS_ERR_DESKTOPDC 106 |
ID of the resource string for the error SS_ERR_DESKTOPDC. | |
#define | S_SS_ERR_DIB 107 |
ID of the resource string for the error SS_ERR_DIB. | |
#define | S_SS_ERR_COMPATDC 108 |
ID of the resource string for the error SS_ERR_COMPATDC. | |
#define | S_SS_ERR_COMPATBMP 109 |
ID of the resource string for the error SS_ERR_COMPATBMP. | |
#define | S_SS_ERR_BITBLT 110 |
ID of the resource string for the error SS_ERR_BITBLT. | |
#define | S_SS_ERR_SELECTOBJECT 111 |
ID of the resource string for the error SS_ERR_SELECTOBJECT. | |
#define | S_SS_ERR_FILE 112 |
ID of the resource string for the error SS_ERR_FILE. | |
#define | S_ERRTIT 113 |
ID of the resource string for the title of the error window. | |
Enumerations | |
enum | t_sserrcode { SS_OK = 0, SS_UNKNOWN, SS_ERR_PARAM, SS_ERR_WRITE, SS_ERR_GETBMP, SS_ERR_DC, SS_ERR_DESKTOPDC, SS_ERR_DIB, SS_ERR_COMPATDC, SS_ERR_COMPATBMP, SS_ERR_BITBLT, SS_ERR_SELECTOBJECT, SS_ERR_FILE } |
Return and error codes. More... | |
Functions | |
int WINAPI | WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) |
The main entry point of the snapshot program. |
#define S_BMPFILTER 100 |
ID of the resource string for filtering files in file save dialog.
#define S_ERRTIT 113 |
ID of the resource string for the title of the error window.
#define S_SS_ERR_BITBLT 110 |
ID of the resource string for the error SS_ERR_BITBLT.
#define S_SS_ERR_COMPATBMP 109 |
ID of the resource string for the error SS_ERR_COMPATBMP.
#define S_SS_ERR_COMPATDC 108 |
ID of the resource string for the error SS_ERR_COMPATDC.
#define S_SS_ERR_DC 105 |
ID of the resource string for the error SS_ERR_DC.
#define S_SS_ERR_DESKTOPDC 106 |
ID of the resource string for the error SS_ERR_DESKTOPDC.
#define S_SS_ERR_DIB 107 |
ID of the resource string for the error SS_ERR_DIB.
#define S_SS_ERR_FILE 112 |
ID of the resource string for the error SS_ERR_FILE.
#define S_SS_ERR_GETBMP 104 |
ID of the resource string for the error SS_ERR_GETBMP.
#define S_SS_ERR_PARAM 102 |
ID of the resource string for the error SS_ERR_PARAM.
#define S_SS_ERR_SELECTOBJECT 111 |
ID of the resource string for the error SS_ERR_SELECTOBJECT.
#define S_SS_ERR_WRITE 103 |
ID of the resource string for the error SS_ERR_WRITE.
#define S_SS_UNKNOWN 101 |
ID of the resource string for the error SS_UNKNOWN.
enum t_sserrcode |
Return and error codes.
int WINAPI WinMain | ( | HINSTANCE | hInstance, | |
HINSTANCE | hPrevInstance, | |||
PSTR | szCmdLine, | |||
int | iCmdShow | |||
) |
The main entry point of the snapshot program.
hInstance | ignored | |
hPrevInstance | ignored | |
szCmdLine | command line parameters, name of the file where to store snapshot. | |
iCmdShow | ignored. |