Screenshots


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 Documentation

#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.


Enumeration Type Documentation

Return and error codes.

Enumerator:
SS_OK  Everything went OK.
SS_UNKNOWN  Unknown error.
SS_ERR_PARAM  Wrong parameters.
SS_ERR_WRITE  Bitmap file save error.
SS_ERR_GETBMP  Can't extract bitmap from the handle.
SS_ERR_DC  Can't get device context.
SS_ERR_DESKTOPDC  Can't get device context for the desktop.
SS_ERR_DIB  Can't create DIB section.
SS_ERR_COMPATDC  Can't create compatible DC.
SS_ERR_COMPATBMP  Can't create compatible bitmap.
SS_ERR_BITBLT  Can't transfer bitmap.
SS_ERR_SELECTOBJECT  Can't assign bitmap to DC.
SS_ERR_FILE  Can't open file.


Function Documentation

int WINAPI WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
PSTR  szCmdLine,
int  iCmdShow 
)

The main entry point of the snapshot program.

Parameters:
hInstance ignored
hPrevInstance ignored
szCmdLine command line parameters, name of the file where to store snapshot.
iCmdShow ignored.
Returns:
SS_OK if everything went OK, error code else


Generated on Mon Jul 12 14:51:51 2010 for cetoys by  doxygen 1.5.6