posted in C, Coders corner on Sep 19th, 2010
#define WLAN_MAX_NAME_LENGTH 256 #define MAX_BUF_LEN 1024 #include <windows.h> #include <stdio.h> #include <wlanapi.h> #pragma comment(lib, "Wlanapi.lib") #pragma comment(lib, "Rpcrt4.lib") /* * Functions forward declarations. * */ int StringToSsid(char *pSSIDName, PDOT11_SSID pSSID); /* * Program entry point. * * * Usage : ProgName.exe GUID */ int main(int argc, [...]
read full post »
posted in C, Coders corner on Sep 17th, 2010
#define WLAN_MAX_NAME_LENGTH 256 #define MAX_BUF_LEN 1024 #include <windows.h> #include <stdio.h> #include <wlanapi.h> #pragma comment(lib, "Wlanapi.lib") #pragma comment(lib, "Rpcrt4.lib") /* * Functions forward declarations. * */ int StringToSsid(char *pSSIDName, PDOT11_SSID pSSID); /* * Program entry point. * * * Usage : ProgName.exe GUID SSID adhoc|infrastructure profilename */ [...]
read full post »
posted in C, Coders corner on Sep 15th, 2010
#define WLAN_MAX_NAME_LENGTH 256 #define MAX_BUF_LEN 1024 #include <windows.h> #include <stdio.h> #include <wlanapi.h> #pragma comment(lib, "Wlanapi.lib") #pragma comment(lib, "Rpcrt4.lib") /* * Program entry point. * * * Usage : ProgName.exe GUID ProfileName */ int main(int argc, char **argv) { int lRetVal = 0; int lFuncRetVal = 0; DWORD dwServiceVersion [...]
read full post »
posted in C, Coders corner on Sep 13th, 2010
#define WLAN_MAX_NAME_LENGTH 256 #define MAX_BUF_LEN 1024 #include <windows.h> #include <stdio.h> #include <wlanapi.h> #pragma comment(lib, "Wlanapi.lib") #pragma comment(lib, "Rpcrt4.lib") /* * Program entry point. * * * Usage : ProgName.exe GUID ProfileName */ int main(int argc, char **argv) { int lRetVal = 0; DWORD lFuncRetVal = ERROR_SUCCESS; HANDLE lClientHandle [...]
read full post »
posted in C, Coders corner on Sep 11th, 2010
#define WLAN_MAX_NAME_LENGTH 256 #define MAX_BUF_LEN 1024 #include <windows.h> #include <stdio.h> #include <wlanapi.h> #pragma comment(lib, "Wlanapi.lib") #pragma comment(lib, "Rpcrt4.lib") /* * Program entry point. * * Usage : ProgramName.exe GUID */ int main(int argc, char **argv) { int lRetVal = 0; DWORD lFuncRetVal = ERROR_SUCCESS; HANDLE lClientHandle = NULL; [...]
read full post »