Annotation of q_a/samples/ddk/q_dosdev/q_dosdev.c, revision 1.1

1.1     ! root        1: /*++
        !             2: 
        !             3: Copyright (c) 1993  Microsoft Corporation
        !             4: 
        !             5: Module Name:
        !             6: 
        !             7:     q_dosdev.c
        !             8: 
        !             9: Abstract:
        !            10: 
        !            11:     A user mode test app that lists all the DOS device names
        !            12: 
        !            13: Environment:
        !            14: 
        !            15:     User mode only
        !            16: 
        !            17: Revision History:
        !            18: 
        !            19:     05-26-93 : created
        !            20: 
        !            21: --*/
        !            22: 
        !            23: 
        !            24: 
        !            25: #include <stdio.h>
        !            26: #include <windows.h>
        !            27: 
        !            28: 
        !            29: 
        !            30: void main()
        !            31: {
        !            32:     char   buf[1024], buf2[1024], *p, *q;
        !            33: 
        !            34:     QueryDosDevice (NULL, buf, 1024);
        !            35: 
        !            36:     p = buf;
        !            37: 
        !            38:     while (*p)
        !            39:     {
        !            40:         if (strlen(p) > 7)
        !            41: 
        !            42:           printf (p);
        !            43: 
        !            44:         else
        !            45: 
        !            46:           printf ("%s\t", p);
        !            47: 
        !            48:         QueryDosDevice (p, buf2, 1024);
        !            49: 
        !            50:         q = buf2;
        !            51: 
        !            52:         while (*q)
        !            53:         {
        !            54:             printf ("\t%s\n", q);
        !            55:             q += strlen(q) + 1;
        !            56:         }
        !            57: 
        !            58:         p += strlen(p) + 1;
        !            59:     }
        !            60: 
        !            61:     return;
        !            62: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.