Added netapi32.dll and the Netbios() call.
[wine] / dlls / wineps / objects.c
1 /*
2  *      PostScript driver object handling
3  *
4  *      Copyright 1998  Huw D M Davies
5  *
6  */
7
8 #include "psdrv.h"
9 #include "debugtools.h"
10
11 DEFAULT_DEBUG_CHANNEL(psdrv);
12
13 /***********************************************************************
14  *           PSDRV_BITMAP_SelectObject
15  */
16 static HBITMAP PSDRV_BITMAP_SelectObject( DC * dc, HBITMAP hbitmap )
17 {
18     FIXME("stub\n");
19     return 0;
20 }
21
22
23 /***********************************************************************
24  *           PSDRV_SelectObject
25  */
26 HGDIOBJ PSDRV_SelectObject( DC *dc, HGDIOBJ handle )
27 {
28     HGDIOBJ ret = 0;
29
30     TRACE("hdc=%04x %04x\n", dc->hSelf, handle );
31
32     switch(GetObjectType( handle ))
33     {
34     case OBJ_PEN:
35           ret = PSDRV_PEN_SelectObject( dc, handle );
36           break;
37     case OBJ_BRUSH:
38           ret = PSDRV_BRUSH_SelectObject( dc, handle );
39           break;
40     case OBJ_BITMAP:
41           ret = PSDRV_BITMAP_SelectObject( dc, handle );
42           break;
43     case OBJ_FONT:
44           ret = PSDRV_FONT_SelectObject( dc, handle );
45           break;
46     case OBJ_REGION:
47           ret = (HGDIOBJ)SelectClipRgn( dc->hSelf, handle );
48           break;
49     case 0:  /* invalid handle */
50         break;
51       default:
52           ERR("Unknown object type %ld\n", GetObjectType(handle) );
53           break;
54     }
55     return ret;
56 }