File:  [WindowsNT SDKs] / q_a / samples / ddk / q_dosdev / q_dosdev.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:30:32 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-nov-1993, HEAD
Microsoft Windows NT Build 511 (DDK SDK) 11-01-1993

/*++

Copyright (c) 1993  Microsoft Corporation

Module Name:

    q_dosdev.c

Abstract:

    A user mode test app that lists all the DOS device names

Environment:

    User mode only

Revision History:

    05-26-93 : created

--*/



#include <stdio.h>
#include <windows.h>



void main()
{
    char   buf[1024], buf2[1024], *p, *q;

    QueryDosDevice (NULL, buf, 1024);

    p = buf;

    while (*p)
    {
        if (strlen(p) > 7)

          printf (p);

        else

          printf ("%s\t", p);

        QueryDosDevice (p, buf2, 1024);

        q = buf2;

        while (*q)
        {
            printf ("\t%s\n", q);
            q += strlen(q) + 1;
        }

        p += strlen(p) + 1;
    }

    return;
}

unix.superglobalmegacorp.com

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