EndTask problem



  • #if defined(WINNT)
    WINUSERAPI
    BOOL
    WINAPI
    EndTask(
        __in HWND hWnd,
        __in BOOL fShutDown,
        __in BOOL fForce);
    #endif
    

    ich hab also windows 7 und wollte EndTask einsetzen, windows.h is inkludiert, jedoch stosse ich auf das problem, dass EndTask nicht gefunden werden kann, is window 7 etwa kein WINNT oder liegt das problem etwa woanders



  • Das haben die (PSDK-team) absichtlich so gemacht 😉 Musst nur die Doku lesen:
    http://msdn.microsoft.com/en-us/library/ms633492

    Although you can access this function by using LoadLibrary and GetProcAddress combined in Windows versions prior to Windows XP, the function is not accessible using the standard Include file and library linkage. The header files included in Windows XP Service Pack 1 (SP1) and Windows Server 2003 document this function and make it accessible using the appropriate Include file and library linkage. However, this function is not intended for general use. It is recommended that you do not use it in new programs because it might be altered or unavailable in subsequent versions of Windows.


Anmelden zum Antworten