http://www.vchelp.net/article/submit/cad_key.htm
这个是一个gina的例子说明。看看。对你有些帮助

解决方案 »

  1.   

    WlxSetContextPointerThis function allows a GINA DLL to specify the context pointer that Winlogon passes it as the first parameter to all the GINA functions. By using this function, a GINA can specify a new context pointer to update the one returned during WlxInitialize.If a GINA DLL wishes to call WlxSasNotify during the processing of the WlxInitialize, this function must be called first, so as to associate any context with the GINA.
      

  2.   

    楼上的回答跟我的没关系啊?我又不是在WlxInitialize里面调用WlxSasNotify,我是在自己的消息处理函数里面调用,在Key插上的时候发送:pGlobalWlxFuncs->WlxSasNotify(hGlobalWlx,WLX_SAS_TYPE_USBKEY_UNLOCK),可是WlxWkstaLockedSAS里面收到的dwSasType却是"1"?!而根本不是我自己定义的SAS。而且即使我不管dwSasType,直接返回WLX_SAS_ACTION_UNLOCK_WKSTA还是不能看到桌面,不过好像是解锁了,只是只能看到壁纸,鼠标,没有其他。
    为什么会有这种现象?高手们帮帮忙。很急!!!!!!!
    分数可以再加!!!!!!!!!!!!