-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from DaniElectra/crlf
- Loading branch information
Showing
5 changed files
with
219 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
* text eol=crlf | ||
* text=auto | ||
|
||
*.cpp text eol=crlf | ||
*.c text eol=crlf | ||
*.hpp text eol=crlf | ||
*.h text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
#include <winsock.h> | ||
|
||
#define WSAEVENT HANDLE | ||
#define LPWSAEVENT LPHANDLE | ||
#define FD_MAX_EVENTS 10 | ||
|
||
typedef struct _WSANETWORKEVENTS { | ||
long lNetworkEvents; | ||
int iErrorCode[FD_MAX_EVENTS]; | ||
} WSANETWORKEVENTS, *LPWSANETWORKEVENTS; | ||
|
||
struct WSAEventData { | ||
long lNetworkEvents; | ||
}; | ||
|
||
void SetEventData(SOCKET socket, const WSAEventData& data); | ||
int GetEventData(SOCKET socket, WSAEventData* data); | ||
void DeleteEventData(SOCKET socket); | ||
void SetEventsInstance(HINSTANCE hinstance); | ||
HWND GetEventsWindow(); | ||
int StartupEvents(); | ||
#include <winsock.h> | ||
|
||
#define WSAEVENT HANDLE | ||
#define LPWSAEVENT LPHANDLE | ||
#define FD_MAX_EVENTS 10 | ||
|
||
typedef struct _WSANETWORKEVENTS { | ||
long lNetworkEvents; | ||
int iErrorCode[FD_MAX_EVENTS]; | ||
} WSANETWORKEVENTS, *LPWSANETWORKEVENTS; | ||
|
||
struct WSAEventData { | ||
long lNetworkEvents; | ||
}; | ||
|
||
void SetEventData(SOCKET socket, const WSAEventData& data); | ||
int GetEventData(SOCKET socket, WSAEventData* data); | ||
void DeleteEventData(SOCKET socket); | ||
void SetEventsInstance(HINSTANCE hinstance); | ||
HWND GetEventsWindow(); | ||
int StartupEvents(); | ||
int CleanupEvents(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
#include <windows.h> | ||
#include "events.h" | ||
|
||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { | ||
switch (fdwReason) { | ||
case DLL_PROCESS_ATTACH: | ||
SetEventsInstance(hinstDLL); | ||
break; | ||
case DLL_THREAD_ATTACH: | ||
break; | ||
case DLL_THREAD_DETACH: | ||
break; | ||
case DLL_PROCESS_DETACH: | ||
if (lpvReserved != NULL) { | ||
break; | ||
} | ||
|
||
break; | ||
} | ||
|
||
return TRUE; | ||
#include <windows.h> | ||
#include "events.h" | ||
|
||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { | ||
switch (fdwReason) { | ||
case DLL_PROCESS_ATTACH: | ||
SetEventsInstance(hinstDLL); | ||
break; | ||
case DLL_THREAD_ATTACH: | ||
break; | ||
case DLL_THREAD_DETACH: | ||
break; | ||
case DLL_PROCESS_DETACH: | ||
if (lpvReserved != NULL) { | ||
break; | ||
} | ||
|
||
break; | ||
} | ||
|
||
return TRUE; | ||
} |
Oops, something went wrong.