How to fix "WINAPI event undeclared identifiers" errors?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Surgey
    New Member
    • Feb 2011
    • 3

    How to fix "WINAPI event undeclared identifiers" errors?

    Hi, I have the following WINAPI event,

    Code:
    int WINAPI WlxLoggedOnSAS(PVOID pWlxContext,DWORD dwSasType,PVOID pReserved)
    {
    if (dwSasType == WLX_SAS_TYPE_CTRL_ALT_DEL)
    {
    // Add additional code of you own 
    return WLX_SAS_ACTION_NONE;
    }
    else
    return GWlxLoggedOnSAS( pWlxContext, dwSasType, pReserved );
    }
    I get errors in visual studio 2008,
    'WLX_SAS_TYPE_C TRL_ALT_DEL' : undeclared identifier
    'WLX_SAS_ACTION _NONE' : undeclared identifier
    'GWlxLoggedOnSA S': identifier not found

    What should I include in a project, and how would I call int WINAPI WlxLoggedOnSAS function with 3 parameters, what should they be?
    Thanks in advance...
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    I think WLX_SAS_TYPE_CT RL_ALT_DEL etc are defined in header file winwlx.h. Have you included it?

    Comment

    • Surgey
      New Member
      • Feb 2011
      • 3

      #3
      yes, I had to

      #include <Winwlx.h>

      but I still cannot find GWlxLoggedOnSAS , is still undeclared. Note: WixLoggedOnSAS is different from GWixLoggedOnSAS .

      I also, called it,

      Code:
      while (1==1) { CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)&WlxLoggedOnSAS, 0, 0, NULL); }
      I am not sure if this is the way to do it?

      Comment

      Working...