![]() |
|
#3
|
|||
|
|||
|
Have a look at
Code:
HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile Code:
AuthorizedApplications\List Code:
GloballyOpenPorts\List I've found that even with your application name in AuthorizedApplications, the program will still be suspended if you do UDP broadcasting, that's why I also mentioned GloballyOpenPorts. Format of the keys are (for AuthorizedApplications): Code:
int nValueLen = wsprintf( szRegValue, "%s:*:Enabled:%s", szFileName, szProgBaseName ); RegSetValueEx( hKey, szFileName, 0, REG_SZ, (PBYTE) szRegValue, nValueLen ); Code:
const char* szEnableMe = "1234:UDP:*:Enabled:Happy Program"; RegSetValueEx( hKey, "1234:UDP", 0, REG_SZ, (PBYTE) szEnableMe, strlen(szEnableMe) ); If your program will always be at a specified location, you can even use a .REG file. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows XP Key Generation Source Code | blue_devil | Source Code | 1 | 05-29-2023 03:54 |
| Windows debugger that can run code on breakpoint? | jonwil | Community Tools | 5 | 01-17-2022 21:28 |
| (Q) .NET App Source Code Protection (Silverlight, Windows Phone, Windows 8) | delidolunet | General Discussion | 7 | 08-02-2013 10:33 |