Click here to Skip to main content
15,912,082 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: WS 2003 SE Activation Pin
Dave Kreskowiak28-Dec-05 2:00
mveDave Kreskowiak28-Dec-05 2:00 
GeneralRe: WS 2003 SE Activation Pin
VickyC#25-Dec-05 21:16
VickyC#25-Dec-05 21:16 
QuestionW2K3: Opening a chm file from a network location, creating .reg files Pin
kfaday21-Dec-05 9:21
kfaday21-Dec-05 9:21 
AnswerRe: W2K3: Opening a chm file from a network location, creating .reg files Pin
Mekong River31-Dec-05 14:56
Mekong River31-Dec-05 14:56 
GeneralRe: W2K3: Opening a chm file from a network location, creating .reg files Pin
kfaday1-Jan-06 4:17
kfaday1-Jan-06 4:17 
GeneralRe: W2K3: Opening a chm file from a network location, creating .reg files Pin
Mekong River2-Jan-06 3:10
Mekong River2-Jan-06 3:10 
GeneralRe: W2K3: Opening a chm file from a network location, creating .reg files Pin
kfaday3-Jan-06 2:41
kfaday3-Jan-06 2:41 
QuestionAccess COM3 during WINLOGON Pin
atanu_biswas21-Dec-05 1:06
atanu_biswas21-Dec-05 1:06 
Confused | :confused: I am developing custom GINA which authenticates users based on tag reads from a USB Tag Reader(USB-Serial) that gives the tag id on COM3 as input to GINA.
I am having a few problems with the final step of getting my software to work, and I would appreciate a few comments from you on the problem that I am facing currently.

I have replaced MSGINA.DLL with a customised GINA.DLL and I have to get user information from an USB Tag Reader (USB-Serial) which provide a virtual COM port(COM3).

I am trying to read COM3 during WINLOGON by using CreateFile() and ReadFile() function but, I am getting an error that : "The Parameter is incorrect"
though I am getting the VALID HANDLE of the COM3. This is a program that works quite well in my development environment when I am logged in - but fails with this error when GINA tries to execute it during startup.

Is there any special security setting I have to set to access the COM3 before WINLOGON ? This is an issue that I am not able to find properly , and I would appreciate a few pointers to help me overcome this problem.

Please reply me as soon as possible..

--------------------------------------------------------------- This is sample source code to access Virtual COM (COM3) and mentioned where the error occured------------------------------
if (hPort == NULL)

{

hPort = CreateFile ("\\\\.\\COM3", // Pointer to the name of the port

GENERIC_READ | GENERIC_WRITE, // Access (read-write) mode

0, // Share mode

NULL, // Pointer to the security attribute

OPEN_EXISTING, // How to open the port

0, // Port attributes

NULL); // Handle to port with attribute

if (hPort == INVALID_HANDLE_VALUE)

{

printf("Could not open %s\n",port_name); // process error

}

Port_Ready = SetupComm(hPort, 34, 34); // set buffer sizes

if(!Port_Ready)

{

printf("%d\n",GetLastError());------------------------------------------------------------------------->"The Parameter is Incorrect"

return 1;

}

Port_Ready = GetCommState(hPort, &dcb);

if(!Port_Ready)

{

printf("Getting Port Comm State Fail\n");

}

dcb.BaudRate = CBR_38400;

dcb.Parity = NOPARITY;

dcb.ByteSize = 8;

dcb.StopBits = ONESTOPBIT;

dcb.fAbortOnError = TRUE;

dcb.fRtsControl=TRUE;

dcb.fParity = FALSE;


Port_Ready = SetCommState(hPort, &dcb);

if(!Port_Ready)

{

printf("%d\n",GetLastError());

return 1;

}

Port_Ready = GetCommTimeouts (hPort, &CommTimeouts);

if(Port_Ready)

{

printf("%d\n",GetLastError());

return 1;

}

CommTimeouts.ReadIntervalTimeout = 5000;

CommTimeouts.ReadTotalTimeoutConstant = 5000;

CommTimeouts.ReadTotalTimeoutMultiplier = 100;

Port_Ready = SetCommTimeouts (hPort, &CommTimeouts);

if(Port_Ready)

{

printf("%d\n",GetLastError());

retunr 1;

}

PurgeComm(hPort,PURGE_RXCLEAR);

if(!SetCommMask(hPort, EV_RXCHAR))

{

printf("%d\n",GetLastError());

return 1;

}


if(WaitCommEvent(hPort, &dwEventMask, &over))

{

if(ReadFileEx(hPort, &Buffer, PACKET_SIZE, &Bytes_Read, NULL)==FALSE)

{

printf("%d",::GetLastError());

return 1;

}

}


Atanu Biswas
QuestionInternet Explorer Title Bar Corrupt -- Displays Only Square Boxes Pin
Kevin McFarlane20-Dec-05 1:27
Kevin McFarlane20-Dec-05 1:27 
AnswerRe: Internet Explorer Title Bar Corrupt -- Displays Only Square Boxes Pin
Dave Kreskowiak20-Dec-05 5:11
mveDave Kreskowiak20-Dec-05 5:11 
GeneralRe: Internet Explorer Title Bar Corrupt -- Sorted Pin
Kevin McFarlane20-Dec-05 5:42
Kevin McFarlane20-Dec-05 5:42 
AnswerRe: Internet Explorer Title Bar Corrupt -- Displays Only Square Boxes Pin
Michael Dunn20-Dec-05 18:44
sitebuilderMichael Dunn20-Dec-05 18:44 
GeneralRe: Internet Explorer Title Bar Corrupt -- Displays Only Square Boxes Pin
Kevin McFarlane20-Dec-05 23:22
Kevin McFarlane20-Dec-05 23:22 
GeneralRe: Internet Explorer Title Bar Corrupt -- Displays Only Square Boxes Pin
Michael Dunn22-Dec-05 22:03
sitebuilderMichael Dunn22-Dec-05 22:03 
GeneralRe: Internet Explorer Title Bar Corrupt -- Displays Only Square Boxes Pin
Kevin McFarlane22-Dec-05 23:44
Kevin McFarlane22-Dec-05 23:44 
Questionrun VC6 in batch mode Pin
Indivara20-Dec-05 0:09
professionalIndivara20-Dec-05 0:09 
AnswerRe: run VC6 in batch mode Pin
Michael Dunn20-Dec-05 18:49
sitebuilderMichael Dunn20-Dec-05 18:49 
GeneralRe: run VC6 in batch mode Pin
Indivara20-Dec-05 21:14
professionalIndivara20-Dec-05 21:14 
GeneralRe: run VC6 in batch mode Pin
Indivara20-Dec-05 23:07
professionalIndivara20-Dec-05 23:07 
QuestionWindows Indexing server catalogs Pin
akshayswaroop19-Dec-05 19:32
akshayswaroop19-Dec-05 19:32 
AnswerRe: Windows Indexing server catalogs Pin
Mekong River19-Dec-05 22:37
Mekong River19-Dec-05 22:37 
QuestionCrash dump analysis Pin
eric_haiara19-Dec-05 19:10
eric_haiara19-Dec-05 19:10 
AnswerRe: Crash dump analysis Pin
Ted Ferenc19-Dec-05 21:50
Ted Ferenc19-Dec-05 21:50 
GeneralRe: Crash dump analysis Pin
eric_haiara20-Dec-05 17:07
eric_haiara20-Dec-05 17:07 
GeneralRe: Crash dump analysis Pin
Ted Ferenc20-Dec-05 21:42
Ted Ferenc20-Dec-05 21:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.