Error when using win api

GetFinalPathNameByHandle()

Page 1 of 1

2 Replies - 1845 Views - Last Post: 03 November 2009 - 03:33 PM Rate Topic: -----

#1 taylorc8  Icon User is offline

  • B&

Reputation: 149
  • View blog
  • Posts: 1,572
  • Joined: 21-July 09

Error when using win api

Post icon  Posted 03 November 2009 - 02:50 PM

What would I need to make code like this work when getting a messagebox saying
the procedure entry point GetFinalPathNameByHandle could not be located in the dll kernel32.dll

??

HANDLE myapp;
char path[MAX_PATH];
myapp=GetCurrentProcess();
GetFinalPathNameByHandleA(myapp,path,sizeof(path),0x0);



I am new to using DLLs and errors like this, I haven't used the windows api much.
I am using visual C++ 2008 express

Is This A Good Question/Topic? 0
  • +

Replies To: Error when using win api

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6075
  • View blog
  • Posts: 23,540
  • Joined: 23-August 08

Re: Error when using win api

Posted 03 November 2009 - 03:09 PM

From the docs:

Quote

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008


You're not using one of those OS versions, are you?
Was This Post Helpful? 1
  • +
  • -

#3 taylorc8  Icon User is offline

  • B&

Reputation: 149
  • View blog
  • Posts: 1,572
  • Joined: 21-July 09

Re: Error when using win api

Posted 03 November 2009 - 03:33 PM

View PostJackOfAllTrades, on 3 Nov, 2009 - 02:09 PM, said:

From the docs:

Quote

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008


You're not using one of those OS versions, are you?



Thanks man!
I'll look for another way to do it, I never expected XP to be that old.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1