dllimport


Externs and DLL imports


I have this rather strange looking couple of lines in my code, that I am trying to decipher. Does anyone know what it says?
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath);
That line is known as Platform Invoke, basically it's just making the function GetPrivateProfileString from kernel32.dll available to your program. Check out http://www.pinvoke.net/default.aspx/kernel32.GetPrivateProfileString for a little more information on that specific function.

Related Links

Cannot create automation object - lotusscript
DllImport is not found C++
Mangled member function name different during dllimport
how to use DllImport in metro-style app
Converting doc file to post script
How can I get a COM component which can be used on Windows phone 8 project with C#
Externs and DLL imports
Mixed native and managed code heap corruption
MarshalDirectiveException
call unmanaged C++ code from C# using pinvoke
Detecting DLL Code Splicing
WOW64 Redirection and LoadLibrary
Using C# dll in Windows phone 7
Python 2.5 Import dll AttributeError
Replacing the Import Table in PE file by standart LoadLibrary
Unresolved external symbol

Categories

HOME
cygwin
checkstyle
object
ns-3
mjml
jmx
fftw
mstest
vscode-extensions
xbee
maxscript
appcelerator-studio
mod-security
line
endpoint
scrolltop
powershell-v5.0
sencha-touch
articulate-storyline
inno-download-plugin
php-mysqlidb
resourcebundle
strongname
angularjs-components
genexus-sd
comparable
uitapgesturerecognizer
nsurl
autodesk-designautomation
dotspatial
mobx
recurring-events
fstream
wacom
mailkit
gnat-gps
classcastexception
sendbird
baidu-map
mnist
protege4
git-rewrite-history
google-earth-engine
ideascript
flatmap
sim-card
loading
metawidget
congestion-control
android-exoplayer
signal-strength
facebook-social-plugins
dapper-simplecrud
modelsim
yii2-user
janus
cmp
rxtx
sandcastle
polyline
microstation
centrifuge
burrows-wheeler-transform
signalr.client
jodd
respondcms
google-query-language
cda
atan2
custom-errors
boomerang
flock
intel-c++
pyobjc
ms-access-2000
fail2ban
openbabel
delayed-execution
showdialog
theos
jbake
viewer
android-vibration
wcm
human-computer-interface
ss7
live555
buffering
synapse
solace-mq
composite-component
resource-management
idn
pyunit
oracle-enterprise-linux
failing-tests
qglwidget
non-clustered-index
office-2007
opml
purepdf
wcf-instancing
lobo-cobra
visualj#
product-management
leader

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App