S
S
sddvxd2018-05-12 20:46:44
C++ / C#
sddvxd, 2018-05-12 20:46:44

Where are the constants of Nt functions?

Hello
Need to get information Information:

//typedef
typedef struct _IO_STATUS_BLOCK {
  union {
    NTSTATUS Status;
    PVOID    Pointer;
  } DUMMYUNIONNAME;
  ULONG_PTR Information;
} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;

switch(pStruct->Information){
    case FILE_CREATED: //Компилятор не находит константу
        .....
}

The header file "Winternl.h" is included. Where can I get these constants?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2018-05-12
@sddvxd

These constants are in the header file ntioapi.h, which should be included with wdm.h
Make sure you have the necessary #includes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question