Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6120319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:39:17+00:00 2026-05-23T15:39:17+00:00

I wanted to use a native Dll in my C# .net application as this:

  • 0

I wanted to use a native Dll in my C# .net application as this:

public const int WFSDDESCRIPTION_LEN = 256;
public const int WFSDSYSSTATUS_LEN = 256;

[StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Auto)]
public struct LPWFSVERSION
{
   [MarshalAs(UnmanagedType.U4, SizeConst = 4)]
   int WVersion;
   [MarshalAs(UnmanagedType.U4, SizeConst = 4)]
   int WLowVersion;
   [MarshalAs(UnmanagedType.U4, SizeConst = 4)]
   uint WHighVerion;
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = WFSDDESCRIPTION_LEN + 1)]
   public string szDescription;
   [MarshalAs(UnmanagedType.ByValTStr, SizeConst = WFSDSYSSTATUS_LEN + 1)]
   public string szSystemStatus;
 }        
[DllImport("MSXFS.DLL", EntryPoint = "WFSStartUP", CharSet = CharSet.Auto, ExactSpelling = false)]
public static extern int WFSStartUP([MarshalAs(UnmanagedType.U4)]int dwVersionsRequired, ref LPWFSVERSION ver);

and here the code where I’ve used the imported function:

        LPWFSVERSION Ver = new LPWFSVERSION();
        WFSStartUP(0x31, ref Ver);      

the problem is that it throws an exception which says:”Unable to find an entry point”

I have dump the msxfs.dll with dumpbin and the result was this:

Section contains the following exports for MSXFS.d
00000000 characteristics
46938FBD time date stamp Tue Jul 10 17:25:09 200
    0.00 version
       1 ordinal base
      37 number of functions
      37 number of names

ordinal hint RVA      name

      1    0 00009310 WFMAllocateBuffer
      2    1 000093D0 WFMAllocateMore
       .
       .
     32   1F 00005BD0 WFSOpen
     33   20 00007C80 WFSRegister
     34   21 00008CD0 WFSSetBlockingHook
     35   22 00004FA0 WFSStartUp

It seems to be there was no problem in dll side as the dumpbin could find entry point as well. I don’t know what the problem is? 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:39:18+00:00Added an answer on May 23, 2026 at 3:39 pm
     35   22 00004FA0 WFSStartUp
    

    That’s Up, not UP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to use groovy for a little ftp script and found this post
This may seem like a basic/stupid/obviously-answered question, but I wanted to check: why use
I'd prefer to use native php for Zend configuration. How would I convert this
Is there any way to use dynamic keys with the node-mongodb-native driver? By this
I wanted to use T4 to generate properties for a partial class. I'm running
I wanted to use boost::thread in my program, but get the following compiler error
I wanted to use one of the Git-completion.bash features but I can't customize the
I wanted to use JET (Java Emitter Templates) in my Netbeans projects, but had
I wanted to use monotouch, but unfortunately I don't have $400 to spend. So
I wanted to use the custom field for wordpress to have a different header

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.