Thread: NUMA - WinApi

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    1

    NUMA - WinApi

    Hi,

    i'm working on a memory allocation using the NUMA functions on Windows Vista. I'm using VS 2005 for this. My problem is, with the default Windows SDK i retrieve the following error:

    Code:
    error C3861: 'VirtualAllocExNuma': identifier not found
    After a short look i found out, that this SDK hasn't got this method, so i changed to SDK 6.0a which has this function. But when i compile with this SDK i get a whole bunch of errors from WinIoCtl.h

    Code:
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(694) : error C2065: 'Size' : undeclared identifier
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(694) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(694) : error C2513: 'int' : no variable declared before '='
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(694) : error C2143: syntax error : missing ';' before '<class-head>'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(710) : error C2143: syntax error : missing ';' before '<class-head>'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(710) : error C2378: 'Size' : redefinition; symbol cannot be overloaded with a typedef
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(813) : error C2143: syntax error : missing ';' before '<class-head>'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(813) : error C2378: 'Size' : redefinition; symbol cannot be overloaded with a typedef
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(845) : error C2143: syntax error : missing ';' before '<class-head>'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(845) : error C2378: 'Size' : redefinition; symbol cannot be overloaded with a typedef
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(976) : error C2143: syntax error : missing ';' before '<class-head>'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(976) : error C2378: 'Size' : redefinition; symbol cannot be overloaded with a typedef
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(1191) : error C2143: syntax error : missing ';' before '<class-head>'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(1191) : error C2378: 'Size' : redefinition; symbol cannot be overloaded with a typedef
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(1258) : error C2143: syntax error : missing ';' before '<class-head>'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(1258) : error C2378: 'Size' : redefinition; symbol cannot be overloaded with a typedef
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\WinIoCtl.h(2122) : fatal error C1012: unmatched parenthesis : missing ')'
    Anyone has a guess of how to resolve this?

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    1) Download and use the latest SDK for Vista
    2) Define _WIN32_WINNT as 0x0600 for your project

    gg

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Latest Vista SDK - version 6.1 - http://www.microsoft.com/downloads/d...DisplayLang=en

    You may get 6.0a to work after defining _WIN32_WINNT as 0x0600...

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with ZwQueryDirectoryFile for my Driver.
    By taDo in forum Windows Programming
    Replies: 9
    Last Post: 11-27-2008, 08:54 AM
  2. WinAPI & threading
    By @nthony in forum Windows Programming
    Replies: 17
    Last Post: 10-15-2007, 04:41 PM
  3. do i still need winAPI
    By datainjector in forum Windows Programming
    Replies: 8
    Last Post: 07-12-2003, 01:43 AM
  4. references for the winapi
    By stallion in forum Windows Programming
    Replies: 9
    Last Post: 01-28-2003, 02:56 AM
  5. WINAPI: Meaning of HDC ?
    By Mecnels in forum Windows Programming
    Replies: 1
    Last Post: 01-21-2002, 10:06 AM