Click here to Skip to main content
15,917,455 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hidden files Pin
vivekphlp5-Jun-07 20:20
vivekphlp5-Jun-07 20:20 
QuestionEnumerate Network print jobs Pin
San24684-Jun-07 19:57
San24684-Jun-07 19:57 
AnswerRe: Enumerate Network print jobs Pin
Naveen4-Jun-07 20:18
Naveen4-Jun-07 20:18 
GeneralRe: Enumerate Network print jobs Pin
San24684-Jun-07 20:41
San24684-Jun-07 20:41 
GeneralRe: Enumerate Network print jobs Pin
Naveen4-Jun-07 20:49
Naveen4-Jun-07 20:49 
QuestionNamedpipe Pin
charian09204-Jun-07 19:29
charian09204-Jun-07 19:29 
AnswerRe: Namedpipe Pin
Mark Salsbery5-Jun-07 5:33
Mark Salsbery5-Jun-07 5:33 
GeneralRe: Namedpipe Pin
charian092024-Jun-07 22:41
charian092024-Jun-07 22:41 
hi mark,

thanks for the suggestion.
however, i tried searching it in the net and couldn't find any sample implementation that uses the GetNamedPipeHandleState API.

I also tried coding like this:

DWORD dwCurIntances;
DWORD dwState;

dwCurIntances = 0;
dwState = 0;
while ( TRUE )
{
// Wait for all the namedpipe instances to close first
if( !GetNamedPipeHandleState( (HANDLE) hClientReqPipe, &dwState, &dwCurIntances, NULL, NULL, NULL, 0 ) )
{
dwResult = GetLastError();
strLog.Format( "@@@@@@@@@@@@@@@@@@@@ GetNamedPipeHandleState Error: %d.", dwResult );
fnAddToMessageLog( 0, strLog );
break;
}

if ( dwCurIntances == 0 )
{
strLog.Format( "@@@@@@@@@@@@@@@@@@@@ All namedpipe instances have been closed." );
fnAddToMessageLog( 0, strLog );
break;
}
}

but I think it does not go the way I expected it.
I'm expecting that the value of dwCurIntances during the startup is "1", since I have created the namedpipe once only. the value I get is "7".

would appreciate your help.

thank you. Smile | :)

QuestionRe: Namedpipe Pin
Mark Salsbery25-Jun-07 7:30
Mark Salsbery25-Jun-07 7:30 
QuestionRe: Namedpipe [modified] Pin
charian092025-Jun-07 23:42
charian092025-Jun-07 23:42 
Questionhow to disable collapsing a tree item? Pin
nathan74-Jun-07 17:24
nathan74-Jun-07 17:24 
AnswerRe: how to disable collapsing a tree item? Pin
Naveen4-Jun-07 17:37
Naveen4-Jun-07 17:37 
GeneralRe: how to disable collapsing a tree item? Pin
nathan74-Jun-07 18:26
nathan74-Jun-07 18:26 
GeneralRe: how to disable collapsing a tree item? Pin
nathan74-Jun-07 18:34
nathan74-Jun-07 18:34 
GeneralRe: how to disable collapsing a tree item? Pin
Naveen4-Jun-07 19:03
Naveen4-Jun-07 19:03 
GeneralRe: how to disable collapsing a tree item? Pin
Naveen4-Jun-07 18:39
Naveen4-Jun-07 18:39 
GeneralRe: how to disable collapsing a tree item? Pin
nathan74-Jun-07 19:15
nathan74-Jun-07 19:15 
GeneralRe: how to disable collapsing a tree item? Pin
Naveen4-Jun-07 19:26
Naveen4-Jun-07 19:26 
GeneralRe: how to disable collapsing a tree item? Pin
nathan74-Jun-07 19:53
nathan74-Jun-07 19:53 
Questionhow to set font color of a single tree item? Pin
nathan74-Jun-07 17:17
nathan74-Jun-07 17:17 
AnswerRe: how to set font color of a single tree item? Pin
Naveen4-Jun-07 17:34
Naveen4-Jun-07 17:34 
AnswerRe: how to set font color of a single tree item? Pin
Hamid_RT4-Jun-07 20:39
Hamid_RT4-Jun-07 20:39 
QuestionConsume a Web Service via C++ Pin
rluckwell4-Jun-07 14:39
rluckwell4-Jun-07 14:39 
AnswerRe: Consume a Web Service via C++ Pin
prasad_som4-Jun-07 19:58
prasad_som4-Jun-07 19:58 
GeneralRe: Consume a Web Service via C++ Pin
rluckwell5-Jun-07 13:21
rluckwell5-Jun-07 13:21 

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.