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

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
Declare and <DllImport> in VB.NET have different results

Categories

HOME
porting
adal
github-for-windows
gpu
rsa
pascal
oracle-apex-5
pclxl
vsm
qpython
openstreetmap
google-form
favicon
scsi
job-scheduling
kendo-mobile
babel
gulp-watch
easeljs
object-storage
underscore.js
sinch
nsurl
rselenium
batching
getlasterror
tex
xdocreport
flatmap
nohup
connection-pool
laravel-elixir
xmldocument
apache-spark-dataset
servermanager
flask-restful
ovf
twilio-click-to-call
aquamacs
context-sensitive-grammar
yii2-user
android-testing
pdf-conversion
cmp
structuremap4
pure-css
autosar
webjars
neon
beamer
jquery-jscrollpane
dimension
aurora
hadoop-partitioning
kiosk
iokit
xvim
poppler
text-search
kubuntu
public-html
grouping-sets
android-vibration
post-commit-hook
nsmenu
unix-socket
named-parameters
personalization
gnumeric
mt4j
bin
cffile
neos-server
superscrollorama
server-administration
mysql-error-2013
swfobject
twisted.web
argouml
mkv
mapping-by-code
predicatebuilder
urlrewriter
google-maps-mobile
gobject-introspection
ikimagebrowserview
creole
dataform
twitterizer
diagrams
uideviceorientation
facebook-iframe
application-verifier
echo3

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App