Click here to Skip to main content
16,011,608 members
Home / Discussions / C#
   

C#

 
AnswerRe: Compare values within a List against another value Pin
Calla9-Mar-10 20:16
Calla9-Mar-10 20:16 
AnswerRe: Compare values within a List against another value Pin
Luc Pattyn10-Mar-10 2:57
sitebuilderLuc Pattyn10-Mar-10 2:57 
GeneralRe: Compare values within a List against another value Pin
suprsnipes10-Mar-10 2:59
suprsnipes10-Mar-10 2:59 
QuestionNeed help to find nearest number above another from text file Pin
suprsnipes9-Mar-10 15:04
suprsnipes9-Mar-10 15:04 
AnswerRe: Need help to find nearest number above another from text file Pin
Not Active9-Mar-10 15:25
mentorNot Active9-Mar-10 15:25 
AnswerRe: Need help to find nearest number above another from text file Pin
Luc Pattyn9-Mar-10 15:30
sitebuilderLuc Pattyn9-Mar-10 15:30 
AnswerRe: Need help to find nearest number above another from text file Pin
Richard MacCutchan9-Mar-10 21:30
mveRichard MacCutchan9-Mar-10 21:30 
QuestionGetting Mac Address of a remote PC with C# without Admin Privileges Pin
alias479-Mar-10 14:19
alias479-Mar-10 14:19 
I have been looking for days as to how to get a Mac Address of a remote PC with C# without Admin Privileges. I use it for validation. The exe can only be run from one PC. First time the app is run, the MAC Address of the Computer where the app is running is recorded. Every time someone logs, the MAC Address of the Computer where the app is running from is checked. If the app is on a remote PC, the user needs Admin privileges to get the MAC Address.

1. WMI needs admin access.

2. nbtstat -a ipAddress

//When you try to run the nbtstat command with a command-line switch such as nbtstat -a remotename in Microsoft Windows XP or in Microsoft Windows Server 2003, the command does not run. Additionally, you receive the following error message:
//Failed to access NetBT Driver - NetBT may not be loaded.
//CAUSE: This issue occurs because users without administrator rights, including power user...This issue occurs because users without administrator rights, including power users, do not have sufficient permissions to run nbtstat when the user includes a command-line switch.

3. SendARP (iphlpapi.dll)
if (SendARP(RemoteIPAddress, 0, macByteArray, ref macAddrLen) != 0)

returns macByteArray==null

4.GetIpNetTable (iphlpapi.dll) returns null

Any other ideas?
Answerwarning Pin
Luc Pattyn9-Mar-10 14:51
sitebuilderLuc Pattyn9-Mar-10 14:51 
Questionpinvokes from windows service Pin
jacobjordan9-Mar-10 14:02
jacobjordan9-Mar-10 14:02 
AnswerRe: pinvokes from windows service Pin
Luc Pattyn9-Mar-10 14:10
sitebuilderLuc Pattyn9-Mar-10 14:10 
AnswerRe: pinvokes from windows service Pin
DaveyM699-Mar-10 14:16
professionalDaveyM699-Mar-10 14:16 
GeneralRe: pinvokes from windows service Pin
jacobjordan9-Mar-10 14:41
jacobjordan9-Mar-10 14:41 
GeneralRe: pinvokes from windows service Pin
Luc Pattyn9-Mar-10 14:53
sitebuilderLuc Pattyn9-Mar-10 14:53 
GeneralRe: pinvokes from windows service Pin
DaveyM699-Mar-10 15:20
professionalDaveyM699-Mar-10 15:20 
GeneralRe: pinvokes from windows service Pin
jacobjordan9-Mar-10 15:47
jacobjordan9-Mar-10 15:47 
GeneralRe: pinvokes from windows service Pin
DaveyM699-Mar-10 16:00
professionalDaveyM699-Mar-10 16:00 
GeneralRe: pinvokes from windows service Pin
Luc Pattyn9-Mar-10 16:02
sitebuilderLuc Pattyn9-Mar-10 16:02 
GeneralRe: pinvokes from windows service Pin
DaveyM699-Mar-10 15:26
professionalDaveyM699-Mar-10 15:26 
QuestionSender as form access class propertys Pin
Member 69748219-Mar-10 12:29
Member 69748219-Mar-10 12:29 
AnswerRe: Sender as form access class propertys [modified] Pin
Luc Pattyn9-Mar-10 12:36
sitebuilderLuc Pattyn9-Mar-10 12:36 
GeneralRe: Sender as form access class propertys Pin
Member 69748219-Mar-10 12:46
Member 69748219-Mar-10 12:46 
GeneralRe: Sender as form access class propertys [modified] Pin
Luc Pattyn9-Mar-10 12:54
sitebuilderLuc Pattyn9-Mar-10 12:54 
QuestionTelerik RadGred Question Pin
Kevin Marois9-Mar-10 11:16
professionalKevin Marois9-Mar-10 11:16 
QuestionC# and MySQL Pin
Evgeni579-Mar-10 10:21
Evgeni579-Mar-10 10: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.