15,899,679 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Michael____ (Top 11 by date)
Michael____
7-Feb-20 6:46am
View
thanks for the hint, the Sleep was only an example to see what happens ;-)
Michael____
8-Feb-19 13:18pm
View
Thank you very much for the explanation. I was aware about these circumstances but I thought there was a kind of defined order how the AddressList property will be filled.
Michael____
8-Feb-19 13:10pm
View
Thank you very much! The article behind the link answered my question.
Michael____
8-Feb-19 9:48am
View
With the "correct" one I mean the IP that I get if I use the Ping command in the CMD
console. And that leads me to another question: How is Ping.exe detecting the IP of the target computer if I´m pinging a computer name which I never pinged before?
Is it something like that?:
- Ping sends an WHOIS as broadcast
- DNS server answers
- Ping now knows the IP and is pinging it
Michael____
30-Jan-19 15:22pm
View
Yes, I know. I simply forgot it and Visual Studio doesn´t show a hint regarding this. But thanks anyway!
Michael____
30-Jan-19 12:51pm
View
WHAT THE ???
I added the return type and the exception is gone. The application is working now.
Thank you very much for your help! Your suggestion is accepted as the solution.
Michael____
29-Jan-19 17:11pm
View
Sorry, I forgot to mention that the line 166 was the line in the C# project from your suggested link. I´ve added the translated code to the question above.
Michael____
29-Jan-19 2:56am
View
Hi Dave, thanks for the link, it sounds interesting and could be a solution in further projects. I converted it to VB.Net and it works (it gets the value and returns it) but I get an exception in class "NetworkShare.cs" line 166. It tells me "MarshalDirectiveException: PInvoke restriction: cannot return variants.". Do you have an idea how to solve it?
BTW: I cannot mention a problem which I do not get.
Michael____
29-Jan-19 2:44am
View
Thank you very much for the explanation! I know Process Explorer but I didn´t know that you can see strings with it. This makes me thoughtful...
The idea with the service is good and I´m able to install services but unfortunately I´m not allowed to do that because I use the application in a company environment and cannot install/configure what I want on customer´s computers.
Michael____
28-Jan-19 17:50pm
View
Deleted
Thank you very much for the explanation! I know Process Explorer but I didn´t know that you can see strings with it. This makes me thoughtful...
The idea with the service is good and I´m able to install services but unfortunately I´m not allowed to do that because I use the application in a company environment and cannot install/configure what I want on customer´s computers.
Michael____
28-Jan-19 13:01pm
View
The application have two forms. At every start of the application the first form asks the user for the admin credentials. This information will be stored in public variables of the second form. After closing the application the credential information is gone. The credentials will not be saved to a file.
Regarding your suggestion: I tried this already and wanted to start the second application locally as a process but I get the exception "The stub got wrong data". The credentials itself (e.g. wrong password) cannot be the cause because I can do a WMI query with the same one and this works.
Show More