|
From: warbad c. <wa...@ya...> - 2005-11-03 18:00:49
|
Hello all,
I'm new here, so i hope i'll make no mistake posting
my problem.
I've wrote a quick test program in c:
#ifndef DOMAIN_H
#define DOMAIN_H
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <lm.h>
#endif /* DOMAIN_H */
#include "domain.h"
int main(int argc, char *argv[])
{
NET_API_STATUS res;
printf("You're about to change the computer name to
%s\n", argv[1]);
res = NetRenameMachineInDomain (
NULL, argv[1], "myaccount" , "mypassword",
NETSETUP_ACCT_CREATE);
if (res != NERR_Success) { printf("Error!!!\n"); }
system("PAUSE");
return 0;
}
I setup (i think correctly) the link to libs,
includes, etc..
but when i try to compile i have many many errors :
Compiler: Default compiler
Building Makefile: "D:\Documents and
Settings\dev\Domain\Makefile.win"
Executing make...
make.exe -f "D:\Documents and
Settings\dev\Domain\Makefile.win" all
gcc.exe -D__DEBUG__ -c domain.c -o domain.o
-I"C:/Program Files/Microsoft Platform SDK/Include"
-I"C:/Program Files/Microsoft Platform SDK/Include"
-Wall -g -g3
In file included from domain.h:6,
from domain.c:1:
C:/Program Files/Microsoft Platform
SDK/Include/windows.h:157:19: excpt.h: No such file or
directory
In file included from C:/Program Files/Microsoft
Platform SDK/Include/winnt.h:99,
from C:/Program Files/Microsoft
Platform SDK/Include/windef.h:176,
from C:/Program Files/Microsoft
Platform SDK/Include/windows.h:161,
from domain.h:6,
from domain.c:1:
C:/Program Files/Microsoft Platform
SDK/Include/basetsd.h:63: error: parse error before
"INT64"
C:/Program Files/Microsoft Platform
SDK/Include/basetsd.h:63: warning: type defaults to
`int' in declaration of `INT64'
[...]
I never succeed to write a program with the PSDK.
If someone can help, he'll be great
Thank in advance.
Vincent
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
|