Changeset 2019 for trunk/src/kmk/w32


Ignore:
Timestamp:
Nov 2, 2008, 1:21:05 AM (17 years ago)
Author:
bird
Message:

GPLv2 -> GPLv3. See Ticket #44 for clarifications. Fixes #44.

Location:
trunk/src/kmk/w32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/w32/Makefile.kmk

    r1665 r2019  
    1 # $Id: Makefile.kmk 785 2007-01-24 22:21:56Z bird $
     1# $Id: $
    22## @file
    33# Sub-makefile for tstFileInfo / w32.
     
    55
    66#
    7 # Copyright (c) 2007-2008 knut st. osmundsen <bird-kBuild-spam@anduin.net>
     7# Copyright (c) 2007-2008 knut st. osmundsen <bird-src-spam@anduin.net>
    88#
    99# This file is part of kBuild.
     
    1111# kBuild is free software; you can redistribute it and/or modify
    1212# it under the terms of the GNU General Public License as published by
    13 # the Free Software Foundation; either version 2 of the License, or
     13# the Free Software Foundation; either version 3 of the License, or
    1414# (at your option) any later version.
    1515#
     
    2020#
    2121# You should have received a copy of the GNU General Public License
    22 # along with kBuild; if not, write to the Free Software
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
     22# along with kBuild.  If not, see <http://www.gnu.org/licenses/>
    2423#
    2524#
  • trunk/src/kmk/w32/tstFileInfo.c

    r1179 r2019  
     1/* $Id: $ */
     2/** @file
     3 * Test program for some NtQueryInformationFile functionality.
     4 */
     5
     6/*
     7 * Copyright (c) 2007-2008 knut st. osmundsen <bird-src-spam@anduin.net>
     8 *
     9 * This file is part of kBuild.
     10 *
     11 * kBuild is free software; you can redistribute it and/or modify
     12 * it under the terms of the GNU General Public License as published by
     13 * the Free Software Foundation; either version 3 of the License, or
     14 * (at your option) any later version.
     15 *
     16 * kBuild is distributed in the hope that it will be useful,
     17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19 * GNU General Public License for more details.
     20 *
     21 * You should have received a copy of the GNU General Public License
     22 * along with kBuild.  If not, see <http://www.gnu.org/licenses/>
     23 *
     24 */
     25
     26
    127
    228#include <stdio.h>
     
    5379typedef LONG NTSTATUS;
    5480
    55 typedef struct _IO_STATUS_BLOCK 
     81typedef struct _IO_STATUS_BLOCK
    5682{
    5783    union
     
    6389} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
    6490
    65 NTSYSAPI 
     91NTSYSAPI
    6692NTSTATUS
    6793NTAPI
    68 NtQueryInformationFile(HANDLE FileHandle, PIO_STATUS_BLOCK IoStatusBlock, PVOID FileInformation, 
    69                        ULONG Length, FILE_INFORMATION_CLASS FileInformationClass); 
     94NtQueryInformationFile(HANDLE FileHandle, PIO_STATUS_BLOCK IoStatusBlock, PVOID FileInformation,
     95                       ULONG Length, FILE_INFORMATION_CLASS FileInformationClass);
    7096
    7197
     
    76102    int i;
    77103
    78     NTSTATUS (NTAPI *pfnNtQueryInformationFile)(HANDLE FileHandle, PIO_STATUS_BLOCK IoStatusBlock, PVOID FileInformation, 
    79                                                 ULONG Length, FILE_INFORMATION_CLASS FileInformationClass); 
     104    NTSTATUS (NTAPI *pfnNtQueryInformationFile)(HANDLE FileHandle, PIO_STATUS_BLOCK IoStatusBlock, PVOID FileInformation,
     105                                                ULONG Length, FILE_INFORMATION_CLASS FileInformationClass);
    80106
    81107    pfnNtQueryInformationFile = GetProcAddress(LoadLibrary("ntdll.dll"), "NtQueryInformationFile");
     
    104130                printf("#%d: %s - rcNt=%#x - FileNameInformation:\n"
    105131                       "        FileName: %ls\n"
    106                        "  FileNameLength: %lu\n", 
    107                        i, argv[i], rcNt, 
    108                        pFileNameInfo->FileName, 
     132                       "  FileNameLength: %lu\n",
     133                       i, argv[i], rcNt,
     134                       pFileNameInfo->FileName,
    109135                       pFileNameInfo->FileNameLength
    110136                       );
     
    123149    return rc;
    124150}
     151
Note: See TracChangeset for help on using the changeset viewer.