Skip to content

Commit

Permalink
Add descriptions to the top of source files in NPcapHelper project.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Dec 29, 2015
1 parent 3e6acfe commit e72cb7f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions packetWin7/Helper/NPcapHelper/NPcapHelper.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
// Child.cpp : Defines the entry point for the console application.
//
/***************************************************************************
* NPcapHelper.cpp -- A program used to fetch driver handles for packet.dll*
* , it is started by packet.dll and uses Named Pipe to communicate with *
* packet.dll. This is for "Admin-only mode", as packet.dll runs on *
* non-Admin level and NPcapHelper.exe runs on Admin level. If user denies *
* the UAC prompt, NPcapHelper.exe will not start. *
* *
* This program is based on Microsoft example: *
* https://msdn.microsoft.com/en-us/library/windows/desktop/aa365592%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
* https://msdn.microsoft.com/en-us/library/windows/desktop/aa365588%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
***************************************************************************/

#include <stdio.h>
#include <tchar.h>
Expand Down
13 changes: 11 additions & 2 deletions packetWin7/Helper/NPcapHelperTest/NPcapHelperTest.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
// IPCTest.cpp : Defines the entry point for the console application.
//
/***************************************************************************
* NPcapHelperTest.c -- A program used to test NPcapHelper.exe *
* Note: this code is now integrated into packet.dll, this file is only *
* used for test. This is for "Admin-only mode", as packet.dll runs on *
* non-Admin level and NPcapHelper.exe runs on Admin level. If user denies *
* the UAC prompt, NPcapHelper.exe will not start. *
* *
* This program is based on Microsoft example: *
* https://msdn.microsoft.com/en-us/library/windows/desktop/aa365592%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
* https://msdn.microsoft.com/en-us/library/windows/desktop/aa365588%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
***************************************************************************/

#include <stdio.h>
#include <windows.h>
Expand Down

0 comments on commit e72cb7f

Please sign in to comment.