kernel32: "base" is a pointer in 16-bit global heap.
[wine/multimedia.git] / dlls / kernel / tests / volume.c
blobb27fa742d8fc70c7e8d6d4cea149c5c548a981d2
1 /*
2 * Unit test suite
4 * Copyright 2006 Stefan Leichter
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "wine/test.h"
22 #include "winbase.h"
24 #define CDROM "CDROM"
25 #define FLOPPY "FLOPPY"
26 #define HARDISK "HARDDISK"
27 #define LANMAN "LANMANREDIRECTOR"
28 #define RAMDISK "RAMDISK"
30 static void test_query_dos_deviceA(void)
32 char drivestr[] = "a:";
33 char *p, buffer[2000];
34 DWORD ret;
35 for (;drivestr[0] <= 'z'; drivestr[0]++) {
36 ret = QueryDosDeviceA( drivestr, buffer, sizeof(buffer));
37 if(ret) {
38 for (p = buffer; *p; p++) *p = toupper(*p);
39 todo_wine
40 ok( strstr( buffer, CDROM) || strstr( buffer, FLOPPY) ||
41 strstr( buffer, HARDISK) || strstr( buffer, LANMAN) ||
42 strstr( buffer, RAMDISK), "expect the string %s contains %s,%s,%s,%s or %s\n",
43 buffer, CDROM, FLOPPY, HARDISK, LANMAN, RAMDISK);
48 START_TEST(volume)
50 test_query_dos_deviceA();